Skip to content

Commit da33eec

Browse files
Staphylomssonicbld
authored andcommitted
[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 c672e30 commit da33eec

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
@@ -630,6 +630,7 @@ write_platform_specific_cmdline() {
630630
if in_array "$platform" "crow" "magpie"; then
631631
cmdline_add amd_iommu=off
632632
cmdline_add modprobe.blacklist=snd_hda_intel,hdaudio
633+
cmdline_add sdhci.append_quirks2=0x40
633634
read_system_eeprom
634635
fi
635636
if in_array "$platform" "woodpecker"; then
@@ -662,7 +663,6 @@ write_platform_specific_cmdline() {
662663
fi
663664

664665
cmdline_add "varlog_size=$varlog_size"
665-
666666
cmdline_add "sonic.mode=$sonic_mode"
667667
}
668668

@@ -680,6 +680,9 @@ write_image_specific_cmdline() {
680680
# disable unified cgroup hierarchy to workaround dockerd limitation
681681
cmdline_add systemd.unified_cgroup_hierarchy=0
682682

683+
# increase kernel log buffer size
684+
cmdline_add log_buf_len=1M
685+
683686
# verbosity
684687
cmdline_add quiet
685688
# Start showing systemd information from the first failing unit if any.

0 commit comments

Comments
 (0)