sonic-buildimage/device/arista
zzhiyuan a6d0a27a18
[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.
2021-12-17 08:43:25 -08:00
..
x86_64-arista_7050_qx32 Disable ALPM distributed hitbit thread that is used for debug purpose only but interfered with Other functional operations (#9199) 2021-11-09 07:21:57 -08:00
x86_64-arista_7050_qx32s [broadcom]: td2/td3 change cpu cos num to 10 (#9301) 2021-11-17 20:56:46 -08:00
x86_64-arista_7050cx3_32s [broadcom]: td2/td3 change cpu cos num to 10 (#9301) 2021-11-17 20:56:46 -08:00
x86_64-arista_7050sx3_48c8 [broadcom]: td2/td3 change cpu cos num to 10 (#9301) 2021-11-17 20:56:46 -08:00
x86_64-arista_7050sx3_48yc8 [broadcom]: td2/td3 change cpu cos num to 10 (#9301) 2021-11-17 20:56:46 -08:00
x86_64-arista_7060_cx32s [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248) 2021-12-17 08:43:25 -08:00
x86_64-arista_7060cx2_32s Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7060dx4_32 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7060px4_32 Disable ALPM distributed hitbit thread that is used for debug purpose only but interfered with Other functional operations (#9199) 2021-11-09 07:21:57 -08:00
x86_64-arista_7170_32c Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7170_32cd Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7170_64c Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7170b_64c [Arista] Update driver submodules (#9393) 2021-12-08 11:33:36 -08:00
x86_64-arista_7260cx3_64 Added 40G {300/40/5m} pg lookup profile for 7260 100G SKU (#9249) 2021-11-24 18:56:30 -08:00
x86_64-arista_7280cr3_32d4 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7280cr3_32p4 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7280cr3mk_32d4 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7280cr3mk_32p4 Add macsec_ipg setting to arista platforms (#9396) 2021-12-06 10:32:43 +08:00
x86_64-arista_7800_sup Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7800r3_48cq2_lc [QoS, Buffer template][new HW SKU] Add qos config and buffer profile for Arista SKU (#8380) 2021-12-07 14:14:32 -08:00
x86_64-arista_7800r3_48cqm2_lc Add macsec_ipg setting to arista platforms (#9396) 2021-12-06 10:32:43 +08:00
x86_64-arista_common Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-arista_7280cr3k_32d4 [arista]: Add SmartsvilleDDBK and SmartsvilleBkMs (#4662) 2020-05-28 14:59:00 -07:00
x86_64-arista_7280cr3k_32p4 [arista] Add support for more 7280CR3 variants (#3711) 2019-11-06 10:11:38 -08:00