mbox series

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

Message ID 1586957125-19460-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 15, 2020, 1:25 p.m. UTC
From: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>

* 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 S (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 | 279 +++++++++++++++++++++---------------
 drivers/scsi/mpt3sas/mpt3sas_base.h |   9 +-
 2 files changed, 171 insertions(+), 117 deletions(-)

Comments

Martin K. Petersen April 22, 2020, 3:36 a.m. UTC | #1
Christoph,

Please review, thanks!

> * 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 S (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 | 279 +++++++++++++++++++++---------------
>  drivers/scsi/mpt3sas/mpt3sas_base.h |   9 +-
>  2 files changed, 171 insertions(+), 117 deletions(-)