Skip to content

Commit a08e5b9

Browse files
authored
Merge pull request #4152 from popcornmix/banklow
Document SDRAM_BANKLOW bootloader config setting
2 parents dfdf01f + bdbc22f commit a08e5b9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

documentation/asciidoc/computers/raspberry-pi/eeprom-bootloader.adoc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,42 @@ XHCI_DEBUG=0x3
675675

676676
Default: `0x0` (no USB debug messages enabled)
677677

678+
[[SDRAM_BANKLOW]]
679+
==== `SDRAM_BANKLOW`
680+
681+
SDRAM_BANKLOW controls how the SDRAM banks are arranged within the system address space. The number of bank bits may be selectively mapped to being located in the MSBs of the address, or being located between the row and column address bits.
682+
This setting can significantly affect SDRAM performance.
683+
684+
When unset, the bootloader will choose the preferred option. This is currently 3 on Pi 4 family and 1 on Pi 5 family.
685+
686+
[cols="1m,3"]
687+
|===
688+
| BANKLOW | Address Bit Mapping
689+
690+
| 0
691+
| Address = {bank[3:0], row, column}
692+
693+
| 1
694+
| Address = {bank[3:1], row, bank[0], column}
695+
696+
| 2
697+
| Address = {bank[3:2], row, bank[1:0], column}
698+
699+
| 3
700+
| Address = {bank[3], row, bank[2:0], column}
701+
702+
| 4
703+
| Address = {row, bank[3:0], column}
704+
|===
705+
706+
This setting also causes the bootloader to add a setting for the number of NUMA regions to be used by the kernel ("numa=fake=<n>").
707+
For best performance these settings should be left as default.
708+
709+
Note: on a Pi 5 family device, if NUMA is not available in the kernel then performance will be adversely affected.
710+
Manually choosing SDRAM_BANKLOW=3 will mitigate this performance hit, although for highest performance, ensure NUMA is available.
711+
712+
Default: unset (use bootloader recommended setting)
713+
678714
[[config_txt]]
679715
==== `[config.txt]` section
680716

0 commit comments

Comments
 (0)