]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpt3sas: Use 63-bit DMA addressing on SAS35 HBA
authorSuganath Prabu <suganath-prabu.subramani@broadcom.com>
Tue, 30 Jul 2019 07:43:57 +0000 (03:43 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 30 Jul 2019 16:46:06 +0000 (12:46 -0400)
commita79a75eb6127756a1c19fa6fe86c1004c3d6e608
tree02a6dfc7230096d05565df8e7eea5dae557eae7a
parent92cbab171fc018610036b5e550316a8ce2c6a7b9
scsi: mpt3sas: Use 63-bit DMA addressing on SAS35 HBA

Although SAS3 & SAS3.5 IT HBA controllers support 64-bit DMA addressing, as
per hardware design, if DMA-able range contains all 64-bits
set (0xFFFFFFFF-FFFFFFFF) then it results in a firmware fault.

E.g. SGE's start address is 0xFFFFFFFF-FFFF000 and data length is 0x1000
bytes. when HBA tries to DMA the data at 0xFFFFFFFF-FFFFFFFF location then
HBA will fault the firmware.

Driver will set 63-bit DMA mask to ensure the above address will not be
used.

Cc: <stable@vger.kernel.org> # 5.1.20+
Signed-off-by: Suganath Prabu <suganath-prabu.subramani@broadcom.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c