summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_cache.h
diff options
context:
space:
mode:
authorHuacai Chen2016-04-19 13:19:11 +0200
committerDave Airlie2016-04-22 02:24:11 +0200
commit221004c66a58949a0f25c937a6789c0839feb530 (patch)
tree6b7fb0d0838f6a03da5cf29f85fdf4327dea8714 /include/drm/drm_cache.h
parentMerge branch 'linux-4.6' of git://github.com/skeggsb/linux into drm-fixes (diff)
downloadkernel-qcow2-linux-221004c66a58949a0f25c937a6789c0839feb530.tar.gz
kernel-qcow2-linux-221004c66a58949a0f25c937a6789c0839feb530.tar.xz
kernel-qcow2-linux-221004c66a58949a0f25c937a6789c0839feb530.zip
drm: Loongson-3 doesn't fully support wc memory
Signed-off-by: Huacai Chen <chenhc@lemote.com> Cc: stable@vger.kernel.org Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_cache.h')
-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