[PATCH xf86-video-amdgpu 2/2] Pass TRUE to drmmode_set_desired_modes the first time for GPU screens

Michel Dänzer michel at daenzer.net
Thu Mar 9 07:03:05 UTC 2017

From: Michel Dänzer <michel.daenzer at amd.com>

This is the only place we call drmmode_set_desired_modes for GPU screens
during server startup. Without this change, the display outputs of
secondary GPUs may stay on even while Xorg isn't using them.

(Ported from radeon commit 9a71445094b728f3d78db8f6808b4782ee19a453)

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
 src/amdgpu_kms.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 3deaef76c..4821e932f 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -243,7 +243,8 @@ static Bool AMDGPUCreateScreenResources_KMS(ScreenPtr pScreen)
-	if (!drmmode_set_desired_modes(pScrn, &info->drmmode, FALSE))
+	if (!drmmode_set_desired_modes(pScrn, &info->drmmode,
+				       amdgpu_is_gpu_screen(pScreen)))
 		return FALSE;
 	drmmode_uevent_init(pScrn, &info->drmmode);

More information about the amd-gfx mailing list