1
0
Fork 0

drm: Loongson-3 doesn't fully support wc memory

[ Upstream commit 221004c66a ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
wifi-calibration
Huacai Chen 2016-04-19 19:19:11 +08:00 committed by Sasha Levin
parent 2719d3c05d
commit b9a11c92d2
1 changed files with 2 additions and 0 deletions

View File

@ -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