linux/drivers/gpu/drm/radeon
David Miller b07fa022ec drm: radeon: Fix ring_rptr accesses.
The memory behind ring_rptr can either be in ioremapped memory
or a vmalloc() normal kernel memory buffer.

However, the code unconditionally uses DRM_{READ,WRITE}32() (and thus
readl() and writel()) to access it.

Basically, if RADEON_IS_AGP then it's ioremap()'d memory else it's
vmalloc'd memory.

Adjust all of the ring_rptr access code as needed.

While we're here, kill the 'scratch' pointer in drm_radeon_private.
It's only used in the one place where it is initialized.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
2009-03-13 14:24:00 +10:00
..
Makefile drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
r300_cmdbuf.c drm: move to kref per-master structures. 2008-12-29 17:47:22 +10:00
r300_reg.h radeon: fix some hard lockups on r3/4/500s 2008-08-25 06:34:58 +10:00
radeon_cp.c drm: radeon: Fix ring_rptr accesses. 2009-03-13 14:24:00 +10:00
radeon_drv.c drm: Drop unused and broken dri_library_name sysfs attribute. 2009-03-13 14:23:58 +10:00
radeon_drv.h drm: radeon: Fix ring_rptr accesses. 2009-03-13 14:24:00 +10:00
radeon_ioc32.c drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
radeon_irq.c drm/radeon: fix correctness of irq_enabled check for radeon. 2008-12-23 10:50:12 +10:00
radeon_mem.c drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
radeon_microcode.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
radeon_state.c drm: radeon: Fix ring_rptr accesses. 2009-03-13 14:24:00 +10:00