Re: [Intel-gfx] [PATCH] drm/i915/vlv: DP_SINK_COUNT is not reliable for valleyview platform.

2014-06-25 Thread Wang, Quanxian
> -Original Message- > From: Jani Nikula [mailto:jani.nik...@linux.intel.com] > Sent: Tuesday, June 24, 2014 11:58 PM > To: Wang, Quanxian > Cc: intel-gfx@lists.freedesktop.org; Daniel Vetter > Subject: RE: [Intel-gfx] [PATCH] drm/i915/vlv: DP_SINK_COUNT is not reliable > for valleyview p

Re: [Intel-gfx] [PATCH] drm/i915: Wait for vblank after enabling the primary plane on BDW

2014-06-25 Thread Rodrigo Vivi
I'm sure this might affect Wayne, so, cc'ing him here. from my point of view this is right so: Reviewed-by: Rodrigo Vivi On Tue, Jun 24, 2014 at 3:59 AM, wrote: > From: Ville Syrjälä > > BDW signals the flip done interrupt immediately after the DSPSURF write > when the plane is disabled. Thi

[Intel-gfx] [PATCH] drm/i915: fix sanitize_enable_ppgtt for full PPGTT

2014-06-25 Thread Jesse Barnes
Apparently trinary logic is hard. We were falling through all the forced cases and simply enabling aliasing PPGTT or not based on hardware, rather than full PPGTT if available. References: https://bugs.freedesktop.org/show_bug.cgi?id=80083 Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i9

Re: [Intel-gfx] 3.15-rc: regression in suspend

2014-06-25 Thread Pavel Machek
On Mon 2014-06-09 13:03:31, Jiri Kosina wrote: > On Mon, 9 Jun 2014, Pavel Machek wrote: > > > > > Strange. It seems 3.15 with the patch reverted only boots in 30% or so > > > > cases... And I've seen resume failure, too, so maybe I was just lucky > > > > that it worked for a while. > > > > > > g

Re: [Intel-gfx] mmu_notifier and i915_gem_userptr.c

2014-06-25 Thread Joerg Roedel
On Fri, Jun 20, 2014 at 01:43:50PM +0200, Joerg Roedel wrote: > Change_pte is also called when the underlying page of an address > changes in the kernel which would matter for DMA. But that can only > happen in KSM and uprobes code which is probably not of interest for the > i915 driver. > > The o

Re: [Intel-gfx] [PATCH 10/11] drm/i915: Move VLV cmnlane workaround to intel_power_domains_init_hw()

2014-06-25 Thread Ville Syrjälä
On Wed, Jun 25, 2014 at 12:03:01PM -0700, Jesse Barnes wrote: > On Fri, 13 Jun 2014 13:37:56 +0300 > ville.syrj...@linux.intel.com wrote: > > > From: Ville Syrjälä > > > > Now that the CMNRESET deassert is part of the cmnlane power well, > > intel_reset_dpio() is called too late to make any diff

Re: [Intel-gfx] [PATCH 07/11] drm/i915: Warn if there's a cdclk change in progess

2014-06-25 Thread Ville Syrjälä
On Wed, Jun 25, 2014 at 11:55:58AM -0700, Jesse Barnes wrote: > On Fri, 13 Jun 2014 13:37:53 +0300 > ville.syrj...@linux.intel.com wrote: > > > From: Ville Syrjälä > > > > If someone is interested in the current cdclk frquency it should > > be stable and not in process of changing frquency. Warn

Re: [Intel-gfx] [PATCH 05/11] drm/i915: Use 200MHz cdclk on vlv when all pipes are off

2014-06-25 Thread Ville Syrjälä
On Wed, Jun 25, 2014 at 11:54:06AM -0700, Jesse Barnes wrote: > On Fri, 13 Jun 2014 13:37:51 +0300 > ville.syrj...@linux.intel.com wrote: > > > From: Ville Syrjälä > > > > Drop the cdclk frequency to 200MHz on vlv when all pipes are off. In > > theory we should be able to use 200MHz also when th

[Intel-gfx] [PATCH 18/19] drm/i915: Only touch WRPLL hw state in enable/disable hooks

2014-06-25 Thread Imre Deak
From: Daniel Vetter To be able to do this we need to separately keep track of how many crtcs need a given WRPLL and how many actually actively use it. The common shared dpll framework already has all this, including massive state readout and cross checking. Which allows us to do this switch in a

[Intel-gfx] [PATCH 15/19] drm/i915: ->disable hook for WRPLLs

2014-06-25 Thread Imre Deak
From: Daniel Vetter Currently still with a redudant WARN_ON in there, the common shared dpll code will take care of this in the future. Also we need to flip the switch for the transitional hack now to make sure that we disable the right pll. Signed-off-by: Daniel Vetter Reviewed-by: Damien Les

[Intel-gfx] [PATCH 10/19] drm/i915: State readout and cross-checking for ddi_pll_sel

2014-06-25 Thread Imre Deak
From: Daniel Vetter To make things a bit more manageable extract a new function for reading out common ddi port state. This means a bit of duplication between encoders and the core since both look at the same registers, but doesn't seem worth to make a fuzz about. We can also remove the state re

[Intel-gfx] [PATCH 07/19] drm/i915: Move SPLL disabling into hsw_crt_post_disable

2014-06-25 Thread Imre Deak
From: Daniel Vetter Similar to how the ->crtc_mode_set hook should touch the hardware to enable anything the ->crtc_off hook should disable anything in the hardware. Otherwise runtime pm for dpms will not work. Currently the only things left int the haswell_crtc_off hook is disabling the ddi pll

[Intel-gfx] [PATCH 02/19] drm/i915: Remove spll_refcount for hsw

2014-06-25 Thread Imre Deak
From: Daniel Vetter SPLL would be a reference clock we could potentially share, especially if we want to use the SSC mode. But currently we don't, so let's rip out this complexity for a simpler conversion to the new display pll framework. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i

[Intel-gfx] [PATCH 12/19] drm/i915: Basic shared dpll support for WRPLLs

2014-06-25 Thread Imre Deak
From: Daniel Vetter Just filing in names and ids, but not yet officially registering them so that the hw state cross checker doesn't completely freak out about them. Still since we do already read out and cross check config->shared_dpll the basics are now there to flesh out the wrpll shared dpll

[Intel-gfx] [PATCH 13/19] drm/i915: Document that the pll->mode_set hook is optional

2014-06-25 Thread Imre Deak
From: Daniel Vetter The WRPLLs won't use them. Signed-off-by: Daniel Vetter Reviewed-by: Damien Lespiau --- drivers/gpu/drm/i915/i915_drv.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 7b0cbe4..650a5ad 100644 ---

[Intel-gfx] [PATCH 05/19] drm/i915: ddi: move pch cleanup before encoder->post_disable

2014-06-25 Thread Imre Deak
This is needed by an upcoming patch that moves the PCH/CRT PLL disabling into the post_disable hook, after which we want to keep the modeset sequence at its current state. At this point this won't have an effect since the PCH/CRT post_disable hook is atm a NOP. Signed-off-by: Imre Deak --- drive

[Intel-gfx] [PATCH 17/19] drm/i915: Switch to common shared dpll framework for WRPLLs

2014-06-25 Thread Imre Deak
From: Daniel Vetter Mostly this patch is one big excersize in deleting code and asserts which are no longer needed. Note that we still abuse the shared dpll framework a bit since we call the enable/disable functions from the crtc mode_set and off hooks. But changing the actual hardware sequence w

[Intel-gfx] [PATCH 09/19] drm/i915: Move ddi_pll_sel into the pipe config

2014-06-25 Thread Imre Deak
From: Daniel Vetter Just boring sed job for preparation. Signed-off-by: Daniel Vetter Reviewed-by: Damien Lespiau [imre: rebased on patchset version w/o pch/crt/fdi refactoring] Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_ddi.c | 34 +- drivers/gpu

Re: [Intel-gfx] [WIP][PATCH 11/11] drm/i915: Turn off clocks when disp2d is powered down

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:57 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Set some bits in CCK/CCU to turn off display clocks when disp2d is power > gated. Not sure this really helps with anything. Docs aren't all that clear. > > XXX: Doesn't actually work. CCK_DISPLAY_R

[Intel-gfx] [PATCH 16/19] drm/i915: ->enable hook for WRPLLs

2014-06-25 Thread Imre Deak
From: Daniel Vetter This time around another cute hack to pre-fill the pll->hw_state with the right values. And also remove a bunch of checks which will be replaced by lots more checks in the common framework. Signed-off-by: Daniel Vetter Reviewed-by: Damien Lespiau --- drivers/gpu/drm/i915/i

[Intel-gfx] [PATCH 08/19] drm/i915: Add a debugfs file for the shared dpll state

2014-06-25 Thread Imre Deak
From: Daniel Vetter Signed-off-by: Daniel Vetter Reviewed-by: Damien Lespiau --- drivers/gpu/drm/i915/i915_debugfs.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index a93b3bf..a0d8733

[Intel-gfx] [PATCH 06/19] drm/i915: Move the SPLL enabling into hsw_crt_pre_enable

2014-06-25 Thread Imre Deak
From: Daniel Vetter The call to intel_ddi_pll_enable in haswell_crtc_mode_set is the only function that still touches the hardware state from the crtc mode_set callback on hsw. Since the SPLL isn't ever shared we can easily take it out into the hsw crt encoder functions. Temporarily we'll loose

[Intel-gfx] [PATCH 19/19] drm/i915: ddi: enable runtime pm during dpms

2014-06-25 Thread Imre Deak
From: Daniel Vetter Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_display.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 62b6896..35e7c89 100644 --- a/driver

[Intel-gfx] [PATCH 11/19] drm/i915: Precompute static ddi_pll_sel values in encoders

2014-06-25 Thread Imre Deak
From: Daniel Vetter This way only the dynamic WRPLL selection for hdmi ddi mode is done in intel_ddi_pll_select. v2: Don't clobber the precomputed values when selecting clocks fro hdmi encoders. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_crt.c | 4 +++- drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 14/19] drm/i915: State readout support for WRPLLs

2014-06-25 Thread Imre Deak
From: Daniel Vetter Still tacked onto the side, but slowly getting there. v2: Don't forget the debugfs file. Signed-off-by: Daniel Vetter Reviewed-by: Damien Lespiau --- drivers/gpu/drm/i915/i915_debugfs.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_reg.h

Re: [Intel-gfx] [PATCH 10/11] drm/i915: Move VLV cmnlane workaround to intel_power_domains_init_hw()

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:56 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Now that the CMNRESET deassert is part of the cmnlane power well, > intel_reset_dpio() is called too late to make any difference. We've > deasserted CMNRESET by that time, and so the off+on toggle w

[Intel-gfx] [PATCH 01/19] drm/i915: Check hw state in assert_can_disable_lcpll

2014-06-25 Thread Imre Deak
From: Daniel Vetter All the other checks also check hw state, so checking our software refcounts for the plls looks a bit odd. Also this will simplify the conversion over to the shared dpll framework, which itself has massive amounts of checks to make sure that we never leave a display pll enable

[Intel-gfx] [PATCH 03/19] drm/i915: Clean up WRPLL/SPLL #defines

2014-06-25 Thread Imre Deak
From: Daniel Vetter Luckily the bit definitions match, but it's still confusing to use one when handling the other. So sprinkle some OCD over the #defines to make them match and use the right version in each place. Maybe we should unify these definitions completely, but that can always be done s

[Intel-gfx] [PATCH 00/19] ddi: respin of runtime PM for DPMS

2014-06-25 Thread Imre Deak
This is a respin of the unmerged part of Daniel's runtime PM for DPMS patchset [1]. The original one also included a refactoring of the DDI PCH/CRT encoder modesetting path, I left the corresponding patches out from this series. This is because there hasn't been yet an agreement on those parts, but

[Intel-gfx] [PATCH 04/19] drm/i915: ddi: move pch setup after encoder->pre_enable

2014-06-25 Thread Imre Deak
This is needed by an upcoming patch that moves the PCH/CRT PLL enabling into the pre_enable hook, after which we want to keep the modeset sequence at its current state. At this point this won't have an effect since the PCH/CRT pre_enable hook is atm a NOP. Signed-off-by: Imre Deak --- drivers/gp

Re: [Intel-gfx] [PATCH 09/11] drm/i915: Pull the cmnlane tricks into its own power well ops

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:55 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Remove the clutter in __vlv_set_power_well() by moving the cmnlane > handling into custom enable/disable hooks for the cmnlane. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel

Re: [Intel-gfx] [PATCH 08/11] drm/i915: Kill duplicated cdclk readout code from i2c

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:54 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > We have a slightly different way of readoing out the cdclk in > gmbus_set_freq(). Kill that and just call .get_display_clock_speed(). > > Also need to remove the GMBUSFREQ update from intel_i2c_res

Re: [Intel-gfx] [PATCH 07/11] drm/i915: Warn if there's a cdclk change in progess

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:53 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > If someone is interested in the current cdclk frquency it should > be stable and not in process of changing frquency. Warn if the current > and requested cdclk don't match in .get_display_clock_spee

Re: [Intel-gfx] [PATCH 06/11] drm/i915: Wait for cdclk change to occure when going for 400MHz

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:52 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > VLV Punit doesn't support the 400MHz cdclk option, so we bypass the > Punit and poke at CCK directly. However we forgot to wait for the > frequeency change to complete. Poll the CCK clock status to

Re: [Intel-gfx] [PATCH 05/11] drm/i915: Use 200MHz cdclk on vlv when all pipes are off

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:51 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Drop the cdclk frequency to 200MHz on vlv when all pipes are off. In > theory we should be able to use 200MHz also when the pixel clock is at > most 90% of 200MHz. However in practice all we seem to

Re: [Intel-gfx] [PATCH 04/11] drm/i915: Handle 320 vs. 333 MHz cdclk on vlv

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:50 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Depending on the HPLL frequency one of the supported cdclk frquencies is > either 320MHz or 333MHz. Figure out which one it is to accurately pick > the minimal required cdclk. This would also avoid

Re: [Intel-gfx] Regression in i915 driver in 3.16-rc2

2014-06-25 Thread Alan Stern
On Wed, 25 Jun 2014, Ville [iso-8859-1] Syrj�l� wrote: > On Wed, Jun 25, 2014 at 02:06:55PM -0400, Alan Stern wrote: > > Daniel: > > > > I encountered a new problem in the i915 driver the first time I booted > > a 3.16-rc kernel on this computer. When it switched over to the frame > > buffer d

Re: [Intel-gfx] [PATCH 03/11] drm/i915: Move vlv cdclk code to .get_display_clock_speed()

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:49 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > We have a standard hook for reading out the current cdclk. Move the VLV > code from valleyview_cur_cdclk() to .get_display_clock_speed(). > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/

Re: [Intel-gfx] [PATCH 02/11] drm/i915: Give names to the CCK_DISPLAY_CLOCK_CONTROL bits

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:48 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Avoid using magic values for CCK frequency bits. Also the mask we were > using for the requested frequency was one bit too short. Fix it up. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/d

Re: [Intel-gfx] [PATCH 01/11] drm/i915: Change vlv cdclk to use kHz units

2014-06-25 Thread Jesse Barnes
On Fri, 13 Jun 2014 13:37:47 +0300 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Use kHz units in vlv cdclk code since that's more customary. > > Also replace the precomputed 90% values with *9/10 computation > for extra clarity. > > Signed-off-by: Ville Syrjälä > --- > driv

Re: [Intel-gfx] [PATCH] drm/i915: only apply crt_present check on VLV

2014-06-25 Thread Ville Syrjälä
On Wed, Jun 25, 2014 at 08:24:29AM -0700, Jesse Barnes wrote: > Apparently we can't trust this field on other platforms and need to find > some other way. > > Signed-off-by: Jesse Barnes Reviewed-by: Ville Syrjälä Since it's a regression it might be a good idea to note the offender: commit 27

Re: [Intel-gfx] Regression in i915 driver in 3.16-rc2

2014-06-25 Thread Ville Syrjälä
On Wed, Jun 25, 2014 at 02:06:55PM -0400, Alan Stern wrote: > Daniel: > > I encountered a new problem in the i915 driver the first time I booted > a 3.16-rc kernel on this computer. When it switched over to the frame > buffer driver, the screen went blank and stayed that way. > > 3.15 works ok

[Intel-gfx] Regression in i915 driver in 3.16-rc2

2014-06-25 Thread Alan Stern
Daniel: I encountered a new problem in the i915 driver the first time I booted a 3.16-rc kernel on this computer. When it switched over to the frame buffer driver, the screen went blank and stayed that way. 3.15 works okay. Attached are log extracts from 3.15 and 3.16 (both with drm.debug=0xe

[Intel-gfx] [PATCH] drm/i915: only apply crt_present check on VLV

2014-06-25 Thread Jesse Barnes
Apparently we can't trust this field on other platforms and need to find some other way. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu

Re: [Intel-gfx] [PATCH 2/3] drm/i915: correct BLC vs PWM enable/disable ordering

2014-06-25 Thread Jesse Barnes
On Wed, 25 Jun 2014 15:21:12 +0300 Jani Nikula wrote: > On Mon, 31 Mar 2014, Jesse Barnes wrote: > > With the new checks in place, we can see we're doing things backwards, > > so fix them up per the spec. > > > > Signed-off-by: Jesse Barnes > > --- > > drivers/gpu/drm/i915/intel_dp.c | 13

Re: [Intel-gfx] [RFC] drm/i915: Add variable gem object size support to i915

2014-06-25 Thread Damien Lespiau
On Wed, Jun 25, 2014 at 02:26:52PM +0100, Tvrtko Ursulin wrote: > >That's a good question to ask a GL team. In the light of sparse > >textures I think the region idea would be better. > > > >We would need to define what the coordinates mean, for instance: > > - 2D view of the buffer, and the kern

Re: [Intel-gfx] [RFC] drm/i915: Add variable gem object size support to i915

2014-06-25 Thread Tvrtko Ursulin
On 06/25/2014 01:57 PM, Damien Lespiau wrote: On Wed, Jun 25, 2014 at 12:46:57PM +0100, Siluvery, Arun wrote: On 25/06/2014 12:14, Damien Lespiau wrote: On Wed, Jun 25, 2014 at 11:51:33AM +0100, Damien Lespiau wrote: (This is not necessarily things one would need to take into account for this

Re: [Intel-gfx] drm/i915 KMS regression in Linux 3.16-rc2 (with git bisect result)

2014-06-25 Thread Chris Wilson
On Wed, Jun 25, 2014 at 03:03:44PM +0200, Tom Van Braeckel wrote: > Hi, > > There seems to be a regression in the upcoming Linux 3.16-rc2 release > candidate that I bisected down to this first bad commit: > [dbb42748ac4929987c1449ecb296b39ef8956b62] drm/i915: Move the C3 LP > write bit setup to ge

Re: [Intel-gfx] [RFC] drm/i915: Add variable gem object size support to i915

2014-06-25 Thread Damien Lespiau
On Wed, Jun 25, 2014 at 12:46:57PM +0100, Siluvery, Arun wrote: > On 25/06/2014 12:14, Damien Lespiau wrote: > >On Wed, Jun 25, 2014 at 11:51:33AM +0100, Damien Lespiau wrote: > >>(This is not necessarily things one would need to take into account for > >>this work, just a few thoughts). > >> > >>O

Re: [Intel-gfx] [PATCH 1/3] drm/i915: add PWM and BLC assertion checks

2014-06-25 Thread Jani Nikula
On Tue, 01 Apr 2014, Jesse Barnes wrote: > On Tue, 01 Apr 2014 10:19:29 +0300 > Jani Nikula wrote: > >> On Mon, 31 Mar 2014, Jesse Barnes wrote: >> > To make sure we properly follow the enable/disable sequences. >> > >> > Signed-off-by: Jesse Barnes >> > --- >> > drivers/gpu/drm/i915/intel_dp.

Re: [Intel-gfx] [PATCH 2/3] drm/i915: correct BLC vs PWM enable/disable ordering

2014-06-25 Thread Jani Nikula
On Mon, 31 Mar 2014, Jesse Barnes wrote: > With the new checks in place, we can see we're doing things backwards, > so fix them up per the spec. > > Signed-off-by: Jesse Barnes > --- > drivers/gpu/drm/i915/intel_dp.c | 13 +++-- > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff

Re: [Intel-gfx] [RFC] drm/i915: Add variable gem object size support to i915

2014-06-25 Thread Siluvery, Arun
On 25/06/2014 12:14, Damien Lespiau wrote: On Wed, Jun 25, 2014 at 11:51:33AM +0100, Damien Lespiau wrote: (This is not necessarily things one would need to take into account for this work, just a few thoughts). One thing I'm wondering is how fitting the "size" parameter really is when talking

Re: [Intel-gfx] [RFC] drm/i915: Add variable gem object size support to i915

2014-06-25 Thread Damien Lespiau
On Wed, Jun 25, 2014 at 11:51:33AM +0100, Damien Lespiau wrote: > (This is not necessarily things one would need to take into account for > this work, just a few thoughts). > > One thing I'm wondering is how fitting the "size" parameter really is > when talking about inherently 2D buffers. > > Fo

Re: [Intel-gfx] [PATCH] drm/i915/opregion: ignore firmware requests for backlight change

2014-06-25 Thread Jani Nikula
On Tue, 24 Jun 2014, Aaron Lu wrote: > Some Thinkpad laptops' firmware will initiate a backlight level change > request through operation region on the events of AC plug/unplug, but > since we are not using firmware's interface to do the backlight setting > on these affected laptops, we do not wan

Re: [Intel-gfx] [RFC] drm/i915: Add variable gem object size support to i915

2014-06-25 Thread Damien Lespiau
On Mon, Apr 28, 2014 at 04:01:29PM +0100, arun.siluv...@linux.intel.com wrote: > From: "Siluvery, Arun" > > This patch adds support to have gem objects of variable size. > The size of the gem object obj->size is always constant and this fact > is tightly coupled in the driver; this implementation

Re: [Intel-gfx] [PATCH] drm/i915: Don't try to look up object for non-existent fb

2014-06-25 Thread Jani Nikula
On Wed, 25 Jun 2014, Chris Wilson wrote: > On Tue, Jun 24, 2014 at 05:05:02PM -0700, Matt Roper wrote: >> crtc->primary->fb may be NULL upon entry to intel_pipe_set_base() if the >> primary plane has previously been disabled via the universal plane >> interface. We need to check for NULL before t

Re: [Intel-gfx] [PATCH] drm/i915: Don't try to look up object for non-existent fb

2014-06-25 Thread Chris Wilson
On Tue, Jun 24, 2014 at 05:05:02PM -0700, Matt Roper wrote: > crtc->primary->fb may be NULL upon entry to intel_pipe_set_base() if the > primary plane has previously been disabled via the universal plane > interface. We need to check for NULL before trying to reference > old_fb's obj. > > This fi

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Implement basic Displayport automated testing function for EDID operations

2014-06-25 Thread Jani Nikula
On Wed, 25 Jun 2014, Todd Previte wrote: > Implements some of the basic EDID tests for Displayport compliance. These > tests > include reading the EDID, verifying the checksum and writing the test > responses > back to the sink device. > > Signed-off-by: Todd Previte > --- > drivers/gpu/drm/i9

Re: [Intel-gfx] [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type

2014-06-25 Thread Paolo Bonzini
Il 25/06/2014 09:34, Chen, Tiejun ha scritto: On 2014/6/25 14:48, Paolo Bonzini wrote: Second problem. Your IGD passthrough code currently works with QEMU's PIIX4-based machine. But what happens if you try to extend it, so that Yes, current xen machine, xenpv, is based on pii4, and also I do

Re: [Intel-gfx] [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type

2014-06-25 Thread Chen, Tiejun
On 2014/6/25 14:48, Paolo Bonzini wrote: Il 22/06/2014 10:25, Chen, Tiejun ha scritto: In qemu-upstream, as you commented we can't create this as a ISA class type explicitly. Note I didn't say that QEMU doesn't like having two ISA bridges. I commented that the firmware will see two ISA bridge