Skip to content

Commit 5c0d64e

Browse files
authored
Enable performance optimizations (#595)
Fixes #594 --- `dtparam=sd_cqe=2` > /boot/firmware/overlays/README sd_cqe Modify Command Queuing behaviour on the main SD interface. Legal values are: 0: disable CQ 1: allow CQ for known-good SD A2 cards, and all eMMC cards 2: allow CQ for all SD A2 cards that aren't known-bad, and all eMMC cards. (2712 only, default "1") We use SanDisk Extreme A2 which appear to be working well but are not allow-listed yet. Let's test this setting and revert if it causes issues or submit a PR to allow-list to https://github.com/raspberrypi/linux See * https://www.raspberrypi.com/news/sd-cards-and-bumper/ * https://forums.raspberrypi.com/viewtopic.php?t=367459 --- `SDRAM_BANKLOW` See * https://forums.raspberrypi.com/viewtopic.php?t=378276 * https://www.jeffgeerling.com/blog/2024/raspberry-pi-boosts-pi-5-performance-sdram-tuning
1 parent 6a93161 commit 5c0d64e

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

documentation/docs/reference/hardware/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ Reduce power usage when powered off
3434
3535
Does not automatically power on when connected anymore
3636
37+
Much faster CPU and GPU performances
38+
39+
Faster sdcard access
40+
3741
-->
3842

3943
## v2.6

software/distro/setup/planktoscope-app-env/PlanktoScope/config.txt.snippet

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ disable_poe_fan=1
88
dtparam=rtc_bbat_vchg=3000000
99
# Enable self update for RPI 5 only
1010
bootloader_update=1
11+
# Enable CQHCI on SanDisk Extreme A2 sdcards
12+
dtparam=sd_cqe=2
1113

1214
[all]

software/distro/setup/planktoscope-app-env/bootloader/boot.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ HDMI_DELAY=0
55
[pi5]
66
POWER_OFF_ON_HALT=1
77
WAIT_FOR_POWER_BUTTON=1
8+
SDRAM_BANKLOW=1
9+
10+
[pi4]
11+
SDRAM_BANKLOW=3
12+
13+
[all]

0 commit comments

Comments
 (0)