Re: [Intel-gfx] [PATCH] [v2] drm/i915/ppgtt: Never return a NULL context

2014-01-10 Thread Daniel Vetter
Readding intel-gfx. On Sat, Jan 11, 2014 at 12:20 AM, Daniel Vetter wrote: > On Fri, Jan 10, 2014 at 8:24 PM, Ben Widawsky > wrote: >> On Mon, Jan 6, 2014 at 11:51 PM, Daniel Vetter wrote: >>> Neither patch subject nor the commit message mention that this fixes a >>> bug. Also, the Testcase: li

[Intel-gfx] Updated drm-intel-testing

2014-01-10 Thread Daniel Vetter
Hi all, New -testing cycle with cool stuff: - final bits for runtime D3 on Haswell from Paul (now enabled fully) - parse the backlight modulation freq information in the VBT from Jani (but not yet used) - more watermark improvements from Ville for ilk-ivb and bdw - bugfixes for fastboot from Jes

Re: [Intel-gfx] Various fixes and updates to igt/pm_rps

2014-01-10 Thread Daniel Vetter
On Fri, Jan 10, 2014 at 03:12:29PM -0600, jeff.mc...@intel.com wrote: > From: Jeff McGee > > Jeff McGee (4): > pm_rps: Use unbuffered I/O on sysfs files > pm_rps: Assert that valid sysfs writes return success > pm_rps: Fix test to target original min and max > pm_rps: Use igt exit handler

Re: [Intel-gfx] [PATCH] drm/i915/bdw: make sure south port interrupts are enabled properly v2

2014-01-10 Thread Jesse Barnes
On Fri, 10 Jan 2014 19:17:02 -0200 Paulo Zanoni wrote: > 2014/1/10 Jesse Barnes : > > We were apparently relying on the defaults on BDW, which resulted in no > > hotplug or AUX interrupts. So be sure to call the ibx_irq_preinstall to > > enable all interrupts. > > > > v2: use preinstall instead

Re: [Intel-gfx] [PATCH] drm/i915/bdw: make sure south port interrupts are enabled properly v2

2014-01-10 Thread Paulo Zanoni
2014/1/10 Jesse Barnes : > We were apparently relying on the defaults on BDW, which resulted in no > hotplug or AUX interrupts. So be sure to call the ibx_irq_preinstall to > enable all interrupts. > > v2: use preinstall instead of redundant SDIER write > > References: https://bugs.freedesktop.org

[Intel-gfx] [PATCH] drm/i915/bdw: make sure south port interrupts are enabled properly v2

2014-01-10 Thread Jesse Barnes
We were apparently relying on the defaults on BDW, which resulted in no hotplug or AUX interrupts. So be sure to call the ibx_irq_preinstall to enable all interrupts. v2: use preinstall instead of redundant SDIER write References: https://bugs.freedesktop.org/show_bug.cgi?id=72834 References: ht

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make sure south port interrupts are enabled properly

2014-01-10 Thread Paulo Zanoni
2014/1/10 Jesse Barnes : > On Fri, 10 Jan 2014 13:02:20 -0800 > Jesse Barnes wrote: > >> We were apparently relying on the defaults on BDW, which resulted in no >> hotplug or AUX interrupts. >> >> References: https://bugs.freedesktop.org/show_bug.cgi?id=72834 >> References: https://bugs.freedeskto

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make sure south port interrupts are enabled properly

2014-01-10 Thread Paulo Zanoni
2014/1/10 Jesse Barnes : > We were apparently relying on the defaults on BDW, which resulted in no > hotplug or AUX interrupts. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=72834 > References: https://bugs.freedesktop.org/show_bug.cgi?id=72833 > Signed-off-by: Jesse Barnes > --- >

[Intel-gfx] [PATCH 1/4] pm_rps: Use unbuffered I/O on sysfs files

2014-01-10 Thread jeff . mcgee
From: Jeff McGee Bionic C library may not re-read a buffered, read-only file which results in failure to monitor changes in gt_cur_freq_mhz. Signed-off-by: Jeff McGee --- tests/pm_rps.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/pm_rps.c b/tests/pm_rps.c i

[Intel-gfx] [PATCH 2/4] pm_rps: Assert that valid sysfs writes return success

2014-01-10 Thread jeff . mcgee
From: Jeff McGee do_writeval now always checks the return value, whether we expect success or a specific error. Also add new macro writeval_inval to simplify repeated use of do_writeval to test for EINVAL return code. Signed-off-by: Jeff McGee --- tests/pm_rps.c | 23 +++ 1

[Intel-gfx] [PATCH 3/4] pm_rps: Fix test to target original min and max

2014-01-10 Thread jeff . mcgee
From: Jeff McGee The goal of the test is to confirm that gt_cur_freq_mhz can be forced to the boundaries of the frequency range by collapsing gt_min_freq_mhz and gt_max_freq_mhz to the target value. But we miss testing the upper end of the range by targetting the current value of max after it has

[Intel-gfx] Various fixes and updates to igt/pm_rps

2014-01-10 Thread jeff . mcgee
From: Jeff McGee Jeff McGee (4): pm_rps: Use unbuffered I/O on sysfs files pm_rps: Assert that valid sysfs writes return success pm_rps: Fix test to target original min and max pm_rps: Use igt exit handler for restore tests/pm_rps.c | 85 +

[Intel-gfx] [PATCH 4/4] pm_rps: Use igt exit handler for restore

2014-01-10 Thread jeff . mcgee
From: Jeff McGee Signed-off-by: Jeff McGee --- tests/pm_rps.c | 42 +++--- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/tests/pm_rps.c b/tests/pm_rps.c index c968ecb..7c739b6 100644 --- a/tests/pm_rps.c +++ b/tests/pm_rps.c @@ -36,14 +36,6

Re: [Intel-gfx] [PATCH 1/2] drm/i915: make sure south port interrupts are enabled properly

2014-01-10 Thread Jesse Barnes
On Fri, 10 Jan 2014 13:02:20 -0800 Jesse Barnes wrote: > We were apparently relying on the defaults on BDW, which resulted in no > hotplug or AUX interrupts. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=72834 > References: https://bugs.freedesktop.org/show_bug.cgi?id=72833 > Sign

[Intel-gfx] [PATCH 2/2] drm/i915: get proper hwrawclk freq on BDW

2014-01-10 Thread Jesse Barnes
We need to read out the CDclk to calculate the DP aux divider correctly. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_dp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 7df5085..4ac1da5 100644 --- a/dr

[Intel-gfx] [PATCH 1/2] drm/i915: make sure south port interrupts are enabled properly

2014-01-10 Thread Jesse Barnes
We were apparently relying on the defaults on BDW, which resulted in no hotplug or AUX interrupts. References: https://bugs.freedesktop.org/show_bug.cgi?id=72834 References: https://bugs.freedesktop.org/show_bug.cgi?id=72833 Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_irq.c | 4 +++

Re: [Intel-gfx] [PATCH] drm/i915: Only scan for a potential fb is the object is pinned to the display

2014-01-10 Thread Ben Widawsky
On Fri, Jan 10, 2014 at 08:26:23PM +, Chris Wilson wrote: > Only objects pinned to the display engine can be an active framebuffer, > so we can refine the current check for any pinned object to be a > pinned-display object. > > Signed-off-by: Chris Wilson > --- > drivers/gpu/drm/i915/i915_ge

Re: [Intel-gfx] [PATCH] drm/i915: Only scan for a potential fb is the object is pinned to the display

2014-01-10 Thread Chris Wilson
On Fri, Jan 10, 2014 at 12:41:49PM -0800, Ben Widawsky wrote: > On Fri, Jan 10, 2014 at 08:26:23PM +, Chris Wilson wrote: > > Only objects pinned to the display engine can be an active framebuffer, > > so we can refine the current check for any pinned object to be a > > pinned-display object. >

Re: [Intel-gfx] [PATCH] pm_rps: Improve file I/O and restore utilities

2014-01-10 Thread Jeff McGee
On Fri, Jan 10, 2014 at 06:38:59PM +0100, Daniel Vetter wrote: > On Fri, Jan 10, 2014 at 11:20:42AM -0600, jeff.mc...@intel.com wrote: > > From: Jeff McGee > > > > Use unbuffered file I/O to simplify and ensure proper sysfs access. > > Bionic C library may not re-read a read-only file unless unbu

Re: [Intel-gfx] [PATCH] drm/i915: Only unlink ggtt->global_link after i915_gem_load

2014-01-10 Thread Chris Wilson
On Fri, Jan 10, 2014 at 12:22:44PM -0800, Ben Widawsky wrote: > On Mon, Dec 16, 2013 at 06:58:20PM +, Chris Wilson wrote: > > On Mon, Dec 16, 2013 at 12:01:07PM +, Chris Wilson wrote: > > > If i915_driver_load fails before i915_gem_load we try to unlink the ggtt > > > prior to initialising

[Intel-gfx] [PATCH] drm/i915: Only scan for a potential fb is the object is pinned to the display

2014-01-10 Thread Chris Wilson
Only objects pinned to the display engine can be an active framebuffer, so we can refine the current check for any pinned object to be a pinned-display object. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) dif

Re: [Intel-gfx] [PATCH] drm/i915: Only unlink ggtt->global_link after i915_gem_load

2014-01-10 Thread Ben Widawsky
On Mon, Dec 16, 2013 at 06:58:20PM +, Chris Wilson wrote: > On Mon, Dec 16, 2013 at 12:01:07PM +, Chris Wilson wrote: > > If i915_driver_load fails before i915_gem_load we try to unlink the ggtt > > prior to initialising the list and triggering an oops. > > This is incomplete. > > > Sign

[Intel-gfx] [PATCH] drm/i915: Include more information in disabled hotplug interrupt warning

2014-01-10 Thread Chris Wilson
Daniel thought that this was an opportune moment to include which pins and bits ended up being stuck in the WARN. Suggested-by: Daniel Vetter Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i91

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

2014-01-10 Thread Chris Wilson
On Fri, Jan 10, 2014 at 11:59:10AM -0800, Ben Widawsky wrote: > I will gladly re-review if you make any of my suggested changes. Hmm, I had already done the capture_vma one since that is required to display the right addresses in the error state. The output is like: vm[0] Active [0]: Pinned

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

2014-01-10 Thread Ben Widawsky
On Thu, Jan 09, 2014 at 10:57:23PM +, Chris Wilson wrote: > The current error state harks back to the era of just a single VM. For > full-ppgtt, we capture every bo on every VM. It behoves us to then print > every bo for every VM, which we currently fail to do and so miss vital > information in

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Only WARN about a stuck hotplug irq ONCE

2014-01-10 Thread Daniel Vetter
On Fri, Jan 10, 2014 at 06:49:20PM +, Chris Wilson wrote: > It seems that hardware that is broken enough to emit a hotplug IRQ even > though the pin is surposedly disable, will do so indefinitely. > > References: https://bugzilla.redhat.com/show_bug.cgi?id=1051170 > Link: https://bugzilla.redh

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Only WARN about a stuck hotplug irq ONCE

2014-01-10 Thread Chris Wilson
On Fri, Jan 10, 2014 at 06:49:20PM +, Chris Wilson wrote: > It seems that hardware that is broken enough to emit a hotplug IRQ even > though the pin is surposedly disable, will do so indefinitely. > > References: https://bugzilla.redhat.com/show_bug.cgi?id=1051170 > Link: https://bugzilla.redh

[Intel-gfx] [PATCH 2/2] drm/i915: Only complain about a rogue hotplug IRQ after disabling

2014-01-10 Thread Chris Wilson
Disabling the hotplug IRQ is a two-step process. First, inside the IRQ handler we mark the rogue hotplug pin for disabling. Then later in the hotplug worker, we actually disable the hotplug pin. So we should not WARN about the rogue hotplug IRQ being sent until after we have completed disabling the

[Intel-gfx] [PATCH 1/2] drm/i915: Only WARN about a stuck hotplug irq ONCE

2014-01-10 Thread Chris Wilson
It seems that hardware that is broken enough to emit a hotplug IRQ even though the pin is surposedly disable, will do so indefinitely. References: https://bugzilla.redhat.com/show_bug.cgi?id=1051170 Link: https://bugzilla.redhat.com/show_bug.cgi?id=1051369 Signed-off-by: Chris Wilson --- drivers

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Set the digital port encoder personality during modeset

2014-01-10 Thread Damien Lespiau
On Tue, Jan 07, 2014 at 02:55:55PM -0200, Paulo Zanoni wrote: > +static bool > +intel_ddi_ensure_encoder_type(struct intel_encoder *encoder) [...] > + if (connector->base.status == connector_status_connected) { > + DRM_DEBUG_KMS("Can't change DDI %c personality to

Re: [Intel-gfx] [PATCH] pm_rps: Improve file I/O and restore utilities

2014-01-10 Thread Daniel Vetter
On Fri, Jan 10, 2014 at 11:20:42AM -0600, jeff.mc...@intel.com wrote: > From: Jeff McGee > > Use unbuffered file I/O to simplify and ensure proper sysfs access. > Bionic C library may not re-read a read-only file unless unbuffered, > which results in failure to monitor changes in gt_cur_freq_mhz.

[Intel-gfx] [PATCH] drm/i915: PF CRC may not work on HSW

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä When using pipe A and transcoder EDP w/o panel fitter on HSW, the PF CRC isn't available as the panel fitter is entirely bypassed. Check for this and refuse to give out CRCs. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_debugfs.c | 29 +

Re: [Intel-gfx] [PATCH] drm/i915: Don't list gens one by bone in the VMA creation function

2014-01-10 Thread Daniel Vetter
On Fri, Jan 10, 2014 at 06:32:49PM +0100, Daniel Vetter wrote: > On Fri, Jan 10, 2014 at 09:16:39AM -0800, Ben Widawsky wrote: > > On Fri, Jan 10, 2014 at 06:09:15PM +0100, Daniel Vetter wrote: > > > On Fri, Jan 10, 2014 at 03:47:52PM +, Damien Lespiau wrote: > > > > There are only two cases he

Re: [Intel-gfx] [PATCH] drm/i915: Don't list gens one by bone in the VMA creation function

2014-01-10 Thread Daniel Vetter
On Fri, Jan 10, 2014 at 09:16:39AM -0800, Ben Widawsky wrote: > On Fri, Jan 10, 2014 at 06:09:15PM +0100, Daniel Vetter wrote: > > On Fri, Jan 10, 2014 at 03:47:52PM +, Damien Lespiau wrote: > > > There are only two cases here, pre and post SNB (PPGTT). > > > > > > Signed-off-by: Damien Lespia

Re: [Intel-gfx] [PATCH] fbcon: Avoid corrupting active workqueue entries

2014-01-10 Thread Daniel Vetter
On Tue, Dec 17, 2013 at 02:27:39PM +, Chris Wilson wrote: > We attempt to reschedule an active work which can itself corrupt the > workqueue lists, and we may then free the work item whilst the task is > still pending. Both of these may lead to a system deadlock and an > unresponsive machine wi

Re: [Intel-gfx] [PATCH] drm/i915: Don't list gens one by bone in the VMA creation function

2014-01-10 Thread Ben Widawsky
On Fri, Jan 10, 2014 at 06:09:15PM +0100, Daniel Vetter wrote: > On Fri, Jan 10, 2014 at 03:47:52PM +, Damien Lespiau wrote: > > There are only two cases here, pre and post SNB (PPGTT). > > > > Signed-off-by: Damien Lespiau > > --- > > drivers/gpu/drm/i915/i915_gem_gtt.c | 14 ++

[Intel-gfx] [PATCH] pm_rps: Improve file I/O and restore utilities

2014-01-10 Thread jeff . mcgee
From: Jeff McGee Use unbuffered file I/O to simplify and ensure proper sysfs access. Bionic C library may not re-read a read-only file unless unbuffered, which results in failure to monitor changes in gt_cur_freq_mhz. Adapt do_writeval to assert that no write error occurs when we expect none. E

Re: [Intel-gfx] [PATCH] fbcon: Avoid corrupting active workqueue entries

2014-01-10 Thread Tomi Valkeinen
Hi, On 2013-12-17 16:27, Chris Wilson wrote: > We attempt to reschedule an active work which can itself corrupt the > workqueue lists, and we may then free the work item whilst the task is > still pending. Both of these may lead to a system deadlock and an > unresponsive machine without any output

Re: [Intel-gfx] [PATCH] drm/i915: Don't list gens one by bone in the VMA creation function

2014-01-10 Thread Daniel Vetter
On Fri, Jan 10, 2014 at 03:47:52PM +, Damien Lespiau wrote: > There are only two cases here, pre and post SNB (PPGTT). > > Signed-off-by: Damien Lespiau > --- > drivers/gpu/drm/i915/i915_gem_gtt.c | 14 ++ > 1 file changed, 2 insertions(+), 12 deletions(-) > > diff --git a/drive

Re: [Intel-gfx] [PATCH 1/3] drm/i915: No panel fitter on 830M or non-mobile gen2/3 platforms

2014-01-10 Thread Daniel Vetter
On Fri, Jan 10, 2014 at 02:06:45PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > PFIT_CONTROL doesn't exist on 830M, so avoid reading it in > i9xx_get_pfit_config(). > > Also assume that only mobile gen2/3 chipsets have a panel fitter. This > matches the documentation, bu

Re: [Intel-gfx] DP1 Monitor Flashes

2014-01-10 Thread Robert Navarro
On Thu, Jan 2, 2014 at 12:56 PM, Robert Navarro wrote: I too am having the same issue. I'm running on kernel 3.12.6 (just updated) > > The issue happens less frequently, but it still happens and it's quite > annoying. > > Previously I would just get lines like this: > > [ 342.071567] [drm:ilk_di

Re: [Intel-gfx] [PATCH 1/3] drm/i915: don't set modes for 2 connectors on the same encoder

2014-01-10 Thread Damien Lespiau
On Tue, Jan 07, 2014 at 02:55:53PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > In some cases we have more than 1 connector associated to an encoder > (e.g., SDVO, Haswell DP/HDMI) and we can only set a mode for one of > these connectors. If we only allowed modesets for connected connector

Re: [Intel-gfx] [PATCH] drm/i915: only apply GAMMA_MODE IPS WA on HSW

2014-01-10 Thread Damien Lespiau
On Wed, Jan 08, 2014 at 05:26:31PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > The WA is mentioned in HSW's GAMMA_MODE register documentation, but > not on on BDW's documentation, so let's assume it is not needed there. > > Signed-off-by: Paulo Zanoni It looks that way indeed (not test

[Intel-gfx] [PATCH] drm/i915: Flush GPU rendering with a lockless wait during a pagefault

2014-01-10 Thread Chris Wilson
Arjan van de Ven reported that on his test machine that he was seeing stalls of greater than 1 frame greatly impacting the user experience. He tracked this down to being the locked flush during a pagefault as being the culprit hogging the struct_mutex and so blocking any other user from proceeding.

[Intel-gfx] [PATCH] drm/i915: Don't list gens one by bone in the VMA creation function

2014-01-10 Thread Damien Lespiau
There are only two cases here, pre and post SNB (PPGTT). Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/i915_gem_gtt.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index 3192

[Intel-gfx] [PATCH 2/2] tests/gem_reset_stats: run tests on all rings

2014-01-10 Thread Mika Kuoppala
Run all relevant tests on all rings. Suggested-by: Daniel Vetter Signed-off-by: Mika Kuoppala --- tests/gem_reset_stats.c | 132 --- 1 file changed, 90 insertions(+), 42 deletions(-) diff --git a/tests/gem_reset_stats.c b/tests/gem_reset_stats.c ind

[Intel-gfx] [PATCH 1/2] tests/gem_reset_stats: split ctx tests

2014-01-10 Thread Mika Kuoppala
Split context related tests from non-context ones and cleanup the naming. Signed-off-by: Mika Kuoppala --- tests/gem_reset_stats.c | 138 --- 1 file changed, 108 insertions(+), 30 deletions(-) diff --git a/tests/gem_reset_stats.c b/tests/gem_reset_st

Re: [Intel-gfx] [PATCH] drm/i915: add braces around KHz/MHz macro parameters

2014-01-10 Thread Damien Lespiau
On Fri, Jan 10, 2014 at 05:10:20PM +0200, Jani Nikula wrote: > It's an accident waiting to happen. > > Signed-off-by: Jani Nikula Reviewed-by: Damien Lespiau -- Damien > --- > drivers/gpu/drm/i915/intel_drv.h |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/d

Re: [Intel-gfx] [PATCH v4 6/6] drm/i915: Determine the stolen memory base address on gen2

2014-01-10 Thread Jani Nikula
On Fri, 10 Jan 2014, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > There isn't an explicit stolen memory base register on gen2. > Some old comment in the i915 code suggests we should get it via > max_low_pfn_mapped, but that's clearly a bad idea on my MGM. > > The e820 map in said

[Intel-gfx] [PATCH] drm/i915: add braces around KHz/MHz macro parameters

2014-01-10 Thread Jani Nikula
It's an accident waiting to happen. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_drv.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 46aea6c..33a3ed4 100644 --- a/drivers/gpu/drm/i

Re: [Intel-gfx] [PATCH 0/3] drm/i915: A few small fixes for older platforms

2014-01-10 Thread Chris Wilson
On Fri, Jan 10, 2014 at 02:06:44PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > I spotted a few small issues while reading the code w/ older platforms > in mind. The panel fitter/LVDS port patches probably have no real impact > since it looks like those non-existing regis

[Intel-gfx] [PATCH v4 6/6] drm/i915: Determine the stolen memory base address on gen2

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä There isn't an explicit stolen memory base register on gen2. Some old comment in the i915 code suggests we should get it via max_low_pfn_mapped, but that's clearly a bad idea on my MGM. The e820 map in said machine looks like this: [0.00] BIOS-e820: [mem 0x000

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915: vlv: W/a for hotplug/manual VGA detection

2014-01-10 Thread Ville Syrjälä
On Thu, Jan 09, 2014 at 05:08:16PM +0200, Imre Deak wrote: > VGA detection requires the reference clock to be on, so make sure this > is the case. > > This fixes VGA hotplug/manual detection where all pipes are off and so > we would normally disable all clocks. > > v2: > - Instead of disabling PS

[Intel-gfx] [PATCH 2/3] drm/i915: 830M doesn't have an LVDS port

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä There's no LVDS port on 830M so don't go reading the LVDS control register. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 3/3] drm/i915: Fix 915GM self-refresh enable/disable

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä INSTPM is a masked register so use the _MASKED_BIT_{ENABLE,DISABLE} macros when enabling/disabling self-refresh on 915GM. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH 1/3] drm/i915: No panel fitter on 830M or non-mobile gen2/3 platforms

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä PFIT_CONTROL doesn't exist on 830M, so avoid reading it in i9xx_get_pfit_config(). Also assume that only mobile gen2/3 chipsets have a panel fitter. This matches the documentation, but I didn't have real hardware to verify. Gen4 docmentation is a bit inconsistent, but experi

[Intel-gfx] [PATCH 0/3] drm/i915: A few small fixes for older platforms

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä I spotted a few small issues while reading the code w/ older platforms in mind. The panel fitter/LVDS port patches probably have no real impact since it looks like those non-existing registers always return 0. But might as well avoid reading them. The 915GM SR fix is untested

Re: [Intel-gfx] [PATCH 3/5] drm/i915: i830M has watermarks like i855

2014-01-10 Thread Ville Syrjälä
On Sat, Dec 14, 2013 at 08:38:30PM -0200, Rodrigo Vivi wrote: > From: Daniel Vetter > > So shuffle the checks around a bit. Also give all the structs and > functions proper prefixes: i830_ for the dual-pipe mobile platforms > and i845_ for the two single-pipe desktop platforms. > > Note that the

Re: [Intel-gfx] [PATCH v2] drm/i915/vlv: Add drpc debugfs support for valleyview

2014-01-10 Thread Ville Syrjälä
On Fri, Jan 10, 2014 at 03:18:26PM +0530, deepa...@intel.com wrote: > From: Deepak S > > Many of the fields from Gen6 have gone away for vlv. Strip all those > fields that are not relevent and try to update fields that we care > about. This patch give information about current RP & RC status and

[Intel-gfx] [PATCH v2] drm/i915/vlv: Add drpc debugfs support for valleyview

2014-01-10 Thread deepak . s
From: Deepak S Many of the fields from Gen6 have gone away for vlv. Strip all those fields that are not relevent and try to update fields that we care about. This patch give information about current RP & RC status and individual Wells. v2: Move Render & Media Well status to separate lines (Vill

[Intel-gfx] [PATCH 4/4] drm/i915: Don't oops if the initial modeset fails

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä If the first modeset operation fails, we will attempt to restore the previous configuration that we read out from the hardware. But as we don't yet reconstruct the framebuffer information, we end up calling the modeset code with an enabled crtc but with fb==NULL. This will lea

[Intel-gfx] [PATCH 1/4] drm/i915: Pre-compute pipe enabled state

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä Add 'new_enabled' to intel_crtc and precompute it alongside new_encoder and new_crtc. This will allow making decisions about shared resources that are affected by the set of active pipes, before we've clobbered anything for real. Signed-off-by: Ville Syrjälä --- drivers/gpu

[Intel-gfx] [PATCH 3/4] drm/i915: Use new_config and new_enabled to simplify the VLV cdclk code

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä On VLV we need to compute the new cdclk before we've updated the current state. The code achieved that in a somewhat complex way. Now that we have new_enabled and new_config, we can simplify the code quite a bit. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_d

[Intel-gfx] [PATCH 2/4] drm/i915: Prepare to track new pipe config per pipe

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä Add a new_config pointer to intel_crtc which will point to the new pipe config for said crtc while intel_crtc.config will still contain the old config during first parts of the modeset operation. This is a step towards having the entire new state available during the compute p

[Intel-gfx] [PATCH 0/4] drm/i915: Small step towards atomic modeset

2014-01-10 Thread ville . syrjala
From: Ville Syrjälä I started to think a bit about how the code should look for doing a full modeset for more than one pipe at a time. This is how far I got yesterday. I suppose the next thing would be moving the PLL calculations into compute config stage, and then actually computing a new pipe

Re: [Intel-gfx] [PATCH 5/7] drm/i915/vlv: Increase the utilization of stolen memory on VLV.

2014-01-10 Thread Daniel Vetter
On Fri, Jan 10, 2014 at 08:40:34AM +, Goel, Akash wrote: > >> For your usecase, have you tried to simply reduce the stolen area as > >> much as possible? Our friendly competition on ARM SoCs seems to have > >> mostly moved away from gfx reserved chunks towards more flexible > >> approaches l

Re: [Intel-gfx] [PATCH] drm/i915: Drop I915_ prefix from HAS_FBC

2014-01-10 Thread Ville Syrjälä
On Fri, Jan 10, 2014 at 08:53:42AM +0100, Daniel Vetter wrote: > My OCD just couldn't let this slide. Spotted while reviewing Ville's > patch to only flip planes when we have FBC. > > Cc: Ville Syrjälä > Signed-off-by: Daniel Vetter Right. It has bothered me too, but I've been too lazy to run s

Re: [Intel-gfx] [PATCH 5/7] drm/i915/vlv: Increase the utilization of stolen memory on VLV.

2014-01-10 Thread Goel, Akash
>> For your usecase, have you tried to simply reduce the stolen area as >> much as possible? Our friendly competition on ARM SoCs seems to have >> mostly moved away from gfx reserved chunks towards more flexible >> approaches like CMA. Giving stolen back to the linux page allocator >> should be