OpenCloudOS-Kernel/drivers/gpu/drm/r128
Dave Airlie 466e69b8b0 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>
2012-02-16 18:31:07 +00:00
..
Makefile drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
r128_cce.c gpu: add module.h to drivers/gpu files as required. 2011-10-31 19:32:03 -04:00
r128_drv.c drm: move pci bus master enable into driver. 2012-02-16 18:31:07 +00:00
r128_drv.h drm/r128: fixed brace and spacing coding style issues 2010-08-02 10:17:48 +10:00
r128_ioc32.c drm: convert drm_ioctl to unlocked_ioctl 2009-12-18 11:22:31 +10:00
r128_irq.c drm/r128: fixed brace and spacing coding style issues 2010-08-02 10:17:48 +10:00
r128_state.c drm: block userspace under allocating buffer and having drivers overwrite it (v2) 2010-08-17 14:52:25 +10:00