Messages in this thread | | | Subject | Re: Blocking access to a PCI device for "a long time"? | From | Benjamin Herrenschmidt <> | Date | Sun, 21 Nov 2004 11:10:11 +1100 |
| |
> - Make sure that nothing can get confused by the device "going away" on > the PCI/AGP bus, using whatever kernel locks are necessary > - Save PCI config state of device > - Instruct the FPGA to reload itself > - Wait many, many, many, many milliseconds > - Reload PCI config state > - Unlock and continue > > Other drivers accessing the bus for other devices is PROBABLY not a > problem, but nothing can touch the GPU while it's reloading. > > Are there any problems with this approach that would make it a really > bad idea?
You should read the thread called [PATCH 1/2] pci: Block config access during BIST where a similar issues with proposed solution is discussed.
Ben.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |