aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_vma.h
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2021-05-24 20:27:02 +0300
committerImre Deak <imre.deak@intel.com>2021-05-25 13:06:11 +0300
commit74862d4ccd6d09684b993672d5ffb5368463e6e3 (patch)
tree11562550495ccec8c1a9d380f03a03e36e75cb21 /drivers/gpu/drm/i915/i915_vma.h
parentdrm/i915/adlp: Require DPT FB CCS color planes to be 2MB aligned (diff)
downloadlinux-dev-74862d4ccd6d09684b993672d5ffb5368463e6e3.tar.xz
linux-dev-74862d4ccd6d09684b993672d5ffb5368463e6e3.zip
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.h2
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)