Skip to content

Commit

Permalink
Fix i915 shutdown warning logs
Browse files Browse the repository at this point in the history
Maybe there is no display in VM, the dmc would not be initialized,
hence don't need to suspend dmc in i915 shutdown

Tracked-On: OAM-120011
Signed-off-by: Wenkui <kui.wen@intel.com>
  • Loading branch information
beckwen authored and sysopenci committed Jun 12, 2024
1 parent 45842c7 commit 2c9c6a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/i915_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,8 @@ void i915_driver_shutdown(struct drm_i915_private *i915)
intel_suspend_encoders(i915);
intel_shutdown_encoders(i915);

intel_dmc_suspend(i915);
if (HAS_DISPLAY(i915))
intel_dmc_suspend(i915);

i915_gem_suspend(i915);

Expand Down

0 comments on commit 2c9c6a7

Please sign in to comment.