summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-05-23 20:03:06 +1000
committerJonathan Gray <jsg@jsg.id.au>2013-08-12 10:40:39 +1000
commit84d4a93a0f55ff7362749a7edc9db4b7fbbdfe5b (patch)
treea0c7d26385c56e87a5cbd1463d45a0cf55aad7fd /sys/dev
parent29ca7d51009581990eb548c701198472df652663 (diff)
handle more of ttm_bo_kunmap
as noticed by kettenis, lets console fb work on my pcie r300
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/ttm/ttm_bo_util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/drm/ttm/ttm_bo_util.c b/sys/dev/pci/drm/ttm/ttm_bo_util.c
index 7acf7ac70d0..d2a819bcaaa 100644
--- a/sys/dev/pci/drm/ttm/ttm_bo_util.c
+++ b/sys/dev/pci/drm/ttm/ttm_bo_util.c
@@ -676,25 +676,25 @@ void ttm_bo_kunmap(struct ttm_bo_kmap_obj *map)
if (!map->virtual)
return;
-#ifdef notyet
switch (map->bo_kmap_type) {
case ttm_bo_map_iomap:
- iounmap(map->virtual);
+ bus_space_unmap(bo->bdev->memt, bo->mem.bus.bsh,
+ bo->mem.bus.size);
break;
+#ifdef notyet
case ttm_bo_map_vmap:
vunmap(map->virtual);
break;
case ttm_bo_map_kmap:
kunmap(map->page);
break;
+#endif
case ttm_bo_map_premapped:
break;
default:
- BUG();
+ printf("%s partial stub type %d\n", __func__, map->bo_kmap_type);
+// BUG();
}
-#else
- printf("%s partial stub\n", __func__);
-#endif
(void) ttm_mem_io_lock(man, false);
ttm_mem_io_free(map->bo->bdev, &map->bo->mem);
ttm_mem_io_unlock(man);