If memory is supposed to be cached, we should make it so. Matches
what the Linux version of this code does.
ok?
Index: dev/pci/drm/ttm/ttm_bo_util.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/drm/ttm/ttm_bo_util.c,v
retrieving revision 1.19
diff -u -p -r1.19 ttm_bo_util.c
--- dev/pci/drm/ttm/ttm_bo_util.c 25 Apr 2018 01:27:46 -0000 1.19
+++ dev/pci/drm/ttm/ttm_bo_util.c 19 Aug 2018 17:32:13 -0000
@@ -514,6 +514,9 @@ EXPORT_SYMBOL(ttm_io_prot);
pgprot_t ttm_io_prot(uint32_t caching_flags, pgprot_t tmp)
{
+ if (caching_flags & TTM_PL_FLAG_CACHED)
+ return 0;
+
#ifdef PMAP_WC
if (caching_flags & TTM_PL_FLAG_WC)
return PMAP_WC;