drm/i915/display: handle migration for dpt
authorMatthew Auld <matthew.auld@intel.com>
Tue, 4 Oct 2022 13:19:13 +0000 (14:19 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 5 Oct 2022 08:02:38 +0000 (09:02 +0100)
commit5769f64ff09aab23a9045fa13b464fb5070d3fb2
treeb4c336ca33dc205d7a8e3caab24b0ae8e63d9e2e
parent3bce981f58421a0a111f04f594ad654afff9f95c
drm/i915/display: handle migration for dpt

On platforms like DG2, it looks like the dpt path here is missing the
migrate-to-lmem step on discrete platforms.

v2:
  - Move the vma_pin() under the for_i915_gem_ww(), otherwise the
    object can be moved after dropping the lock and then doing the pin.

Fixes: 33e7a975103c ("drm/i915/xelpd: First stab at DPT support")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Jianshui Yu <jianshui.yu@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221004131916.233474-2-matthew.auld@intel.com
drivers/gpu/drm/i915/display/intel_fb_pin.c