summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorHuacai Chen <chenhc@lemote.com>2016-04-19 19:19:11 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-04 14:48:46 -0700
commit7973c7c36e96d9c2afda1df9e4f4c2518cbe6588 (patch)
tree813441b6a4c9cc68da16e01ad15982f20a73bf4d /include/drm
parent4b6b0008f9dd3f18ac1d42c28e25dc09715ebc66 (diff)
drm: Loongson-3 doesn't fully support wc memory
commit 221004c66a58949a0f25c937a6789c0839feb530 upstream. Signed-off-by: Huacai Chen <chenhc@lemote.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_cache.h b/include/drm/drm_cache.h
index 461a0558bca4..cebecff536a3 100644
--- a/include/drm/drm_cache.h
+++ b/include/drm/drm_cache.h
@@ -39,6 +39,8 @@ static inline bool drm_arch_can_wc_memory(void)
{
#if defined(CONFIG_PPC) && !defined(CONFIG_NOT_COHERENT_CACHE)
return false;
+#elif defined(CONFIG_MIPS) && defined(CONFIG_CPU_LOONGSON3)
+ return false;
#else
return true;
#endif