From 65c14abec594561e6d97e962ef34a1541775e3aa Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sat, 30 Jul 2022 17:51:15 +0000 Subject: [PATCH] WIP: try a sledgehammer -- map everything uncached --- sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c b/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c index 035c49a0fefd..9cac4b6ce512 100644 --- a/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c +++ b/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_util.c @@ -748,6 +748,9 @@ int ttm_bo_kmap(struct ttm_buffer_object *bo, ttm_mem_io_unlock(man); if (ret) return ret; + bo->mem.placement &= ~TTM_PL_FLAG_CACHED; + bo->mem.placement &= ~TTM_PL_FLAG_WC; + bo->mem.placement |= TTM_PL_FLAG_UNCACHED; if (!bo->mem.bus.is_iomem) { return ttm_bo_kmap_ttm(bo, start_page, num_pages, map); } else {