Re: [Intel-gfx] [PATCH 1/2] rendercopy/bdw: Emit 3DSTATE_WM_HZ_OP.

2013-12-10 Thread Xiang, Haihao
On Tue, 2013-12-10 at 09:04 -0800, Kenneth Graunke wrote: > On 12/10/2013 03:40 AM, Damien Lespiau wrote: > > On Mon, Dec 09, 2013 at 11:29:35PM -0800, Kenneth Graunke wrote: > >> We don't want depth/stencil fast clears or HiZ resolves; we want normal > >> drawing. Without this, the pixel pipelin

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2013-12-10 Thread Volkin, Bradley D
[snip] On Tue, Nov 26, 2013 at 11:35:38AM -0800, Daniel Vetter wrote: > > 2) Coherency. I've found two types of coherency issues when reading the > > batch > >buffer from the CPU during execbuffer2. Looking for help with both > > issues. > > i. First, the i-g-t test gem_cpu_reloc blits t

Re: [Intel-gfx] [PATCH] drm/i915/bdw: Don't use forcewake needlessly

2013-12-10 Thread Daniel Vetter
On Tue, Dec 10, 2013 at 11:47:17AM -0800, Ben Widawsky wrote: > On Tue, Dec 10, 2013 at 03:24:52PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > Not all registers need forcewake even if they're not shadowed. > > Add the missing NEEDS_FORCE_WAKE() check to gen8_writeX

Re: [Intel-gfx] [PATCH 4/5] drm/i915: save some time when waiting the eDP timings

2013-12-10 Thread Daniel Vetter
On Fri, Dec 06, 2013 at 05:32:43PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > The eDP spec defines some points where after you do action A, you have > to wait some time before action B. The thing is that in our driver > action B does not happen exactly after action A, but we still use >

Re: [Intel-gfx] [PATCH 5/5] drm/i915: init the DP panel power seq variables earlier

2013-12-10 Thread Jesse Barnes
On Fri, 6 Dec 2013 17:32:44 -0200 Paulo Zanoni wrote: > From: Paulo Zanoni > > Our driver has two different ways of waiting for panel power > sequencing delays. One of these ways is through > ironlake_wait_panel_status, which implicitly uses the values written > to our registers. The other way

Re: [Intel-gfx] [PATCH 14/19] drm/i915: add runtime PM support on Haswell

2013-12-10 Thread Daniel Vetter
On Mon, Dec 02, 2013 at 11:37:30AM -0200, Rodrigo Vivi wrote: > On Thu, Nov 21, 2013 at 1:47 PM, Paulo Zanoni wrote: > > From: Paulo Zanoni > > > > The code to enable/disable PC8 already takes care of saving and > > restoring all the registers we need to save/restore, so do a put() > > call when

Re: [Intel-gfx] [PATCH 14/19] drm/i915: add runtime PM support on Haswell

2013-12-10 Thread Daniel Vetter
On Thu, Nov 21, 2013 at 01:47:28PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > The code to enable/disable PC8 already takes care of saving and > restoring all the registers we need to save/restore, so do a put() > call when we enable PC8 and a get() call when we disable it. > > Ideally,

Re: [Intel-gfx] [PATCH 12/19] drm/i915: release the GTT mmaps when going into D3

2013-12-10 Thread Daniel Vetter
On Thu, Nov 21, 2013 at 01:47:26PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > So we'll get a fault when someone tries to access the mmap, then we'll > wake up from D3. > > This fixes the gem-mmap-gtt subtest from pm_pc8 from intel-gpu-tools. > > Signed-off-by: Paulo Zanoni > --- > dr

Re: [Intel-gfx] [PATCH 11/19] drm/i915: disable interrupts when enabling PC8

2013-12-10 Thread Daniel Vetter
On Thu, Nov 21, 2013 at 01:47:25PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > The plan is to merge PC8 and D3 into a single feature, and when we're > in D3 we won't get any hotplug interrupt anyway, so leaving them > enable doesn't make sense, and it also brings us a problem. The > probl

Re: [Intel-gfx] [PATCH 10/19] drm/i915: do not assert DE_PCH_EVENT_IVB enabled

2013-12-10 Thread Daniel Vetter
On Thu, Nov 21, 2013 at 01:47:24PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > The current code was checking if all bits of "val" were enabled and > DE_PCH_EVENT_IVB was disabled. The new code doesn't care about the > state of DE_PCH_EVENT_IVB: it just checks if everything else is 1. > >

Re: [Intel-gfx] [PATCH 07/19] drm/i915: add runtime put/get calls at the basic places

2013-12-10 Thread Daniel Vetter
On Fri, Nov 29, 2013 at 11:03:38AM -0200, Rodrigo Vivi wrote: > On Wed, Nov 27, 2013 at 06:20:34PM -0200, Paulo Zanoni wrote: > > diff --git a/drivers/gpu/drm/i915/i915_irq.c > > b/drivers/gpu/drm/i915/i915_irq.c > > index 2715600..70c4cef 100644 > > --- a/drivers/gpu/drm/i915/i915_irq.c > > +++ b

Re: [Intel-gfx] [PATCH 03/19] drm/i915: get a PC8 reference when enabling the power well

2013-12-10 Thread Daniel Vetter
On Wed, Nov 27, 2013 at 05:59:22PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > In the current code, at haswell_modeset_global_resources, first we > decide if we want to enable/disable the power well, then we decide if > we want to enable/disable PC8. On the case where we're enabling PC8 >

Re: [Intel-gfx] DP1 Monitor Flashes

2013-12-10 Thread Raul Dias
Hello, The dmesg for the boot is this: http://pastebin.com/aXJQiprL The dmesg when the flashing started to occur: http://pastebin.com/GkRcpK80 I kept the config a simple as possible. No bumblebee, just LVDS1 and DP1 without adaptors. my Xorg.0.log is this: http://pastebin.com/2vK37TNr Than

Re: [Intel-gfx] [PATCH] drm/i915/bdw: Don't use forcewake needlessly

2013-12-10 Thread Ben Widawsky
On Tue, Dec 10, 2013 at 03:24:52PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Not all registers need forcewake even if they're not shadowed. > Add the missing NEEDS_FORCE_WAKE() check to gen8_writeX() to > avoid needless forcewake usage when writing eg. display > regist

[Intel-gfx] [PATCH v2 2/2] drm/i915: Record BB_ADDR for every ring

2013-12-10 Thread ville . syrjala
From: Ville Syrjälä Every ring seems to have a BB_ADDR registers, so include them all in the error state. v2: Also include the _UDW on BDW Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_gpu_error.c | 12 ++-- drivers/gpu/drm/i

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Record BB_ADDR for every ring

2013-12-10 Thread Ben Widawsky
On Tue, Dec 10, 2013 at 08:47:45PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Every ring seems to have a BB_ADDR registers, so include them all in the > error state. > > Signed-off-by: Ville Syrjälä Both are: Reviewed-by: Ben Widawsky > --- > drivers/gpu/drm/i915/

Re: [Intel-gfx] [PATCH] drm/i915: Move VLV PHY CRI clock enable into intel_init_dpio()

2013-12-10 Thread Daniel Vetter
On Tue, Dec 10, 2013 at 10:52:54AM -0800, Jesse Barnes wrote: > On Tue, 10 Dec 2013 14:06:45 +0200 > ville.syrj...@linux.intel.com wrote: > > > From: Ville Syrjälä > > > > The CRI clock is related to the display PHY, so the setup belongs > > in intel_init_dpio(). > > > > Signed-off-by: Ville Sy

Re: [Intel-gfx] [PATCH] drm/i915: Move VLV PHY CRI clock enable into intel_init_dpio()

2013-12-10 Thread Jesse Barnes
On Tue, 10 Dec 2013 14:06:45 +0200 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > The CRI clock is related to the display PHY, so the setup belongs > in intel_init_dpio(). > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_display.c | 11 --- > 1 file

[Intel-gfx] [PATCH 2/2] drm/i915: Record BB_ADDR for every ring

2013-12-10 Thread ville . syrjala
From: Ville Syrjälä Every ring seems to have a BB_ADDR registers, so include them all in the error state. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_gpu_error.c | 10 -- drivers/gpu/drm/i915/i915_reg.h | 2 +- 3 file

[Intel-gfx] [PATCH 1/2] drm/i915: Use 32bit read for BB_ADDR

2013-12-10 Thread ville . syrjala
From: Ville Syrjälä The BB_ADDR register is documented to be 32bits at least since SNB. Prior to that the high 32bits were listed as MBZ, so using a 64bit read doesn't seem worth anything. Also the simulator doesn't like the 64bit read. So just switch to using a 32bit read instead. Signed-off-by

Re: [Intel-gfx] [PATCH 2/3] tests/gem_close_race: Adapt the test for Full PPGTT

2013-12-10 Thread Ben Widawsky
On Tue, Dec 10, 2013 at 06:22:36PM +, Mateo Lozano, Oscar wrote: > > > This test hasn't been terribly effective at provoking the bug it tries > > > to hit, so I think we can just unconditionally use the lower limit. > > > That also helps with the really long runtime of this case a bit. > > > -D

Re: [Intel-gfx] [PATCH 2/3] tests/gem_close_race: Adapt the test for Full PPGTT

2013-12-10 Thread Mateo Lozano, Oscar
> > This test hasn't been terribly effective at provoking the bug it tries > > to hit, so I think we can just unconditionally use the lower limit. > > That also helps with the really long runtime of this case a bit. > > -Daniel Understood. I´ll simplify the patch and send it again then. > FWIW,

Re: [Intel-gfx] [PATCH 2/3] tests/gem_close_race: Adapt the test for Full PPGTT

2013-12-10 Thread Ben Widawsky
On Tue, Dec 10, 2013 at 01:32:13PM +0100, Daniel Vetter wrote: > On Tue, Dec 10, 2013 at 09:36:22AM +, oscar.ma...@intel.com wrote: > > From: Oscar Mateo > > > > With Full PPGTT, each new fd creates a new context and thus a new > > PPGTT, so we have to reduce the number of simultaneous fds or

Re: [Intel-gfx] [PATCH 1/2] rendercopy/bdw: Emit 3DSTATE_WM_HZ_OP.

2013-12-10 Thread Kenneth Graunke
On 12/10/2013 03:40 AM, Damien Lespiau wrote: > On Mon, Dec 09, 2013 at 11:29:35PM -0800, Kenneth Graunke wrote: >> We don't want depth/stencil fast clears or HiZ resolves; we want normal >> drawing. Without this, the pixel pipeline doesn't work. >> >> Signed-off-by: Kenneth Graunke >> Cc: Ben Wi

[Intel-gfx] i915: NULL pointer dereference in i915_update_dri1_breadcrumb() during shutdown

2013-12-10 Thread Eugene Shatokhin
Hi, I have recently observed a NULL pointer dereference in i915 driver on my Eee PC running ROSA Linux with kernel 3.10.21. The crash occurs during shutdown but quite rarely, not each time. The system log is lost but here is what I extracted from the info displayed on the screen. NULL poin

Re: [Intel-gfx] i915: NULL pointer dereference in i915_update_dri1_breadcrumb() during shutdown

2013-12-10 Thread Eugene Shatokhin
On 12/10/2013 04:23 PM, Daniel Vetter wrote: On Tue, Dec 10, 2013 at 12:27:55PM +0400, Eugene Shatokhin wrote: Hi, I have recently observed a NULL pointer dereference in i915 driver on my Eee PC running ROSA Linux with kernel 3.10.21. The crash occurs during shutdown but quite rarely, not each

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Bring UP Power Wells before disabling RC6.

2013-12-10 Thread S, Deepak
We faced some issue for not following the sequence. I will add proper commit message and send it for review. -Deepak -Original Message- From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel Vetter Sent: Monday, December 9, 2013 10:49 PM To: S, Deepak Cc: Daniel Vette

[Intel-gfx] [PATCH v3.12 2/3] drm/i915/vlv: add VLV specific clock_get function v3

2013-12-10 Thread ville . syrjala
From: Jesse Barnes commit acbec814a27f233b5ddb88a1bcaa2ac20daf64e0 upstream. Calculation is a little different than other platforms. v2: update to use port_clock instead rebase on top of Ville's changes v3: update to new port_clock semantics - don't divide by pixel_multiplier (Ville) R

[Intel-gfx] [PATCH v3.12 0/3] drm/i915: Backport some VLV clock fixes to 3.12

2013-12-10 Thread ville . syrjala
Hi stable team, Here's a backport of the following upstream commits for 3.12: commit 662c6ecbcdca1fe8a5402f6c83d98d242917a043 Author: Chris Wilson Date: Wed Sep 25 14:24:01 2013 -0700 drm/i915/vlv: fix up broken precision in vlv_crtc_clock_get commit acbec814a27f233b5ddb88a1bcaa2ac20daf6

[Intel-gfx] [PATCH v3.12 3/3] drm/i915/vlv: fix up broken precision in vlv_crtc_clock_get

2013-12-10 Thread ville . syrjala
From: Chris Wilson commit 662c6ecbcdca1fe8a5402f6c83d98d242917a043 upstream. With some divider values we end up with the wrong result. So remove the intermediates (like Ville suggested in the first place) to get the right answer. Signed-off-by: Chris Wilson Signed-off-by: Jesse Barnes Signed

[Intel-gfx] [PATCH v3.12 1/3] i915/vlv: untangle integrated clock source handling v4

2013-12-10 Thread ville . syrjala
From: Jesse Barnes commit f60711666bcab6df2c6c91d851e07ed54088453c upstream. The global integrated clock source bit resides in DPLL B on VLV, but we were treating it as a per-pipe resource. It needs to be set whenever any PLL is active, so pull setting the bit out of vlv_update_pll and into vlv

[Intel-gfx] [PATCH] drm/i915: Fix timeout with missed interrupts in __wait_seqno

2013-12-10 Thread Mika Kuoppala
Commit 094f9a54e355 ("drm/i915: Fix __wait_seqno to use true infinite timeouts") added support for __wait_seqno to detect missing interrupts and go around them by polling. As there is also timeout detection in __wait_seqno, the polling and timeout detection were done with the same timer. When ther

Re: [Intel-gfx] [PATCH] tests/gem_reset_stats: add reverse order in close-pending-fork

2013-12-10 Thread Daniel Vetter
On Tue, Dec 10, 2013 at 10:50:48AM +0200, Mika Kuoppala wrote: > Use own copy of gem_quiescent_gpu() so that test still works > if it gets changed. Further improve the test by posting a batch > to rings in reverse order. > > Suggested-by: Daniel Vetter > Signed-off-by: Mika Kuoppala Applied, th

Re: [Intel-gfx] [PATCH v2] drm/i915: Don't cast away const from infoframe buffer

2013-12-10 Thread Daniel Vetter
On Tue, Dec 10, 2013 at 03:19:08PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > We don't modify the packed infoframe data, so we should keep the > const qualifier in place. Just pass the buffer as 'const void *' > instead of 'const uint8_t *' and we can drop the cast enti

Re: [Intel-gfx] [PATCH] drm/i915: don't update the dri1 breadcrumb with modesetting

2013-12-10 Thread Daniel Vetter
On Tue, Dec 10, 2013 at 12:44:12PM +, Chris Wilson wrote: > On Tue, Dec 10, 2013 at 01:24:01PM +0100, Daniel Vetter wrote: > > The update is horribly racy since it doesn't protect at all against > > concurrent closing of the master fd. And it can't really since that > > requires us to grab a mu

[Intel-gfx] [PATCH] drm/i915/bdw: Don't use forcewake needlessly

2013-12-10 Thread ville . syrjala
From: Ville Syrjälä Not all registers need forcewake even if they're not shadowed. Add the missing NEEDS_FORCE_WAKE() check to gen8_writeX() to avoid needless forcewake usage when writing eg. display registers. Signed-off-by: Ville Syrjälä --- I didn't test this at all, so be warned. drivers/

[Intel-gfx] [PATCH v2] drm/i915: Don't cast away const from infoframe buffer

2013-12-10 Thread ville . syrjala
From: Ville Syrjälä We don't modify the packed infoframe data, so we should keep the const qualifier in place. Just pass the buffer as 'const void *' instead of 'const uint8_t *' and we can drop the cast entirely. v2: Do intel_sdvo_write_infoframe() as well Reviewed-by: Damien Lespiau Signed-o

Re: [Intel-gfx] [PATCH 0/5] drm/i915: Gen2 PLL fixes

2013-12-10 Thread Ville Syrjälä
On Tue, Dec 10, 2013 at 01:33:01PM +0100, Bruno Prémont wrote: > Hi Ville, > > On Tue, 10 December 2013 Ville Syrjälä wrote: > > On Tue, Dec 10, 2013 at 12:52:27PM +0100, Bruno Prémont wrote: > > > On Mon, 09 December 2013 Ville Syrjälä wrote: > > > > There appear to be some gen2 machines that don

Re: [Intel-gfx] [PATCH] drm/i915: don't update the dri1 breadcrumb with modesetting

2013-12-10 Thread Chris Wilson
On Tue, Dec 10, 2013 at 01:24:01PM +0100, Daniel Vetter wrote: > The update is horribly racy since it doesn't protect at all against > concurrent closing of the master fd. And it can't really since that > requires us to grab a mutex. > > Instead of jumping through hoops and offloading this to a wo

Re: [Intel-gfx] [PATCH 0/5] drm/i915: Gen2 PLL fixes

2013-12-10 Thread Bruno Prémont
Hi Ville, On Tue, 10 December 2013 Ville Syrjälä wrote: > On Tue, Dec 10, 2013 at 12:52:27PM +0100, Bruno Prémont wrote: > > On Mon, 09 December 2013 Ville Syrjälä wrote: > > > There appear to be some gen2 machines that don't really like the current > > > PLL > > > limits we have. We also have so

Re: [Intel-gfx] [PATCH 2/3] tests/gem_close_race: Adapt the test for Full PPGTT

2013-12-10 Thread Daniel Vetter
On Tue, Dec 10, 2013 at 09:36:22AM +, oscar.ma...@intel.com wrote: > From: Oscar Mateo > > With Full PPGTT, each new fd creates a new context and thus a new > PPGTT, so we have to reduce the number of simultaneous fds or face > OOM problems. For every new PPGTT, its PDEs are stored in the GGT

Re: [Intel-gfx] [PATCH] drm/i915: Make downclock deduction common for all panels

2013-12-10 Thread Daniel Vetter
On Tue, Dec 10, 2013 at 12:36:34PM +0200, Jani Nikula wrote: > On Tue, 10 Dec 2013, Vandana Kannan wrote: > > If one mode of a internal panel has more than one refresh rate, then a > > reduced > > clock is found for the LFP (LVDS/eDP). This enables switching between low > > and high frequency dyn

Re: [Intel-gfx] [PATCH] drm/i915: Don't cast away const from infoframe buffer

2013-12-10 Thread Damien Lespiau
On Tue, Dec 10, 2013 at 02:06:30PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > We don't modify the packed infoframe data, so we should keep the > const qualifier in place. Just pass the buffer as 'const void *' > instead of 'const uint8_t *' and we can drop the cast enti

Re: [Intel-gfx] i915: NULL pointer dereference in i915_update_dri1_breadcrumb() during shutdown

2013-12-10 Thread Daniel Vetter
On Tue, Dec 10, 2013 at 12:27:55PM +0400, Eugene Shatokhin wrote: > Hi, > > I have recently observed a NULL pointer dereference in i915 driver > on my Eee PC running ROSA Linux with kernel 3.10.21. > > The crash occurs during shutdown but quite rarely, not each time. > > The system log is lost b

[Intel-gfx] [PATCH] drm/i915: don't update the dri1 breadcrumb with modesetting

2013-12-10 Thread Daniel Vetter
The update is horribly racy since it doesn't protect at all against concurrent closing of the master fd. And it can't really since that requires us to grab a mutex. Instead of jumping through hoops and offloading this to a worker thread just block this bit of code for the modesetting driver. Repo

Re: [Intel-gfx] [PATCH 0/5] drm/i915: Gen2 PLL fixes

2013-12-10 Thread Ville Syrjälä
On Tue, Dec 10, 2013 at 12:52:27PM +0100, Bruno Prémont wrote: > Hi Ville, > > On Mon, 09 December 2013 ville.syrj...@linux.intel.com wrote: > > There appear to be some gen2 machines that don't really like the current PLL > > limits we have. We also have some accuracy problems with the PLL > > ca

Re: [Intel-gfx] [PATCH] drm/i915: Fix timeout with missed interrupts in __wait_seqno

2013-12-10 Thread Chris Wilson
On Tue, Dec 10, 2013 at 10:35:13AM +0200, Mika Kuoppala wrote: > Commit 094f9a54e355 ("drm/i915: Fix __wait_seqno to use true infinite > timeouts") added support for __wait_seqno to detect missing interrupts and > go around them by polling. As there is also timeout detection in > __wait_seqno, the

[Intel-gfx] [PATCH] drm/i915: Move VLV PHY CRI clock enable into intel_init_dpio()

2013-12-10 Thread ville . syrjala
From: Ville Syrjälä The CRI clock is related to the display PHY, so the setup belongs in intel_init_dpio(). Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_display.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c

[Intel-gfx] [PATCH] drm/i915: Don't cast away const from infoframe buffer

2013-12-10 Thread ville . syrjala
From: Ville Syrjälä We don't modify the packed infoframe data, so we should keep the const qualifier in place. Just pass the buffer as 'const void *' instead of 'const uint8_t *' and we can drop the cast entirely. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_drv.h | 2 +- driv

Re: [Intel-gfx] [PATCH 0/5] drm/i915: Gen2 PLL fixes

2013-12-10 Thread Bruno Prémont
Hi Ville, On Mon, 09 December 2013 ville.syrj...@linux.intel.com wrote: > There appear to be some gen2 machines that don't really like the current PLL > limits we have. We also have some accuracy problems with the PLL calculations. > This series aims to eliminate those problems, and at least my 85

Re: [Intel-gfx] [PATCH 1/2] rendercopy/bdw: Emit 3DSTATE_WM_HZ_OP.

2013-12-10 Thread Damien Lespiau
On Mon, Dec 09, 2013 at 11:29:35PM -0800, Kenneth Graunke wrote: > We don't want depth/stencil fast clears or HiZ resolves; we want normal > drawing. Without this, the pixel pipeline doesn't work. > > Signed-off-by: Kenneth Graunke > Cc: Ben Widawsky > Cc: Damien Lespiau Both patches reviewed

Re: [Intel-gfx] setting brightness with xrandr seem wrong

2013-12-10 Thread Jani Nikula
On Mon, 09 Dec 2013, zaverel wrote: > is it normal that if I rule the brightness with xrandr, only the value > of gamma change and not the brightness ? > > display actually becomes much clearer but this is due to gamma or > brightness ? > That is the question. Quoting xrandr(1) man page:

Re: [Intel-gfx] DP1 Monitor Flashes

2013-12-10 Thread Jani Nikula
On Mon, 09 Dec 2013, Raul Dias wrote: > Hello, > > I have a Dell L502x which have a optimus Graphic Pack: > > 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core > Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA > controller]) > Subsystem: Del

Re: [Intel-gfx] [PATCH] drm/i915: Make downclock deduction common for all panels

2013-12-10 Thread Jani Nikula
On Tue, 10 Dec 2013, Vandana Kannan wrote: > If one mode of a internal panel has more than one refresh rate, then a reduced > clock is found for the LFP (LVDS/eDP). This enables switching between low > and high frequency dynamically. Moving downclock calculation to intel_panel > so that it is comm

Re: [Intel-gfx] [PATCH] intel-gpu-tools: Version information

2013-12-10 Thread Daniel Vetter
On Sat, Dec 7, 2013 at 8:36 PM, Ben Widawsky wrote: >> Yeah, this is definitely very useful. But I'd just print it by default >> so that we don't need to ask for this information. Of course we need >> to be careful to not print it when listing subtest. Also: >> - We don't have any init stuff for s

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Disable/Enable PM Intrrupts based on the current freq.

2013-12-10 Thread S, Deepak
Hi Ville, On VLV, we do get the interrupts when we should not. That is when we already in max_delay we get the up threshold interrupts Thanks Deepak -Original Message- From: Ville Syrjälä [mailto:ville.syrj...@linux.intel.com] Sent: Monday, December 9, 2013 3:42 PM To: S, Deepak Cc: i

[Intel-gfx] [PATCH 3/3] tests/gem_ppgtt: New Full PPGTT set of tests

2013-12-10 Thread oscar . mateo
From: Oscar Mateo These tests cover some tricky corner cases found during the True-and-only Full PPGTT feature development. v2: Add pthread requirement to Makefile. v3: Added new "pinned" testcase. v4: Require Full PPGTT. Signed-off-by: Oscar Mateo --- tests/.gitignore |1 + tests/M

[Intel-gfx] [PATCH 2/3] tests/gem_close_race: Adapt the test for Full PPGTT

2013-12-10 Thread oscar . mateo
From: Oscar Mateo With Full PPGTT, each new fd creates a new context and thus a new PPGTT, so we have to reduce the number of simultaneous fds or face OOM problems. For every new PPGTT, its PDEs are stored in the GGTT which imposes a limit of 1024 new contexts. We want to leave at least 1/4 of th

[Intel-gfx] [PATCH 1/3] lib/drmtest: Add a new test helper to check for Full PPGTT usage

2013-12-10 Thread oscar . mateo
From: Oscar Mateo Signed-off-by: Oscar Mateo --- lib/drmtest.c | 14 ++ lib/drmtest.h |1 + 2 files changed, 15 insertions(+) diff --git a/lib/drmtest.c b/lib/drmtest.c index f2624a1..c2483ee 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -87,6 +87,20 @@ is_intel(int fd)

[Intel-gfx] [PATCH] tests/gem_reset_stats: add reverse order in close-pending-fork

2013-12-10 Thread Mika Kuoppala
Use own copy of gem_quiescent_gpu() so that test still works if it gets changed. Further improve the test by posting a batch to rings in reverse order. Suggested-by: Daniel Vetter Signed-off-by: Mika Kuoppala --- tests/gem_reset_stats.c | 84 +++ 1

[Intel-gfx] [PATCH] drm/i915: Fix timeout with missed interrupts in __wait_seqno

2013-12-10 Thread Mika Kuoppala
Commit 094f9a54e355 ("drm/i915: Fix __wait_seqno to use true infinite timeouts") added support for __wait_seqno to detect missing interrupts and go around them by polling. As there is also timeout detection in __wait_seqno, the polling and timeout detection were done with the same timer. When ther

[Intel-gfx] [PATCH] drm/i915: Make downclock deduction common for all panels

2013-12-10 Thread Vandana Kannan
If one mode of a internal panel has more than one refresh rate, then a reduced clock is found for the LFP (LVDS/eDP). This enables switching between low and high frequency dynamically. Moving downclock calculation to intel_panel so that it is common for LVDS and eDP. Signed-off-by: Vandana Kannan