drm/i915/gt: Stop cross-polluting PIN_GLOBAL with PIN_USER with no-ppgtt
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 May 2020 07:53:36 +0000 (08:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 May 2020 15:45:50 +0000 (16:45 +0100)
commitbf0840cdb3043ebfa40ac28e19be2886efcd5886
treed5aebe2f80a95b3731781e1668ccf0a0e49c98a7
parentea97c4ca54e45c9458f73e9dbef66439c2ae11f8
drm/i915/gt: Stop cross-polluting PIN_GLOBAL with PIN_USER with no-ppgtt

In order to keep userptr distinct from ggtt mmaps in the eyes of
lockdep, we need to avoid marking those userptr vma as PIN_GLOBAL. (So
long as we comply with only using them as local PIN_USER!)

References: https://gitlab.freedesktop.org/drm/intel/-/issues/1880
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200525075347.582-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ggtt.c