Re: [Intel-gfx] [PATCH 08/12] drm/i915: Update context_fini

2013-04-24 Thread Ben Widawsky
On Wed, Apr 24, 2013 at 09:11:02PM -0700, Ben Widawsky wrote: > On Wed, Apr 24, 2013 at 06:11:40PM +0300, Mika Kuoppala wrote: > > Ben Widawsky writes: > > > > > Make resets optional for fini. fini is only ever called in > > > module_unload. It was therefore a good assumption that the GPU reset >

Re: [Intel-gfx] [PATCH 08/12] drm/i915: Update context_fini

2013-04-24 Thread Ben Widawsky
On Wed, Apr 24, 2013 at 06:11:40PM +0300, Mika Kuoppala wrote: > Ben Widawsky writes: > > > Make resets optional for fini. fini is only ever called in > > module_unload. It was therefore a good assumption that the GPU reset > > (see the comment in the function) was what we wanted. With an upcomin

Re: [Intel-gfx] [PATCH] drm/i915: Add private api for power well usage

2013-04-24 Thread Wang, Xingchao
Hi Daniel/Paulo, Any comments on this? Add Jesse and Rafael in loop. thanks --xingchao > -Original Message- > From: Wang, Xingchao > Sent: Wednesday, April 24, 2013 3:29 PM > To: daniel.vet...@ffwll.ch; Zanoni, Paulo R; 'Takashi Iwai' > Cc: ville.syrj...@linux.intel.com; Lin, Mengdong;

Re: [Intel-gfx] [PATCH 3/8] tests: storedw on VEBOX

2013-04-24 Thread Ben Widawsky
On Tue, Apr 23, 2013 at 03:06:43PM +0800, Zhong Li wrote: > From: "Xiang, Haihao" > > Signed-off-by: Xiang, Haihao > Signed-off-by: Zhong Li I've pushed up to here. With a couple of corrections to gem_ring_sync_loop: test the new ring: diff --git a/tests/gem_ring_sync_loop.c b/tests/gem_rin

Re: [Intel-gfx] [PATCH v3 00/16] arb robustness enablers v3

2013-04-24 Thread Ben Widawsky
On Thu, Apr 04, 2013 at 06:32:32PM +0300, Mika Kuoppala wrote: > Hi, > > I have addressed all the feedback I got from v2 series. > > Most notably the interface has changed. > > Now those users who don't care about the exact counts can use batch_pending > and batch_active like they would be flags

Re: [Intel-gfx] [PATCH 00/12] [RFC] PPGTT prep patches part 1

2013-04-24 Thread Chris Wilson
On Tue, Apr 23, 2013 at 11:15:28PM -0700, Ben Widawsky wrote: > I haven't run performance numbers on this series specifically, but I did > run performance numbers on the slightly more invasive patches which come > after (through step 1 above) > > x11perf -aa10text > before: 1925000/s > after: 194

Re: [Intel-gfx] [PATCH v2 3/3] drm/i915: drop code duplication in favor of asle interrupt handler

2013-04-24 Thread Jani Nikula
This was supposed to be in-reply-to [1] but I screwed up. Jani. [1] http://mid.gmane.org/20130424182351.gb3...@strange.amr.corp.intel.com On Wed, 24 Apr 2013, Jani Nikula wrote: > With the previous work asle and gse interrupt handlers should now be > functionally the same. Drop the duplicated

[Intel-gfx] [PATCH v2 3/3] drm/i915: drop code duplication in favor of asle interrupt handler

2013-04-24 Thread Jani Nikula
With the previous work asle and gse interrupt handlers should now be functionally the same. Drop the duplicated code. v2: Drop intel_opregion_gse_intr() also in the !CONFIG_ACPI path. (Damien) Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h |2 -- drivers/gpu/drm/i915/i

Re: [Intel-gfx] [PATCH 0/3] drm/i915: opregion cleanup

2013-04-24 Thread Damien Lespiau
On Fri, Apr 12, 2013 at 03:20:55PM +0300, Jani Nikula wrote: > There's still stuff to do on opregion cleanup, but here are some potentially > risky and/or controversial ones... With the small fix on patch 3, the whole series is: Reviewed-by: Damien Lespiau This should trigger different code pat

Re: [Intel-gfx] [PATCH 3/3] drm/i915: drop code duplication in favor of asle interrupt handler

2013-04-24 Thread Damien Lespiau
On Fri, Apr 12, 2013 at 03:20:58PM +0300, Jani Nikula wrote: > With the previous work asle and gse interrupt handlers should now be > functionally the same. Drop the duplicated code. > > Signed-off-by: Jani Nikula > --- > drivers/gpu/drm/i915/i915_drv.h |1 - > drivers/gpu/drm/i915/i91

[Intel-gfx] [PATCH v2] drm/i915: Re-enable FBC WM if the watermark is good on gen6+

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä If the calculated FBC watermark is no good, we simply disable FBC watermarks. But we fail to re-enable them later if the calculated watermark becomes good again. Fix that, but remember to leave FBC watermarks disabled on ILK since that's required by some workarounds. v2: Fix

[Intel-gfx] [PATCH] drm/i915: Re-enable FBC WM if the watermark is good on gen6+

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä If the calculated FBC watermark is no good, we simply disable FBC watermarks. But we fail to re-enable them later if the calculated watermark becomes good again. Fix that, but remember to leave FBC watermarks disabled on ILK since that's required by some workarounds. Signed-o

Re: [Intel-gfx] [PATCH 6/6] drm/i915: HSW FBC WaFbcDisableDpfcClockGating

2013-04-24 Thread Ville Syrjälä
On Tue, Apr 23, 2013 at 02:52:21PM -0300, Rodrigo Vivi wrote: > Display register 46500h bit 23 must be set to 1b for the entire time that > Frame Buffer Compression is enabled. > > v2: Ville suggested to enable it back when disabling fbc to avoid wasting > power. > > Cc: Ville Syrjälä > Sign

Re: [Intel-gfx] [PATCH 5/6] drm/i915: HSW FBC WaFbcAsynchFlipDisableFbcQueue

2013-04-24 Thread Ville Syrjälä
On Tue, Apr 23, 2013 at 02:52:20PM -0300, Rodrigo Vivi wrote: > Display register 420B0h bit 22 must be set to 1b for the entire time that > Frame Buffer Compression is enabled. > > Signed-off-by: Rodrigo Vivi Reviewed-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/i915_reg.h | 7 +++ > dr

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Enable FBC at Haswell.

2013-04-24 Thread Ville Syrjälä
On Tue, Apr 23, 2013 at 02:52:19PM -0300, Rodrigo Vivi wrote: > This patch introduce Frame Buffer Compression (FBC) support for HSW. > FBC is tied to primary plane A in HSW. The docs say FBC must be disabled before disabling the plane on HSW. We're doing these steps in the opposite order on ILK+.

Re: [Intel-gfx] [PATCH 3/6] drm/i915: IVB FBC WaFbcDisableDpfcClockGating

2013-04-24 Thread Ville Syrjälä
On Tue, Apr 23, 2013 at 02:52:18PM -0300, Rodrigo Vivi wrote: > Display register 42020h bit 9 must be set to 1b for the entire time that > Frame Buffer Compression is enabled. > > Signed-off-by: Rodrigo Vivi > --- > drivers/gpu/drm/i915/intel_pm.c | 8 > 1 file changed, 8 insertions(+)

Re: [Intel-gfx] [PATCH] drm/i915: Remove unused power well register definitions

2013-04-24 Thread Daniel Vetter
On Mon, Apr 22, 2013 at 02:39:59PM +0100, Damien Lespiau wrote: > Those registers are not used, let's not keep them around for no reason. > > Signed-off-by: Damien Lespiau Generally if they're not wrong I don't mind some auxialiary register #defines hanging about. So I'll punt on this one here.

Re: [Intel-gfx] [PATCH 2/6] drm/i915: IVB FBC WaFbcAsynchFlipDisableFbcQueue

2013-04-24 Thread Ville Syrjälä
On Tue, Apr 23, 2013 at 02:52:17PM -0300, Rodrigo Vivi wrote: > Display register 42000h bit 22 must be set to 1b for the entire time that > Frame Buffer Compression is enabled. > > Signed-off-by: Rodrigo Vivi Reviewed-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_pm.c | 2 ++ > 1 file

Re: [Intel-gfx] [PATCH 1/2] drm/i915: factor out GMCH panel fitting code and use for eDP v2

2013-04-24 Thread Daniel Vetter
On Wed, Apr 24, 2013 at 08:29:21AM -0700, Jesse Barnes wrote: > On Wed, 24 Apr 2013 18:05:54 +0300 > Mika Kuoppala wrote: > > > This is different than it was in lvds_compute_config. If we get called > > with DRM_MODE_SCALE_NONE we go to fullscreen instead. > > Is this intentional? > > Yeah, figu

Re: [Intel-gfx] [PATCH] drm/i915: Add support for FBC on Ivybridge.

2013-04-24 Thread Ville Syrjälä
On Tue, Apr 23, 2013 at 05:55:04PM -0300, Rodrigo Vivi wrote: > This patch introduce Frame Buffer Compression (FBC) support for IVB, > without enabling it by default. > It adds a new function gen7_enable_fbc to avoid getting > ironlake_enable_fbc messed with many IS_IVYBRIDGE checks. > > v2: Fixes

Re: [Intel-gfx] [PATCH 09/12] drm/i915: Split context enabling from init

2013-04-24 Thread Ben Widawsky
On Wed, Apr 24, 2013 at 11:04:40AM +0100, Chris Wilson wrote: > On Tue, Apr 23, 2013 at 11:15:37PM -0700, Ben Widawsky wrote: > > - i915_gem_context_init(dev); > > + if (!dev_priv->hw_contexts_disabled && > > + i915_gem_context_enable(dev_priv)) { > > Move the hw_contexts_disabled test i

Re: [Intel-gfx] [PATCH 12/12] drm/i915: No contexts without ppgtt

2013-04-24 Thread Ben Widawsky
On Wed, Apr 24, 2013 at 11:06:12AM +0100, Chris Wilson wrote: > On Tue, Apr 23, 2013 at 11:15:40PM -0700, Ben Widawsky wrote: > > Going forward, every context will have its own address space. So rip off > > the band aid now. If contexts fail, don't do ppgtt, and vice versa. > > > > Similarly to th

[Intel-gfx] [PATCH 4/4] drm/edid: Check both 60Hz and 59.94Hz when looking for a CEA mode

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä drm_match_cea_mode() should be able to match both the 60Hz version, and the 59.94Hz version of modes. We only store one pixel clock value per mode in edid_cea_modes, so the other value must be calculated. Depending on the mode, edid_cea_modes contains the pixel clock for eith

[Intel-gfx] [PATCH 3/4] drm/edid: Populate vrefresh for CEA modes

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä Well have use for the vrefresh information of CEA modes later. Just populate the information into the table to avoid having to calculate it. I'm too lazy to check if someone relies on newly allocated CEA modes having 0 vrefresh, so just clear vrefresh back to 0 when adding th

[Intel-gfx] [PATCH 0/4] drm/edid: Recognize 60Hz and 59.94Hz CEA modes v2

2013-04-24 Thread ville . syrjala
The same old CEA mode 60 Hz vs. 59.94 Hz handling series. While reviewing v1, Paulo noticed a missing EXPORT_SYMBOL(), which is now fixed. Everything else is unchanged. From my POV this is ready to go in. The only real questions is whether or not we want to populate the connector's mode list with

[Intel-gfx] [PATCH v2 2/4] drm: Add drm_mode_equal_no_clocks()

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä drm_mode_equal_no_clocks() is like drm_mode_equal() except it doesn't compare the clock or vrefresh values. drm_mode_equal() is now implemented by first doing the clock checks, and then calling drm_mode_equal_no_clocks(). v2: Add missing EXPORT_SYMBOL() Reviewed-by: Paulo Za

[Intel-gfx] [PATCH 1/4] drm: Remove explicit vrefresh initialization from DRM_MODE()

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä No need to zero initialize .vrefresh in DRM_MODE() since it's using desgignated initializers. This will also avoid some duplicate initialization warnings later. Reviewed-by: Paulo Zanoni Signed-off-by: Ville Syrjälä --- include/drm/drm_crtc.h | 2 +- 1 file changed, 1 ins

[Intel-gfx] [PATCH 0/6] drm: drm_rect and clipping for intel sprite planes v2

2013-04-24 Thread ville . syrjala
Here's the latest version of my plane clipping stuff. I think it should be ready for merging. Laurent reviewed the first patch, and Chris reviewed the whole set. I didn't hear any bikeshedding about the location of the drm_rect stuff from anyone, so I'm assuming it's all good. Ville Syrjälä (6):

[Intel-gfx] [PATCH v2 6/6] drm/i915: Relax the sprite scaling limits checks

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä Reduce the size of the the src/dst viewport to keep the scalign ratios in check. v2: Below min size sprite handling squashed to previous patch Reviewed-by: Chris Wilson Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_sprite.c | 48 +

[Intel-gfx] [PATCH v3 3/6] drm: Add drm_rect_debug_print()

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä Add a debug function to print the rectangle in a human readable format. v2: Renamed drm_region to drm_rect, the function from drm_region_debug to drm_rect_debug_print(), and use %+d instead of +%d in the format. v3: Use %d format for width/height in the non fixed point ca

[Intel-gfx] [PATCH 4/6] drm: Add drm_rect_equals()

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä drm_rect_equals() tells whether two drm_rects are equal. Reviewed-by: Chris Wilson Signed-off-by: Ville Syrjälä --- include/drm/drm_rect.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/drm/drm_rect.h b/include/drm/drm_rect.h index fe767b7..64

[Intel-gfx] [PATCH v4 2/6] drm: Add drm_rect_calc_{hscale, vscale}() utility functions

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä These functions calculate the scaling factor based on the source and destination rectangles. There are two version of the functions, the strict ones that will return an error if the min/max scaling factor is exceeded, and the relaxed versions that will adjust the src/dst rect

[Intel-gfx] [PATCH v6 5/6] drm/i915: Implement proper clipping for video sprites

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä Properly clip the source when the destination gets clipped by the pipe dimensions. Sadly the video sprite hardware is rather limited so it can't do proper sub-pixel postitioning. Resort to truncating the source coordinates to (macro)pixel boundary. The scaling checks are don

[Intel-gfx] [PATCH v5 1/6] drm: Add struct drm_rect and assorted utility functions

2013-04-24 Thread ville . syrjala
From: Ville Syrjälä struct drm_rect represents a simple rectangle. The utility functions are there to help driver writers. v2: Moved the region stuff into its own file, made the smaller funcs static inline, used 64bit maths in the scaled clipping function to avoid overflows (instead it w

Re: [Intel-gfx] [PATCH 1/2] drm/i915: factor out GMCH panel fitting code and use for eDP v2

2013-04-24 Thread Jesse Barnes
On Wed, 24 Apr 2013 18:05:54 +0300 Mika Kuoppala wrote: > This is different than it was in lvds_compute_config. If we get called > with DRM_MODE_SCALE_NONE we go to fullscreen instead. > Is this intentional? Yeah, figured I'd make it identical to the eDP case. But we could change that one inste

Re: [Intel-gfx] [PATCH 08/12] drm/i915: Update context_fini

2013-04-24 Thread Mika Kuoppala
Ben Widawsky writes: > Make resets optional for fini. fini is only ever called in > module_unload. It was therefore a good assumption that the GPU reset > (see the comment in the function) was what we wanted. With an upcoming > patch, we're going to add a few more callsites, one of which is GPU >

Re: [Intel-gfx] [PATCH 1/2] drm/i915: factor out GMCH panel fitting code and use for eDP v2

2013-04-24 Thread Mika Kuoppala
Jesse Barnes writes: > This gets the panel fitter working on eDP on VLV, and should also apply > to eDP panels on G4x chipsets (if we ever detect and mark an all-in-one > panel as eDP anyway). > > A few cleanups are still possible on top of this, for example the LVDS > border control could be pla

Re: [Intel-gfx] [PATCH] drm/i915: simplify DP/DDI port width macros

2013-04-24 Thread Daniel Vetter
On Wed, Apr 24, 2013 at 02:52:52PM +0100, Chris Wilson wrote: > On Wed, Apr 24, 2013 at 03:46:04PM +0200, Daniel Vetter wrote: > > If we ever leak a non-DP compliant port width through here, we have a > > pretty serious issue. So just rip out all these WARNs - if we need > > them it's probably bett

Re: [Intel-gfx] [PATCH] drm/i915: simplify DP/DDI port width macros

2013-04-24 Thread Chris Wilson
On Wed, Apr 24, 2013 at 03:46:04PM +0200, Daniel Vetter wrote: > If we ever leak a non-DP compliant port width through here, we have a > pretty serious issue. So just rip out all these WARNs - if we need > them it's probably better to have them at a central place where we > compute the dp lane coun

[Intel-gfx] [PATCH] drm/i915: simplify DP/DDI port width macros

2013-04-24 Thread Daniel Vetter
If we ever leak a non-DP compliant port width through here, we have a pretty serious issue. So just rip out all these WARNs - if we need them it's probably better to have them at a central place where we compute the dp lane count. Also use the new DDI width macro for FDI mode. Cc: Paulo Zanoni S

[Intel-gfx] [PATCH] drm/i915: hw state readout support for pipe_config->fdi_lanes

2013-04-24 Thread Daniel Vetter
v2: Introduce some nice #defines for the FDI lane width fields and put them to good use. Suggested by Ville. Cc: Ville Syrjälä Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_reg.h | 11 +++ drivers/gpu/drm/i915/intel_ddi.c | 2 +- drivers/gpu/drm/i915/intel_display

Re: [Intel-gfx] [PATCH] drm/i915: implement high-bpc + pipeconf-dither support for g4x/vlv

2013-04-24 Thread Ville Syrjälä
On Wed, Apr 24, 2013 at 02:57:17PM +0200, Daniel Vetter wrote: > The current code is rather ... ugly. The only thing it managed to pull > off is getting 6bpc on DP working on g4x. Then someone added another > custom hack for 6bpc eDP on vlv. Fix up this entire mess by properly > implementing the PI

[Intel-gfx] [PATCH] drm/i915: implement high-bpc + pipeconf-dither support for g4x/vlv

2013-04-24 Thread Daniel Vetter
The current code is rather ... ugly. The only thing it managed to pull off is getting 6bpc on DP working on g4x. Then someone added another custom hack for 6bpc eDP on vlv. Fix up this entire mess by properly implementing the PIPECONF-based dither/bpc controls on g4x/vlv. Note that compared to pch

Re: [Intel-gfx] [PATCH 07/15] drm/i915: Fixup non-24bpp support for VGA screens on Haswell

2013-04-24 Thread Daniel Vetter
On Wed, Apr 24, 2013 at 02:12:55PM +0300, Ville Syrjälä wrote: > On Fri, Apr 19, 2013 at 11:24:39AM +0200, Daniel Vetter wrote: > > The LPT PCH only supports 8bpc, so we need to force the pipe bpp > > to the right value. > > > > Signed-off-by: Daniel Vetter > > Reviewed-by: Ville Syrjälä Queue

Re: [Intel-gfx] [PATCH 09/15] drm/i915: hw state readout support for pipe_config->fdi_lanes

2013-04-24 Thread Daniel Vetter
On Wed, Apr 24, 2013 at 02:23:20PM +0300, Ville Syrjälä wrote: > On Fri, Apr 19, 2013 at 11:24:41AM +0200, Daniel Vetter wrote: > > Signed-off-by: Daniel Vetter > > --- > > drivers/gpu/drm/i915/intel_display.c | 20 ++-- > > 1 file changed, 18 insertions(+), 2 deletions(-) > > >

Re: [Intel-gfx] [PATCH 10/15] drm/i915: split up fdi_set_m_n into computation and hw setup

2013-04-24 Thread Ville Syrjälä
On Fri, Apr 19, 2013 at 11:24:42AM +0200, Daniel Vetter wrote: > And also move the computed m_n values into the pipe_config. This is a > prep step to move the fdi state computation completely into the > prepare phase of the modeset sequence. Which will allow us to handle > fdi link bw constraints i

Re: [Intel-gfx] [PATCH 09/15] drm/i915: hw state readout support for pipe_config->fdi_lanes

2013-04-24 Thread Ville Syrjälä
On Fri, Apr 19, 2013 at 11:24:41AM +0200, Daniel Vetter wrote: > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/intel_display.c | 20 ++-- > 1 file changed, 18 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c > b/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 07/15] drm/i915: Fixup non-24bpp support for VGA screens on Haswell

2013-04-24 Thread Ville Syrjälä
On Fri, Apr 19, 2013 at 11:24:39AM +0200, Daniel Vetter wrote: > The LPT PCH only supports 8bpc, so we need to force the pipe bpp > to the right value. > > Signed-off-by: Daniel Vetter Reviewed-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_crt.c | 4 > 1 file changed, 4 insertions

Re: [Intel-gfx] [PATCH] drm/i915: implement high-bpc + pipeconf-dither support for g4x/vlv

2013-04-24 Thread Ville Syrjälä
On Wed, Apr 24, 2013 at 12:30:14AM +0200, Daniel Vetter wrote: > The current code is rather ... ugly. The only thing it managed to pull > off is getting 6bpc on DP working on g4x. Then someone added another > custom hack for 6bpc eDP on vlv. Fix up this entire mess by properly > implementing the PI

Re: [Intel-gfx] [PATCH] drm/i915: implement high-bpc + pipeconf-dither support for g4x/vlv

2013-04-24 Thread Ville Syrjälä
On Wed, Apr 24, 2013 at 12:27:59AM +0200, Daniel Vetter wrote: > On Tue, Apr 23, 2013 at 10:39:35PM +0200, Daniel Vetter wrote: > > On Tue, Apr 23, 2013 at 06:27:54PM +0300, Ville Syrjälä wrote: > > > The g4x docs are a bit confusing though. They seem to indicate the the > > > PIPECONF dither contr

Re: [Intel-gfx] [PATCH] drm/i915: disable interrupts earlier in the driver unload code

2013-04-24 Thread Jani Nikula
On Wed, 24 Apr 2013, Daniel Vetter wrote: > Our rps code relies on the interrupts being off to prevent re-arming > of the work items at inopportune moments. > > Also drop the redundant cancel_work for the main rps work, > disable_gt_powersave already takes care of that. > > Finally add a WARN_ON t

Re: [Intel-gfx] [PATCH 02/15] drm/i915: Disable high-bpc on pre-1.4 EDID screens

2013-04-24 Thread Daniel Vetter
On Tue, Apr 23, 2013 at 06:07:16PM +0300, Ville Syrjälä wrote: > On Fri, Apr 19, 2013 at 11:24:34AM +0200, Daniel Vetter wrote: > > Prevents black screens when using 30bpp framebuffers on my > > HDMI screens here. The DP input on the same screen though reports a > > 1.4 EDID with the correct 8bpc l

[Intel-gfx] [PATCH] drm/i915: disable interrupts earlier in the driver unload code

2013-04-24 Thread Daniel Vetter
Our rps code relies on the interrupts being off to prevent re-arming of the work items at inopportune moments. Also drop the redundant cancel_work for the main rps work, disable_gt_powersave already takes care of that. Finally add a WARN_ON to ensure we obey that piece of ordering constraint. Lon

Re: [Intel-gfx] [PATCH] drm/i915: disable interrupts earlier in the driver unload code

2013-04-24 Thread Jani Nikula
On Wed, 24 Apr 2013, Daniel Vetter wrote: > Our rps code relies on the interrupts being off to prevent re-arming > of the work items at inopportune moments. > > Also drop the redundant cancel_work for the main rps work, > disable_gt_powersave already takes care of that. > > Finally add a WARN_ON t

Re: [Intel-gfx] [PATCH 12/12] drm/i915: No contexts without ppgtt

2013-04-24 Thread Chris Wilson
On Tue, Apr 23, 2013 at 11:15:40PM -0700, Ben Widawsky wrote: > Going forward, every context will have its own address space. So rip off > the band aid now. If contexts fail, don't do ppgtt, and vice versa. > > Similarly to the last patch, this is somewhat wasteful of PPGTT address > space with co

Re: [Intel-gfx] [PATCH 09/12] drm/i915: Split context enabling from init

2013-04-24 Thread Chris Wilson
On Tue, Apr 23, 2013 at 11:15:37PM -0700, Ben Widawsky wrote: > - i915_gem_context_init(dev); > + if (!dev_priv->hw_contexts_disabled && > + i915_gem_context_enable(dev_priv)) { Move the hw_contexts_disabled test into i915_gem_context_enable(), just makes this bit of code cleaner a

Re: [Intel-gfx] [PATCH 00/12] [RFC] PPGTT prep patches part 1

2013-04-24 Thread Chris Wilson
On Tue, Apr 23, 2013 at 11:15:28PM -0700, Ben Widawsky wrote: > x11perf -aa10text > before: 1925000/s > after: 1941667/s (clearly not a good test) What are you running that is that slow? Implementing ppgtt on 830g? -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [Intel-gfx] [PATCH] drm/i915: disable interrupts earlier in the driver unload code

2013-04-24 Thread Daniel Vetter
On Wed, Apr 24, 2013 at 10:35:16AM +0100, Chris Wilson wrote: > On Wed, Apr 24, 2013 at 11:19:20AM +0200, Daniel Vetter wrote: > > Our rps code relies on the interrupts being off to prevent re-arming > > of the work items at inopportune moments. > > > > Also drop the redundant cancel_work for the

Re: [Intel-gfx] [PATCH] drm/i915: disable interrupts earlier in the driver unload code

2013-04-24 Thread Chris Wilson
On Wed, Apr 24, 2013 at 11:19:20AM +0200, Daniel Vetter wrote: > Our rps code relies on the interrupts being off to prevent re-arming > of the work items at inopportune moments. > > Also drop the redundant cancel_work for the main rps work, > disable_gt_powersave already takes care of that. > > F

Re: [Intel-gfx] [PATCH] drm/i915: init hardware to a known state on resume v3

2013-04-24 Thread Chris Wilson
On Tue, Apr 23, 2013 at 03:46:41PM -0700, Jesse Barnes wrote: > From: Zou Nanhai > > Needed on SNB to avoid some RC6 related hangs. IIRC, the wa was not for a hang, but for render corruption. > v2: remove unneeded defines (Ken) > v3: update to agp-less driver (Jesse) > fixup for new GEM API

[Intel-gfx] [PATCH] drm/i915: disable interrupts earlier in the driver unload code

2013-04-24 Thread Daniel Vetter
Our rps code relies on the interrupts being off to prevent re-arming of the work items at inopportune moments. Also drop the redundant cancel_work for the main rps work, disable_gt_powersave already takes care of that. Finally add a WARN_ON to ensure we obey that piece of ordering constraint. Lon

Re: [Intel-gfx] [PATCH 1/3] drm/i915: make sure GPU freq drops to minimum after entering RC6 v4

2013-04-24 Thread Daniel Vetter
On Wed, Apr 24, 2013 at 09:57:42AM +0300, Jani Nikula wrote: > > On the series, > > Reviewed-by: Jani Nikula All merged to dinq, thanks. -Daniel > > On Tue, 23 Apr 2013, Jesse Barnes wrote: > > On VLV, the Punit doesn't automatically drop the GPU to it's minimum > > voltage level when enteri

Re: [Intel-gfx] [PATCH 2/3] drm/i915: cancel RPS work before disabling RPS

2013-04-24 Thread Daniel Vetter
On Tue, Apr 23, 2013 at 10:09:27AM -0700, Jesse Barnes wrote: > Ville noticed this while doing another review; we may as well cancel > this work just to make sure we don't try anything fancy after disabling > the RPS interfaces. > > Reported-by: Ville Syrjälä > Signed-off-by: Jesse Barnes > ---

Re: [Intel-gfx] [PATCH] Revert "drm/i915: Don't overclock on Haswell"

2013-04-24 Thread Daniel Vetter
On Tue, Apr 23, 2013 at 05:33:02PM -0700, Ben Widawsky wrote: > This reverts commit fec46b5eff854df5647a9f4724e45dd33933855a. > > The latest version of our PM programming doc (which is WAY better than > previous versions, and thanks for that) says something along the lines > of, "On Haswell overcl

Re: [Intel-gfx] [PATCH] drm/i915: Add private api for power well usage

2013-04-24 Thread Wang, Xingchao
Hi Guys, Sorry I should Add Takashi and alsa maillist in loop. I tested this patch against Daniel's "drm-intel-next-queued" Branch, on Haswell Mobile C3 stepping machines. Test steps: 1. only connect one monitor through HDMI cable 2. echo 1 > /sys/module/i915/parameters/disable_power_well ==> I

[Intel-gfx] [PATCH] drm/i915: Add private api for power well usage

2013-04-24 Thread Wang Xingchao
Display audio depends on power well in graphic side, it should request power well before use it and release power well after use. I915 will not shutdown power well if it detects audio is using. This patch protects display audio crash for Intel Haswell mobile C3 stepping board. Signed-off-by: Wang