[PATCH][xf86-video-amdgpu] Fix amdgpu_mode_hotplug crash on multi GPU platform.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On multi GPU platform, some screen is created by other GPU DDX.

Change-Id: Ifa69fe1ec94faf4d6011707c146a0f9d535f95c4
Signed-off-by: Qiang Yu <Qiang.Yu 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 5bddfd0..0e513cf 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -2344,7 +2344,8 @@ restart_destroy:
 			xf86CrtcConfigPtr loop_config =
 				XF86_CRTC_CONFIG_PTR(loop_scrn);
 
-			if (AMDGPUEntPriv(loop_scrn) != pAMDGPUEnt)
+			if (strcmp(loop_scrn->driverName, scrn->driverName) ||
+			    AMDGPUEntPriv(loop_scrn) != pAMDGPUEnt)
 				continue;
 
 			for (j = 0; !found && j < loop_config->num_output; j++) {
-- 
1.9.1



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux