diff options
author | Imre Deak <imre.deak@intel.com> | 2021-05-24 20:27:02 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2021-05-25 13:06:11 +0300 |
commit | 74862d4ccd6d09684b993672d5ffb5368463e6e3 (patch) | |
tree | 11562550495ccec8c1a9d380f03a03e36e75cb21 /drivers/gpu/drm/i915/i915_vma.h | |
parent | b3de1d0789197935da054e47952694adc8219203 (diff) | |
download | linux-74862d4ccd6d09684b993672d5ffb5368463e6e3.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm/i915/i915_vma.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_vma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_vma.h b/drivers/gpu/drm/i915/i915_vma.h index 8df784a026d2..2a108e66cd49 100644 --- a/drivers/gpu/drm/i915/i915_vma.h +++ b/drivers/gpu/drm/i915/i915_vma.h @@ -158,7 +158,7 @@ i915_vma_compare(struct i915_vma *vma, { ptrdiff_t cmp; - GEM_BUG_ON(view && !i915_is_ggtt(vm)); + GEM_BUG_ON(view && !i915_is_ggtt_or_dpt(vm)); cmp = ptrdiff(vma->vm, vm); if (cmp) |