]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/pc8: Add parent interface for PC8 forcewake tricks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 18 Dec 2025 18:20:52 +0000 (20:20 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 19 Dec 2025 19:28:48 +0000 (21:28 +0200)
commit35ec71285c9311395b14bedc60fa94f6b7e24d2d
tree840be6e0e33b42ecf589a7fafe6cfb8cf80bf32f
parent9236cf0ade32f5b7fa5424c20663fa7ea40f8bcb
drm/i915/pc8: Add parent interface for PC8 forcewake tricks

We use forcewake to prevent the SoC from actually entering
PC8 while performing the PC8 disable sequence. Hide that
behind a new parent interface to eliminate the naked
forcewake/uncore usage from the display power code.

v2: Mark the interface optional and warn if
    someone calls it when not provided (Jani)
    Include the header to make sure the extern
    declaration matches the definition (Jani)
v3: Rebase due to shuffling

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251218182052.18756-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_parent.c
drivers/gpu/drm/i915/display/intel_parent.h
drivers/gpu/drm/i915/i915_display_pc8.c [new file with mode: 0644]
drivers/gpu/drm/i915/i915_display_pc8.h [new file with mode: 0644]
drivers/gpu/drm/i915/i915_driver.c
include/drm/intel/display_parent_interface.h