FROMLIST: scsi: ufs: Prepare HPB read for cached sub-region
This patch changes the read I/O to the HPB read I/O. If the logical address of the read I/O belongs to active sub-region, the HPB driver modifies the read I/O command to HPB read. It modifies the UPIU command of UFS instead of modifying the existing SCSI command. In the HPB version 1.0, the maximum read I/O size that can be converted to HPB read is 4KB. The dirty map of the active sub-region prevents an incorrect HPB read that has stale physical page number which is updated by previous write I/O. Bug: 183467926 Bug: 170940265 Bug: 183454255 Link: https://lore.kernel.org/linux-scsi/20210616070913epcms2p83805028905f46225a65cc71678cddde7@epcms2p8/ Reviewed-by:Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by:
Can Guo <cang@codeaurora.org> Reviewed-by:
Bart Van Assche <bvanassche@acm.org> Reviewed-by:
Bean Huo <beanhuo@micron.com> Reviewed-by:
Stanley Chu <stanley.chu@mediatek.com> Acked-by:
Avri Altman <Avri.Altman@wdc.com> Tested-by:
Bean Huo <beanhuo@micron.com> Tested-by:
Can Guo <cang@codeaurora.org> Tested-by:
Stanley Chu <stanley.chu@mediatek.com> Signed-off-by:
Daejun Park <daejun7.park@samsung.com> Change-Id: I1f5fde83246ed12c8e095bd987ce97ef63c16e51
Loading
Please sign in to comment