Skip to content

Commit dd7948b

Browse files
authored
[Arista] Add emmc quirks in boot0 to improve reliability (#10013)
Why I did it Fix some unreliability seen on emmc device with some AMD CPUs How I did it Added a kernel parameter to add quirks to It depends on a sonic-linux-kernel change to work properly but will be a no-op without it. The quirk added is SDHCI_QUIRK2_BROKEN_HS200 used to downgrade the link speed for the eMMC.
1 parent 4fc991e commit dd7948b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

files/Aboot/boot0.j2

+4-1
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ write_platform_specific_cmdline() {
624624
if in_array "$platform" "crow" "magpie"; then
625625
cmdline_add amd_iommu=off
626626
cmdline_add modprobe.blacklist=snd_hda_intel,hdaudio
627+
cmdline_add sdhci.append_quirks2=0x40
627628
read_system_eeprom
628629
fi
629630
if in_array "$platform" "woodpecker"; then
@@ -654,7 +655,6 @@ write_platform_specific_cmdline() {
654655
fi
655656

656657
cmdline_add "varlog_size=$varlog_size"
657-
658658
cmdline_add "sonic.mode=$sonic_mode"
659659
}
660660

@@ -672,6 +672,9 @@ write_image_specific_cmdline() {
672672
# disable unified cgroup hierarchy to workaround dockerd limitation
673673
cmdline_add systemd.unified_cgroup_hierarchy=0
674674

675+
# increase kernel log buffer size
676+
cmdline_add log_buf_len=1M
677+
675678
# verbosity
676679
cmdline_add quiet
677680
# Start showing systemd information from the first failing unit if any.

0 commit comments

Comments
 (0)