]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Don't restore the non-existent PDE for GGTT
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 09:35:50 +0000 (10:35 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 13:53:40 +0000 (14:53 +0100)
commit29d0a1a382908ad3156d0a35ee3229a9bb22ae2e
tree427a1eab8515185c67146176dbed7dcc54e49138
parentf4b06585367b92d60ec9b7a6ab91363d9bb74bc1
drm/i915/gtt: Don't restore the non-existent PDE for GGTT

On resume, we have to rewrite all the PDE entries for gen7 ppgtts. If we
switch on full-ppgtt, there is then one address space with no PDE, the
GGTT. Currently under aliasing-ppgtt, the GGTT address space does have
an associated ppgtt and so the restore works just fine. We would have a
similar problem if we tried disabling aliasing-ppgtt
(i915.enable_ppgtt=0). So skip the empty ppgtt, as being non-existent it
doesn't need restoring.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180601093554.13083-2-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c