@@ -323,7 +323,8 @@ void xe_display_pm_suspend(struct xe_device *xe, bool runtime)
323
323
intel_fbdev_set_suspend (& xe -> drm , FBINFO_STATE_SUSPENDED , true);
324
324
if (has_display (xe )) {
325
325
drm_kms_helper_poll_disable (& xe -> drm );
326
- intel_display_driver_disable_user_access (xe );
326
+ if (!runtime )
327
+ intel_display_driver_disable_user_access (xe );
327
328
}
328
329
329
330
if (!runtime )
@@ -335,7 +336,7 @@ void xe_display_pm_suspend(struct xe_device *xe, bool runtime)
335
336
336
337
intel_hpd_cancel_work (xe );
337
338
338
- if (has_display (xe ))
339
+ if (! runtime && has_display (xe ))
339
340
intel_display_driver_suspend_access (xe );
340
341
341
342
intel_encoder_suspend_all (& xe -> display );
@@ -381,7 +382,7 @@ void xe_display_pm_resume(struct xe_device *xe, bool runtime)
381
382
intel_display_driver_init_hw (xe );
382
383
intel_hpd_init (xe );
383
384
384
- if (has_display (xe ))
385
+ if (! runtime && has_display (xe ))
385
386
intel_display_driver_resume_access (xe );
386
387
387
388
/* MST sideband requires HPD interrupts enabled */
@@ -391,7 +392,8 @@ void xe_display_pm_resume(struct xe_device *xe, bool runtime)
391
392
392
393
if (has_display (xe )) {
393
394
drm_kms_helper_poll_enable (& xe -> drm );
394
- intel_display_driver_enable_user_access (xe );
395
+ if (!runtime )
396
+ intel_display_driver_enable_user_access (xe );
395
397
}
396
398
intel_hpd_poll_disable (xe );
397
399
0 commit comments