Commit d53cf718 authored by Wang Chao's avatar Wang Chao Committed by Yang Yingliang
Browse files

scsi: hisi_sas: Reduce HISI_SAS_SGE_PAGE_CNT in size



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

Macro HISI_SAS_SGE_PAGE_CNT is defined to SG_CHUNK_SIZE, which is 128.

This means that sizeof(struct hisi_sas_slot_buf_table) is 4192. This is
just over a 4K, which can mean inefficient DMA memory usage (for no PI).

Reduce the size of HISI_SAS_SGE_PAGE_CNT to 124 to fit in a 4K page. With
this change, we experience no performance hit.

Signed-off-by: default avatarWang Chao <wangchao342@hisilicon.com>
Reviewed-by: default avatarZhu Xiongxiong <zhuxiongxiong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent ad5211c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment