sonic-buildimage/device/arista/x86_64-arista_7060_cx32s
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
..
Arista-7060CX-32S-C32 In SAI 3.5 by default we are supporting 256 Group with 64 Memeber each. (#5400) 2020-09-22 11:38:19 -07:00
Arista-7060CX-32S-D48C8 In SAI 3.5 by default we are supporting 256 Group with 64 Memeber each. (#5400) 2020-09-22 11:38:19 -07:00
Arista-7060CX-32S-Q24C8 In SAI 3.5 by default we are supporting 256 Group with 64 Memeber each. (#5400) 2020-09-22 11:38:19 -07:00
Arista-7060CX-32S-Q32 Make backend device checking more robust (#5730) 2020-11-14 08:39:08 -08:00
Arista-7060CX-32S-T96C8 In SAI 3.5 by default we are supporting 256 Group with 64 Memeber each. (#5400) 2020-09-22 11:38:19 -07: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 [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-03-02 07:44:24 -08:00
plugins [device/Arista] Add initial support for platform API (#2964) 2019-06-07 09:01:09 -07:00
pmon_daemon_control.json [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00
sensors.conf [arista] Delete sysfs entries for all Arista Digital Power Monitor/Management devices (#1256) 2017-12-20 14:05:23 -08:00
thermal_policy.json [Arista] Use thermalctld instead of fancontrol (#6173) 2021-01-27 08:31:32 -08:00