allow drivers to fix kexec bus mastering hole

2011-12-19 Thread Dave Airlie
kexec relies on disabling bus mastering on PCI devices to block wayward DMAs left set by the previous kernel. However the drm midlayer was enabling bus mastering for all PCI drivers before calling into them. This meant no matter what they did, there was always going to be a small race window. The f

allow drivers to fix kexec bus mastering hole

2011-12-19 Thread Dave Airlie
kexec relies on disabling bus mastering on PCI devices to block wayward DMAs left set by the previous kernel. However the drm midlayer was enabling bus mastering for all PCI drivers before calling into them. This meant no matter what they did, there was always going to be a small race window. The f