sonic-buildimage/device
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
..
accton [nephos]: support Debian 9 for nephos platform (#2347) 2018-12-05 00:30:38 -08:00
alphanetworks [devices]: Add snh60b0-640f device (Tomhawk2) & snh60a0-320fv2 device 32x100G (Tomhawk) (#2129) 2018-10-10 18:33:51 -07:00
arista [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248) 2023-01-25 21:06:57 +00:00
barefoot [QoS]: Unify qos json by using qos_config.j2 template (#2023) 2018-10-17 14:10:34 -07:00
celestica [201811][DX010] enable LPM (#12598) 2022-11-03 15:03:03 -07:00
centec [centec]update centec e582 platform drivers and libsai (#2043) 2018-11-16 09:41:39 -08:00
cig [device]: Add new CIG device CS6436-54P and CS5435-54P, also update code for CS… (#4042) 2020-02-17 14:11:42 -08:00
common/profiles [201811] Update 7260 MMU and ECN settings (#10757) 2022-05-15 21:22:14 -07:00
dell [Buffer] Separate buffer profile for Force10-S6100 2022-05-04 15:42:19 -07:00
delta [bcm config] enable sram scan (#3558) 2019-10-04 00:04:39 +00:00
embedway/x86_64-ew_es6220_x48q2h4-r0 [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
facebook/x86_64-facebook_wedge100-r0 [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
ingrasys [nephos]: support Debian 9 for nephos platform (#2347) 2018-12-05 00:30:38 -08:00
inventec [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
marvell/x86_64-marvell_slm5401_54x-r0 [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
mellanox Adopt per-port buffer & qos profile apply on mellanox (#3543) 2019-11-07 00:23:10 +00:00
mitac/x86_64-mitac_ly1200_b32h0_c3-r0 [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
pegatron/x86_64-pegatron_porsche-r0 [fix]: various minor fixes (#2246) 2018-11-10 13:39:30 -08:00
quanta [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00
virtual/x86_64-kvm_x86_64-r0 [kvm]: support for all hwsku in kvm switch (#2495) 2019-07-13 19:49:50 +00:00
wnc/x86_64-wnc_osw1800-r0 [updategraph] add support to use preset config instead of default minigraph (#2050) 2018-09-21 22:01:10 -07:00