[Intel-gfx] [PATCH 1/2] drm/i915: allow userspace forcewake references also on gen7

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 24 11:35:04 CET 2012


On Tue, 24 Jan 2012 09:44:28 +0100, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> We need this to correctly access registers in the gt power well from
> userspace.

How about a INTEL_INFO(dev)->has_forcewake or check for the
 ->forcewake_get? That would be more self-documenting, and we are less
likely to miss one in the future, than adding more random generation
checks.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list