]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915: Use i915_vma_offset() in intel_dpt_offset()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 17 Jul 2025 17:13:50 +0000 (20:13 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 19 Jul 2025 17:55:25 +0000 (20:55 +0300)
commitc6ab589feebf81e11b784fe1b4e81208019e72c7
tree74a88839f882ecc3cfe0fa6e5c652f2d307c0ce1
parent44ebdab4b6d878c435da7385b38d2329f8a411d3
drm/i915: Use i915_vma_offset() in intel_dpt_offset()

Replace the open coded vma mm node stuff in intel_dpt_offset()
with i915_vma_offset(). This will also include the VT-d guard
in the result. Granted that should always be 0 for DPT, but
it seems prudent to include that in our DPT vma offset check
anyway.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250717171353.23090-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_dpt.c
drivers/gpu/drm/i915/display/intel_fb_pin.c