@@ -309,18 +309,7 @@ static void xe_display_flush_cleanup_work(struct xe_device *xe)
309
309
}
310
310
311
311
/* TODO: System and runtime suspend/resume sequences will be sanitized as a follow-up. */
312
- void xe_display_pm_runtime_suspend (struct xe_device * xe )
313
- {
314
- if (!xe -> info .probe_display )
315
- return ;
316
-
317
- if (xe -> d3cold .allowed )
318
- xe_display_pm_suspend (xe , true);
319
-
320
- intel_hpd_poll_enable (xe );
321
- }
322
-
323
- void xe_display_pm_suspend (struct xe_device * xe , bool runtime )
312
+ static void __xe_display_pm_suspend (struct xe_device * xe , bool runtime )
324
313
{
325
314
struct intel_display * display = & xe -> display ;
326
315
bool s2idle = suspend_to_idle ();
@@ -355,26 +344,31 @@ void xe_display_pm_suspend(struct xe_device *xe, bool runtime)
355
344
intel_dmc_suspend (xe );
356
345
}
357
346
358
- void xe_display_pm_suspend_late (struct xe_device * xe )
347
+ void xe_display_pm_suspend (struct xe_device * xe )
348
+ {
349
+ __xe_display_pm_suspend (xe , false);
350
+ }
351
+
352
+ void xe_display_pm_runtime_suspend (struct xe_device * xe )
359
353
{
360
- bool s2idle = suspend_to_idle ();
361
354
if (!xe -> info .probe_display )
362
355
return ;
363
356
364
- intel_power_domains_suspend (xe , s2idle );
357
+ if (xe -> d3cold .allowed )
358
+ __xe_display_pm_suspend (xe , true);
365
359
366
- intel_display_power_suspend_late (xe );
360
+ intel_hpd_poll_enable (xe );
367
361
}
368
362
369
- void xe_display_pm_runtime_resume (struct xe_device * xe )
363
+ void xe_display_pm_suspend_late (struct xe_device * xe )
370
364
{
365
+ bool s2idle = suspend_to_idle ();
371
366
if (!xe -> info .probe_display )
372
367
return ;
373
368
374
- intel_hpd_poll_disable (xe );
369
+ intel_power_domains_suspend (xe , s2idle );
375
370
376
- if (xe -> d3cold .allowed )
377
- xe_display_pm_resume (xe , true);
371
+ intel_display_power_suspend_late (xe );
378
372
}
379
373
380
374
void xe_display_pm_resume_early (struct xe_device * xe )
@@ -387,7 +381,7 @@ void xe_display_pm_resume_early(struct xe_device *xe)
387
381
intel_power_domains_resume (xe );
388
382
}
389
383
390
- void xe_display_pm_resume (struct xe_device * xe , bool runtime )
384
+ static void __xe_display_pm_resume (struct xe_device * xe , bool runtime )
391
385
{
392
386
struct intel_display * display = & xe -> display ;
393
387
@@ -421,6 +415,23 @@ void xe_display_pm_resume(struct xe_device *xe, bool runtime)
421
415
intel_power_domains_enable (xe );
422
416
}
423
417
418
+ void xe_display_pm_resume (struct xe_device * xe )
419
+ {
420
+ __xe_display_pm_resume (xe , false);
421
+ }
422
+
423
+ void xe_display_pm_runtime_resume (struct xe_device * xe )
424
+ {
425
+ if (!xe -> info .probe_display )
426
+ return ;
427
+
428
+ intel_hpd_poll_disable (xe );
429
+
430
+ if (xe -> d3cold .allowed )
431
+ __xe_display_pm_resume (xe , true);
432
+ }
433
+
434
+
424
435
static void display_device_remove (struct drm_device * dev , void * arg )
425
436
{
426
437
struct xe_device * xe = arg ;
0 commit comments