Re: [Intel-gfx] [PATCH 2/2] drm/i915: respect the VBT minimum backlight brightness

2014-07-22 Thread Jesse Barnes
On Mon, 30 Jun 2014 08:05:34 -0700 Jesse Barnes wrote: > On Sat, 28 Jun 2014 16:45:03 +0300 > Jani Nikula wrote: > > >> +/* Scale user_level in range [0..user_max] to [0..hw_max], clamping the > > >> result > > >> + * to [hw_min..hw_max]. */ > > >> +static inline u32 clamp_user_to_hw(struct int

Re: [Intel-gfx] [PATCH 2/2] drm/i915: respect the VBT minimum backlight brightness

2014-06-30 Thread Jesse Barnes
On Sat, 28 Jun 2014 16:45:03 +0300 Jani Nikula wrote: > >> +/* Scale user_level in range [0..user_max] to [0..hw_max], clamping the > >> result > >> + * to [hw_min..hw_max]. */ > >> +static inline u32 clamp_user_to_hw(struct intel_connector *connector, > >> + u32 user_

Re: [Intel-gfx] [PATCH 2/2] drm/i915: respect the VBT minimum backlight brightness

2014-06-28 Thread Jani Nikula
On Fri, 27 Jun 2014, Jesse Barnes wrote: > On Tue, 24 Jun 2014 18:27:40 +0300 > Jani Nikula wrote: > >> Historically we've exposed the full backlight PWM duty cycle range to >> the userspace, in the name of "mechanism, not policy". However, it turns >> out there are both panels and board designs

Re: [Intel-gfx] [PATCH 2/2] drm/i915: respect the VBT minimum backlight brightness

2014-06-27 Thread Jesse Barnes
On Tue, 24 Jun 2014 18:27:40 +0300 Jani Nikula wrote: > Historically we've exposed the full backlight PWM duty cycle range to > the userspace, in the name of "mechanism, not policy". However, it turns > out there are both panels and board designs where there is a minimum > duty cycle that is requ

[Intel-gfx] [PATCH 2/2] drm/i915: respect the VBT minimum backlight brightness

2014-06-24 Thread Jani Nikula
Historically we've exposed the full backlight PWM duty cycle range to the userspace, in the name of "mechanism, not policy". However, it turns out there are both panels and board designs where there is a minimum duty cycle that is required for proper operation. The minimum duty cycle is available i