From 398eaca004223f0f2bf8d34801cc18081da10576 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Thu, 29 Apr 2010 15:23:29 +0000 Subject: use BUS_SPACE_MAP_PREFETCHABLE on maps that should be WC (soon this will actually do so). --- sys/dev/pci/drm/drm_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci/drm/drm_memory.c') diff --git a/sys/dev/pci/drm/drm_memory.c b/sys/dev/pci/drm/drm_memory.c index 19fea19d38d..cdc3781b173 100644 --- a/sys/dev/pci/drm/drm_memory.c +++ b/sys/dev/pci/drm/drm_memory.c @@ -94,7 +94,8 @@ drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev) DRM_DEBUG("AGP map\n"); map->bst = dev->bst; if (bus_space_map(map->bst, map->offset, - map->size, BUS_SPACE_MAP_LINEAR, &map->bsh)) { + map->size, BUS_SPACE_MAP_LINEAR | + BUS_SPACE_MAP_PREFETCHABLE, &map->bsh)) { DRM_ERROR("ioremap fail\n"); return; } -- cgit v1.2.3