Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b0e4e4a authored by Dave Airlie's avatar Dave Airlie Committed by Alex Deucher
Browse files

drm: add helper to check for wc memory support



Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent ad32152e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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