sonic-buildimage/device/arista/x86_64-arista_7060_cx32s
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
..
Arista-7060CX-32S-C32 [Buffer] Separate buffer profile for Arista-7060CX-32S-C32 2022-05-04 15:42:19 -07:00
Arista-7060CX-32S-D48C8 [7060] fix default port map 2022-05-05 13:48:42 -07:00
Arista-7060CX-32S-Q32 [Buffer] Separate buffer profile for Arista-7060CX-32S-Q32 2022-05-04 15:42:19 -07:00
plugins [device/arista] Add psuutil plugin for Arista platforms (#1221) 2017-12-08 16:32:50 -08:00
Arista-7060CX-32S-C32-T1 Support T1 sku, create symlink (#1827) 2018-06-29 14:33:11 -07:00
default_sku [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
fancontrol [arista] Update Arista drivers submodule (#2097) 2018-09-28 21:27:41 -07:00
platform_reboot [Arista]: Add a reboot script for all remaining platforms. (#1706) 2018-05-15 05:27:10 -07:00
platform-init [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248) 2023-01-25 21:06:57 +00:00
sensors.conf [arista] Delete sysfs entries for all Arista Digital Power Monitor/Management devices (#1256) 2017-12-20 14:05:23 -08:00