Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

2013-02-19 Thread Jesse Barnes
On Tue, 19 Feb 2013 15:53:56 -0800 Stéphane Marchesin wrote: > On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin > wrote: > > > This increases GEN6_RC6p_THRESHOLD from 10 to 15. For some > > reason this avoids the gen6_gt_check_fifodbg.isra warnings and > > associated GPU lockups, whi

Re: [Intel-gfx] [PATCH] drm/i915: Read the Base of Stolen Memory for 915gm

2013-02-19 Thread Chris Wilson
On Wed, Feb 20, 2013 at 12:28:00AM +0100, Daniel Vetter wrote: > Hm, sloppy me didn't send out the "patch merged" spam. Anyway: > > stolen + phys_object = kaboom Nice reminder that the phys objects need to be upgraded to stolen. -Chris -- Chris Wilson, Intel Open Source Technology Centre __

Re: [Intel-gfx] [PATCH v2] drm/i915: Fix PIPE_CONTROL DW/QW write through global GTT on IVB+

2013-02-19 Thread Ben Widawsky
On Thu, Feb 14, 2013 at 02:46:44PM -0800, Ben Widawsky wrote: > On Thu, Feb 14, 2013 at 09:53:51PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > The bit controlling whether PIPE_CONTROL DW/QW write targets > > the global GTT or PPGTT moved moved from DW 2 bit 2 to >

Re: [Intel-gfx] [PATCH] drm/i915: Increase the RC6p threshold.

2013-02-19 Thread Stéphane Marchesin
On Tue, Jan 29, 2013 at 7:41 PM, Stéphane Marchesin wrote: > This increases GEN6_RC6p_THRESHOLD from 10 to 15. For some > reason this avoids the gen6_gt_check_fifodbg.isra warnings and > associated GPU lockups, which makes my ivy bridge machine stable. > > Ping? > Signed-off-by: Stéphane

[Intel-gfx] [pull] drm-intel-fixes for 3.9

2013-02-19 Thread Daniel Vetter
Hi Dave, So here's my promised pile of fixes for 3.9. I've dropped the core prep patches for vt-switchless suspend/resume as discussed on irc. Highlights: - Fix dmar on g4x. Not really gfx related, but I'm fed up with getting blamed for dmar crapouts. - Disable wc ptes updates on ilk when dmar i

Re: [Intel-gfx] [PATCH] drm/i915: Read the Base of Stolen Memory for 915gm

2013-02-19 Thread Daniel Vetter
On Sun, Feb 10, 2013 at 01:37:52PM -0800, Ben Widawsky wrote: > On Sun, Feb 10, 2013 at 07:38:13PM +, Chris Wilson wrote: > > Reading the cspec pays dividends once again, as I found the 'Base of > > Stolen Memory' config register so that we can skip the fragile > > computation from Top of Usabl

[Intel-gfx] [PATCH 11/13] drm/i915: add clock_get for ironlake+

2013-02-19 Thread Jesse Barnes
Turns out it's easy to get the clock, though it may correspond to a potential pfit mode. In that case, we may still be able to flip if we can get the native mode params somehow. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 26 +++--- 1 file change

[Intel-gfx] [PATCH 10/13] drm/i915: check panel fit status at update_plane time

2013-02-19 Thread Jesse Barnes
We may need to disable the panel when flipping to a new buffer, so check the state here and zero it out if needed, otherwise leave it alone. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/gpu

[Intel-gfx] [PATCH 13/13] drm/i915: check for non-native modes when inheriting a BIOS fb

2013-02-19 Thread Jesse Barnes
If the mode is non-native using the panel fitter, don't try to re-use the fb the BIOS allocated for it. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fb.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel

[Intel-gfx] [PATCH 12/13] drm/i915: treat no fb -> fb as simple flip instead of full mode set

2013-02-19 Thread Jesse Barnes
In case we don't get an fb from the BIOS, we may still be able to re-use existing state and flip a new buffer. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/dr

Re: [Intel-gfx] [PATCH 1/6] drm/i915: don't restore LVDS enable state blindly v2

2013-02-19 Thread Daniel Vetter
On Tue, Feb 19, 2013 at 05:39:49PM -0300, Paulo Zanoni wrote: > Hi > > 2013/2/19 Jesse Barnes : > > We still rely on a few LVDS bits, but restoring the enable bit can cause > > trouble at this point, so don't. > > > > v2: use the right mask to prevent restore (Daniel) > > conditionalize on KMS

[Intel-gfx] [PATCH 05/13] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon

2013-02-19 Thread Jesse Barnes
From: Chris Wilson Signed-off-by: Chris Wilson Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_dma.c |8 +- drivers/gpu/drm/i915/i915_drv.h |2 +- drivers/gpu/drm/i915/intel_display.c | 14 +- drivers/gpu/drm/i915/intel_drv.h |4 + drivers/gpu/drm/i915/int

[Intel-gfx] [PATCH 06/13] drm/i915: Retrieve the current mode upon KMS takeover

2013-02-19 Thread Jesse Barnes
From: Chris Wilson Read the current hardware state to retrieve the active mode and populate our CRTC config if that mode matches our presumptions. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h |2 + drivers/gpu/drm/i915/intel_crt.c | 27 +++- drivers/gpu/dr

[Intel-gfx] [PATCH 01/13] drm/i915: Skip modifying PCH DREF if not changing clock sources

2013-02-19 Thread Jesse Barnes
From: Chris Wilson Modifying the clock sources (via the DREF control on the PCH) is a slow multi-stage process as we need to let the clocks stabilise between each stage. If we are not actually changing the clock sources, then we can return early. Signed-off-by: Chris Wilson --- drivers/gpu/drm

[Intel-gfx] [PATCH 03/13] drm/i915: Split the framebuffer_info creation into a separate routine

2013-02-19 Thread Jesse Barnes
From: Chris Wilson This will be shared with wrapping the BIOS framebuffer into the fbdev later. In the meantime, we can tidy the code slightly and improve the error path handling. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_display.c |7 -- drivers/gpu/drm/i915/intel_drv.h

[Intel-gfx] [PATCH 09/13] drm/i915: fix build in intel_display.c

2013-02-19 Thread Jesse Barnes
Missing a curly brace. Signed-off-by: Jesse Barnes --- 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_display.c index 0a2279e..595590c 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 08/13] drm/i915: Validate that the framebuffer accommodates the current mode

2013-02-19 Thread Jesse Barnes
From: Chris Wilson As we retrieve the mode from the BIOS it may be constructed using different assumptions for its configuration, such as utilizing the panel fitter in a conflicting manner. As such the associated framebuffer may be insufficient for our setup, and so we need to reject the current

[Intel-gfx] [PATCH 07/13] drm/i915: Only preserve the BIOS modes if they are the preferred ones

2013-02-19 Thread Jesse Barnes
From: Chris Wilson Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_display.c |9 + drivers/gpu/drm/i915/intel_dp.c |1 + drivers/gpu/drm/i915/intel_drv.h |8 drivers/gpu/drm/i915/intel_fb.c |9 + drivers/gpu/drm/i915/intel_lvds.c

[Intel-gfx] More fastboot bits

2013-02-19 Thread Jesse Barnes
This one adds some extra checks on top of Chris's last set: - check for panel fit modes when inheriting from the BIOS - update pfit state at pipe_set_base time It also changes the mode set vs flip checking to include the non-fb case (e.g. if the BIOS fb was too small for the native mode), sinc

[Intel-gfx] [PATCH 04/13] drm: add initial_config function to fb helper

2013-02-19 Thread Jesse Barnes
Rather than building a config which may or may not work, let the driver build an initial fb config. This allows the driver to use the BIOS boot configuration for example, displaying kernel messages and the initial fb console on the same outputs the BIOS lit up at boot time. If that fails, the dri

[Intel-gfx] [PATCH 02/13] drm/i915: Introduce i915_gem_object_create_stolen_for_preallocated

2013-02-19 Thread Jesse Barnes
From: Chris Wilson Wrap a preallocated region of stolen memory within an ordinary GEM object, for example the BIOS framebuffer. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h|5 +++ drivers/gpu/drm/i915/i915_gem_stolen.c | 65 2 f

Re: [Intel-gfx] VT switchless suspend/resume

2013-02-19 Thread Paulo Zanoni
2013/2/19 Jesse Barnes : > Updated with the fix from Ville. Very briefly tested on SNB (LVDS) and HSW (eDP + DP). Suspend-to-ram + resume still work. > > ___ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailm

Re: [Intel-gfx] [PATCH 6/6] drm/i915: remove disabled memset of framebuffer from intel_fb

2013-02-19 Thread Paulo Zanoni
Hi 2013/2/19 Jesse Barnes : > Commented out and unneeded. Oh, "DRM: i915: add mode setting support" added it, already commented. > > Signed-off-by: Jesse Barnes Reviewed-by: Paulo Zanoni > --- > drivers/gpu/drm/i915/intel_fb.c |2 -- > 1 file changed, 2 deletions(-) > > diff --git a/dri

[Intel-gfx] [PATCH v2] drm/i915: Refactor gen2 to gen4 vblank interrupt handling

2013-02-19 Thread ville . syrjala
From: Ville Syrjälä The indentation is getting way too deep. Pull the vblank interupt handling out to separate functions. v2: Keep flip_mask handling in the main irq handler and flatten {i8xx,i915}_handle_vblank() even further. Signed-off-by: Ville Syrjälä --- v1 here http://paste.debian.n

Re: [Intel-gfx] [PATCH 1/6] drm/i915: don't restore LVDS enable state blindly v2

2013-02-19 Thread Paulo Zanoni
Hi 2013/2/19 Jesse Barnes : > We still rely on a few LVDS bits, but restoring the enable bit can cause > trouble at this point, so don't. > > v2: use the right mask to prevent restore (Daniel) > conditionalize on KMS support (Denial) > > Signed-off-by: Jesse Barnes Reviewed-by: Paulo Zanoni

[Intel-gfx] VT switchless suspend/resume

2013-02-19 Thread Jesse Barnes
Updated with the fix from Ville. ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH 6/6] drm/i915: remove disabled memset of framebuffer from intel_fb

2013-02-19 Thread Jesse Barnes
Commented out and unneeded. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fb.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index 987bc33..f4e0b88 100644 --- a/drivers/gpu/drm/i915/intel_fb.c +++ b/drivers/

[Intel-gfx] [PATCH 4/6] drm/i915: enable VT switchless resume v2

2013-02-19 Thread Jesse Barnes
With the other bits in place, we can do this safely. v2: disable backlight on suspend to prevent premature enablement on resume Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 12 +--- drivers/gpu/drm/i915/intel_fb.c |3 +++ 2 files changed, 12 insertions(+), 3 d

[Intel-gfx] [PATCH 3/6] drm/i915: restore cursor and sprite state when forcing a config restore

2013-02-19 Thread Jesse Barnes
Needed for VT switchless resume. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 3e6dadf..2bf076e 100644 -

[Intel-gfx] [PATCH 5/6] drm/i915: emit a hotplug event on resume

2013-02-19 Thread Jesse Barnes
This will poke userspace into probing for configuration changes that may have occurred across suspend/resume. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/

[Intel-gfx] [PATCH 1/6] drm/i915: don't restore LVDS enable state blindly v2

2013-02-19 Thread Jesse Barnes
We still rely on a few LVDS bits, but restoring the enable bit can cause trouble at this point, so don't. v2: use the right mask to prevent restore (Daniel) conditionalize on KMS support (Denial) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_suspend.c |8 ++-- 1 file cha

[Intel-gfx] [PATCH 2/6] drm/i915: add sprite restore function v3

2013-02-19 Thread Jesse Barnes
To be used to restore sprite state on resume. v2: move sprite tracking bits up so we don't track modified sprite state v3: use src_x/y in sprite suspend/resume code (Ville) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_drv.h|5 + drivers/gpu/drm/i915/intel_sprite.c |

Re: [Intel-gfx] [PATCH 3/7] drm/i915: clear the FPGA_DBG_RM_NOCLAIM bit at driver init

2013-02-19 Thread Daniel Vetter
On Tue, Feb 19, 2013 at 04:13:35PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > Otherwise, if the BIOS did anything wrong, our first I915_{WRITE,READ} > will give us "unclaimed register" messages. > > V2: Even earlier. > V3: Move it to intel_early_sanitize_regs. > > Bugzilla: http://bug

[Intel-gfx] [PATCH 11/8] drm/i915: rename some HDMI bit definitions

2013-02-19 Thread Paulo Zanoni
From: Paulo Zanoni Bits used only on HDMI mode now have HDMI_ prefix instead of SDVO_. The COLOR_FORMAT bits now have prefixes (and the 12bpc bit is for HDMI only). Notice that this patch uncovers a bug on the SDVO code: the COLOR_RANGE_16_235 bit can only be used if the port is in TMDS mode, no

[Intel-gfx] [PATCH 10/8] drm/i915: remove duplicated SDVO/HDMI bit definitions

2013-02-19 Thread Paulo Zanoni
From: Paulo Zanoni Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 17 ++--- drivers/gpu/drm/i915/intel_display.c | 18 +- drivers/gpu/drm/i915/intel_hdmi.c| 23 +-- drivers/gpu/drm/i915/intel_sdvo.c| 16

[Intel-gfx] [PATCH 9/8] drm/i915: unify the definitions of the HDMI/SDVO register

2013-02-19 Thread Paulo Zanoni
From: Paulo Zanoni Since they're all the same register, leave all the #defines at the same place, organized by Gen and also specify which bits are used by only a specific port or encoding. Also remove a few unused duplicates and adjust indentation. Signed-off-by: Paulo Zanoni --- drivers/gpu/

Re: [Intel-gfx] [PATCH 8/8] drm/i915: clarify confusion between SDVO and HDMI registers

2013-02-19 Thread Paulo Zanoni
Hi 2013/2/19 Daniel Vetter : > On Mon, Feb 18, 2013 at 07:00:27PM -0300, Paulo Zanoni wrote: >> From: Paulo Zanoni >> >> Some HDMI registers can be used for SDVO, so saying "HDMIB" should be >> the same as saying "SDVOB" for a given HW generation. This was not >> true and led to confusions and ev

Re: [Intel-gfx] [PATCH v3 1/2] drm/i915: Eliminate race from gen2/3 page flip interrupt handling

2013-02-19 Thread Daniel Vetter
On Tue, Feb 19, 2013 at 03:16:38PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > If the interrupt handler were to process a previous vblank interrupt and > the following flip pending interrupt at the same time, the page flip > would be completed too soon. > > To eliminate

[Intel-gfx] [PATCH 3/7] drm/i915: clear the FPGA_DBG_RM_NOCLAIM bit at driver init

2013-02-19 Thread Paulo Zanoni
From: Paulo Zanoni Otherwise, if the BIOS did anything wrong, our first I915_{WRITE,READ} will give us "unclaimed register" messages. V2: Even earlier. V3: Move it to intel_early_sanitize_regs. Bugzilla: http://bugs.freedesktop.org/show_bug.cgi?id=58897 Signed-off-by: Paulo Zanoni --- driver

Re: [Intel-gfx] [PATCH 2/6] drm/i915: add sprite restore function v2

2013-02-19 Thread Jesse Barnes
On Mon, 18 Feb 2013 19:19:55 +0200 Ville Syrjälä wrote: > On Fri, Feb 15, 2013 at 01:23:10PM -0800, Jesse Barnes wrote: > > To be used to restore sprite state on resume. > > > > v2: move sprite tracking bits up so we don't track modified sprite state > > > > Signed-off-by: Jesse Barnes > > ---

Re: [Intel-gfx] VT switchless v3

2013-02-19 Thread Jesse Barnes
On Mon, 18 Feb 2013 19:58:26 -0500 Kristian Høgsberg wrote: > On Mon, Feb 18, 2013 at 10:03 AM, Daniel Vetter wrote: > > On Fri, Feb 15, 2013 at 01:23:08PM -0800, Jesse Barnes wrote: > >> A few more fixes from Daniel. > > > > So one thing that crossed my mind which we should at least quickly > >

Re: [Intel-gfx] VT switchless v3

2013-02-19 Thread Jesse Barnes
On Mon, 18 Feb 2013 16:03:20 +0100 Daniel Vetter wrote: > On Fri, Feb 15, 2013 at 01:23:08PM -0800, Jesse Barnes wrote: > > A few more fixes from Daniel. > > So one thing that crossed my mind which we should at least quickly > discuss: How is userspace supposed to notice the resume? On a lot of

Re: [Intel-gfx] Blog regarding i915 changes in kernel 3.9

2013-02-19 Thread William Brown
On Tue, 2013-02-19 at 11:35 +0100, Daniel Vetter wrote: > On Tue, Feb 19, 2013 at 7:29 AM, William Brown > wrote: > > I recently read your blog article at : > > http://blog.ffwll.ch/2013/02/neat-drmi915-stuff-for-39.html > > > > If you don't mind I have two questions regarding these changes. > >

Re: [Intel-gfx] [PATCH] drm: Don't set the plane->fb to NULL on successfull set_plane

2013-02-19 Thread Thierry Reding
On Fri, Feb 15, 2013 at 09:21:37PM +0100, Daniel Vetter wrote: > We need to clear the local variable to get the refcounting right > (since the reference drm_mode_setplane holds is transferred to the > plane->fb pointer). But should be done _after_ we update the pointer. > > Breakage introduced in

Re: [Intel-gfx] [PATCH] drm/i915: Revert hdmp HDP pin checks

2013-02-19 Thread Daniel Vetter
On Tue, Feb 19, 2013 at 1:49 PM, Chris Wilson wrote: > On Tue, Feb 19, 2013 at 01:30:40PM +0100, Daniel Vetter wrote: >> They reliably cause HDMI to not be detected on some systems (like my >> ivb or the bug reporters gm45). To fix up the very slow unplug issues >> we might want to fire up a 2nd d

[Intel-gfx] [PATCH v2 2/2] drm/i915: Fix races in gen4 page flip interrupt handling

2013-02-19 Thread ville . syrjala
From: Ville Syrjälä Use the gen3 logic for handling page flip interrupts on gen4. Unfortuantely this kills the stall_check since that looks like it can easily trigger too early. With the current logic the stall check would kick in on the first vblank after the flip has been submitted to the ring

[Intel-gfx] [PATCH v3 1/2] drm/i915: Eliminate race from gen2/3 page flip interrupt handling

2013-02-19 Thread ville . syrjala
From: Ville Syrjälä If the interrupt handler were to process a previous vblank interrupt and the following flip pending interrupt at the same time, the page flip would be completed too soon. To eliminate this race, check the live pending flip status from the ISR register before finishing the pag

[Intel-gfx] [PATCH 0/2] drm/i915: gen2-4 page flip fixes

2013-02-19 Thread ville . syrjala
These should hopefully fix up the races in gen2-4 page flip support. Kudos to Chris for fixing up my mistakes in the gen4 patch, and for providing a nice comment to explain the logic. Disclaimer: I don't have hardware to test any of this. Currently it has only been tested by Chris. __

Re: [Intel-gfx] [PATCH i-g-t 2/2] intel_chipset: Add multiple inclusion guards into intel_chipset.h

2013-02-19 Thread Daniel Vetter
On Mon, Feb 18, 2013 at 09:41:10PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Signed-off-by: Ville Syrjälä Applied the two i-g-t patches. -Daniel > --- > lib/intel_chipset.h | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/lib/intel_chipset.h b/lib/inte

Re: [Intel-gfx] [PATCH] drm/i915: Revert hdmp HDP pin checks

2013-02-19 Thread Chris Wilson
On Tue, Feb 19, 2013 at 01:30:40PM +0100, Daniel Vetter wrote: > They reliably cause HDMI to not be detected on some systems (like my > ivb or the bug reporters gm45). To fix up the very slow unplug issues > we might want to fire up a 2nd detect cycle a few hundred ms after > each hotplug. But for

[Intel-gfx] [PATCH] drm/i915: Revert hdmp HDP pin checks

2013-02-19 Thread Daniel Vetter
This reverts commit 8ec22b214d76773c9d89f4040505ce10f677ed9a Author: Chris Wilson Date: Fri May 11 18:01:34 2012 +0100 drm/i915/hdmi: Query the live connector status bit for G4x and commit b0ea7d37a8f63eeec5ae80b4a6403cfba01da02f Author: Damien Lespiau Date: Thu Dec 13 16:09:00 2012 +

Re: [Intel-gfx] [PATCH 8/8] drm/i915: clarify confusion between SDVO and HDMI registers

2013-02-19 Thread Daniel Vetter
On Mon, Feb 18, 2013 at 07:00:27PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > Some HDMI registers can be used for SDVO, so saying "HDMIB" should be > the same as saying "SDVOB" for a given HW generation. This was not > true and led to confusions and even a regression. > > Previously we

Re: [Intel-gfx] [PATCH 7/8] drm/i915: rename sdvox_reg to hdmi_reg on HDMI context

2013-02-19 Thread Daniel Vetter
On Mon, Feb 18, 2013 at 07:00:26PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > Some (but not all) of the HDMI registers can be used to control sDVO, > so those registers have two names. IMHO, when we're talking about > HDMI, we really should call the HDMI control register "hdmi_reg" > ins

Re: [Intel-gfx] [PATCH] drm/i915: remove obsolete obj assignment in page flip

2013-02-19 Thread Daniel Vetter
On Tue, Feb 19, 2013 at 12:50:09PM +0200, Mika Kuoppala wrote: > Signed-off-by: Mika Kuoppala Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch ___ Intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: add \n to the end of sysfs attributes

2013-02-19 Thread Daniel Vetter
On Tue, Feb 19, 2013 at 12:33:14PM +0200, Jani Nikula wrote: > On Thu, 14 Feb 2013, Ben Widawsky wrote: > > On Thu, Feb 14, 2013 at 10:42:11AM +0200, Jani Nikula wrote: > >> It is customary to end sysfs attributes with a newline. > >> > > > > As best I can tell, you are correct. Have you tested p

[Intel-gfx] [PATCH] drm/i915: remove obsolete obj assignment in page flip

2013-02-19 Thread Mika Kuoppala
Signed-off-by: Mika Kuoppala --- drivers/gpu/drm/i915/intel_display.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 6eb3882..2b9ea56 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/dr

Re: [Intel-gfx] [RFC][PATCH] drm/i915: Fix races in gen4 page flip interrupt handling

2013-02-19 Thread Chris Wilson
Also, References: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1116587 -Chris -- Chris Wilson, Intel Open Source Technology Centre ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailm

Re: [Intel-gfx] [RFC][PATCH] drm/i915: Fix races in gen4 page flip interrupt handling

2013-02-19 Thread Chris Wilson
On Mon, Feb 18, 2013 at 05:16:06PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Use the gen3 logic for handling page flip interrupts on gen4. We're just missing the other piece of the puzzle: =0 cantiga:~/git/linux (master)$ git diff | cat diff --git a/drivers/gpu/drm/i

Re: [Intel-gfx] Blog regarding i915 changes in kernel 3.9

2013-02-19 Thread Daniel Vetter
On Tue, Feb 19, 2013 at 7:29 AM, William Brown wrote: > I recently read your blog article at : > http://blog.ffwll.ch/2013/02/neat-drmi915-stuff-for-39.html > > If you don't mind I have two questions regarding these changes. > > Do any of these fixes correct the black screen on dual gpu laptops wh

Re: [Intel-gfx] [PATCH] drm/i915: add \n to the end of sysfs attributes

2013-02-19 Thread Jani Nikula
On Thu, 14 Feb 2013, Ben Widawsky wrote: > On Thu, Feb 14, 2013 at 10:42:11AM +0200, Jani Nikula wrote: >> It is customary to end sysfs attributes with a newline. >> > > As best I can tell, you are correct. Have you tested powertop with this > change? If not, can you? Good point. Tested, and eye

Re: [Intel-gfx] [PATCH 0/2] drm/i915: Page flip vs. GPU reset fixes

2013-02-19 Thread Daniel Vetter
On Tue, Feb 19, 2013 at 09:07:21AM +, Chris Wilson wrote: > On Mon, Feb 18, 2013 at 07:08:47PM +0200, ville.syrj...@linux.intel.com wrote: > > Here are the (hopefully) final versions of the page flip vs. GPU reset > > fixes. > > > > They survive the i-g-t kms_flip flip-vs-modeset-vs-hang and

Re: [Intel-gfx] linux-next: build failure after merge of the drm-intel tree

2013-02-19 Thread Daniel Vetter
On Tue, Feb 19, 2013 at 3:01 AM, Stephen Rothwell wrote: > On Fri, 15 Feb 2013 08:16:26 -0800 Jesse Barnes > wrote: >> >> On Fri, 15 Feb 2013 10:30:16 +0100 >> Daniel Vetter wrote: >> >> > On Fri, Feb 15, 2013 at 3:37 AM, Stephen Rothwell >> > wrote: >> > > >> > > After merging the drm-intel

Re: [Intel-gfx] [PATCH v2] drm/i915: clarify logging about reasons for disabling FBC

2013-02-19 Thread Jani Nikula
On Tue, 19 Feb 2013, Chris Wilson wrote: > On Tue, Feb 19, 2013 at 09:18:20AM +0200, Jani Nikula wrote: >> Previously FBC disabling due to per-chip default was logged as being >> disabled per module parameter. Distinguish between the two. >> >> v2: Don't even squawk in the debug log if FBC is exp

Re: [Intel-gfx] [PATCH 3/8] drm/i915: clear the FPGA_DBG_RM_NOCLAIM bit at driver init

2013-02-19 Thread Chris Wilson
On Mon, Feb 18, 2013 at 07:00:22PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > Otherwise, if the BIOS did anything wrong, our first I915_{WRITE,READ} > will give us "unclaimed register" messages. > > V2: Even earlier. Call it intel_early_sanitize_regs() as it seems like a function that

Re: [Intel-gfx] [PATCH] drm/i915: Vanish some unused 3d commands

2013-02-19 Thread Chris Wilson
On Mon, Feb 18, 2013 at 09:18:31PM -0800, Ben Widawsky wrote: > i915_reg.h is messy enough without the extra stuff. > > Signed-off-by: Ben Widawsky Would be nice if we could just discard the rest. Since we can't (damn you GEM/DRI1) can we just move them to i915_cmd.h? I would also keep the BLT

Re: [Intel-gfx] [PATCH v2] drm/i915: clarify logging about reasons for disabling FBC

2013-02-19 Thread Chris Wilson
On Tue, Feb 19, 2013 at 09:18:20AM +0200, Jani Nikula wrote: > Previously FBC disabling due to per-chip default was logged as being > disabled per module parameter. Distinguish between the two. > > v2: Don't even squawk in the debug log if FBC is explicitly disabled (Chris > Wilson). I'm still no

Re: [Intel-gfx] [PATCH 0/2] drm/i915: Page flip vs. GPU reset fixes

2013-02-19 Thread Chris Wilson
On Mon, Feb 18, 2013 at 07:08:47PM +0200, ville.syrj...@linux.intel.com wrote: > Here are the (hopefully) final versions of the page flip vs. GPU reset fixes. > > They survive the i-g-t kms_flip flip-vs-modeset-vs-hang and > flip-vs-panning-vs-hang tests, as well as stopping the rings while a > fu