Skip to contentSkip to conversation

drm/ttm: recognize ARM arch in ioprot handler

PATCH New Alexandre Courbot 1 participant 1 message Jun 27, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/ttm: recognize ARM arch in ioprot handler

From: Lucas Stach <[email protected]>

Nouveau can now be used on ARM, so add an ioprot handler for this architecture.

---
 drivers/gpu/drm/ttm/ttm_bo_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_bo_util.c +1 -1
index 1df856f78568..30e5d90cb7bc 100644
@@ -500,7 +500,7 @@ pgprot_t ttm_io_prot(uint32_t caching_flags, pgprot_t tmp)
 			pgprot_val(tmp) |= _PAGE_GUARDED;
 	}
 #endif
-#if defined(__ia64__)
+#if defined(__ia64__) || defined(__arm__)
 	if (caching_flags & TTM_PL_FLAG_WC)
 		tmp = pgprot_writecombine(tmp);
 	else
Signature · 1 line
2.0.0