diff options
author | Dave Airlie <airlied@redhat.com> | 2011-12-19 11:15:29 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-16 18:31:07 +0000 |
commit | 466e69b8b03b8c1987367912782bc12988ad8794 (patch) | |
tree | 60ac84ef32b7590618bc81b0b52a5ba14a49bf45 /drivers/gpu/drm/i810 | |
parent | 42b923b587d055cd98fb84f32e3e758672026ae9 (diff) | |
download | blackbird-op-linux-466e69b8b03b8c1987367912782bc12988ad8794.tar.gz blackbird-op-linux-466e69b8b03b8c1987367912782bc12988ad8794.zip |
drm: move pci bus master enable into driver.
The current enabling of bus mastering in the drm midlayer allows a large
race condition under kexec. When a kexec'ed kernel re-enables bus mastering
for the GPU, previously setup dma blocks may cause writes to random pieces
of memory. On radeon the writeback mechanism can cause these sorts of issues.
This patch doesn't fix the problem, but it moves the bus master enable under
the individual drivers control so they can move enabling it until later in
their load cycle and close the race.
Fix for radeon kms driver will be in a follow-up patch.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i810')
-rw-r--r-- | drivers/gpu/drm/i810/i810_dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i810/i810_dma.c b/drivers/gpu/drm/i810/i810_dma.c index 7f4b4e10246e..64a989ed5b8f 100644 --- a/drivers/gpu/drm/i810/i810_dma.c +++ b/drivers/gpu/drm/i810/i810_dma.c @@ -1208,6 +1208,8 @@ int i810_driver_load(struct drm_device *dev, unsigned long flags) dev->types[8] = _DRM_STAT_SECONDARY; dev->types[9] = _DRM_STAT_DMA; + pci_set_master(dev->pdev); + return 0; } |