FROMLIST: scsi: ufs: Add HPB 2.0 support
This patch supports the HPB 2.0. The HPB 2.0 supports read of varying sizes from 4KB to 512KB. In the case of Read (<= 32KB) is supported as single HPB read. In the case of Read (36KB ~ 1MB) is supported by as a combination of write buffer command and HPB read command to deliver more PPN. The write buffer commands may not be issued immediately due to busy tags. To use HPB read more aggressively, the driver can requeue the write buffer command. The requeue threshold is implemented as timeout and can be modified with requeue_timeout_ms entry in sysfs. Bug: 183467926 Bug: 170940265 Bug: 183454255 Link: https://lore.kernel.org/linux-scsi/20210616070942epcms2p5b858c3ab5a1feca32162c8fd75ebed67@epcms2p5/ Reviewed-by:Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by:
Can Guo <cang@codeaurora.org> Reviewed-by:
Bean Huo <beanhuo@micron.com> Reviewed-by:
Stanley Chu <stanley.chu@mediatek.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: I0a54f9ff2c84eed17f77da59331d2400b7edffdc
Loading