ARM: configs: rv1106: Set MMC_QUEUE_DEPTH to 1

This patch Set MMC_QUEUE_DEPTH to 1 for products with sdcard on
single core.

Save slab memory: ~2.3MB

+CONFIG_MMC_QUEUE_DEPTH=1

Analyze by kmem-probe:

trace_analyze.py -k kernel/ -f kmem.log -b drivers/mmc/ -c kmem_account.txt

Before: 64 depth default

   total    waste      net alloc/free  caller
 --------------------------------------------
 2371584        0  2371584   579/0     mmc_mq_init_request+0x44L
    4096     1576     4096     2/0     mmc_alloc_host+0x28L
    2048      536     2048     1/0     mmc_alloc_card+0x30L
    2048      944     2048     2/0     dw_mci_pltfm_register+0x30L
    1536      144     1536     3/0     mmc_blk_alloc_req+0x88L
    1024      312     1024     1/0     mmc_blk_probe+0x4ccL
     256       80      256     2/0     mmc_gpio_alloc+0x28L
     256       72      256     2/0     dw_mci_rk3288_parse_dt+0x30L
     256       56      256     2/0     dw_mci_probe+0x40L
    1024        0        0     2/2     mmc_get_ext_csd+0x54L

After this patch: 1 depth on single core

   total    waste      net alloc/free  caller
 ---------------------------------------------
   49152        0    49152    12/0     mmc_mq_init_request+0x44L
    4096     1576     4096     2/0     mmc_alloc_host+0x28L
    2048      536     2048     1/0     mmc_alloc_card+0x30L
    2048      944     2048     2/0     dw_mci_pltfm_register+0x30L
    1536      144     1536     3/0     mmc_blk_alloc_req+0x88L
    1024      312     1024     1/0     mmc_blk_probe+0x4ccL
     256       80      256     2/0     mmc_gpio_alloc+0x28L
     256       72      256     2/0     dw_mci_rk3288_parse_dt+0x30L
     256       56      256     2/0     dw_mci_probe+0x40L
    1024        0        0     2/2     mmc_get_ext_csd+0x54L

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2b429d1b7188c8fdf2a6e229b2cd5941af85cd7c
This commit is contained in:
Sugar Zhang
2022-03-27 17:10:12 +08:00
committed by Tao Huang
parent 74a6df9f7a
commit b9d8b9f8d2
2 changed files with 2 additions and 2 deletions

View File

@@ -524,7 +524,7 @@ CONFIG_MMC_DW_PLTFM=y
CONFIG_MMC_DW_ROCKCHIP=y
# CONFIG_MMC_HSQ is not set
# CONFIG_MMC_MTK is not set
CONFIG_MMC_QUEUE_DEPTH=64
CONFIG_MMC_QUEUE_DEPTH=1
# CONFIG_MMC_SDHCI is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_TEST is not set

View File

@@ -138,7 +138,7 @@ CONFIG_MMC_DW_PLTFM=y
CONFIG_MMC_DW_ROCKCHIP=y
# CONFIG_MMC_HSQ is not set
# CONFIG_MMC_MTK is not set
CONFIG_MMC_QUEUE_DEPTH=64
CONFIG_MMC_QUEUE_DEPTH=1
# CONFIG_MMC_SDHCI is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_TEST is not set