Re: Forcing device loss for debugging

Christian König <[email protected]>
Newsgroups gmane.comp.video.mesa3d.devel
Message-ID <[email protected]>
Under the sysfs directory for each PCI device you should have a virtual 
file called "remove".

So if you just do an "echo 1 > /sys/devices/pci..../remove" you 
basically simulate hot unplugging the specific PCI device

IIRC the PCI bridge where the device is connected to should then have a 
"rescan" virtual device which triggers hot plugging the device back in 
again when written.

Regards,
Christian.

Am 06.09.23 um 02:27 schrieb Jim Blandy:
> Is there any way to force a Vulkan device to report itself lost, in 
> order to exercise one's application's recovery paths? I looked through 
> the Mesa sources but didn't find anything that seemed suitable.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.