]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/fb: Use the correct gtt view for remapped FBs
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 Apr 2026 17:44:37 +0000 (20:44 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Apr 2026 10:07:19 +0000 (13:07 +0300)
Use the proper gtt view from the plane state rather than always
assuming that it came directly from the FB. This is in the DPT
codepath so the view should currently always come from the FB,
but in the future we may also want per-plane remapping with DPT.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260416174448.28264-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/xe/display/xe_fb_pin.c

index 739d9c0190946846eea2a33fcb6a1fb22ffadd90..91e5c105258972b3823bf70f9b13d5e5d0d8d8e2 100644 (file)
@@ -154,7 +154,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
        if (view->type == I915_GTT_VIEW_NORMAL)
                dpt_size = ALIGN(size / XE_PAGE_SIZE * 8, XE_PAGE_SIZE);
        else if (view->type == I915_GTT_VIEW_REMAPPED)
-               dpt_size = ALIGN(intel_remapped_info_size(&fb->remapped_view.gtt.remapped) * 8,
+               dpt_size = ALIGN(intel_remapped_info_size(&view->remapped) * 8,
                                 XE_PAGE_SIZE);
        else
                /* display uses 4K tiles instead of bytes here, convert to entries.. */