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

2013-05-21 Thread Takashi Iwai
At Mon, 20 May 2013 19:26:57 +0800, Wang Xingchao wrote: Haswell 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

Re: [Intel-gfx] [PATCH 2/2 V4] ALSA: hda - Add power-welll support for haswell HDA

2013-05-21 Thread Takashi Iwai
At Mon, 20 May 2013 19:26:58 +0800, Wang Xingchao wrote: For Intel Haswell chip, HDA controller and codec have power well dependency from GPU side. This patch added support to request/release power well in audio driver. Power save feature should be enabled to get runtime power saving.

Re: [Intel-gfx] [PATCH 1/6] drm/i915: add encoder get_config function v5

2013-05-21 Thread Daniel Vetter
On Wed, May 15, 2013 at 06:45:35PM -0300, Paulo Zanoni wrote: 2013/5/14 Jesse Barnes jbar...@virtuousgeek.org: We can use this for fetching encoder specific pipe_config state, like mode flags, adjusted clock, etc. Just used for mode flags atm, so we can check the pipe config state at

Re: [Intel-gfx] [RFC PATCH 1/3] drm/i915: group vlv iosf sideband register accessors to a new file

2013-05-21 Thread Daniel Vetter
On Wed, May 15, 2013 at 09:40:30PM +0300, Jani Nikula wrote: No functional changes. Signed-off-by: Jani Nikula jani.nik...@intel.com I'd vote to move the sbi sideband stuff on the haswell pch to this place, too. Maybe in a follow-up patch though. -Daniel --- drivers/gpu/drm/i915/Makefile

Re: [Intel-gfx] [RFC PATCH 0/3] vlv sideband refactoring

2013-05-21 Thread Daniel Vetter
On Wed, May 15, 2013 at 09:40:29PM +0300, Jani Nikula wrote: Okay, I'm stuck with this a bit, and whichever approach I choose I expect there to be a bunch of bikeshedding. So I won't polish this further before comments. Both the intel_dpio_{read,write} and valleyview_{punit,nc}_{read,write}

Re: [Intel-gfx] [PATCH 1/3] drm/i915: implement IPS feature

2013-05-21 Thread Daniel Vetter
On Thu, May 16, 2013 at 04:54:04PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com Intermediate Pixel Storage is a feature that should reduce the number of times the display engine wakes up memory to read pixels, so it should allow deeper PC states. IPS can only be

Re: [Intel-gfx] [PATCH] drm/i915: Propagate errors back from fb set-base

2013-05-21 Thread Chris Wilson
On Fri, May 03, 2013 at 06:55:35PM +0200, Daniel Vetter wrote: On Fri, May 3, 2013 at 6:36 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: Along the modesetting short cut where we skip trying to do a full modeset and instead simply update the framebuffer base registers, we failed to handle

Re: [Intel-gfx] [PATCH 2/4] drm/i915: merge VLV eDP and DP AUX clock divider calculation

2013-05-21 Thread Daniel Vetter
On Thu, May 16, 2013 at 02:40:35PM +0300, Imre Deak wrote: On ValleyView for both eDP and DP the AUX input clock is 200MHz, so we can calculate for both the clock divider for the 2MHz target rate at the same place. Afterwards we can also replace the is_cpu_edp() check with a check for port A.

Re: [Intel-gfx] [PATCH 1/4] drm/i915: stop using is_cpu_edp() in intel_disable/post_disable_dp

2013-05-21 Thread Daniel Vetter
On Thu, May 16, 2013 at 02:40:34PM +0300, Imre Deak wrote: On port A and for Valleyview on port C we can have only eDP and in both cases it's a CPU port. So we can replace is_cpu_edp() with a port check for these two cases. This allows us to remove is_cpu_edp() completely in a later patch.

Re: [Intel-gfx] [PATCH 3/9] drm/i915: use the mode-htotal to calculate linetime watermarks

2013-05-21 Thread Daniel Vetter
On Fri, May 03, 2013 at 05:23:39PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com ... instead of mode-crtc_display. The spec says pipe horizontal total number of pixels and the Haswell Watermark Calculator tool uses the Pipe H Total instead of Pipe H Src as the value.

Re: [Intel-gfx] [PATCH 5/9] drm/i915: use the correct clock when calculating linetime watermarks

2013-05-21 Thread Daniel Vetter
On Fri, May 03, 2013 at 05:23:41PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com If we're using DP/eDP, adjusted_mode-clock may be just the port link clock, but we also can't use mode-clock because it's wrong when we're using the using panel fitter. Signed-off-by:

Re: [Intel-gfx] [PATCH 9/9] drm/i915: set FORCE_ARB_IDLE_PLANES workaround

2013-05-21 Thread Daniel Vetter
On Fri, May 03, 2013 at 05:23:45PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com Commit 1544d9d57396d5c0c6b7644ed5ae1f4d6caad07a added a workaround inside haswell_init_clock_gating and mentioned it is a workaround for early silicon revisions and should be removed

[Intel-gfx] [ANNOUNCE] xf86-video-intel 2.21.7

2013-05-21 Thread Chris Wilson
Release 2.21.7 (2013-05-21) === A couple of weeks turned into a month and a couple of weeks... Amidst the usual bug fixes, we have added the complete set of Haswell PCI IDs - hopefully future proofing ourselves against being surprised by new products. We can also now use

Re: [Intel-gfx] [PATCH] drm/i915: Propagate errors back from fb set-base

2013-05-21 Thread Daniel Vetter
On Tue, May 21, 2013 at 09:54:09AM +0100, Chris Wilson wrote: On Fri, May 03, 2013 at 06:55:35PM +0200, Daniel Vetter wrote: On Fri, May 3, 2013 at 6:36 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: Along the modesetting short cut where we skip trying to do a full modeset and

Re: [Intel-gfx] [PATCH 1/4] drm/i915: stop using is_cpu_edp() in intel_disable/post_disable_dp

2013-05-21 Thread Imre Deak
On Tue, 2013-05-21 at 11:15 +0200, Daniel Vetter wrote: On Thu, May 16, 2013 at 02:40:34PM +0300, Imre Deak wrote: On port A and for Valleyview on port C we can have only eDP and in both cases it's a CPU port. So we can replace is_cpu_edp() with a port check for these two cases. This allows

Re: [Intel-gfx] [PATCH 2/4] drm/i915: merge VLV eDP and DP AUX clock divider calculation

2013-05-21 Thread Imre Deak
On Tue, 2013-05-21 at 11:12 +0200, Daniel Vetter wrote: On Thu, May 16, 2013 at 02:40:35PM +0300, Imre Deak wrote: On ValleyView for both eDP and DP the AUX input clock is 200MHz, so we can calculate for both the clock divider for the 2MHz target rate at the same place. Afterwards we can

Re: [Intel-gfx] [PATCH 2/4] drm/i915: merge VLV eDP and DP AUX clock divider calculation

2013-05-21 Thread Daniel Vetter
On Tue, May 21, 2013 at 12:36 PM, Imre Deak imre.d...@intel.com wrote: On Tue, 2013-05-21 at 11:12 +0200, Daniel Vetter wrote: On Thu, May 16, 2013 at 02:40:35PM +0300, Imre Deak wrote: On ValleyView for both eDP and DP the AUX input clock is 200MHz, so we can calculate for both the clock

Re: [Intel-gfx] [PATCH 2/2 V4] ALSA: hda - Add power-welll support for haswell HDA

2013-05-21 Thread Wang, Xingchao
-Original Message- From: Takashi Iwai [mailto:ti...@suse.de] Sent: Tuesday, May 21, 2013 3:19 PM To: Wang Xingchao Cc: dan...@ffwll.ch; Girdwood, Liam R; david.hennings...@canonical.com; Lin, Mengdong; Li, Jocelyn; alsa-de...@alsa-project.org; intel-gfx@lists.freedesktop.org;

Re: [Intel-gfx] [PATCH 2/4] drm/i915: merge VLV eDP and DP AUX clock divider calculation

2013-05-21 Thread Imre Deak
On Tue, 2013-05-21 at 12:42 +0200, Daniel Vetter wrote: On Tue, May 21, 2013 at 12:36 PM, Imre Deak imre.d...@intel.com wrote: On Tue, 2013-05-21 at 11:12 +0200, Daniel Vetter wrote: On Thu, May 16, 2013 at 02:40:35PM +0300, Imre Deak wrote: On ValleyView for both eDP and DP the AUX input

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

2013-05-21 Thread Wang, Xingchao
-Original Message- From: Takashi Iwai [mailto:ti...@suse.de] Sent: Tuesday, May 21, 2013 3:18 PM To: Wang Xingchao Cc: dan...@ffwll.ch; Girdwood, Liam R; david.hennings...@canonical.com; Lin, Mengdong; Li, Jocelyn; alsa-de...@alsa-project.org; intel-gfx@lists.freedesktop.org;

Re: [Intel-gfx] [PATCH 2/2 V4] ALSA: hda - Add power-welll support for haswell HDA

2013-05-21 Thread Takashi Iwai
At Tue, 21 May 2013 10:58:36 +, Wang, Xingchao wrote: -Original Message- From: Takashi Iwai [mailto:ti...@suse.de] Sent: Tuesday, May 21, 2013 3:19 PM To: Wang Xingchao Cc: dan...@ffwll.ch; Girdwood, Liam R; david.hennings...@canonical.com; Lin, Mengdong; Li, Jocelyn;

[Intel-gfx] [PATCH 0/3] drm/i915: Trickle feed bits

2013-05-21 Thread ville . syrjala
This series tries to get the trickle feed settings corrected for all gen4+. Note that I've only compile tested the gen4 and vlv bits as I don't have either type of machine set up at the moment. The g4x patch (well, v1 actually) was smoke tested on real hardware at some point.

[Intel-gfx] [PATCH v2 1/3] drm/i915: Disable primary plane trickle feed for g4x

2013-05-21 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com The docs say that the trickle feed disable bit is present (for primary planes only, not video sprites) on CTG, and that it must be set for ELK. Just set it for all g4x chipsets. v2: Do it in init_clock_gating too Signed-off-by: Ville Syrjälä

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915: Disable primary plane trickle feed for g4x

2013-05-21 Thread Ville Syrjälä
On Tue, May 21, 2013 at 03:28:32PM +0300, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com The docs say that the trickle feed disable bit is present (for primary planes only, not video sprites) on CTG, and that it must be set for ELK. Just set it for all

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915: Disable primary plane trickle feed for g4x

2013-05-21 Thread Daniel Vetter
On Tue, May 21, 2013 at 2:35 PM, Ville Syrjälä ville.syrj...@linux.intel.com wrote: On Tue, May 21, 2013 at 03:28:32PM +0300, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com The docs say that the trickle feed disable bit is present (for primary planes

Re: [Intel-gfx] [PATCH] drm/i915: replace snb_update_wm with haswell_update_wm on HSW

2013-05-21 Thread Ville Syrjälä
On Thu, May 09, 2013 at 05:13:41PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com We were previously calling sandybridge_update_wm on HSW, but the SNB function didn't really match the HSW specification, so we were just writing the wrong values. For example, I was not

Re: [Intel-gfx] [PATCH 9/9] drm/i915: set FORCE_ARB_IDLE_PLANES workaround

2013-05-21 Thread Paulo Zanoni
2013/5/21 Daniel Vetter dan...@ffwll.ch: On Fri, May 03, 2013 at 05:23:45PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com Commit 1544d9d57396d5c0c6b7644ed5ae1f4d6caad07a added a workaround inside haswell_init_clock_gating and mentioned it is a workaround for early

Re: [Intel-gfx] debugging Haswell eDP black screen after S3

2013-05-21 Thread Ben Guthro
On Tue, May 21, 2013 at 4:00 AM, Daniel Vetter dan...@ffwll.ch wrote: On Fri, May 17, 2013 at 09:26:18AM -0400, Ben Guthro wrote: On Fri, May 17, 2013 at 7:52 AM, Ben Guthro b...@guthro.net wrote: On Thu, May 16, 2013 at 9:24 AM, Ben Guthro b...@guthro.net wrote: On Wed, May 15, 2013 at 4:42

Re: [Intel-gfx] debugging Haswell eDP black screen after S3

2013-05-21 Thread Ben Guthro
On Tue, May 21, 2013 at 9:44 AM, Ben Guthro b...@guthro.net wrote: On Tue, May 21, 2013 at 4:00 AM, Daniel Vetter dan...@ffwll.ch wrote: On Fri, May 17, 2013 at 09:26:18AM -0400, Ben Guthro wrote: On Fri, May 17, 2013 at 7:52 AM, Ben Guthro b...@guthro.net wrote: On Thu, May 16, 2013 at 9:24

Re: [Intel-gfx] debugging Haswell eDP black screen after S3

2013-05-21 Thread Daniel Vetter
On Tue, May 21, 2013 at 3:44 PM, Ben Guthro b...@guthro.net wrote: This will break kms since now you have the vbios and the linux kms driver fighting over the same piece of hw. Does xset dpms force off xset dpms force on cause similar issues? No, these work as expected (on 3.8) I didn't

Re: [Intel-gfx] Genereal question regarding kernel development

2013-05-21 Thread Daniel Vetter
Hi Jan, First things first, please _always_ cc relevant mailing lists. Second: I've submitted a proper patch to revert this behaviour change, but it has been nacked. I've poked Dave Airlie about it again on irc. See https://patchwork.kernel.org/patch/2402211/ Thanks, Daniel On Tue, May 21,

Re: [Intel-gfx] [PATCH 3/9] drm/i915: use the mode-htotal to calculate linetime watermarks

2013-05-21 Thread Paulo Zanoni
2013/5/21 Daniel Vetter dan...@ffwll.ch: On Fri, May 03, 2013 at 05:23:39PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com ... instead of mode-crtc_display. The spec says pipe horizontal total number of pixels and the Haswell Watermark Calculator tool uses the Pipe H

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915: Disable primary plane trickle feed for g4x

2013-05-21 Thread Ville Syrjälä
On Tue, May 21, 2013 at 02:52:24PM +0200, Daniel Vetter wrote: On Tue, May 21, 2013 at 2:35 PM, Ville Syrjälä ville.syrj...@linux.intel.com wrote: On Tue, May 21, 2013 at 03:28:32PM +0300, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com The docs

[Intel-gfx] [PATCH] drm/i915: Disable trickle feed in ironlake_init_clock_gating()

2013-05-21 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com We disable trickle feed in all the (relevant) clock gating functions, except ironlake_init_clock_gating(). Copy paste the same code there as well. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_pm.c | 8

Re: [Intel-gfx] [PATCH 3/9] drm/i915: use the mode-htotal to calculate linetime watermarks

2013-05-21 Thread Daniel Vetter
On Tue, May 21, 2013 at 4:33 PM, Paulo Zanoni przan...@gmail.com wrote: 2013/5/21 Daniel Vetter dan...@ffwll.ch: On Fri, May 03, 2013 at 05:23:39PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com ... instead of mode-crtc_display. The spec says pipe horizontal total

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Always enable the cursor right after the primary plane

2013-05-21 Thread Egbert Eich
On Wed, May 08, 2013 at 12:50:24PM +0300, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com Follow the same sequence when enabling the cursor plane during modeset. No point in doing this stuff in different order on different generations. This should

Re: [Intel-gfx] Genereal question regarding kernel development

2013-05-21 Thread Daniel Vetter
On Tue, May 21, 2013 at 4:30 PM, Jan Niggemann j...@hz6.de wrote: Hi Daniel, you misunderstood my mail, I just wanted to know: Are patches in patchwork that correct kernel bugs in any way linked to bugzilla issues and if so, how? In other words: What bugzilla bug corresponds to

[Intel-gfx] [PATCH] drm/i915: Be more informative when reporting too large for aperture error

2013-05-21 Thread Chris Wilson
This should help debugging the truly unexpected cases where it occurs - in particular to see which value is garbage. References: https://bugzilla.kernel.org/show_bug.cgi?id=58511 Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_gem.c |5 - 1 file

Re: [Intel-gfx] [PATCH] drm/i915: Be more informative when reporting too large for aperture error

2013-05-21 Thread Daniel Vetter
On Tue, May 21, 2013 at 04:58:49PM +0100, Chris Wilson wrote: This should help debugging the truly unexpected cases where it occurs - in particular to see which value is garbage. References: https://bugzilla.kernel.org/show_bug.cgi?id=58511 Signed-off-by: Chris Wilson

Re: [Intel-gfx] [PATCH V2] drm/i915: force full modeset if the connector is in DPMS OFF mode

2013-05-21 Thread Daniel Vetter
On Mon, May 20, 2013 at 02:13:22PM -0700, Jesse Barnes wrote: On Fri, 3 May 2013 19:44:07 +0200 Egbert Eich e...@suse.de wrote: From: Imre Deak imre.d...@intel.com Currently the driver's assumed behavior for a modeset with an attached FB is that the corresponding connector will be

[Intel-gfx] [PATCH 1/4] drm/i915: add msecs_to_jiffies_timeout to guarantee minimum duration

2013-05-21 Thread Imre Deak
We need this to avoid premature timeouts whenever scheduling a timeout based on the current jiffies value. For an explanation see [1]. The following patches will take the helper into use. Once the more generic solution proposed in the thread at [1] is accepted this patch can be reverted while

[Intel-gfx] [PATCH 2/4] drm/i915: use msecs_to_jiffies_timeout instead of open coding the same

2013-05-21 Thread Imre Deak
Signed-off-by: Imre Deak imre.d...@intel.com --- drivers/gpu/drm/i915/intel_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_i2c.c b/drivers/gpu/drm/i915/intel_i2c.c index 5d24503..98cd8535 100644 --- a/drivers/gpu/drm/i915/intel_i2c.c +++

[Intel-gfx] [PATCH 4/4] drm/i915: avoid premature DP AUX timeouts

2013-05-21 Thread Imre Deak
During DP AUX communication we might time out 1 jiffy too early, because the calculated expiry jiffy value is one less than needed. This is only one reason for false DP AUX timeouts. For a complete solution we also need the following fix, which is now queued for mainline:

[Intel-gfx] [PATCH 3/4] drm/i915: avoid premature timeouts in __wait_seqno()

2013-05-21 Thread Imre Deak
At the moment wait_event_timeout/wait_event_interruptible_timeout may time out 1 jiffy too early, as the calculated expiry time is 1 less than needed. Besides timing out too early this also means that the calculation of the remaining time will be incorrect and we will pass a non-zero remaining

Re: [Intel-gfx] [PATCH 2/4] drm/i915: use msecs_to_jiffies_timeout instead of open coding the same

2013-05-21 Thread Daniel Vetter
We have another one of these in the wait_for register wait macro in intel_drv.h Can you please amend your patch with that fixed up, too? Thanks, Daniel On Tue, May 21, 2013 at 7:03 PM, Imre Deak imre.d...@intel.com wrote: Signed-off-by: Imre Deak imre.d...@intel.com ---

Re: [Intel-gfx] debugging Haswell eDP black screen after S3

2013-05-21 Thread Ben Guthro
On Tue, May 21, 2013 at 10:02 AM, Daniel Vetter dan...@ffwll.ch wrote: On Tue, May 21, 2013 at 3:44 PM, Ben Guthro b...@guthro.net wrote: This will break kms since now you have the vbios and the linux kms driver fighting over the same piece of hw. Does xset dpms force off xset dpms force on

Re: [Intel-gfx] [PATCH 2/4] drm/i915: use msecs_to_jiffies_timeout instead of open coding the same

2013-05-21 Thread Imre Deak
On Tue, 2013-05-21 at 19:20 +0200, Daniel Vetter wrote: We have another one of these in the wait_for register wait macro in intel_drv.h Can you please amend your patch with that fixed up, too? I noticed it, but didn't change it since we don't need there the +1 adjustment to begin with. The

Re: [Intel-gfx] [PATCH 2/4] drm/i915: use msecs_to_jiffies_timeout instead of open coding the same

2013-05-21 Thread Daniel Vetter
On Tue, May 21, 2013 at 8:00 PM, Imre Deak imre.d...@intel.com wrote: On Tue, 2013-05-21 at 19:20 +0200, Daniel Vetter wrote: We have another one of these in the wait_for register wait macro in intel_drv.h Can you please amend your patch with that fixed up, too? I noticed it, but didn't

[Intel-gfx] [PATCH 1/9] drm/i915: split out intel_pnv_find_best_PLL

2013-05-21 Thread Daniel Vetter
Pineview is just different. Also split out i9xx_clock from intel_clock and drop the now redundant struct device * parameter. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_display.c | 92 ++-- 1 file changed, 77 insertions(+),

[Intel-gfx] [PATCH 0/9] pll limit fixes and a few other things

2013-05-21 Thread Daniel Vetter
Hi all, So pipe config conversion progresses neatly, and this pile here contains a few more prep work things: - fix up the pll limits (or at least what the current believe about the correct values is ...) - unconfuse the meaning of adjusted_mode-clock, a side effect of this is that it makes

[Intel-gfx] [PATCH 2/9] drm/i915: move find_pll callback to dev_priv-display

2013-05-21 Thread Daniel Vetter
Now that the DP madness is cleared out, this is all only per-platform. So move it out from the intel clock limits structure. While at it drop the intel prefix on the static functions, call the vtable entry find_dpll (since it's for the display pll) and rip out the now unnecessary forward

[Intel-gfx] [PATCH 3/9] drm/i915: fixup i8xx pll limits

2013-05-21 Thread Daniel Vetter
So apparently the pll limits in the docs are the real values, but the formula actually seems to consistenly use register values. See commit 4f7dfb6788dd022446847fbbfbe45e13bedb5be2 Author: Patrik Jakobsson patrik.r.jakobs...@gmail.com Date: Wed Feb 13 22:20:22 2013 +0100 drm/i915: Set i9xx

[Intel-gfx] [PATCH 8/9] drm/i915: Drop some no longer required mode/adjusted_mode parameters

2013-05-21 Thread Daniel Vetter
We can get at this easily through intel_crtc-config now. v2: Drop more stuff gcc spotted. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_display.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git

[Intel-gfx] [PATCH 7/9] drm/i915: store adjust dotclock in adjustede_mode-clock

2013-05-21 Thread Daniel Vetter
... not the port clock. This allows us to kill the funny semantics around pixel_target_clock. Since the dpll code still needs the real port clock, add a new port_clock field to the pipe configuration. Handling the default case for that one is a bit tricky, since encoders might not consistently

[Intel-gfx] [PATCH 9/9] drm/i915: check for strange pfit pipe assignemnt on ivb/hsw

2013-05-21 Thread Daniel Vetter
Panel fitters on ivb/hsw are not created equal since not all of them support the new high-quality upscaling mode. To offset this the hw allows us to freely assign the pfits to pipes. Since our code currently doesn't support this we might fall over when taking over firmware state. So check for

[Intel-gfx] [PATCH 3/3] drm/i915: add basic pipe config dump support

2013-05-21 Thread Daniel Vetter
All this pipe config abstraction adds another layer of complexity, so it's good to have better visibility into what's going on exactly. Doesn't dump out everything yet, and some bits are a bit duplicated but this should be a good start. v2: Remove a few more now redudant debug output lines.

[Intel-gfx] pipe_off wait timed out

2013-05-21 Thread Dave Jones
This is new to me as of 3.10-rc2. WARNING: at drivers/gpu/drm/i915/intel_display.c:997 intel_wait_for_pipe_off+0x194/0x1a0 [i915]() pipe_off wait timed out Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat xt_LOG xt_limit ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6

Re: [Intel-gfx] pipe_off wait timed out

2013-05-21 Thread Daniel Vetter
On Wed, May 22, 2013 at 1:01 AM, Dave Jones da...@redhat.com wrote: This is new to me as of 3.10-rc2. If this is an ironlake with a DP output it's a know issue which seems to pop up every once in a while. Otherwise we need to take a look here. If so can you please boot with drm.debug=0xe,

Re: [Intel-gfx] pipe_off wait timed out

2013-05-21 Thread Dave Jones
On Wed, May 22, 2013 at 01:10:36AM +0200, Daniel Vetter wrote: On Wed, May 22, 2013 at 1:01 AM, Dave Jones da...@redhat.com wrote: This is new to me as of 3.10-rc2. If this is an ironlake with a DP output it's a know issue which seems to pop up every once in a while. 00:02.0 VGA