Re: [Intel-gfx] [PATCH v2] drm/i915: Debugfs disable RPS boost and idle

2014-04-28 Thread Chris Wilson
On Mon, Apr 28, 2014 at 07:20:17PM -0700, Ben Widawsky wrote: > On Mon, Apr 28, 2014 at 01:53:52PM -0700, Daisy Sun wrote: > > RP frequency request is affected by 2 modules: normal turbo > > algorithm and RPS boost algorithm. By adding RPS boost algorithm > > to the mix, the final frequency becomes

[Intel-gfx] [PATCH] drm/i915: Support 64b execbuf

2014-04-28 Thread Ben Widawsky
Previously, our code only had a 32b offset value for where the batchbuffer starts. With full PPGTT, and 64b canonical GPU address space, that is an insufficient value. The code to expand is pretty straight forward, and only one platform needs to do anything with the extra bits. Signed-off-by: Ben

[Intel-gfx] [PATCH] [v3] drm/i915: Expand error state's address width to 64b

2014-04-28 Thread Ben Widawsky
v2: 0 pad the new 8B fields or else intel_error_decode has a hard time. Note, regardless we need an igt update. v3: Make reloc_offset 64b also. Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_gpu_error.c | 18 ++ 2 files

Re: [Intel-gfx] [PATCH v2] drm/i915: Debugfs disable RPS boost and idle

2014-04-28 Thread Ben Widawsky
On Mon, Apr 28, 2014 at 01:53:52PM -0700, Daisy Sun wrote: > RP frequency request is affected by 2 modules: normal turbo > algorithm and RPS boost algorithm. By adding RPS boost algorithm > to the mix, the final frequency becomes relatively unpredictable. > Add a switch to enable/disable RPS boost

[Intel-gfx] [PATCH] intel_error_decode: use 64b gtt_offset

2014-04-28 Thread Ben Widawsky
See the relevant kernel patch for the details. I guess this breaks support for older error state, I am not actually sure. Without versioning our error state though, I cannot think of a better way. Suggestions are welcome. Signed-off-by: Ben Widawsky --- tools/intel_error_decode.c | 14 +++---

[Intel-gfx] [PATCH] [v2] drm/i915: Expand error state's address width to 64b

2014-04-28 Thread Ben Widawsky
v2: 0 pad the new 8B fields or else intel_error_decode has a hard time. Note, regardless we need an igt update. Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_gpu_error.c | 16 +--- 2 files changed, 11 insertions(+), 9 delet

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Print captured bo for all VM in error state

2014-04-28 Thread Ben Widawsky
On Sat, Jan 25, 2014 at 08:10:06PM +0100, Daniel Vetter wrote: > On Fri, Jan 24, 2014 at 12:13:44PM -0800, Ben Widawsky wrote: > > ping > > Merged the first patch to topic/ppgtt, but punted on the 2nd - I think > with Mika's improvement to the guilty batch detection we should be able to > fix this

[Intel-gfx] [PATCH] drm/i915: Expand error state's address width to 64b

2014-04-28 Thread Ben Widawsky
Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_gpu_error.c | 16 +--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 539f16db..cdde849 1

[Intel-gfx] [PATCH] drm/i915: Support 64b relocations

2014-04-28 Thread Ben Widawsky
All the rest of the code to enable this is in my branch. Without my branch, hitting > 32b offsets is impossible. The code has always "supported" 64b, but it's never actually been run of tested. This change doesn't actually fix anything. [1] I am not sure why X won't work yet. I do not get hangs or

Re: [Intel-gfx] [PATCH 42/71] drm/i915/chv: Implement WaDisableSamplerPowerBypass for CHV

2014-04-28 Thread Paulo Zanoni
2014-04-28 5:23 GMT-03:00 Ville Syrjälä : > On Fri, Apr 25, 2014 at 05:55:38PM -0300, Paulo Zanoni wrote: >> 2014-04-09 7:28 GMT-03:00 : >> > From: Rafael Barbalho >> > >> > Cherryview also needs this WA. >> >> At least on the chv_rebase tree, this WA is implemented for BDW but it >> is not docum

Re: [Intel-gfx] [PATCH v2 41/71] drm/i915/chv: Add some workaround notes

2014-04-28 Thread Paulo Zanoni
2014-04-28 8:31 GMT-03:00 : > From: Ville Syrjälä > > We implement the following workarounds: > * WaDisableAsyncFlipPerfMode:chv > * WaProgramMiArbOnOffAroundMiSetContext:chv > > v2: Drop WaDisableSemaphoreAndSyncFlipWait note Reviewed-by: Paulo Zanoni > > Signed-off-by: Ville Syrjälä > --- >

Re: [Intel-gfx] [PATCH v2 09/24] drm/i915: Keep vblank interrupts enabled while enabling/disabling planes

2014-04-28 Thread Paulo Zanoni
2014-04-28 9:58 GMT-03:00 : > From: Ville Syrjälä > > Becasue of the upcoming vblank interrupt driven watermark update BecaUSe. Reviewed-by: Paulo Zanoni > mechanism we will have use for vblank interrupts during plane > enabling/disabling. So don't call drm_vblank_off() until planes > are off

Re: [Intel-gfx] [PATCH v2 07/24] drm/i915: Remove useless checks from primary enable/disable

2014-04-28 Thread Paulo Zanoni
2014-04-28 9:53 GMT-03:00 : > From: Ville Syrjälä > > We won't be calling intel_enable_primary_plane() or > intel_disable_primary_plane() with the primary plane in the > wrong state. So remove the useless DISPLAY_PLANE_ENABLE checks. > > v2: Convert the checks to WARNs instead (Daniel,Paulo) Rev

Re: [Intel-gfx] [PATCH v2 05.2/24] drm/i915: Merge LP1+ watermarks in safer way

2014-04-28 Thread Paulo Zanoni
2014-04-28 9:44 GMT-03:00 : > From: Ville Syrjälä > > On ILK when we disable a particular watermark level, we must > maintain the actual watermark values for that level for some time > (until the next vblank possibly). Otherwise we risk underruns. > > In order to achieve that result we must merge

Re: [Intel-gfx] [PATCH 05.1/24] drm/i915: Make sure computed watermarks never overflow the registers

2014-04-28 Thread Paulo Zanoni
2014-04-28 9:44 GMT-03:00 : > From: Ville Syrjälä > > When we calculate the watermarks for a pipe make sure we leave any > level fully zeroed out if it would exceed any of the maximum values > that fit in the registers. > > This will be important later when we start to use also disabled > waterma

[Intel-gfx] [PATCH v2] drm/i915: Debugfs disable RPS boost and idle

2014-04-28 Thread Daisy Sun
RP frequency request is affected by 2 modules: normal turbo algorithm and RPS boost algorithm. By adding RPS boost algorithm to the mix, the final frequency becomes relatively unpredictable. Add a switch to enable/disable RPS boost functionality. When disabled, RP frequency will follow the normal t

Re: [Intel-gfx] [PATCH] Revert "drm/i915: fix infinite loop at gen6_update_ring_freq"

2014-04-28 Thread Imre Deak
On Mon, 2014-04-28 at 21:23 +0200, Daniel Vetter wrote: > On Mon, Apr 28, 2014 at 8:14 PM, Paulo Zanoni wrote: > > This can probably be reproduced on non-BDW machines too, with RC6 disabled. > > If I understand Imre's patch correctly the bug is that we didn't have > rc6 on bdw, but the sanitize f

Re: [Intel-gfx] [PATCH] Revert "drm/i915: fix infinite loop at gen6_update_ring_freq"

2014-04-28 Thread Daniel Vetter
On Mon, Apr 28, 2014 at 8:14 PM, Paulo Zanoni wrote: > This can probably be reproduced on non-BDW machines too, with RC6 disabled. If I understand Imre's patch correctly the bug is that we didn't have rc6 on bdw, but the sanitize function didn't make this clear leading to bugs. If my understandin

Re: [Intel-gfx] [PATCH] tests/pm_pc8: skip the test if runtime PM is disabled

2014-04-28 Thread Imre Deak
On Mon, 2014-04-28 at 15:35 -0300, Paulo Zanoni wrote: > 2014-04-28 15:22 GMT-03:00 Imre Deak : > > On Mon, 2014-04-28 at 14:57 -0300, Paulo Zanoni wrote: > >> 2014-04-25 5:08 GMT-03:00 Daniel Vetter : > >> > On Fri, Apr 25, 2014 at 10:29:57AM +0300, Imre Deak wrote: > >> >> The PC8 state won't be

Re: [Intel-gfx] [PATCH] tests/pm_pc8: skip the test if runtime PM is disabled

2014-04-28 Thread Imre Deak
On Mon, 2014-04-28 at 15:35 -0300, Paulo Zanoni wrote: > 2014-04-28 15:22 GMT-03:00 Imre Deak : > > On Mon, 2014-04-28 at 14:57 -0300, Paulo Zanoni wrote: > >> 2014-04-25 5:08 GMT-03:00 Daniel Vetter : > >> > On Fri, Apr 25, 2014 at 10:29:57AM +0300, Imre Deak wrote: > >> >> The PC8 state won't be

Re: [Intel-gfx] [PATCH] tests/pm_pc8: skip the test if runtime PM is disabled

2014-04-28 Thread Paulo Zanoni
2014-04-28 15:22 GMT-03:00 Imre Deak : > On Mon, 2014-04-28 at 14:57 -0300, Paulo Zanoni wrote: >> 2014-04-25 5:08 GMT-03:00 Daniel Vetter : >> > On Fri, Apr 25, 2014 at 10:29:57AM +0300, Imre Deak wrote: >> >> The PC8 state won't be entered unless runtime PM is enabled, so support >> >> for PC8 re

Re: [Intel-gfx] [PATCH] tests/pm_pc8: skip the test if runtime PM is disabled

2014-04-28 Thread Imre Deak
On Mon, 2014-04-28 at 14:57 -0300, Paulo Zanoni wrote: > 2014-04-25 5:08 GMT-03:00 Daniel Vetter : > > On Fri, Apr 25, 2014 at 10:29:57AM +0300, Imre Deak wrote: > >> The PC8 state won't be entered unless runtime PM is enabled, so support > >> for PC8 residency counters alone is not enough to run t

Re: [Intel-gfx] [PATCH] Revert "drm/i915: fix infinite loop at gen6_update_ring_freq"

2014-04-28 Thread Paulo Zanoni
2014-04-23 4:05 GMT-03:00 Daniel Vetter : > On Tue, Apr 22, 2014 at 06:25:12PM -0300, Paulo Zanoni wrote: >> 2014-04-11 6:02 GMT-03:00 Daniel Vetter : >> > On Thu, Apr 10, 2014 at 10:52:26AM -0700, Ben Widawsky wrote: >> >> On Thu, Apr 10, 2014 at 10:50:43AM -0700, Ben Widawsky wrote: >> >> > On Th

Re: [Intel-gfx] [PATCH] tests/pm_pc8: skip the test if runtime PM is disabled

2014-04-28 Thread Paulo Zanoni
2014-04-25 5:08 GMT-03:00 Daniel Vetter : > On Fri, Apr 25, 2014 at 10:29:57AM +0300, Imre Deak wrote: >> The PC8 state won't be entered unless runtime PM is enabled, so support >> for PC8 residency counters alone is not enough to run this test. This is true only for the very latest kernels. We ha

Re: [Intel-gfx] [PATCH] mm: Throttle shrinkers harder

2014-04-28 Thread Dave Hansen
On 04/26/2014 06:10 AM, Chris Wilson wrote: >>> > > Thanks for the pointer to >>> > > register_oom_notifier(), I can use that to make sure that we do purge >>> > > everything from the GPU, and do a sanity check at the same time, before >>> > > we start killing processes. >> > >> > Actually, that o

Re: [Intel-gfx] [PATCH 13/14] drm/i915/bdw: Disable idle DOP clock gating

2014-04-28 Thread Volkin, Bradley D
Reviewed-by: Brad Volkin On Fri, Apr 18, 2014 at 02:04:29PM -0700, Rodrigo Vivi wrote: > From: Ben Widawsky > > It seems we need this at least for the current platforms we have, but > probably not later. In any event, it should cause too much harm as we do > the same thing on several other plat

Re: [Intel-gfx] [PATCH 12/14] drm/i915/bdw: enable eDRAM.

2014-04-28 Thread Volkin, Bradley D
Reviewed-by: Brad Volkin On Fri, Apr 18, 2014 at 02:04:28PM -0700, Rodrigo Vivi wrote: > From: Ben Widawsky > > The same register exists for querying and programming eDRAM AKA eLLC. So > we can simply use it. For now, use all the same defaults as we had > for Haswell, since like Haswell, I have

Re: [Intel-gfx] [PATCH 11/14] drm/i915/bdw: Add WT caching ability

2014-04-28 Thread Volkin, Bradley D
On Fri, Apr 18, 2014 at 02:04:27PM -0700, Rodrigo Vivi wrote: > From: Ben Widawsky > > I don't have any insight on what parts can do what. The docs do seem to > suggest WT caching works in at least the same manner as it doesn't on > Haswell. As Ben previously mentioned, s/doesn't/does. Other tha

Re: [Intel-gfx] [PATCH] drm/i915: Use hash tables for the command parser

2014-04-28 Thread Daniel Vetter
On Mon, Apr 28, 2014 at 6:07 PM, Volkin, Bradley D wrote: > On Mon, Apr 28, 2014 at 08:53:30AM -0700, Daniel Vetter wrote: >> On Mon, Apr 28, 2014 at 08:22:08AM -0700, bradley.d.vol...@intel.com wrote: >> > From: Brad Volkin >> > >> > For clients that submit large batch buffers the command parser

Re: [Intel-gfx] [PATCH] drm/i915: Use hash tables for the command parser

2014-04-28 Thread Volkin, Bradley D
On Mon, Apr 28, 2014 at 08:53:30AM -0700, Daniel Vetter wrote: > On Mon, Apr 28, 2014 at 08:22:08AM -0700, bradley.d.vol...@intel.com wrote: > > From: Brad Volkin > > > > For clients that submit large batch buffers the command parser has > > a substantial impact on performance. On my HSW ULT syst

Re: [Intel-gfx] [PATCH] drm/i915: Use hash tables for the command parser

2014-04-28 Thread Volkin, Bradley D
On Mon, Apr 28, 2014 at 08:42:56AM -0700, Daniel Vetter wrote: > On Mon, Apr 28, 2014 at 08:22:08AM -0700, bradley.d.vol...@intel.com wrote: > > From: Brad Volkin > > > > For clients that submit large batch buffers the command parser has > > a substantial impact on performance. On my HSW ULT syst

Re: [Intel-gfx] [PATCH] drm/i915: Use hash tables for the command parser

2014-04-28 Thread Daniel Vetter
On Mon, Apr 28, 2014 at 08:22:08AM -0700, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > For clients that submit large batch buffers the command parser has > a substantial impact on performance. On my HSW ULT system performance > drops as much as ~20% on some tests. Most of the time is

Re: [Intel-gfx] [PATCH] drm/i915: Use hash tables for the command parser

2014-04-28 Thread Volkin, Bradley D
On Mon, Apr 28, 2014 at 08:22:08AM -0700, Volkin, Bradley D wrote: > From: Brad Volkin > > For clients that submit large batch buffers the command parser has > a substantial impact on performance. On my HSW ULT system performance > drops as much as ~20% on some tests. Most of the time is spent in

Re: [Intel-gfx] [PATCH] drm/i915: Use hash tables for the command parser

2014-04-28 Thread Daniel Vetter
On Mon, Apr 28, 2014 at 08:22:08AM -0700, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > For clients that submit large batch buffers the command parser has > a substantial impact on performance. On my HSW ULT system performance > drops as much as ~20% on some tests. Most of the time is

[Intel-gfx] [PATCH] drm/i915: Use hash tables for the command parser

2014-04-28 Thread bradley . d . volkin
From: Brad Volkin For clients that submit large batch buffers the command parser has a substantial impact on performance. On my HSW ULT system performance drops as much as ~20% on some tests. Most of the time is spent in the command lookup code. Converting that from the current naive search to a

Re: [Intel-gfx] [PATCH v3] drm/i915: Add boot paramter to control rps boost at boot time.

2014-04-28 Thread Daniel Vetter
On Mon, Apr 28, 2014 at 4:47 PM, wrote: > From: Deepak S > > We are adding a module paramter to control rps boost. By default, we > enable the boost for better performace. Based on the need (perf/power) > we can either enable/disable. > > v2: Addressed rps default comment (Jani) > > v3: Use bool

Re: [Intel-gfx] [PATCH 03/10] drm/i915/chv: Enable Render Standby (RC6) for Cheeryview

2014-04-28 Thread Deepak S
Thanks for the review. I will address the comments On Monday 28 April 2014 07:59 PM, Imre Deak wrote: On Mon, 2014-04-21 at 13:34 +0530, deepa...@linux.intel.com wrote: From: Deepak S v2: Configure PCBR if BIOS fails allocate pcbr (deepak) v3: Fix PCBR condition check during CHV RC6 Enable

Re: [Intel-gfx] [PATCH 03/10] drm/i915/chv: Enable Render Standby (RC6) for Cheeryview

2014-04-28 Thread Deepak S
Thanks for the review. I will address the comments On Saturday 26 April 2014 03:12 AM, Ben Widawsky wrote: On Mon, Apr 21, 2014 at 01:34:07PM +0530, deepa...@linux.intel.com wrote: From: Deepak S v2: Configure PCBR if BIOS fails allocate pcbr (deepak) v3: Fix PCBR condition check during CHV

Re: [Intel-gfx] [PATCH 03/10] drm/i915/chv: Enable Render Standby (RC6) for Cheeryview

2014-04-28 Thread Deepak S
On Monday 28 April 2014 08:15 PM, Daniel Vetter wrote: On Mon, Apr 28, 2014 at 05:29:46PM +0300, Imre Deak wrote: +static void cherryview_setup_pctx(struct drm_device *dev) +{ + struct drm_i915_private *dev_priv = dev->dev_private; + unsigned long pctx_paddr; + struct i915_gtt

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

2014-04-28 Thread arun . siluvery
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 allows to vary its effective size using an interface similar to fallocate(). A new ioct

Re: [Intel-gfx] [PATCH v3] drm/i915: Add boot paramter to control rps boost at boot time.

2014-04-28 Thread Chris Wilson
On Mon, Apr 28, 2014 at 08:17:04PM +0530, deepa...@linux.intel.com wrote: > From: Deepak S > > We are adding a module paramter to control rps boost. By default, we > enable the boost for better performace. Based on the need (perf/power) > we can either enable/disable. > > v2: Addressed rps defau

Re: [Intel-gfx] [PATCH 19/71] drm/i915/chv: Trigger phy common lane reset

2014-04-28 Thread Imre Deak
On Wed, 2014-04-09 at 13:28 +0300, ville.syrj...@linux.intel.com wrote: > From: Chon Ming Lee > > During cold boot, the display controller needs to deassert the common > lane reset. Only do it once during intel_init_dpio for both PHYx2 and > PHYx1. > > Besides, assert the common lane reset when

[Intel-gfx] [PATCH] tests/gem_exec_params: One more invalid ring tests

2014-04-28 Thread Daniel Vetter
With the vebox 2 patches the number of internal rings don't match the number of exposed rings. So add another subtest with an invalid ring which should be invalid both internally and externally. The bug this will catch is using the ring structure before validation, which the old "invalide-ring" won

[Intel-gfx] [PATCH v6] drm/i915/vlv: WA for Turbo and RC6 to work together.

2014-04-28 Thread deepak . s
From: Deepak S With RC6 enabled, BYT has an HW issue in determining the right Gfx busyness. WA for Turbo + RC6: Use SW based Gfx busy-ness detection to decide on increasing/decreasing the freq. This logic will monitor C0 counters of render/media power-wells over EI period and takes necessary acti

Re: [Intel-gfx] [PATCH 66/71] drm/i915/chv: Use RMW to toggle swing calc init

2014-04-28 Thread Mika Kuoppala
ville.syrj...@linux.intel.com writes: > From: Ville Syrjälä > > The spec only tells us to set individual bits here and there. So we use > RMW for most things. Do the same for the swing calc init. > > Eventually we should optimize things to just blast the final value in > with group access wheneve

[Intel-gfx] [PATCH v3] drm/i915: Add boot paramter to control rps boost at boot time.

2014-04-28 Thread deepak . s
From: Deepak S We are adding a module paramter to control rps boost. By default, we enable the boost for better performace. Based on the need (perf/power) we can either enable/disable. v2: Addressed rps default comment (Jani) v3: Use bool to represent the boot parameter (Ville). Signed-off-by:

Re: [Intel-gfx] [PATCH 03/10] drm/i915/chv: Enable Render Standby (RC6) for Cheeryview

2014-04-28 Thread Daniel Vetter
On Mon, Apr 28, 2014 at 05:29:46PM +0300, Imre Deak wrote: > > +static void cherryview_setup_pctx(struct drm_device *dev) > > +{ > > + struct drm_i915_private *dev_priv = dev->dev_private; > > + unsigned long pctx_paddr; > > + struct i915_gtt *gtt = &dev_priv->gtt; > > + u32 pcbr; > > + i

Re: [Intel-gfx] [PATCH 43/49] drm/i915/bdw: Handle context switch events

2014-04-28 Thread Mateo Lozano, Oscar
> > > tmp = I915_READ(GEN8_GT_IIR(0)); > > > if (tmp) { > > > ret = IRQ_HANDLED; > > > + > > > rcs = tmp >> GEN8_RCS_IRQ_SHIFT; > > > - bcs = tmp >> GEN8_BCS_IRQ_SHIFT; > > > + ri

Re: [Intel-gfx] [PATCH 18/71] drm/i915/chv: Add vlv_pipe_to_channel

2014-04-28 Thread Imre Deak
On Wed, 2014-04-09 at 13:28 +0300, ville.syrj...@linux.intel.com wrote: > From: Chon Ming Lee > > Cherryview has 3 pipes. Some of the pll dpio offset calculation is > based on pipe number. Need to use vlv_pipe_to_channel to calculate the > correct phy channel to use for the pipe. > > Signed-of

Re: [Intel-gfx] [PATCH 03/10] drm/i915/chv: Enable Render Standby (RC6) for Cheeryview

2014-04-28 Thread Imre Deak
On Mon, 2014-04-21 at 13:34 +0530, deepa...@linux.intel.com wrote: > From: Deepak S > > v2: Configure PCBR if BIOS fails allocate pcbr (deepak) > > v3: Fix PCBR condition check during CHV RC6 Enable flag set > > Signed-off-by: Deepak S > --- > drivers/gpu/drm/i915/i915_reg.h | 1 + > driver

Re: [Intel-gfx] [PATCH for stable 3.14 only 1/1] drm/i915: restore QUIRK_NO_PCH_PWM_ENABLE

2014-04-28 Thread Daniel Vetter
On Mon, Apr 28, 2014 at 01:10:07PM +0300, Jani Nikula wrote: > This reverts the bisected regressing > > commit bc0bb9fd1c7810407ab810d204bbaecb255fddde > Author: Jani Nikula > Date: Thu Nov 14 12:14:29 2013 +0200 > > drm/i915: remove QUIRK_NO_PCH_PWM_ENABLE > > restoring QUIRK_NO_PCH_PWM_

Re: [Intel-gfx] [PATCH] drm/i915: restore backlight precision when converting from opregion

2014-04-28 Thread Daniel Vetter
On Mon, Apr 28, 2014 at 11:19:29AM +0800, Aaron Lu wrote: > When we set backlight on behalf of ACPI opregion, we will convert the > backlight value in the 0-255 range defined in opregion to the actual > hardware level. Commit 22505b82a2 (drm/i915: avoid brightness overflow > when doing scale) is me

Re: [Intel-gfx] [PATCH] drm/i915: bdw: fix RC6 enabled status reporting and disable runtime PM

2014-04-28 Thread Daniel Vetter
On Mon, Apr 28, 2014 at 12:03:59PM +0300, Imre Deak wrote: > On BDW we don't enable RC6 at the moment, but this isn't reflected in > the (sanitized) i915.enable_rc6 option. So make enable_rc6 report > correctly that RC6 is disabled, which will also effectively disable RPM > on BDW (since RPM depend

Re: [Intel-gfx] [PATCH] drm/i915: Fix assert_plane warning during FDI link train

2014-04-28 Thread Daniel Vetter
On Fri, Apr 25, 2014 at 10:12:07PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > assert_plane_enabled() is now triggering during FDI link train because > we no longer enable planes that early. > > This problem got introduced in: > commit a5c4d7bc187bd13bc11ac06bb4ea3a0d4

Re: [Intel-gfx] [RESEND][PATCH][linux-next] Revert "drm/i915: fix build warning on 32-bit (v2)"

2014-04-28 Thread Daniel Vetter
On Mon, Apr 28, 2014 at 03:03:23PM +0200, Jan Moskyto Matejka wrote: > This reverts commit 60f2b4af1258c05e6b037af866be81abc24438f7. > > The same warning has been fixed in e5081a538a565284fec5f30a937d98e460d5e780 > and > these two commits got merged in 74e99a84de2d0980320612db8015ba606af42114 whi

[Intel-gfx] [PULL] drm-intel-next

2014-04-28 Thread Daniel Vetter
Hi Dave, drm-intel-next-2014-04-16: - vlv infoframe fixes from Jesse - dsi/mipi fixes from Shobhit - gen8 pageflip fixes for LRI/SRM from Damien - cmd parser fixes from Brad Volkin - some prep patches for CHV, DRRS, ... - and tons of little things all over drm-intel-next-2014-04-04: - cmd parser f

[Intel-gfx] [RESEND][PATCH][linux-next] Revert "drm/i915: fix build warning on 32-bit (v2)"

2014-04-28 Thread Jan Moskyto Matejka
This reverts commit 60f2b4af1258c05e6b037af866be81abc24438f7. The same warning has been fixed in e5081a538a565284fec5f30a937d98e460d5e780 and these two commits got merged in 74e99a84de2d0980320612db8015ba606af42114 which caused another warning. Simply, the reverted commit casted the pointer differ

[Intel-gfx] [PATCH v2 09/24] drm/i915: Keep vblank interrupts enabled while enabling/disabling planes

2014-04-28 Thread ville . syrjala
From: Ville Syrjälä Becasue of the upcoming vblank interrupt driven watermark update mechanism we will have use for vblank interrupts during plane enabling/disabling. So don't call drm_vblank_off() until planes are off, and call drm_vblank_on() just before we start to enable the planes. v2: Pimp

[Intel-gfx] [PATCH v2 07/24] drm/i915: Remove useless checks from primary enable/disable

2014-04-28 Thread ville . syrjala
From: Ville Syrjälä We won't be calling intel_enable_primary_plane() or intel_disable_primary_plane() with the primary plane in the wrong state. So remove the useless DISPLAY_PLANE_ENABLE checks. v2: Convert the checks to WARNs instead (Daniel,Paulo) Signed-off-by: Ville Syrjälä --- drivers/g

[Intel-gfx] [PATCH v2 05.2/24] drm/i915: Merge LP1+ watermarks in safer way

2014-04-28 Thread ville . syrjala
From: Ville Syrjälä On ILK when we disable a particular watermark level, we must maintain the actual watermark values for that level for some time (until the next vblank possibly). Otherwise we risk underruns. In order to achieve that result we must merge the LP1+ watermarks a bit differently si

[Intel-gfx] [PATCH 05.1/24] drm/i915: Make sure computed watermarks never overflow the registers

2014-04-28 Thread ville . syrjala
From: Ville Syrjälä When we calculate the watermarks for a pipe make sure we leave any level fully zeroed out if it would exceed any of the maximum values that fit in the registers. This will be important later when we start to use also disabled watermark levels during LP1+ merging. Signed-off-

[Intel-gfx] [PATCH v2 41/71] drm/i915/chv: Add some workaround notes

2014-04-28 Thread ville . syrjala
From: Ville Syrjälä We implement the following workarounds: * WaDisableAsyncFlipPerfMode:chv * WaProgramMiArbOnOffAroundMiSetContext:chv v2: Drop WaDisableSemaphoreAndSyncFlipWait note Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/intel_

Re: [Intel-gfx] [PATCH 41/71] drm/i915/chv: Add some workaround notes

2014-04-28 Thread Ville Syrjälä
On Fri, Apr 25, 2014 at 05:43:55PM -0300, Paulo Zanoni wrote: > 2014-04-09 7:28 GMT-03:00 : > > From: Ville Syrjälä > > > > We implement the following workarounds: > > * WaDisableAsyncFlipPerfMode:chv > > * WaDisableSemaphoreAndSyncFlipWait:chv (at least partially) > > In the rebased version (on

[Intel-gfx] [PATCH v2 63/71] drm/i915/chv: Set soft reset override bit for data lane resets

2014-04-28 Thread ville . syrjala
From: Ville Syrjälä The bits we've been setting so far only progagate the reset singal to the data lanes. To actaully force the reset signal we need to set another override bit. v2: Fix mispalced ';' (Mika) Reviewed-by: Mika Kuoppala Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915

[Intel-gfx] [PATCH v2 53/71] drm/i915/chv: Configure crtc_mask correctly for CHV

2014-04-28 Thread ville . syrjala
From: Ville Syrjälä On CHV pipe C can driver only port D, and pipes A and B can drivbe only ports B and C. Configure the crtc_mask appropriately to reflect that. v2: Moar braces (Jani) Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_dp.c | 9 - drivers/gpu/drm/i915/intel

[Intel-gfx] [PATCH v2 49/71] drm/i915/chv: Add CHV display support

2014-04-28 Thread ville . syrjala
From: Rafael Barbalho Add support for the third pipe in cherrview v2: Don't use spaces for indentation (Jani) Wrap long lines Reviewed-by: Imre Deak Signed-off-by: Rafael Barbalho [vsyrjala: slightly massaged the patch] Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_drv.c |

Re: [Intel-gfx] [PATCH for stable 3.14 only 1/1] drm/i915: restore QUIRK_NO_PCH_PWM_ENABLE

2014-04-28 Thread Romain Francoise
Jani Nikula writes: > This reverts the bisected regressing > commit bc0bb9fd1c7810407ab810d204bbaecb255fddde > Author: Jani Nikula > Date: Thu Nov 14 12:14:29 2013 +0200 > drm/i915: remove QUIRK_NO_PCH_PWM_ENABLE > restoring QUIRK_NO_PCH_PWM_ENABLE for a couple of Dell XPS models which

[Intel-gfx] [PATCH for stable 3.14 only 1/1] drm/i915: restore QUIRK_NO_PCH_PWM_ENABLE

2014-04-28 Thread Jani Nikula
This reverts the bisected regressing commit bc0bb9fd1c7810407ab810d204bbaecb255fddde Author: Jani Nikula Date: Thu Nov 14 12:14:29 2013 +0200 drm/i915: remove QUIRK_NO_PCH_PWM_ENABLE restoring QUIRK_NO_PCH_PWM_ENABLE for a couple of Dell XPS models which broke in 3.14. There is no such r

[Intel-gfx] [PATCH for stable 3.14 only 0/1] drm/i915: restore QUIRK_NO_PCH_PWM_ENABLE

2014-04-28 Thread Jani Nikula
Stable team - I'd like to hear your opinions on this one. It reverts a commit that regressed in 3.14, but the revert does not exist upstream. Instead we've root caused the issue and provided a real fix for upstream, but we're hesitant to backport that to stable. Functionally the effect of the reve

[Intel-gfx] [RFC] tests/gem_bo_falloc: New igt for testing gem_fallocate() ioctl

2014-04-28 Thread arun . siluvery
From: "Siluvery, Arun" This ioctl allows vary the effective size of the gem object. User can mark certain range in object space as scratch thus effectively modifying the size used. v2: modify subtest names and function names as per tooling convention. Signed-off-by: Siluvery, Arun --- tests/M

[Intel-gfx] [PATCH] drm/i915: bdw: fix RC6 enabled status reporting and disable runtime PM

2014-04-28 Thread Imre Deak
On BDW we don't enable RC6 at the moment, but this isn't reflected in the (sanitized) i915.enable_rc6 option. So make enable_rc6 report correctly that RC6 is disabled, which will also effectively disable RPM on BDW (since RPM depends on RC6). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=

Re: [Intel-gfx] [PATCH 42/71] drm/i915/chv: Implement WaDisableSamplerPowerBypass for CHV

2014-04-28 Thread Ville Syrjälä
On Fri, Apr 25, 2014 at 05:55:38PM -0300, Paulo Zanoni wrote: > 2014-04-09 7:28 GMT-03:00 : > > From: Rafael Barbalho > > > > Cherryview also needs this WA. > > At least on the chv_rebase tree, this WA is implemented for BDW but it > is not documented as pre-prod only, and its name is not there.