[Intel-gfx] [PATCH 10/26] drm/i915: add more clock gating for VLV, allow force wake at init
Jesse Barnes
jbarnes at virtuousgeek.org
Fri Mar 8 17:52:53 CET 2013
On Fri, 08 Mar 2013 15:39:55 +0200
Jani Nikula <jani.nikula at linux.intel.com> wrote:
> On Sat, 02 Mar 2013, Jesse Barnes <jbarnes at virtuousgeek.org> wrote:
> > From: Ben Widawsky <ben at bwidawsk.net>
> >
> > Disable all Gunit clock gating and make set the "allow force wake" bit.
> >
> > Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
> > ---
> > drivers/gpu/drm/i915/i915_gem.c | 4 ++++
> > drivers/gpu/drm/i915/i915_reg.h | 1 +
> > drivers/gpu/drm/i915/intel_pm.c | 10 +++++++++-
> > 3 files changed, 14 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> > index 8413ffc..dd67698 100644
> > --- a/drivers/gpu/drm/i915/i915_gem.c
> > +++ b/drivers/gpu/drm/i915/i915_gem.c
> > @@ -4010,7 +4010,11 @@ int i915_gem_init(struct drm_device *dev)
> > int ret;
> >
> > mutex_lock(&dev->struct_mutex);
> > +
> > + /* VLVA0 (potential hack), BIOS isn't actually waking us */
> > + I915_WRITE(VLV_GTLC_WAKE_CTRL, 1);
>
> Wrap that in if IS_VALLEYVIEW(dev)? Separate this from the other hunk
> into a separate patch?
Ah this one did sneak in, I'll factor it out and put it under an IS_VLV
check.
Thanks,
--
Jesse Barnes, Intel Open Source Technology Center
More information about the Intel-gfx
mailing list