Skip to content

Commit

Permalink
pi/common: fix mmc lockup by setting dirty_ratio sysctl
Browse files Browse the repository at this point in the history
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: raspberrypi/linux#2810

Signed-off-by: Christian Stewart <christian@paral.in>
  • Loading branch information
paralin committed Sep 22, 2020
1 parent b62621e commit 9281ebe
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9281ebe

Please sign in to comment.