From b8b02bc357585141da6b0024a9529f3b946a9f35 Mon Sep 17 00:00:00 2001 From: Martin Liu Date: Thu, 3 Mar 2022 23:21:32 +0800 Subject: [PATCH] set swiotlb as noforce As dma devices are 36bit bounded, we don't need SWIOTLB bounce buffers. Set swiotlb=noforce to disable this and make the minimum amount of memory allocation. Bug: 207573157 Test: check total memory and io_tlb_nslabs Signed-off-by: Martin Liu Change-Id: I21eac64f57505c14e12fed50980aad4d818b34cb --- BoardConfig-common.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk index 5fb7a2a9..310cbeab 100644 --- a/BoardConfig-common.mk +++ b/BoardConfig-common.mk @@ -38,6 +38,7 @@ BOARD_KERNEL_CMDLINE += cma_sysfs.experimental=Y BOARD_KERNEL_CMDLINE += cgroup_disable=memory BOARD_KERNEL_CMDLINE += rcupdate.rcu_expedited=1 rcu_nocbs=all BOARD_KERNEL_CMDLINE += stack_depot_disable=off page_pinner=on +BOARD_KERNEL_CMDLINE += swiotlb=noforce BOARD_BOOTCONFIG += androidboot.boot_devices=14700000.ufs TARGET_NO_BOOTLOADER := true