]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915: Introduce pin_params.needs_physical
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 Apr 2026 17:44:43 +0000 (20:44 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Apr 2026 10:11:21 +0000 (13:11 +0300)
commit08a1df744694556e6d922f695eaaf1fff52d6243
treec1c84198287ff0e1973503f9aa9ad825b46bcceb
parent19fa21941c00107cefa0cbe962412977e3f9530a
drm/i915: Introduce pin_params.needs_physical

Add a new flag pin_params.needs_physical to inform the pinning
code that the display needs a physical address and not GGTT
address.

This isn't strictly necessary as the current phys_alignment!=0
check is enough in practice. But theoretically one could have
needs_physical==true without any alignment requirements. And
having an explicit flag feels a bit less magical.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260416174448.28264-8-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_fb_pin.h
drivers/gpu/drm/i915/i915_fb_pin.c