diff options
author | Mark Kettenis <kettenis@openbsd.org> | 2013-07-07 01:48:43 +0200 |
---|---|---|
committer | Jonathan Gray <jsg@jsg.id.au> | 2013-08-12 10:44:59 +1000 |
commit | 5b15d76bd66fe4bfeac5d74f82535fc9e5c1d881 (patch) | |
tree | 64696f2cfc344b3a0688801017346ca96c3a0e59 | |
parent | ae66549bce9cab1f418057a28b734d175d935ff8 (diff) |
fall back to uncached mappings if write-combined mappings aren't available
-rw-r--r-- | sys/dev/pci/drm/ttm/ttm_bo_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/ttm/ttm_bo_util.c b/sys/dev/pci/drm/ttm/ttm_bo_util.c index dbb0eb1d017..6394048c9fb 100644 --- a/sys/dev/pci/drm/ttm/ttm_bo_util.c +++ b/sys/dev/pci/drm/ttm/ttm_bo_util.c @@ -475,9 +475,11 @@ static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo, pgprot_t ttm_io_prot(uint32_t caching_flags, pgprot_t tmp) { +#ifdef PMAP_WC if (caching_flags & TTM_PL_FLAG_WC) return PMAP_WC; else +#endif return PMAP_NOCACHE; } EXPORT_SYMBOL(ttm_io_prot); |