On Mar-05-2014 3:28 PM, Chris Wilson wrote: > On Wed, Mar 05, 2014 at 03:13:06PM +0530, Vandana Kannan wrote: >> +void intel_dp_set_drrs_state(struct drm_device *dev, int refresh_rate) >> +{ >> + struct drm_i915_private *dev_priv = dev->dev_private; >> + struct intel_encoder *encoder; >> + struct intel_dp *intel_dp = NULL; >> + struct intel_crtc_config *config = NULL; >> + struct intel_crtc *intel_crtc = NULL; >> + struct intel_connector *intel_connector = dev_priv->drrs.connector; >> + u32 reg, val; >> + int index = 0; > > This routine touches a register and reads state guarded by modeset locks, > I don't see any documentation to make sure the caller complies with > holding the right locks. > > And since this function isn't used yet, I can't check that the callers > are correct at this point in time either. Please, please do document > locking requirements on new functions. > -Chris > Thanks for your inputs. I have added a short description explaining that the locking may be required for future implementations/enhancements of DRRS. I have pushed the revised set of patches. -Vandana _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx