sonic-buildimage/device/arista
zzhiyuan d3c881858c [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248)
Co-authored-by: Zhi Yuan (Carl) Zhao <zyzhao@arista.com>
Why I did it
Arista 7060 platform has a rare and unreproduceable PCIe timeout that could possibly be solved with increasing the switch PCIe timeout value. To do this we'll call a script for this platform to increase the PCIe timeout on boot-up.

No issues would be expected from the setpci command. From the PCIe spec:

"Software is permitted to change the value in this field at any
time. For Requests already pending when the Completion
Timeout Value is changed, hardware is permitted to use either
the new or the old value for the outstanding Requests, and is
permitted to base the start time for each Request either on when
this value was changed or on when each request was issued. "

How I did it
Add "platform-init" support in swss docker similar to how "hwsku-init" is called, only this would be for any device belonging to a platform. Then the script would reside in device data folder.

Additionally, add pciutils dependency to docker-orchagent so it can run the setpci commands.

How to verify it
On bootup of an Arista 7060, can execute:
lspci -vv -s 01:00.0 | grep -i "devctl2"
In order to check that the timeout has changed.
2022-03-02 07:44:24 -08:00
..
x86_64-arista_7050_qx32 [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00
x86_64-arista_7050_qx32s Update PG profile settings for Arista-7050QX-32S-S4Q31 (#7674) 2021-06-15 15:01:40 -07:00
x86_64-arista_7050cx3_32s [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00
x86_64-arista_7060_cx32s [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248) 2022-03-02 07:44:24 -08:00
x86_64-arista_7060cx2_32s [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00
x86_64-arista_7060px4_32 [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00
x86_64-arista_7170_32c [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00
x86_64-arista_7170_32cd [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00
x86_64-arista_7170_64c [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00
x86_64-arista_7260cx3_64 Added 40G {300/40/5m} pg lookup profile for 7260 100G SKU (#9249) 2021-11-24 18:57:01 -08:00
x86_64-arista_7280cr3_32p4 [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00
x86_64-arista_common [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00
x86_64-arista_7060dx4_32 [devices]: Add device data for Arista 7060PX/DX4-32 (#2534) 2019-02-08 22:02:01 -08:00
x86_64-arista_7280cr3_32d4 [device/Arista] Add support for the 7280CR3-32P4 (#2910) 2019-05-18 10:34:07 -07:00
x86_64-arista_7280cr3k_32p4 [arista] Add support for more 7280CR3 variants (#3711) 2019-11-06 10:11:38 -08:00