]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/dsb: Use intel_dsb_ins_align() in intel_dsb_align_tail()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 12 Jun 2025 14:50:13 +0000 (17:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 17 Jun 2025 16:12:03 +0000 (19:12 +0300)
commited9434c6b4f3d9aa89c9ba6853849b9751a2b1f3
tree375a7b3894f0f85f8502655c8d206837f14b7cea
parent762ccc195bfe399199f9da89aade8177826451a4
drm/i915/dsb: Use intel_dsb_ins_align() in intel_dsb_align_tail()

If the free_post is not QW aligned we don't have to memset the
extra DW needed to make it so, as the only way that can happen
is via intel_dsb_reg_write_indexed() which already makes sure
the next DW is zeroed.

Not a big deal, but this is more consistent how all the other
stuff operates that puts instructions into the DSB buffer, and
we'll get a few more of those soon.

Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250612145018.8735-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_dsb.c