All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm: add helper to check for wc memory support
@ 2016-01-30  5:59 Oded Gabbay
  2016-01-30  5:59 ` [PATCH 2/3] drm/radeon: mask out WC from BO on unsupported arches Oded Gabbay
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Oded Gabbay @ 2016-01-30  5:59 UTC (permalink / raw)
  To: dri-devel, alexdeucher; +Cc: Dave Airlie, michel.daenzer

From: Dave Airlie <airlied@redhat.com>

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
---
 include/drm/drm_cache.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/drm/drm_cache.h b/include/drm/drm_cache.h
index 7bfb063..461a055 100644
--- a/include/drm/drm_cache.h
+++ b/include/drm/drm_cache.h
@@ -35,4 +35,13 @@
 
 void drm_clflush_pages(struct page *pages[], unsigned long num_pages);
 
+static inline bool drm_arch_can_wc_memory(void)
+{
+#if defined(CONFIG_PPC) && !defined(CONFIG_NOT_COHERENT_CACHE)
+	return false;
+#else
+	return true;
+#endif
+}
+
 #endif
-- 
2.5.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-02-03 14:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-30  5:59 [PATCH 1/3] drm: add helper to check for wc memory support Oded Gabbay
2016-01-30  5:59 ` [PATCH 2/3] drm/radeon: mask out WC from BO on unsupported arches Oded Gabbay
2016-01-30  8:11   ` Michel Dänzer
2016-01-30 10:58     ` Oded Gabbay
2016-01-30  5:59 ` [PATCH 3/3] drm/amdgpu: " Oded Gabbay
2016-01-30  9:57 ` [PATCH 1/3] drm: add helper to check for wc memory support Christian König
2016-02-01 17:01   ` Alex Deucher
2016-02-02 12:01     ` Oded Gabbay
2016-02-02 15:07       ` Alex Deucher
2016-02-03  8:17         ` Oded Gabbay
2016-02-03 13:53           ` Alex Deucher
2016-02-03 14:00             ` Oded Gabbay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.