]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: mpt3sas: Force PCIe scatterlist allocations to be within same 4 GB region
authorSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
Fri, 5 Mar 2021 10:28:58 +0000 (15:58 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Mar 2021 04:04:41 +0000 (00:04 -0400)
commitd6adc251dd2fede6aaaf6c39f7e4ad799eda3758
tree8dcf3c8d1c3f655bfaa62284903d21569da22e97
parenta1c4d7741323eff1d9c5baca8337ac3ac4630649
scsi: mpt3sas: Force PCIe scatterlist allocations to be within same 4 GB region

According to the MPI specification, PCIe SGL buffers can not cross a 4 GB
boundary.

While allocating, if any buffer crosses the 4 GB boundary, then:

 - Release the already allocated memory pools; and

 - Reallocate them by changing the DMA coherent mask to 32-bit

Link: https://lore.kernel.org/r/20210305102904.7560-2-suganath-prabu.subramani@broadcom.com
Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c
drivers/scsi/mpt3sas/mpt3sas_base.h