]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/{i915, xe}/pcode: move display pcode calls to parent interface
authorJani Nikula <jani.nikula@intel.com>
Mon, 26 Jan 2026 11:29:25 +0000 (13:29 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 27 Jan 2026 14:45:53 +0000 (16:45 +0200)
commitb3a2a91ae9b48c74e50833242af7d73f8a0ec3a6
tree5346ce272f13e5678c40e584b269f8a5fa4fc52b
parentad381460c90bd3b9d39a5160df0b8b446b098736
drm/{i915, xe}/pcode: move display pcode calls to parent interface

Call the parent driver pcode functions through the parent interface
function pointers instead of expecting both to have functions of the
same name.

In i915, add the interface to existing intel_pcode.[ch], while in xe
move them to new display/xe_display_pcode.[ch] and build it only for
CONFIG_DRM_XE_DISPLAY=y.

Do not add separate write and write_timeout calls in the
interface. Instead, handle the default 1 ms timeout in the
intel_parent.c glue layer.

This drops the last intel_pcode.h includes from display, and allows us
to remove the corresponding xe compat header.

v2: initialize .pcode in i915

Reviewed-by: MichaƂ Grzelak <michal.grzelak@intel.com>
Link: https://patch.msgid.link/20260126112925.2452171-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
21 files changed:
drivers/gpu/drm/i915/display/hsw_ips.c
drivers/gpu/drm/i915/display/intel_bw.c
drivers/gpu/drm/i915/display/intel_cdclk.c
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_display_power_well.c
drivers/gpu/drm/i915/display/intel_dram.c
drivers/gpu/drm/i915/display/intel_hdcp.c
drivers/gpu/drm/i915/display/intel_parent.c
drivers/gpu/drm/i915/display/intel_parent.h
drivers/gpu/drm/i915/display/skl_watermark.c
drivers/gpu/drm/i915/i915_driver.c
drivers/gpu/drm/i915/intel_pcode.c
drivers/gpu/drm/i915/intel_pcode.h
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/compat-i915-headers/intel_pcode.h [deleted file]
drivers/gpu/drm/xe/display/xe_display.c
drivers/gpu/drm/xe/display/xe_display_pcode.c [new file with mode: 0644]
drivers/gpu/drm/xe/display/xe_display_pcode.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pcode.c
drivers/gpu/drm/xe/xe_pcode.h
include/drm/intel/display_parent_interface.h