[PATCH xf86-video-ati 2/4] Fix radeon_mode_hotplug crash on multi GPU platform.
Michel Dänzer
michel at daenzer.net
Wed Sep 14 08:14:45 UTC 2016
From: Qiang Yu <Qiang.Yu at amd.com>
On multi GPU platform, some screen is created by other GPU DDX.
Signed-off-by: Qiang Yu <Qiang.Yu at amd.com>
(Ported from amdgpu commit 978242977e5dc905e1d5a46b1b0d34b356c7af26)
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
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 3aae69a..a8d4386 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++) {
--
2.9.3
More information about the amd-gfx
mailing list