drm/i915: Always preallocate gen6/7 ppgtt
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 08:43:43 +0000 (08:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 10:07:22 +0000 (10:07 +0000)
commit52c126ee907f436fc871bfc15836b8011f6eb76d
treed55cd4e9e560a6c5736d15a4f455b9ad2d819c06
parentff685975d97f8cb28e2fe4e6d90a71fd93244815
drm/i915: Always preallocate gen6/7 ppgtt

The hardware does not cope very well with us changing the PD within an
active context (the context must be idle for it to re-read the PD). As
we only check whether the page is idle before changing the entry (and on
through the PD tree), we cannot reliably replace PD entries on
gen6/gen7. To fully avoid changing the tree at runtime, preallocate it
on init.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170215084357.19977-9-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c