sonic-buildimage/dockers/docker-orchagent
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
..
base_image_files [Monit] Deprecate the feature of monitoring the critical processes by Monit (#7676) 2021-06-04 10:16:53 -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-11-24 15:00:23 +02:00
critical_processes.j2 [fabric] Disable unnecessary processes in swss and the orchagent-portsyncd dependency for fabric asic (#5569) 2021-06-09 10:53:47 -07:00
docker-init.sh [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248) 2021-12-17 08:43:25 -08:00
Dockerfile.j2 [Arista] Increase switch PCIe timeout for 7060-cx32s (#9248) 2021-12-17 08:43:25 -08:00
enable_counters.py Add trap flow counter support (#8940) 2021-11-24 15:26:52 -08:00
ipinip.json.j2 [IPinIP] Add Loopback2 interface, change dscp mode to uniform (#7234) 2021-04-07 09:58:12 -07:00
ndppd.conf [swss]: Start ndppd after vlanmgrd (#9155) 2021-11-03 11:03:01 -07:00
ndppd.conf.j2 [docker-orchagent]: Increase ndppd kernel poll interval (#7456) 2021-04-30 16:30:30 -07:00
orchagent.sh [Multi Asic] support of swss.rec and sairedis.rec for multi asic (#6310) 2021-01-22 09:42:19 -08:00
ports.json.j2 [cfggen] Make Jinja2 Template Python 3 Compatible 2020-09-30 07:07:43 -07:00
supervisord.conf.j2 [swss]: Listen for undeliverable tunnel packets (#9348) 2021-12-14 14:45:23 -08: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-08 15:21:11 -08:00
tunnel_packet_handler.py [swss]: Listen for undeliverable tunnel packets (#9348) 2021-12-14 14:45:23 -08:00
vlan_vars.j2 [swss] Reduce Calls to SONiC Cfggen (#5177) 2020-08-17 15:47:52 -07:00