April 7th, 2009, 09:22 AM
Surprise removal of PCI device with shared IRQ.
I have a PCI device powered from external source.
This device can be shut down without shuting the machine (surprise removal).
My device shares an IRQ with other devices (USB2 host controller and network card).
Uppon power down and before windows gets the chance to remove my driver I get an interrupt from other devices on my IRQ.
This causes access to my HW which is dead at this time ===> I get a PCI read timeout which causes Machine check and a blue screen.
Trying to rceive notifications of this removal does not work since it take a few miliseconds until my driver knows about the removal and in that time I get few interrupts from other devices.
Trying to change IRQ to a unique number does not work with ACPI and APIC.
Is there any solution for this (insane) scenario ???
I work with Windows server 2003.
Your help is appreciated.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.