SCSI fixes for 5.19-rc4
Subsystems (2)
James Bottomley
maintainerOne simple driver fix for a dma overrun.
The patch is available here:
git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes
The short changelog is:
John Garry (1):
scsi: hisi_sas: Limit max hw sectors for v3 HW
And the diffstat:
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 7 +++++++ 1 file changed, 7 insertions(+)
With full diff below.
James
---
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +7 -0
@@ -2782,6 +2782,7 @@ static int slave_configure_v3_hw(struct scsi_device *sdev)struct hisi_hba *hisi_hba =shost_priv (shost);struct device *dev = hisi_hba->dev;int ret =sas_slave_configure (sdev); +unsigned int max_sectors;if (ret)return ret;
@@ -2799,6 +2800,12 @@ static int slave_configure_v3_hw(struct scsi_device *sdev) } } +/* Set according to IOMMU IOVA caching limit */ + max_sectors =min_t (size_t,queue_max_hw_sectors (sdev->request_queue), + (PAGE_SIZE *32 ) >>SECTOR_SHIFT ); + +blk_queue_max_hw_sectors (sdev->request_queue, max_sectors); +return 0 ; }
The pull request you sent on Fri, 01 Jul 2022 11:26:39 -0400:
The pull request you sent on Fri, 01 Jul 2022 11:26:39 -0400:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.gitscsi-fixes
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/067c227379c0ec96cb19ed9aacea6b1281982368
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html