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

Commit 93820498 authored by Michel Dänzer's avatar Michel Dänzer Committed by Alex Deucher
Browse files

drm/radeon: Only prompt for enabling PAT when we'd allow write-combining



No use bothering users about this for whom we disable write-combining for
other reasons anyway.

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a28bbd58
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -241,6 +241,7 @@ int radeon_bo_create(struct radeon_device *rdev,
#warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance \
#warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance \
	 thanks to write-combining
	 thanks to write-combining


	if (bo->flags & RADEON_GEM_GTT_WC)
		DRM_INFO_ONCE("Please enable CONFIG_MTRR and CONFIG_X86_PAT for "
		DRM_INFO_ONCE("Please enable CONFIG_MTRR and CONFIG_X86_PAT for "
			      "better performance thanks to write-combining\n");
			      "better performance thanks to write-combining\n");
	bo->flags &= ~(RADEON_GEM_GTT_WC | RADEON_GEM_GTT_UC);
	bo->flags &= ~(RADEON_GEM_GTT_WC | RADEON_GEM_GTT_UC);