drm/i915: Defer removing fence register tracking to rpm wakeup
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 15:37:02 +0000 (15:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 16:47:30 +0000 (16:47 +0000)
commit7ae1940014ef77e6389ca95a5a75273c9c4ea31f
treec86e76a40cbfd82ab0014dd65ccadb07c7a7cb3e
parent73a116be688041149bbdd1f0ba25da5c4c78a306
drm/i915: Defer removing fence register tracking to rpm wakeup

Currently, we may simultaneously release the fence register from both
fence_update() and i915_gem_restore_fences(). This is dangerous, so
defer the bookkeeping entirely to i915_gem_restore_fences() when the
device is asleep.

Reported-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190208153708.20023-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_fence_reg.c