From d07b063db6ab10a50931c975aa89b2d703408e27 Mon Sep 17 00:00:00 2001 From: Samuel Angebault Date: Thu, 9 Feb 2023 07:40:22 -0800 Subject: [PATCH 1/2] [Arista] Disable ATA NCQ for a few products Some products might experience an occasional IO failure in the communication between CPU and SSD. Based on some research it could be attributable to some device not handling ATA NCQ (Native Command Queue). This change disable NCQ on the affected drive for a set of products. When the fix is applied, these 2 patterns can be found in the dmesg. ata1.00: FORCE: horkage modified (noncq) NCQ (not used) --- files/Aboot/boot0.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/Aboot/boot0.j2 b/files/Aboot/boot0.j2 index de7bfc3d662f..c08e5e59cf9f 100644 --- a/files/Aboot/boot0.j2 +++ b/files/Aboot/boot0.j2 @@ -621,6 +621,9 @@ write_platform_specific_cmdline() { cmdline_add intel_idle.max_cstate=0 read_system_eeprom fi + if in_array "$platform" "rook"; then + cmdline_add libata.force=1.00:noncq + fi if in_array "$platform" "crow" "magpie"; then cmdline_add amd_iommu=off cmdline_add modprobe.blacklist=snd_hda_intel,hdaudio From 2b5e63e50a84cf8696f9c10bdb85d26334e199ed Mon Sep 17 00:00:00 2001 From: Samuel Angebault Date: Fri, 10 Feb 2023 06:56:11 -0800 Subject: [PATCH 2/2] Add comment with affected products --- files/Aboot/boot0.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/files/Aboot/boot0.j2 b/files/Aboot/boot0.j2 index c08e5e59cf9f..650e3178667a 100644 --- a/files/Aboot/boot0.j2 +++ b/files/Aboot/boot0.j2 @@ -622,6 +622,7 @@ write_platform_specific_cmdline() { read_system_eeprom fi if in_array "$platform" "rook"; then + # Currently applies to Alhambra, Blackhawk, Gardena and Mineral cmdline_add libata.force=1.00:noncq fi if in_array "$platform" "crow" "magpie"; then