1
0
Fork 0
alistair23-linux/drivers/scsi/hisi_sas
Xiang Chen 3297ded1dd scsi: hisi_sas: fix SATA breakpoint memory size
Currently the size of memory we allocate for SATA breakpoint buffer is
incorrect.

The breakpoint memory size should be as follows: 32 (NCQ tags) * 128 *
2048 (max #devs) = 8MB

Currently we only allocate 0.5MB, but get away with it as we never
have SATA device index > 128 typically.

To conserve precious DMA memory (8MB may not be even available), limit
the number of devices per HBA to 1024, which means 4MB of memory
required for SATA breakpoint.

The 1024 device limit applied to all HW versions. For v3 hw, we need
to configure this value.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-10-25 08:21:04 -04:00
..
Kconfig scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00
hisi_sas.h scsi: hisi_sas: fix SATA breakpoint memory size 2017-10-25 08:21:04 -04:00
hisi_sas_main.c scsi: hisi_sas: fix SATA breakpoint memory size 2017-10-25 08:21:04 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: optimise DMA slot memory 2017-07-01 17:06:56 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: grab hisi_hba.lock when processing slots 2017-10-25 08:21:04 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas: fix SATA breakpoint memory size 2017-10-25 08:21:04 -04:00