Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector v3

2013-10-14 Thread Daniel Vetter
On Sat, Oct 12, 2013 at 1:19 AM, Jesse Barnes wrote: > But I don't want this fix (once I fix the locking) blocked on > those tests, since they'll probably take me a few days and people are > already using the original version, which is missing the locks for the > backlight class and ASLE call site

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector v3

2013-10-11 Thread Daniel Vetter
On Sat, Oct 12, 2013 at 1:55 AM, Daniel Vetter wrote: > On Sat, Oct 12, 2013 at 1:19 AM, Jesse Barnes > wrote: >> On Fri, 11 Oct 2013 14:34:35 -0700 >> Jesse Barnes wrote: >> >>> > Ideas: >>> > - Make sure all lvds/edp connectors are enabled and bash on all backlight >>> > interfaces (with ig

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector v3

2013-10-11 Thread Daniel Vetter
On Sat, Oct 12, 2013 at 1:19 AM, Jesse Barnes wrote: > On Fri, 11 Oct 2013 14:34:35 -0700 > Jesse Barnes wrote: > >> > Ideas: >> > - Make sure all lvds/edp connectors are enabled and bash on all backlight >> > interfaces (with igt_fork it's easy to do that concurrently). >> > - Race the above w

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector v3

2013-10-11 Thread Jesse Barnes
On Fri, 11 Oct 2013 14:34:35 -0700 Jesse Barnes wrote: > > Ideas: > > - Make sure all lvds/edp connectors are enabled and bash on all backlight > > interfaces (with igt_fork it's easy to do that concurrently). > > - Race the above with output changes: dpms on/off and changing the crtc > > aro

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector v3

2013-10-11 Thread Jesse Barnes
On Fri, 11 Oct 2013 23:31:10 +0200 Daniel Vetter wrote: > On Fri, Oct 11, 2013 at 11:31:53AM -0700, Jesse Barnes wrote: > > [snip] > > > static int intel_panel_get_brightness(struct backlight_device *bd) > > { > > - struct drm_device *dev = bl_get_data(bd); > > - return intel_panel_get_ba

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector v3

2013-10-11 Thread Daniel Vetter
On Fri, Oct 11, 2013 at 11:31:53AM -0700, Jesse Barnes wrote: [snip] > static int intel_panel_get_brightness(struct backlight_device *bd) > { > - struct drm_device *dev = bl_get_data(bd); > - return intel_panel_get_backlight(dev); > + struct intel_connector *connector = bl_get_data(

[Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector v3

2013-10-11 Thread Jesse Barnes
On VLV/BYT, backlight controls a per-pipe, so when adjusting the backlight we need to pass the correct info. So make the externally visible backlight functions take a connector argument, which can be used internally to figure out the pipe backlight to adjust. v2: make connector pipe lookup check

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector v2

2013-10-08 Thread Jesse Barnes
On Sat, 5 Oct 2013 13:04:08 +0200 Daniel Vetter wrote: > On Fri, Oct 4, 2013 at 9:42 PM, Jesse Barnes wrote: > > On VLV/BYT, backlight controls a per-pipe, so when adjusting the > > backlight we need to pass the correct info. So make the externally > > visible backlight functions take a connect

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector v2

2013-10-05 Thread Daniel Vetter
On Fri, Oct 4, 2013 at 9:42 PM, Jesse Barnes wrote: > On VLV/BYT, backlight controls a per-pipe, so when adjusting the > backlight we need to pass the correct info. So make the externally > visible backlight functions take a connector argument, which can be used > internally to figure out the pip

[Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector v2

2013-10-04 Thread Jesse Barnes
On VLV/BYT, backlight controls a per-pipe, so when adjusting the backlight we need to pass the correct info. So make the externally visible backlight functions take a connector argument, which can be used internally to figure out the pipe backlight to adjust. v2: make connector pipe lookup check

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector

2013-10-01 Thread Jesse Barnes
On Mon, 30 Sep 2013 15:15:12 +0300 Ville Syrjälä wrote: > On Mon, Sep 30, 2013 at 11:18:28AM +0300, Jani Nikula wrote: > > On Sat, 28 Sep 2013, Jesse Barnes wrote: > > > On VLV/BYT, backlight controls a per-pipe, so when adjusting the > > > backlight we need to pass the correct info. So make th

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector

2013-10-01 Thread Jesse Barnes
On Mon, 30 Sep 2013 11:18:28 +0300 Jani Nikula wrote: > On Sat, 28 Sep 2013, Jesse Barnes wrote: > > On VLV/BYT, backlight controls a per-pipe, so when adjusting the > > backlight we need to pass the correct info. So make the externally > > visible backlight functions take a connector argument,

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector

2013-09-30 Thread Daniel Vetter
On Mon, Sep 30, 2013 at 2:15 PM, Ville Syrjälä wrote: > I was discussing things a bit with Jani, and I'll repeat my thoughts > here for others to see. Feel free to kick me if I get things totally > wrong as I don't know the backlight code, nor do I really want to. > > We may need to handle backlig

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector

2013-09-30 Thread Ville Syrjälä
On Mon, Sep 30, 2013 at 11:18:28AM +0300, Jani Nikula wrote: > On Sat, 28 Sep 2013, Jesse Barnes wrote: > > On VLV/BYT, backlight controls a per-pipe, so when adjusting the > > backlight we need to pass the correct info. So make the externally > > visible backlight functions take a connector argu

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector

2013-09-30 Thread Jani Nikula
On Sat, 28 Sep 2013, Jesse Barnes wrote: > On VLV/BYT, backlight controls a per-pipe, so when adjusting the > backlight we need to pass the correct info. So make the externally > visible backlight functions take a connector argument, which can be used > internally to figure out the pipe backlight

[Intel-gfx] [PATCH 1/2] drm/i915: make backlight functions take a connector

2013-09-27 Thread Jesse Barnes
On VLV/BYT, backlight controls a per-pipe, so when adjusting the backlight we need to pass the correct info. So make the externally visible backlight functions take a connector argument, which can be used internally to figure out the pipe backlight to adjust. Signed-off-by: Jesse Barnes --- dri