sonic-buildimage/device/arista/x86_64-arista_7060_cx32s
zzhiyuan 3a68dc0325 [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-11-23 10:43:54 +00:00
..
Arista-7060CX-32S-C32 [Buffer] Separate buffer profile for Arista-7060CX-32S-C32 2022-07-07 14:09:01 -07:00
Arista-7060CX-32S-D48C8 [7060] fix default port map 2022-07-07 14:09:01 -07:00
Arista-7060CX-32S-Q24C8 [Buffer] Separate buffer profile for Arista-7060CX-32S-Q24C8 2022-07-07 14:09:01 -07:00
Arista-7060CX-32S-Q32 [Buffer] Separate buffer profile for Arista-7060CX-32S-Q32 2022-07-07 14:09:01 -07:00
Arista-7060CX-32S-T96C8 [202012] Disable ALPM distributed hitbit thread that is used for debug purpose only but interfered with Other functional operations (#9190) 2021-11-08 11:50:44 -08:00
plugins [pcie.yaml] Move pcie configuration file path to platform directory (#6475) 2021-03-04 21:23:05 +00: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
pcie.yaml [pcie.yaml] Move pcie configuration file path to platform directory (#6475) 2021-03-04 21:23:05 +00:00
platform_reboot [device/Arista] Improvements to the boot of Arista devices. (#2898) 2019-05-15 12:45:05 -07:00
platform-init [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248) 2022-11-23 10:43:54 +00:00
platform.json Add platform.json to Arista platforms (#6150) 2020-12-08 10:20:13 -08:00
pmon_daemon_control.json [Arista] Update driver submodules (#5686) 2020-10-23 12:28:36 -07:00
sensors.conf [arista] Delete sysfs entries for all Arista Digital Power Monitor/Management devices (#1256) 2017-12-20 14:05:23 -08:00
system_health_monitoring_config.json [arista]: Add placeholder healthd configuration for all platforms (#6233) 2020-12-17 05:18:38 -08:00
thermal_policy.json [Arista] Update driver submodules (#5686) 2020-10-23 12:28:36 -07:00