remarkable-linux/drivers/scsi/hisi_sas
Xiaofei Tan f557e32c00 scsi: hisi_sas: optimise DMA slot memory
Currently we allocate 3 sets of DMA memories from separate pools for
each slot. This is inefficient in terms of memory usage
(buffers are less than 1 page in size, so we lose due to alignment),
and also time spent in doing 3 allocations + de-allocations per slot,
instead of 1.

To optimise, combine the 3 DMA buffers into a single buffer from a
single pool.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-07-01 17:06:56 -04:00
..
hisi_sas.h scsi: hisi_sas: optimise DMA slot memory 2017-07-01 17:06:56 -04:00
hisi_sas_main.c scsi: hisi_sas: optimise DMA slot memory 2017-07-01 17:06:56 -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: optimise DMA slot memory 2017-07-01 17:06:56 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas: optimise DMA slot memory 2017-07-01 17:06:56 -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