[Article Proposal] How to restart failed PCI devices (e.g. crashed wireless cards)

Article Summary:

The article plans on explaining how to restart a failed PCI device (for the example my ath10k Atheros card will be used) so it gets back to working without needing a full reboot.

Article Description:

For some reason, the ath10k firmware bug crashes several times on my PC, the bug isn´t restricted to Linux, as I have got it also on Windows, the best I could do on Windows was to use the Windows Troubleshooter and it would re-init and restart the device, but on Linux just recently I found the commands to use (previously I would always have to reboot).

So, basically this is the workaround:

echo "1" > /sys/bus/pci/devices/DDDD\:BB\:DD.F/remove
sleep 1
echo "1" > /sys/bus/pci/rescan

Just what you have here might not be quite enough content for an article. But if you could expand it a bit to include more about the sysfs kernel interface and how to find your device and query info about it, I think this could be built out into a very good article. So +1. :slightly_smiling_face:

Sure, it would simple, just running lspci, figuring the correct value and then replacing on the previous command

Also, apparently calling /remove theres remove and tuns off and /rescanturns it backs on and “attaches” to the system, but I don’t know enough about the terminology here

+1 from me. Pagure Ticket #168 has been opened and assigned to you.

Add the WordPress link to the preview on the ticket when it’s ready for review.