From 025ad08ab71bb87161ae77ebca1fa2da1250b56e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 27 Jan 2023 09:41:40 -0800 Subject: Set the default loop driver queue depth to 31 Work around the crashes in bt_for_each() by setting the queue depth at boot time. An example of a kernel crash that should be fixed by this CL: Unable to handle kernel paging request at virtual address ffffffefa2c84630 Call trace: bt_for_each+0xd0/0x11c blk_mq_queue_tag_busy_iter+0xc4/0x180 blk_mq_in_flight+0x34/0x5c part_in_flight+0x18/0x64 part_round_stats+0x8c/0x19c blk_account_io_start+0x164/0x2a0 blk_mq_make_request+0x374/0x714 generic_make_request+0x108/0x2d4 submit_bio+0x78/0x240 submit_bh_wbc+0x148/0x190 __bread_gfp+0xc0/0x188 ext4_fill_super+0x230/0x32b0 mount_bdev+0x188/0x1d0 ext4_mount+0x18/0x24 mount_fs+0xb4/0x190 vfs_kern_mount+0x7c/0x208 do_mount+0x508/0xc70 Bug: 265546875 Change-Id: I18ffe338a7e4078f0bfe0c3ffbdddce7fe0140d2 Signed-off-by: Bart Van Assche --- BoardConfig-common.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk index cb21028b..3e6f1d3a 100644 --- a/BoardConfig-common.mk +++ b/BoardConfig-common.mk @@ -48,6 +48,7 @@ BOARD_KERNEL_CMDLINE += androidboot.memcg=1 cgroup.memory=nokmem BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1 #STOPSHIP BOARD_KERNEL_CMDLINE += usbcore.autosuspend=7 BOARD_KERNEL_CMDLINE += loop.max_part=7 +BOARD_KERNEL_CMDLINE += loop.hw_queue_depth=31 BOARD_KERNEL_CMDLINE += androidboot.usbcontroller=a600000.dwc3 swiotlb=1 BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc/1d84000.ufshc BOARD_KERNEL_CMDLINE += cgroup_disable=pressure -- cgit v1.2.3