mbox series

[v2,0/5] mpt3sas: Fix changing coherent mask after allocation

Message ID 1587626596-1044-1-git-send-email-suganath-prabu.subramani@broadcom.com (mailing list archive)
Headers show
Series mpt3sas: Fix changing coherent mask after allocation | expand

Message

Suganath Prabu S April 23, 2020, 7:23 a.m. UTC
* Set the coherent dma mask to 64 bit and then allocate RDPQ pools,
make sure that each of the RDPQ pools satisfies the 4gb boundary
restriction. if any of the RDPQ pool doesn't satisfies this
restriction then deallocate the pools and reallocate them after
changing the coherent dma mask to 32 bit.
* With this there is no need to change DMA coherent
mask when there are outstanding allocations in mpt3sas.
* Code-Refactoring

Suganath Prabu (5):
  mpt3sas: don't change the dma coherent mask after allocations
  mpt3sas: Rename function name is_MSB_are_same
  mpt3sas: Separate out RDPQ allocation to new function.
  mpt3sas: Handle RDPQ DMA allocation in same 4G region
  mpt3sas: Update mpt3sas version to 33.101.00.00

 drivers/scsi/mpt3sas/mpt3sas_base.c | 256 +++++++++++++++++++++---------------
 drivers/scsi/mpt3sas/mpt3sas_base.h |   9 +-
 2 files changed, 154 insertions(+), 111 deletions(-)

Comments

Martin K. Petersen April 24, 2020, 5:09 p.m. UTC | #1
Suganath,

> * Set the coherent dma mask to 64 bit and then allocate RDPQ pools,
> make sure that each of the RDPQ pools satisfies the 4gb boundary
> restriction. if any of the RDPQ pool doesn't satisfies this
> restriction then deallocate the pools and reallocate them after
> changing the coherent dma mask to 32 bit.
> * With this there is no need to change DMA coherent mask when there
> are outstanding allocations in mpt3sas.
> * Code-Refactoring

Applied to 5.8/scsi-queue, thanks!