diff options
author | Dave Airlie <airlied@linux.ie> | 2009-02-07 02:15:41 +0100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-02-08 12:37:24 +0100 |
commit | 9b8d5a124f133fe9a75397d20b874844a2e3d7e9 (patch) | |
tree | 5fd88d79be97e6d5d6d181fe181a350cb9f223af /drivers/gpu/drm/drm_memory.c | |
parent | i915: fix unneeded locking in i915 LVDS get modes code. (diff) | |
download | linux-9b8d5a124f133fe9a75397d20b874844a2e3d7e9.tar.xz linux-9b8d5a124f133fe9a75397d20b874844a2e3d7e9.zip |
drm/radeon: fix ioremap conflict with AGP mappings
this solves a regression from
http://bugzilla.kernel.org/show_bug.cgi?id=12441
Reported-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_memory.c')
-rw-r--r-- | drivers/gpu/drm/drm_memory.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c index 803bc9e7ce3c..bcc869bc4092 100644 --- a/drivers/gpu/drm/drm_memory.c +++ b/drivers/gpu/drm/drm_memory.c @@ -171,9 +171,14 @@ EXPORT_SYMBOL(drm_core_ioremap); void drm_core_ioremap_wc(struct drm_map *map, struct drm_device *dev) { - map->handle = ioremap_wc(map->offset, map->size); + if (drm_core_has_AGP(dev) && + dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) + map->handle = agp_remap(map->offset, map->size, dev); + else + map->handle = ioremap_wc(map->offset, map->size); } EXPORT_SYMBOL(drm_core_ioremap_wc); + void drm_core_ioremapfree(struct drm_map *map, struct drm_device *dev) { if (!map->handle || !map->size) |