From dd7948bf174d0d6418306cfb20fcb253f5b3eede Mon Sep 17 00:00:00 2001 From: Samuel Angebault Date: Thu, 9 Feb 2023 10:46:09 -0800 Subject: [PATCH] [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. --- files/Aboot/boot0.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/Aboot/boot0.j2 b/files/Aboot/boot0.j2 index 9f729157d9..5bf21b89b6 100644 --- a/files/Aboot/boot0.j2 +++ b/files/Aboot/boot0.j2 @@ -624,6 +624,7 @@ write_platform_specific_cmdline() { if in_array "$platform" "crow" "magpie"; then cmdline_add amd_iommu=off cmdline_add modprobe.blacklist=snd_hda_intel,hdaudio + cmdline_add sdhci.append_quirks2=0x40 read_system_eeprom fi if in_array "$platform" "woodpecker"; then @@ -654,7 +655,6 @@ write_platform_specific_cmdline() { fi cmdline_add "varlog_size=$varlog_size" - cmdline_add "sonic.mode=$sonic_mode" } @@ -672,6 +672,9 @@ write_image_specific_cmdline() { # disable unified cgroup hierarchy to workaround dockerd limitation cmdline_add systemd.unified_cgroup_hierarchy=0 + # increase kernel log buffer size + cmdline_add log_buf_len=1M + # verbosity cmdline_add quiet # Start showing systemd information from the first failing unit if any.