linux_dsm_epyc7002/drivers/scsi/hisi_sas
Xiang Chen 599aefc81e scsi: hisi_sas: Make slot buf minimum allocation of PAGE_SIZE
For a system with PAGE_SIZE of 16K or 64K, the size every time we want to
alloc may be small like 4K, but for function dmam_alloc_coherent(), the
least size it allocates is PAGE_SIZE, so it will waste much memory for the
situation.

To solve the issue, limit the minimum allocation size of slot buf to
PAGE_SIZE.

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>
2019-08-07 22:13:15 -04:00
..
hisi_sas_main.c scsi: hisi_sas: Make slot buf minimum allocation of PAGE_SIZE 2019-08-07 22:13:15 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: Drop hisi_sas_hw.get_free_slot 2019-08-07 22:13:14 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: Drop hisi_sas_hw.get_free_slot 2019-08-07 22:13:14 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas: Snapshot AXI and RAS register at debugfs 2019-08-07 22:13:15 -04:00
hisi_sas.h scsi: hisi_sas: Snapshot AXI and RAS register at debugfs 2019-08-07 22:13:15 -04:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00