sonic-buildimage/dockers/docker-orchagent
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
..
base_image_files [202012][Monit] Deprecate the feature of monitoring the critical processes by Monit (#7823) 2021-06-09 09:04:22 -07:00
arp_update.conf [docker-orchagent]: use service dependency in supervisord to start services 2020-05-22 11:01:28 -07:00
buffermgrd.sh [Reclaim buffer] Common infrastructure update for reclaiming buffer (#9133) 2021-12-01 02:28:46 +00:00
critical_processes [submodule]: swss Tunnel Manager changes (#5843) 2020-12-26 11:17:18 -08:00
docker-init.sh [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248) 2022-11-23 10:43:54 +00:00
Dockerfile.j2 [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248) 2022-11-23 10:43:54 +00:00
enable_counters.py VxLAN Tunnel Counters and Rates implementation (#8369) (#11986) 2022-09-09 16:43:09 -07:00
ipinip.json.j2 [IPinIP] Add Loopback2 interface, change dscp mode to uniform (#7234) 2021-04-08 18:38:59 +00:00
ndppd.conf [swss]: Wait for vlan intf to start ndppd (#10119) (#10153) 2022-03-04 20:40:29 -08:00
ndppd.conf.j2 [docker-orchagent]: Increase ndppd kernel poll interval (#7456) 2021-06-02 02:38:54 +00:00
orchagent.sh [Multi Asic] support of swss.rec and sairedis.rec for multi asic (#6310) 2021-02-23 23:56:01 +00:00
ports.json.j2 [cfggen] Make Jinja2 Template Python 3 Compatible 2020-09-30 07:07:43 -07:00
supervisord.conf [swss]: Run tunnel_pkt_handler on dualtor only (#11626) 2022-08-05 11:33:37 -07:00
switch.json.j2 Make backend device checking more robust (#5730) 2020-11-10 15:06:35 -08:00
swssconfig.sh Fix for additional intf flap during fast-reboot (#9166) 2021-11-09 23:20:06 +00:00
tunnel_packet_handler.conf [swss]: Run tunnel_pkt_handler on dualtor only (#11626) 2022-08-05 11:33:37 -07:00
tunnel_packet_handler.py [tunnel_pkt_handler]: Skip nonexistent intfs (#12424) 2022-10-26 05:47:59 +00:00
vlan_vars.j2 [swss] Reduce Calls to SONiC Cfggen (#5177) 2020-08-17 15:47:52 -07:00
wait_for_link.sh.j2 [swss]: Wait for vlan intf to start ndppd (#10119) (#10153) 2022-03-04 20:40:29 -08:00