RE: [PATCH v4 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-03 Thread Stanley Chu
Hi Avri, On Sun, 2020-05-03 at 08:00 +, Avri Altman wrote: > > > - if (!(hba->dev_info.b_wb_buffer_type && > > - hba->dev_info.d_wb_alloc_units)) > > - goto wb_disabled; > > + if (hba->dev_info.b_wb_buffer_type == WB_BUF_MODE_SHARED) { > > +

RE: [PATCH v4 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-03 Thread Avri Altman
> - if (!(hba->dev_info.b_wb_buffer_type && > - hba->dev_info.d_wb_alloc_units)) > - goto wb_disabled; > + if (hba->dev_info.b_wb_buffer_type == WB_BUF_MODE_SHARED) { > + hba->dev_info.d_wb_alloc_units = > + get_unaligned_be32(des

[PATCH v4 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-02 Thread Stanley Chu
According to UFS specification, there are two WriteBooster mode of operations: "LU dedicated buffer" mode and "shared buffer" mode. In the "LU dedicated buffer" mode, the WriteBooster Buffer is dedicated to a logical unit. If the device supports the "LU dedicated buffer" mode, this mode is configu