sonic-buildimage/device/arista
zzhiyuan 686a1df5c3 [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.
2023-01-25 21:06:57 +00:00
..
x86_64-arista_7050_qx32 [QoS]: fix size and xoff value on a7050-QX-32S, -QX32, and s6000(#2527) 2019-02-07 16:36:00 +00:00
x86_64-arista_7050_qx32s [7050] updating 7050 MMU configurations (#7801) 2021-06-06 04:50:37 +00:00
x86_64-arista_7060_cx32s [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248) 2023-01-25 21:06:57 +00:00
x86_64-arista_7170_64c [device/arista] Update arista drivers submodules (#3170) 2019-07-29 21:56:59 -07:00
x86_64-arista_7260cx3_64 [qos profile] create QoS profiles for Arista-7260CX3-D96C16 2022-05-05 13:48:42 -07:00