commit | fcca7926299944841569515da321bef9655b7703 | [log] [tgz] |
---|---|---|
author | Ben Widawsky <ben@bwidawsk.net> | Mon Apr 25 11:23:07 2011 -0700 |
committer | Keith Packard <keithp@keithp.com> | Tue May 10 13:56:46 2011 -0700 |
tree | 3d3961db5e3d1821bd68c3c09365f9e557e61d55 | |
parent | b7287d8054d219b3009f7ca82edf24f89fd363e5 [diff] |
drm/i915: reference counted forcewake Provide a reference count to track the forcewake state of the GPU and give a safe mechanism for userspace to wake the GT. This also potentially saves a UC read if the GT is known to be awake already. The reference count is atomic, but the register access and hardware wake sequence is protected by struct_mutex. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>