drm/i915: Hold irq uncore.lock when initialising fw_domains
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 3 Jul 2016 17:29:33 +0000 (18:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Jul 2016 09:27:37 +0000 (10:27 +0100)
commit556ab7a6dea55b20269ab5093b90585c924ad340
tree4b6d7b62485aebfaf3814386d16abfe26d08bde3
parentbc3d674462e5df5f2b33adbfcaad9edff8b827f4
drm/i915: Hold irq uncore.lock when initialising fw_domains

Acquiring the forcewake domain asserts that it is in an atomic section
(as we always expect to be under the uncore.lock). This is true except for
initialising the domains on Ivybridge, and so we generate a warning.
Wrap the manual usage of fw_domains inside the spin_lock.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1467566973-13596-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/intel_uncore.c