mbox series

[0/7] Handle DMA allocations in same 4G region.

Message ID 20210305102904.7560-1-suganath-prabu.subramani@broadcom.com
Headers show
Series Handle DMA allocations in same 4G region. | expand

Message

Suganath Prabu S March 5, 2021, 10:28 a.m. UTC
According to MPI Specification PCIe SGL, Sense pool, Chain pool,
reply pool, reply post pool & reply post array buffers should not cross
4GB boundary. So while allocating these buffers, if any of these
pool buffer crosses the 4GB boundary then,
* Release the already allocated memory pools and
* Reallocate them by changing the DMA coherent mask to 32 bit.

Suganath Prabu S (7):
  mpt3sas: Handle PCIe sgl's in same 4G region.
  mpt3sas: Handle chain buffer DMA allocations in same 4G  region
  mpt3sas: Handle sense buffer DMA allocations in same 4G  region
  mpt3sas: Handle reply pool DMA allocations in same 4G  region
  mpt3sas: Handle Reply post queue DMA allocations in same  4G region
  mpt3sas: Handle reply post array DMA allocations in same  4G region
  mpt3sas : Update driver version to 37.101.00.00

 drivers/scsi/mpt3sas/mpt3sas_base.c | 503 ++++++++++++++++++----------
 drivers/scsi/mpt3sas/mpt3sas_base.h |   5 +-
 2 files changed, 332 insertions(+), 176 deletions(-)

Comments

Martin K. Petersen March 19, 2021, 3:46 a.m. UTC | #1
On Fri, 5 Mar 2021 15:58:57 +0530, Suganath Prabu S wrote:

> According to MPI Specification PCIe SGL, Sense pool, Chain pool,

> reply pool, reply post pool & reply post array buffers should not cross

> 4GB boundary. So while allocating these buffers, if any of these

> pool buffer crosses the 4GB boundary then,

> * Release the already allocated memory pools and

> * Reallocate them by changing the DMA coherent mask to 32 bit.

> 

> [...]


Applied to 5.13/scsi-queue, thanks!

[1/7] mpt3sas: Handle PCIe sgl's in same 4G region.
      https://git.kernel.org/mkp/scsi/c/d6adc251dd2f
[2/7] mpt3sas: Handle chain buffer DMA allocations in same 4G region
      https://git.kernel.org/mkp/scsi/c/7dd847dae1c4
[3/7] mpt3sas: Handle sense buffer DMA allocations in same 4G region
      https://git.kernel.org/mkp/scsi/c/970ac2bb70e7
[4/7] mpt3sas: Handle reply pool DMA allocations in same 4G region
      https://git.kernel.org/mkp/scsi/c/58501fd9375f
[5/7] mpt3sas: Handle Reply post queue DMA allocations in same 4G region
      https://git.kernel.org/mkp/scsi/c/2e4e8587327b
[6/7] mpt3sas: Handle reply post array DMA allocations in same 4G region
      https://git.kernel.org/mkp/scsi/c/c569de899bb4
[7/7] mpt3sas : Update driver version to 37.101.00.00
      https://git.kernel.org/mkp/scsi/c/37067b979309

-- 
Martin K. Petersen	Oracle Linux Engineering