From 9281ebe73f9f4b06fafa027e39a7760df38b8f79 Mon Sep 17 00:00:00 2001 From: Christian Stewart Date: Mon, 21 Sep 2020 22:45:45 -0700 Subject: [PATCH] pi/common: fix mmc lockup by setting dirty_ratio sysctl May fix a lockup observed against Pi 4 64 bit: INFO: task kworker/1:0:1663 blocked for more than 120 seconds. Workqueue: events_freezable mmc_rescan Call trace: __switch_to+0x110/0x180 __schedule+0x2f4/0x750 schedule+0x44/0xe0 __mmc_claim_host+0xb8/0x210 mmc_get_card+0x38/0x50 mmc_sd_detect+0x24/0x90 mmc_rescan+0xc8/0x390 process_one_work+0x1c0/0x470 worker_thread+0x50/0x430 kthread+0x100/0x130 sets syctl values for pi boards: +vm.dirty_background_ratio = 5 +vm.dirty_ratio = 10 Reference: https://github.com/raspberrypi/linux/issues/2810 Signed-off-by: Christian Stewart --- .../root_overlay/etc/sysctl.d/11-skiff-pi-common-mmcfix.conf | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 configs/pi/common/root_overlay/etc/sysctl.d/11-skiff-pi-common-mmcfix.conf diff --git a/configs/pi/common/root_overlay/etc/sysctl.d/11-skiff-pi-common-mmcfix.conf b/configs/pi/common/root_overlay/etc/sysctl.d/11-skiff-pi-common-mmcfix.conf new file mode 100644 index 000000000..acc4039fe --- /dev/null +++ b/configs/pi/common/root_overlay/etc/sysctl.d/11-skiff-pi-common-mmcfix.conf @@ -0,0 +1,4 @@ +# Fix for mmc hang against kernel > 4.14 +# Reference: https://github.com/raspberrypi/linux/issues/2810 +vm.dirty_background_ratio = 5 +vm.dirty_ratio = 10