On Sun, Mar 25, 2012 at 05:33:28PM -0700, Ben Widawsky wrote: > This function tells us the state of RC6. In the future perhaps it will > even give something like a mask back telling which RC6 types are > enabled. This comment somehow sounds like you expect to use this when Eugeni's patches are merged. But actually your patch doesn't apply without Eugeni's patches, because they change the return type from bool to int. So can you be slightly less fuzzy in your comments, please? /rant -Daniel > > In order to return sane values to userspace for an upcoming RC6 sysfs > interface (since register behavior seems to be somewhat random), we will > query this value, and therefore it needs to be available to the rest of > the driver. > > Signed-off-by: Ben Widawsky <ben at bwidawsk.net> > --- > drivers/gpu/drm/i915/i915_drv.h | 1 + > drivers/gpu/drm/i915/intel_display.c | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h > index bbbc1a4..22ab4db 100644 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -1414,6 +1414,7 @@ extern void ironlake_enable_rc6(struct drm_device *dev); > extern void gen6_set_rps(struct drm_device *dev, u8 val); > extern void intel_detect_pch(struct drm_device *dev); > extern int intel_trans_dp_port_sel(struct drm_crtc *crtc); > +extern int intel_enable_rc6(const struct drm_device *dev); > > extern void __gen6_gt_force_wake_get(struct drm_i915_private *dev_priv); > extern void __gen6_gt_force_wake_mt_get(struct drm_i915_private *dev_priv); > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > index ab62c96..efbf709 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -8235,7 +8235,7 @@ void intel_init_emon(struct drm_device *dev) > dev_priv->corr = (lcfuse & LCFUSE_HIV_MASK); > } > > -static int intel_enable_rc6(struct drm_device *dev) > +int intel_enable_rc6(const struct drm_device *dev) > { > /* > * Respect the kernel parameter if it is set > -- > 1.7.9.4 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Mail: daniel at ffwll.ch Mobile: +41 (0)79 365 57 48