From 380daff43cfefe2a8e4d496eaf65673f2815c878 Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Wed, 14 Sep 2016 16:59:38 +0900 Subject: Fix radeon_mode_hotplug crash on multi GPU platform. On multi GPU platform, some screen is created by other GPU DDX. Signed-off-by: Qiang Yu (Ported from amdgpu commit 978242977e5dc905e1d5a46b1b0d34b356c7af26) Reviewed-by: Alex Deucher --- src/drmmode_display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 3aae69a8..a8d43865 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -2647,7 +2647,8 @@ restart_destroy: xf86CrtcConfigPtr loop_config = XF86_CRTC_CONFIG_PTR(loop_scrn); - if (RADEONEntPriv(loop_scrn) != pRADEONEnt) + if (strcmp(loop_scrn->driverName, scrn->driverName) || + RADEONEntPriv(loop_scrn) != pRADEONEnt) continue; for (j = 0; !found && j < loop_config->num_output; j++) { -- cgit v1.2.3