sonic-buildimage/device/mellanox/x86_64-mlnx_msn4410-r0
Volodymyr Samotiy 15a0f912bd [Mellanox] Disable SSD NCQ on Mellanox platforms (#17567)
- Why I did it
Based on some research some products might experience an occasional IO failures in the communication between CPU and SSD because of NCQ.
There seems to be a problem between some kernel versions and some SATA controllers.

Syslog error message examples:

Error "ata1: SError: { UnrecovData Handshk }" - "failed command: WRITE FPDMA QUEUED".
Error "ata1: SError: { RecovComm HostInt PHYRdyChg CommWake 10B8B DevExch }" - "failed command: READ FPDMA QUEUED".
Some vendors already disabled NCQ on their platforms in SONiC due to similar issue:

[Arista] Disable ATA NCQ for a few products #13739 [Arista] Disable ATA NCQ for a few products
[Arista] Disable SSD NCQ on DCS-7050CX3-32S #13964 [Arista] Disable SSD NCQ on DCS-7050CX3-32S
Also there are other discussions on Debian/Ubuntu forums about similar issues and it was suggested to disable NCQ:

https://askubuntu.com/questions/133946/are-these-sata-errors-dangerous

- How I did it
Add a kernel parameter to tell libata to disable NCQ

- How to verify it
Use FIO tool - fio --direct=1 --rw=randrw --bs=64k --ioengine=libaio --iodepth=64 --runtime=120 --numjobs=4
2024-02-01 04:32:27 +08:00
..
ACS-MSN4410 [202305][buffers] Add 'create_only_config_db_buffers.json' file for the Mellanox devices (not MSFT SKU) (#17006) 2023-11-03 14:27:17 +08:00
plugins [Mellanox] Use softlink for sfputils on MSN4410 platform (#7092) 2021-03-27 11:56:48 -07:00
default_sku [Mellanox] SN4410 support (#5778) 2020-11-24 10:43:48 -08:00
get_sensors_conf_path [Mellanox] Add new sensor conf to support SN4410 A1 system (#8379) 2021-08-11 17:31:58 -07:00
installer.conf [Mellanox] Disable SSD NCQ on Mellanox platforms (#17567) 2024-02-01 04:32:27 +08:00
pcie.yaml [Mellanox] SN4410 support (#5778) 2020-11-24 10:43:48 -08:00
platform_asic Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
platform_components.json fix MSN4410 chassis name in platform_components.json (#9939) 2022-02-13 15:01:09 +02:00
platform_reboot [Mellanox] SN4410 support (#5778) 2020-11-24 10:43:48 -08:00
platform_wait [Mellanox] SN4410 support (#5778) 2020-11-24 10:43:48 -08:00
platform.json [Mellanox] [SN4410] Support new breakout modes for PAM4 (#15668) 2023-09-03 16:33:21 +08:00
pmon_daemon_control.json [Mellanox] SN4410 support (#5778) 2020-11-24 10:43:48 -08:00
sensors.conf [Mellanox] SN4410 support (#5778) 2020-11-24 10:43:48 -08:00
sensors.conf.a1 [Mellanox] Add new sensor conf to support SN4410 A1 system (#8379) 2021-08-11 17:31:58 -07:00
system_health_monitoring_config.json [Mellanox] update system_health_monitoring_config for MSN4410/MSN4600/MSN4700 (#9728) 2022-01-19 10:29:26 +02:00
thermal_policy.json [Mellanox] SN4410 support (#5778) 2020-11-24 10:43:48 -08:00