]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/{i915, xe}/dsb: move DSB buffer to parent interface
authorJani Nikula <jani.nikula@intel.com>
Tue, 20 Jan 2026 15:45:41 +0000 (17:45 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 26 Jan 2026 09:56:41 +0000 (11:56 +0200)
commitcca7eda1c73045d6fb12b3db34f90de65412e742
treec49e533f258542f0f288063bc502ba76c46ead2a
parent1617f5955c6458513787656afde819c91323ab03
drm/{i915, xe}/dsb: move DSB buffer to parent interface

Move the DSB buffer handling to the display parent interface, making
display more independent of i915 and xe driver implementations.

Since the DSB parent interface is only called from intel_dsb.c, add the
wrappers there with smaller visibility instead of the usual
intel_parent.[ch], and using struct intel_dsb as the context parameter
for convenience.

Unfortunately, memset() being a macro in linux/fortify-string.h, we
can't use that as the function pointer name. dsb->memset() would be
using the macro and leading to build failures. Therefore, use .fill()
for the memset() functionality.

v2: s/memset/fill/

Reviewed-by: MichaƂ Grzelak <michal.grzelak@intel.com>
Link: https://patch.msgid.link/df117c862a6d34dae340e4a85c2482b4e29c8884.1768923917.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dsb.c
drivers/gpu/drm/i915/display/intel_dsb_buffer.h [deleted file]
drivers/gpu/drm/i915/i915_driver.c
drivers/gpu/drm/i915/i915_dsb_buffer.c
drivers/gpu/drm/i915/i915_dsb_buffer.h [new file with mode: 0644]
drivers/gpu/drm/xe/display/xe_display.c
drivers/gpu/drm/xe/display/xe_dsb_buffer.c
drivers/gpu/drm/xe/display/xe_dsb_buffer.h [new file with mode: 0644]
include/drm/intel/display_parent_interface.h