Re: [Intel-gfx] [PATCH 7/7] drm/i915: only disable DDI sound if intel_crtc-eld_vld

2013-04-19 Thread Damien Lespiau
On Thu, Apr 18, 2013 at 04:35:46PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com We already have the same check on intel_enable_ddi. This patch prevents unclaimed register messages when the power well is disabled. V2: Reset intel_crtc-eld_vld to false after the

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Fix page table entries for Bay Trail.

2013-04-19 Thread Jani Nikula
On Thu, 18 Apr 2013, Kenneth Graunke kenn...@whitecape.org wrote: On Bay Trail, bit 1 means writeable by the GPU. Failing to set that means basically anything using the GPU will cause hangs. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- drivers/gpu/drm/i915/i915_gem_gtt.c | 33

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Split out Haswell code from gen6_pte_encode.

2013-04-19 Thread Jani Nikula
On Thu, 18 Apr 2013, Kenneth Graunke kenn...@whitecape.org wrote: Now that we have function pointers, it's cleaner to just create a new per-platform PTE encoding function. This should be identical in behavior to the previous code. It does drop the extra paranoia BUG() on unknown cache level.

Re: [Intel-gfx] [PATCH 1/2] drm/i915: report Gen5+ CPU and PCH FIFO underruns

2013-04-19 Thread Daniel Vetter
On Thu, Apr 18, 2013 at 11:29:17PM +0300, Imre Deak wrote: On Fri, 2013-04-12 at 17:57 -0300, Paulo Zanoni wrote: +static void cpt_set_fifo_underrun_reporting(struct drm_device *dev, + enum transcoder pch_transcoder, +

Re: [Intel-gfx] [PATCH 2/2] drm/i915: print Gen5+ CPU/PCH poison interrupts

2013-04-19 Thread Daniel Vetter
On Thu, Apr 18, 2013 at 11:47:07PM +0300, Imre Deak wrote: On Fri, 2013-04-12 at 17:57 -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com This is bad news and shouldn't be happening. V2: Rebase. Signed-off-by: Paulo Zanoni paulo.r.zan...@intel.com Looks ok:

[Intel-gfx] [PATCH 1/3] drm: Add drm_rect_equals()

2013-04-19 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com drm_rect_equals() tells whether two drm_rects are equal. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- include/drm/drm_rect.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/drm/drm_rect.h

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

2013-04-19 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Reduce the size of the the src/dst viewport to keep the scalign ratios in check. Also treat sprites below the minimum size as invisble. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_sprite.c | 60

Re: [Intel-gfx] [PATCH 3/7] drm/i915: add intel_display_power_enabled

2013-04-19 Thread Daniel Vetter
On Fri, Apr 19, 2013 at 06:44:47AM +0100, Damien Lespiau wrote: On Thu, Apr 18, 2013 at 04:35:42PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com This should replace intel_using_power_well. The idea is that we're adding the requested power domain as an argument,

Re: [Intel-gfx] [PATCH 2/7] drm/i915: use cpu_transcoder for TRANS_DDI_FUNC_CTL

2013-04-19 Thread Daniel Vetter
On Fri, Apr 19, 2013 at 06:21:18AM +0100, Damien Lespiau wrote: On Thu, Apr 18, 2013 at 04:35:41PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com ... inside haswell_get_pipe_config. Because there's one TRANS_DDI_FUNC_CTL register per CPU transcoder, not per pipe.

[Intel-gfx] [PATCH v4 2/3] drm/i915: Implement proper clipping for video sprites

2013-04-19 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com 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

[Intel-gfx] [RFC PATCH 1/2] drm/i915: abstract error object dumping

2013-04-19 Thread Jani Nikula
Signed-off-by: Jani Nikula jani.nik...@intel.com --- drivers/gpu/drm/i915/i915_debugfs.c | 34 -- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 367b534..0b3b9ac

[Intel-gfx] [RFC PATCH 2/2] drm/i915: truncate zero dumps in error state

2013-04-19 Thread Jani Nikula
It seems the error state often contains plenty of zero data [citation needed]. It's also fairly big. Truncate more than (arbitrarily chosen) three consecutive zero values: : 0b640001 0004 : 47f8 0008 : 2044 000c : 0010 : 0014 :

[Intel-gfx] [DVO][PATCH] drm/i915: Fall back to bit banging mode for DVO transmitter detection

2013-04-19 Thread David Müller (ELSOFT AG)
Hello As discussed in this thread http://lists.freedesktop.org/archives/dri-devel/2013-April/037411.html GMBUS based DVO transmitter detection seems to be unreliable which could result in an unusable DVO port. The attached patch fixes this by falling back to bit banging mode for the time DVO

Re: [Intel-gfx] [RFC PATCH 2/2] drm/i915: truncate zero dumps in error state

2013-04-19 Thread Chris Wilson
On Fri, Apr 19, 2013 at 11:16:11AM +0300, Jani Nikula wrote: It seems the error state often contains plenty of zero data [citation needed]. It's also fairly big. Truncate more than (arbitrarily chosen) three consecutive zero values: : 0b640001 0004 : 47f8 0008 :

Re: [Intel-gfx] [DVO][PATCH] drm/i915: Fall back to bit banging mode for DVO transmitter detection

2013-04-19 Thread Daniel Vetter
On Fri, Apr 19, 2013 at 10:41:50AM +0200, David Müller (ELSOFT AG) wrote: Hello As discussed in this thread http://lists.freedesktop.org/archives/dri-devel/2013-April/037411.html GMBUS based DVO transmitter detection seems to be unreliable which could result in an unusable DVO port. The

[Intel-gfx] [PATCH 0/7] dp dpll pipe_config conversion + random stuff

2013-04-19 Thread Daniel Vetter
Hi all, So I've resurrected the pch dpll conversion patch which somehow was lost and DP now also works on ilk+. For fun I've also thrown in a few other minor patches to make good use of pipe_config (or at least stuff I've noticed while doing pipe_config related conversions). Cheers, Daniel

[Intel-gfx] [PATCH 1/7] drm/i915: consolidate pch pll computations a bit

2013-04-19 Thread Daniel Vetter
We need the dpll/fp/fp2 values only when we need a pch pll. So move them together with the code to acquire such a pll. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_display.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff

[Intel-gfx] [PATCH 2/7] drm/i915: shovel compute clock into crtc-config.dpll on ilk

2013-04-19 Thread Daniel Vetter
This was somehow lost in the pipe_config-dpll introduction in commit f47709a9502f3715cc488b788ca91cf0c142b1b1 Author: Daniel Vetter daniel.vet...@ffwll.ch Date: Thu Mar 28 10:42:02 2013 +0100 drm/i915: create pipe_config-dpll for clock state While at it, extract a few small helpers for

[Intel-gfx] [PATCH 3/7] drm/i915: move dp clock computations to encoder-compute_config

2013-04-19 Thread Daniel Vetter
With the exception of hsw, which has dedicated DP clocks which run at the fixed frequency already, and vlv, which doesn't have optmized pre-defined dp clock parameters (yet). Reviewed-by: Jesse Barnes jbar...@virtuousgeek.org Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch ---

[Intel-gfx] [PATCH 4/7] drm/i915: use pipe_config for lvds dithering

2013-04-19 Thread Daniel Vetter
Up to now we've relied on the bios to get this right for us. Let's try out whether our code has improved a bit, since we should dither always when the output bpp doesn't match the plane bpp. - gen5+ should be fine, since we only use the bios hint as an upgrade. - gen4 changes, since here dithering

[Intel-gfx] [PATCH 5/7] drm/i915: don't force matching p1 for g4x/ilk+ reduced pll settings

2013-04-19 Thread Daniel Vetter
g4x dplls and ilk+ pch plls have a separate field for the reduced p1 setting, so this restriction does not apply. Only older platforms have the restriction that the p1 divisors must match. This unnecessary restriction has been introduced in commit cec2f356d59d9e070413e5966a3c5a1af136d948 Author:

[Intel-gfx] [PATCH 6/7] drm/i915: remove redundant has_pch_encoder check

2013-04-19 Thread Daniel Vetter
If we compute the pch pll state, we _have_ a pch encoder. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_display.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c

[Intel-gfx] [PATCH 7/7] drm/i915: simplify config-pixel_multiplier handling

2013-04-19 Thread Daniel Vetter
We only ever check whether it's strictly bigger than one, so all the is_sdvo/is_hdmi checks are redundant. Flatten the code a bit. Also, s/temp/dpll_md/ Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_display.c | 58 +--- 1 file

[Intel-gfx] [PATCH] drm/i915: Move the CSC_MODE bits next to the register

2013-04-19 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Shame on me for not putting the bit definitions next to the register definition in the first place. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/i915_reg.h | 7 +++ 1 file changed, 3 insertions(+), 4

[Intel-gfx] [PATCH 00/15] high-bpp fixes and fdi auto dithering

2013-04-19 Thread Daniel Vetter
Hi all, This fixes all the bugs I've found in my various systems when using non-24bpp modes as the first part of the series. And with working non-standard bpp support I've figured we can go fancy and implemented auto-dithering if we hit an fdi bw limit. Which means that you can now use 3-pipe

[Intel-gfx] [PATCH 01/15] drm/i915: fixup 12bpc hdmi dotclock handling

2013-04-19 Thread Daniel Vetter
We need to multiply the hdmi port dotclock by 1.5x since it's not really a dotclock, but the 10/8 encoding bitclock divided by 10. Also add correct limit checks for the dotclock and reject modes which don't fit. HDMI 1.4 would allow more, but our hw doesn't support that unfortunately :( Somehow

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

2013-04-19 Thread Daniel Vetter
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 limit set. v2: Actually check for the right thing! Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch ---

[Intel-gfx] [PATCH 03/15] drm/i915: force bpp for eDP panels

2013-04-19 Thread Daniel Vetter
We've had our fair share of woes already which showed that we can't rely on the bpc limits in the EDID for eDP panels without risking black screens. So now we limit the depth by what the BIOS recommends in the VBT: commit 2f4f649a69a9eb51f6e98130e19dd90a260a4145 Author: Jani Nikula

[Intel-gfx] [PATCH 04/15] drm/i915: drop adjusted_mode from *_set_pipeconf functions

2013-04-19 Thread Daniel Vetter
They can get at the adjusted mode through intel_crtc-config. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_display.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c

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

2013-04-19 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

[Intel-gfx] [PATCH 06/15] drm/i915: allow high-bpc modes on DP

2013-04-19 Thread Daniel Vetter
Totally untested due to lack of screens supporting more than 8bpc. But now we should have closed all holes in our bpp handling, so this should be safe. The last missing piece was 10bpc support for g4x/vlv, since we directly use the pipe bpp to feed the display link (and anyway, only the cpt has

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

2013-04-19 Thread Daniel Vetter
The LPT PCH only supports 8bpc, so we need to force the pipe bpp to the right value. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_crt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_crt.c

[Intel-gfx] [PATCH 08/15] drm/i915: move intel_crtc-fdi_lanes to pipe_config

2013-04-19 Thread Daniel Vetter
We need this for two reasons: - Correct handling of shared fdi lanes on ivb with fastboot. - Handling fdi link bw limits when we only have two fdi lanes by dithering down a bit. Just searchreplace in this patch, no functional change at all. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch

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

2013-04-19 Thread Daniel Vetter
Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- 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/intel_display.c index 7cb1abf..b7774c1 100644 ---

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

2013-04-19 Thread Daniel Vetter
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 in a better way. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch

[Intel-gfx] [PATCH 11/15] drm/i915: compute fdi lane config earlier

2013-04-19 Thread Daniel Vetter
Now that it's split up, we can easily move it around and precompute the fdi lane configuration. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_display.c | 71 +--- 1 file changed, 34 insertions(+), 37 deletions(-) diff --git

[Intel-gfx] [PATCH 12/15] drm/i915: Split up ironlake_check_fdi_lanes

2013-04-19 Thread Daniel Vetter
Again in preparation to move the configuration checks into the pipe_config computation stage of the modeset sequence. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_display.c | 31 +-- 1 file changed, 25 insertions(+), 6

[Intel-gfx] [PATCH 13/15] drm/i915: move fdi lane configuration checks ahead

2013-04-19 Thread Daniel Vetter
This nicely allows us to drop some hacks which have only been used to work around modeset failures due to lack of fdi lanes. v2: Implement proper checking for Haswell platforms - the fdi link to the LPT PCH has only 2 lanes. Note that we already filter out impossible modes in

[Intel-gfx] [PATCH 14/15] drm/i915: don't count cpu ports for fdi B/C lane sharing

2013-04-19 Thread Daniel Vetter
This allows us to use all 4 fdi lanes on fdi B when the cpu eDP is running on pipe C. Yay! v2: Encapsulate test into a little helper function, as suggested by Chris Wilson. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_display.c | 18 +- 1

[Intel-gfx] [PATCH 15/15] drm/i915: implement fdi auto-dithering

2013-04-19 Thread Daniel Vetter
So on a bunch of setups we only have 2 fdi lanes available, e.g. hsw VGA or 3 pipes on ivb. And seemingly a lot of modes don't quite fit into this, among them the default 1080p mode. The solution is to dither down the pipe a bit so that everything fits, which this patch implements. But ports

[Intel-gfx] [PATCH 1/4] drm/i915: stop for_each_intel_crtc_masked macro from leaking

2013-04-19 Thread Daniel Vetter
Spotted while changing related code. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- 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

[Intel-gfx] [PATCH 2/4] drm/i915: introduce macros to check pipe config properties

2013-04-19 Thread Daniel Vetter
This code will get _really_ repetive, and we'll end up with tons more of this kind. So extract the common patterns. This should also help when we add a lazy pipe_config compare mode for fastboot. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch --- drivers/gpu/drm/i915/intel_display.c | 24

[Intel-gfx] [PATCH 3/4] drm/i915: hw state readout support for fdi m/n

2013-04-19 Thread Daniel Vetter
We want to use the fdi m/n values to easily compute the adjusted mode dotclock on pch ports. Hence make sure the values stored in the pipe config are always reliable. v2: Fixup FDI TU readout. v3: Rebase on top of moved cpu_transcoder. Signed-off-by: Daniel Vetter daniel.vet...@ffwll.ch ---

[Intel-gfx] [PATCH 4/4] drm/i915: hw state readout support for pipe timings

2013-04-19 Thread Daniel Vetter
This does duplicate the logic in intel_crtc_mode_get a bit, but the issue is that we also should handle interlace modes and other insanity correctly. Hence I've opted for a sligthly more elaborate route where we first read out the crtc timings for the adjusted mode, and then optionally (not sure

Re: [Intel-gfx] 3.9.0-rc7-next: i915: render error detected

2013-04-19 Thread Chris Wilson
On Fri, Apr 19, 2013 at 11:16:36AM +0200, Jiri Slaby wrote: Hi, with today's -next I got this: [drm] capturing error event; look for more information in /sys/kernel/debug/dri/0/i915_error_state i915: render error detected, EIR: 0x0010 i915: page table error i915: PGTBL_ER: 0x0002

Re: [Intel-gfx] [PATCH] drm/i915: Move the CSC_MODE bits next to the register

2013-04-19 Thread Daniel Vetter
On Fri, Apr 19, 2013 at 12:23:02PM +0300, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com Shame on me for not putting the bit definitions next to the register definition in the first place. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com

Re: [Intel-gfx] [PATCH 2/7] drm/i915: shovel compute clock into crtc-config.dpll on ilk

2013-04-19 Thread Ville Syrjälä
On Fri, Apr 19, 2013 at 11:14:32AM +0200, Daniel Vetter wrote: This was somehow lost in the pipe_config-dpll introduction in commit f47709a9502f3715cc488b788ca91cf0c142b1b1 Author: Daniel Vetter daniel.vet...@ffwll.ch Date: Thu Mar 28 10:42:02 2013 +0100 drm/i915: create

Re: [Intel-gfx] [DVO][PATCH] drm/i915: Fall back to bit banging mode for DVO transmitter detection

2013-04-19 Thread David Müller (ELSOFT AG)
Daniel Vetter wrote: On Fri, Apr 19, 2013 at 10:41:50AM +0200, David Müller (ELSOFT AG) wrote: +/* GMBUS NAK handling seems to be unstable, hence let the + * transmitter detection run in bit banging mode for now. + */ +intel_gmbus_force_bit(i2c,

[Intel-gfx] [RFC][PATCH] drm/i915: Make struct dpll == intel_clock_t

2013-04-19 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com This allows unifying a bunch of the PLL calculations and whatnot. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_display.c | 12 drivers/gpu/drm/i915/intel_drv.h | 18 +-

[Intel-gfx] [PATCH] drm/i915: Remove mention of Haswell in DDI code

2013-04-19 Thread Damien Lespiau
From: Damien Lespiau damien.lespiau We are trying to have more platform-orthogonal pieces of code. The DDI code shouldn't mention Haswell. Signed-off-by: Damien Lespiau damien.lespiau --- drivers/gpu/drm/i915/intel_ddi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Intel-gfx] [PATCH v2] drm/i915: Remove mention of Haswell in DDI code

2013-04-19 Thread Damien Lespiau
We are trying to have more platform-orthogonal pieces of code. The DDI code shouldn't mention Haswell. v2: Fix the email address Signed-off-by: Damien Lespiau damien.lesp...@intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Intel-gfx] [PATCH v2] drm/i915: Remove mention of Haswell in DDI code

2013-04-19 Thread Daniel Vetter
On Fri, Apr 19, 2013 at 02:27:31PM +0100, Damien Lespiau wrote: We are trying to have more platform-orthogonal pieces of code. The DDI code shouldn't mention Haswell. v2: Fix the email address Signed-off-by: Damien Lespiau damien.lesp...@intel.com Queued for -next, thanks for the patch.

Re: [Intel-gfx] [DVO][PATCH] drm/i915: Fall back to bit banging mode for DVO transmitter detection

2013-04-19 Thread Daniel Vetter
On Fri, Apr 19, 2013 at 12:54:00PM +0200, David Müller (ELSOFT AG) wrote: Daniel Vetter wrote: On Fri, Apr 19, 2013 at 10:41:50AM +0200, David Müller (ELSOFT AG) wrote: + /* GMBUS NAK handling seems to be unstable, hence let the + * transmitter detection run in bit

Re: [Intel-gfx] [PATCH] drm/i915: update VLV PLL and DPIO code v11

2013-04-19 Thread Daniel Vetter
On Fri, Apr 19, 2013 at 1:05 AM, Jesse Barnes jbar...@virtuousgeek.org wrote: \o/ I'll call off the hit man and cancel my plane ticket. Thanks. And I already looked eagerly forward to an epic showdown somewhere in the Swiss Alps ;-) -Daniel -- Daniel Vetter Software Engineer, Intel Corporation

Re: [Intel-gfx] [PATCH 5/7] drm/i915: don't force matching p1 for g4x/ilk+ reduced pll settings

2013-04-19 Thread Sean Paul
On Fri, Apr 19, 2013 at 5:14 AM, Daniel Vetter daniel.vet...@ffwll.ch wrote: g4x dplls and ilk+ pch plls have a separate field for the reduced p1 setting, so this restriction does not apply. Only older platforms have the restriction that the p1 divisors must match. This unnecessary

Re: [Intel-gfx] [PATCH 00/15] high-bpp fixes and fdi auto dithering

2013-04-19 Thread Chris Wilson
On Fri, Apr 19, 2013 at 11:24:32AM +0200, Daniel Vetter wrote: Hi all, This fixes all the bugs I've found in my various systems when using non-24bpp modes as the first part of the series. And with working non-standard bpp support I've figured we can go fancy and implemented auto-dithering

[Intel-gfx] [PATCH] drm/i915: avoid full modeset when changing the color range properties

2013-04-19 Thread Daniel Vetter
Automatic color range selection was added in commit 55bc60db5988c8366751d3d04dd690698a53412c Author: Ville Syrjälä ville.syrj...@linux.intel.com Date: Thu Jan 17 16:31:29 2013 +0200 drm/i915: Add Automatic mode for the Broadcast RGB property but that removed the check to avoid a full

Re: [Intel-gfx] [PATCH 3/7] drm/i915: add intel_display_power_enabled

2013-04-19 Thread Daniel Vetter
On Fri, Apr 19, 2013 at 12:28:30PM -0300, Paulo Zanoni wrote: Hi 2013/4/19 Daniel Vetter dan...@ffwll.ch: On Fri, Apr 19, 2013 at 06:44:47AM +0100, Damien Lespiau wrote: On Thu, Apr 18, 2013 at 04:35:42PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com This

[Intel-gfx] [PATCH] drm/i915: use vlv_dport_to_channel in vlv_signal_levels

2013-04-19 Thread Jesse Barnes
Minor cleanup. Would be nice to use an enum for channel in the DPIO macros so we don't mix up pipes and channels, but that's for another patch. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/intel_dp.c |9 + 1 file changed, 1 insertion(+), 8

Re: [Intel-gfx] [PATCH] drm/i915: use vlv_dport_to_channel in vlv_signal_levels

2013-04-19 Thread Daniel Vetter
On Fri, Apr 19, 2013 at 08:46:35AM -0700, Jesse Barnes wrote: Minor cleanup. Would be nice to use an enum for channel in the DPIO macros so we don't mix up pipes and channels, but that's for another patch. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org Queued for -next, thanks for the

Re: [Intel-gfx] FW: Release Notes for Beignet Version 0.1

2013-04-19 Thread Simon Richter
Hi, On 16.04.2013 09:50, Zhigang Gong wrote: [Gong, Zhigang] As I know, Simon implemented ICD for Beignet and it may need some time to rebase to the latest beignet code base. If you are interested, this is the link http://psi5.com/~geier/beignet.git. Indeed, the extension handling is

[Intel-gfx] 3.9.0-rc7-next: i915: render error detected

2013-04-19 Thread Jiri Slaby
Hi, with today's -next I got this: [drm] capturing error event; look for more information in /sys/kernel/debug/dri/0/i915_error_state i915: render error detected, EIR: 0x0010 i915: page table error i915: PGTBL_ER: 0x0002 [drm:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x0010,

[Intel-gfx] [PATCH] drm/i915: remove redundant (and incorrect!) dither enable for VLV

2013-04-19 Thread Jesse Barnes
We already enable dithering above if needed, and we definitely shouldn't be enabling the pipe at this point, so just drop this whole block. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/intel_display.c |9 - 1 file changed, 9 deletions(-) diff --git

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

2013-04-19 Thread Jesse Barnes
On Fri, 19 Apr 2013 11:24:37 +0200 Daniel Vetter daniel.vet...@ffwll.ch wrote: + pipeconf = ~(PIPECONF_BPC_MASK | PIPECONF_DITHER_EN); + if (intel_crtc-config.dither intel_crtc-config.pipe_bpp != 30) I think the magic != 30 check needs a comment, or we should never

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

2013-04-19 Thread Jesse Barnes
On VLV, the Punit doesn't automatically drop the GPU to it's minimum voltage level when entering RC6, so we arm a timer to do it for us from the RPS interrupt handler. It'll generally only fire when we go idle (or if for some reason there's a long delay between RPS interrupts), but won't be

[Intel-gfx] [PATCH] drm/i915: hw state readout support for pipe timings

2013-04-19 Thread Daniel Vetter
This does duplicate the logic in intel_crtc_mode_get a bit, but the issue is that we also should handle interlace modes and other insanity correctly. Hence I've opted for a sligthly more elaborate route where we first read out the crtc timings for the adjusted mode, and then optionally (not sure

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

2013-04-19 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

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

2013-04-19 Thread Jesse Barnes
On Fri, 19 Apr 2013 20:17:10 +0200 Daniel Vetter daniel.vet...@ffwll.ch wrote: diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 8c36376..7f1ab8b 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@

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

2013-04-19 Thread Daniel Vetter
On Fri, Apr 19, 2013 at 8:39 PM, Jesse Barnes jbar...@virtuousgeek.org wrote: On Fri, 19 Apr 2013 20:17:10 +0200 Daniel Vetter daniel.vet...@ffwll.ch wrote: diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 8c36376..7f1ab8b 100644 ---

[Intel-gfx] [PATCH] drm/i915: force bpp for eDP panels

2013-04-19 Thread Daniel Vetter
We've had our fair share of woes already which showed that we can't rely on the bpc limits in the EDID for eDP panels without risking black screens. So now we limit the depth by what the BIOS recommends in the VBT: commit 2f4f649a69a9eb51f6e98130e19dd90a260a4145 Author: Jani Nikula

[Intel-gfx] [PATCH 3/7] drm/i915: add intel_display_power_enabled

2013-04-19 Thread Paulo Zanoni
From: Paulo Zanoni paulo.r.zan...@intel.com This should replace intel_using_power_well. The idea is that we're adding the requested power domain as an argument, so this might enable the code to look less platform-specific and also allows us to easily add new domains in case we need. v2: Add more

[Intel-gfx] [PATCH 6/7] drm/i915: check the power well on i915_pipe_enabled

2013-04-19 Thread Paulo Zanoni
From: Paulo Zanoni paulo.r.zan...@intel.com This fixes unclaimed register messages when the power well is disabled and there's a GPU hang. v2: Use the new intel_display_power_enabled(). v3: Use the new domains for intel_display_power_enabled(). Signed-off-by: Paulo Zanoni