drm/i915/adlp: Fix GEM VM asserts for DPT VMs
authorImre Deak <imre.deak@intel.com>
Mon, 24 May 2021 17:27:02 +0000 (20:27 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 25 May 2021 10:06:11 +0000 (13:06 +0300)
commit74862d4ccd6d09684b993672d5ffb5368463e6e3
tree11562550495ccec8c1a9d380f03a03e36e75cb21
parentb3de1d0789197935da054e47952694adc8219203
drm/i915/adlp: Fix GEM VM asserts for DPT VMs

An object mapped via DPT can have remapped and rotated VMA instances
besides the normal VMA instance, similarly to GGTT VMA instances.
Adjust the corresponding VMA lookup asserts.

While at it also check if a DPT VM is passed incorrectly to
i915_vm_to_ppgtt().

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210524172703.2113058-2-imre.deak@intel.com
drivers/gpu/drm/i915/gt/intel_gtt.h
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h