[Intel-gfx] [PATCH v2] drm/i915: HDMI/DP - ELD info refresh support for Haswell

2013-01-17 Thread Wang Xingchao
ELD info should be updated dynamically according to hot plug event. For haswell chip, clear/set the eld valid bit and output enable bit from callback intel_disable/eanble_ddi(). Signed-off-by: Wang Xingchao --- drivers/gpu/drm/i915/intel_ddi.c | 18 ++ 1 file changed, 18 insert

Re: [Intel-gfx] [PATCH] drm/i915: HDMI/DP - ELD info refresh support for Haswell

2013-01-17 Thread Wang, Xingchao
Hi Vivi, > -Original Message- > From: Rodrigo Vivi [mailto:rodrigo.v...@gmail.com] > Sent: Tuesday, January 15, 2013 1:00 AM > To: Wang, Xingchao > Cc: Daniel Vetter; intel-gfx; Zanoni, Paulo R > Subject: Re: [Intel-gfx] [PATCH] drm/i915: HDMI/DP - ELD info refresh support > for Haswell >

Re: [Intel-gfx] [PATCH 07/13] drm/i915: Stop using gtt_total_entries

2013-01-17 Thread Ben Widawsky
On Fri, 18 Jan 2013 00:04:24 +0100 Daniel Vetter wrote: > On Thu, Jan 17, 2013 at 12:45:18PM -0800, Ben Widawsky wrote: > > Similar to gtt_mappable_entries we don't usually want the entries, > > it's easy enough to calculate it when you need. > > > > v2: Move relevant fields above pre-gen6 init

Re: [Intel-gfx] [PATCH 06/13] drm/i915: Remove use of gtt_mappable_entries

2013-01-17 Thread Daniel Vetter
On Thu, Jan 17, 2013 at 12:45:17PM -0800, Ben Widawsky wrote: > Mappable_end, ie. size is almost always what you want as opposed to the > number of entries. Since we already have that information, we can scrap > the number of entries and only calculate it when needed. > > If gtt_start is !0, this

Re: [Intel-gfx] [PATCH 08/13] drm/i915: Move stolen_size to the new struct

2013-01-17 Thread Daniel Vetter
On Thu, Jan 17, 2013 at 12:45:19PM -0800, Ben Widawsky wrote: > Reviewed-by: Rodrigo Vivi > Signed-off-by: Ben Widawsky > --- > drivers/gpu/drm/i915/i915_drv.h| 2 ++ > drivers/gpu/drm/i915/i915_gem_gtt.c| 7 --- > drivers/gpu/drm/i915/i915_gem_stolen.c | 8 > 3 files ch

Re: [Intel-gfx] [PATCH 07/13] drm/i915: Stop using gtt_total_entries

2013-01-17 Thread Daniel Vetter
On Thu, Jan 17, 2013 at 12:45:18PM -0800, Ben Widawsky wrote: > Similar to gtt_mappable_entries we don't usually want the entries, > it's easy enough to calculate it when you need. > > v2: Move relevant fields above pre-gen6 init > > Reviewed-by: Rodrigo Vivi > Signed-off-by: Ben Widawsky [sni

[Intel-gfx] [PATCH 13/13] drm/i915: Finally kill off struct intel_gtt

2013-01-17 Thread Ben Widawsky
Nothing is shared anymore between AGP and drm/i915 driver. Pre-GEN6 still uses AGP, but all necessary info is encapsulated per driver. v2: Conflict resolution from earlier rebase Reviewed-by: Rodrigo Vivi Signed-off-by: Ben Widawsky --- drivers/char/agp/intel-gtt.c| 7 --- drivers

[Intel-gfx] [PATCH 12/13] drm/i915: Remove scratch page from shared

2013-01-17 Thread Ben Widawsky
We already had a mapping in both (minus the phys_addr in AGP). Reviewed-by: Rodrigo Vivi Signed-off-by: Ben Widawsky --- drivers/char/agp/intel-gtt.c| 9 + drivers/gpu/drm/i915/i915_drv.h | 2 ++ drivers/gpu/drm/i915/i915_gem_gtt.c | 16 include/drm/intel-

[Intel-gfx] [PATCH 11/13] drm/i915: Cut out the infamous ILK w/a from AGP layer

2013-01-17 Thread Ben Widawsky
And, move it to where the rest of the logic is. There is some slight functionality changes. There was extra paranoid checks in AGP code making sure we never do idle maps on gen2 parts. That was not duplicated as the simple PCI id check should do the right thing. v2: use IS_GEN5 && IS_MOBILE check

[Intel-gfx] [PATCH 10/13] drm/i915: Needs_dmar, not

2013-01-17 Thread Ben Widawsky
The reasoning behind our code taking two paths depending upon whether or not we may have been configured for IOMMU isn't clear to me. It should always be safe to use the pci mapping functions as they are designed to abstract the decision we were handling in i915. Aside from simpler code, removing

[Intel-gfx] [PATCH 09/13] agp/intel: decouple more of the agp-i915 sharing

2013-01-17 Thread Ben Widawsky
Reviewed-by: Rodrigo Vivi Signed-off-by: Ben Widawsky --- drivers/char/agp/intel-gtt.c | 35 +-- include/drm/intel-gtt.h | 11 +-- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-g

[Intel-gfx] [PATCH 08/13] drm/i915: Move stolen_size to the new struct

2013-01-17 Thread Ben Widawsky
Reviewed-by: Rodrigo Vivi Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_drv.h| 2 ++ drivers/gpu/drm/i915/i915_gem_gtt.c| 7 --- drivers/gpu/drm/i915/i915_gem_stolen.c | 8 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i

[Intel-gfx] [PATCH 07/13] drm/i915: Stop using gtt_total_entries

2013-01-17 Thread Ben Widawsky
Similar to gtt_mappable_entries we don't usually want the entries, it's easy enough to calculate it when you need. v2: Move relevant fields above pre-gen6 init Reviewed-by: Rodrigo Vivi Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_drv.h | 3 +++ drivers/gpu/drm/i915/i915_gem_

[Intel-gfx] [PATCH 06/13] drm/i915: Remove use of gtt_mappable_entries

2013-01-17 Thread Ben Widawsky
Mappable_end, ie. size is almost always what you want as opposed to the number of entries. Since we already have that information, we can scrap the number of entries and only calculate it when needed. If gtt_start is !0, this will have slightly different behavior. This difference can only occur in

[Intel-gfx] [PATCH 05/13] drm/i915: Remove use on gma_bus_addr on gen6+

2013-01-17 Thread Ben Widawsky
We have enough info to not use the intel_gtt bridge stuff. v2: Move setup of mappable_base above the legacy init stuff because we still need that on older platforms. (Daniel) v3: Remove the dev_priv hunk which was rebased in by accident Reviewed-by: Rodrigo Vivi (v2) Signed-off-by: Ben Widawsky

[Intel-gfx] [PATCH 04/13] drm/i915: Create a gtt structure

2013-01-17 Thread Ben Widawsky
The purpose of the gtt structure is to help isolate our gtt specific properties from the rest of the code (in doing so it help us finish the isolation from the AGP connection). The following members are pulled out (and renamed): gtt_start gtt_total gtt_mappable_end gtt_mappable gtt_base_addr gsm

[Intel-gfx] [PATCH 03/13] drm/i915: Remove gtt_mappable_total

2013-01-17 Thread Ben Widawsky
With the assertion from the previous patch in place, it should be safe to get rid gtt_mappable_total. Keeps things saner to not have to track the same info in two places. In order to keep the diff as simple as possible and keep with the existing gtt_setup semantics we opt to keep gtt_mappable_end.

[Intel-gfx] [PATCH 02/13] drm/i915: Mappable_end can't ever be > end

2013-01-17 Thread Ben Widawsky
Both DRI1 and DRI2 can never specify a mappable size which goes past the GTT size. Don't pretend otherwise. Reviewed-by: Rodrigo Vivi Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_gem_gtt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 01/13] drm/i915: Kill gtt_end

2013-01-17 Thread Ben Widawsky
It's duplicated in the more useful gtt_total. Reviewed-by: Rodrigo Vivi Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_drv.h | 1 - drivers/gpu/drm/i915/i915_gem_gtt.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers

[Intel-gfx] [PATCH 00/13 v2] The final nail in AGP on GEN6+

2013-01-17 Thread Ben Widawsky
Rebased on a nightly branch which had some decent rebase conflicts resolved for Daniel. Rodrigo's reviewed-by applied, and a few minor fixes here and there. Needs some testing on pre-GEN6 platforms. Ben Widawsky (13): drm/i915: Kill gtt_end drm/i915: Mappable_end can't ever be > end drm/i91

Re: [Intel-gfx] [PATCH 0/8] Detect and deal with Interrupt 'Storms' from noisy Hotplug Lines.

2013-01-17 Thread Daniel Vetter
On Thu, Jan 17, 2013 at 03:01:06PM +0100, Egbert Eich wrote: > Hi Daniel, > > On Fri, Jan 11, 2013 at 09:34:08PM +0100, Daniel Vetter wrote: > > > > Nice work, and we know that we need this since quite a while. But > > unfortunately we've not yet come around to implement something. Some > > high-

[Intel-gfx] [PATCH v2 4/4] drm/i915: Provide the quantization range in the AVI infoframe

2013-01-17 Thread ville . syrjala
From: Ville Syrjälä The AVI infoframe is able to inform the display whether the source is sending full or limited range RGB data. As per CEA-861 [1] we must first check whether the display reports the quantization range as selectable, and if so we can set the approriate bits in the AVI inforfram

[Intel-gfx] [PATCH v2 3/4] drm/edid: Add drm_rgb_quant_range_selectable()

2013-01-17 Thread ville . syrjala
From: Ville Syrjälä drm_rgb_quant_range_selectable() will report whether the monitor claims to support for RGB quantization range selection. The information can be found in the CEA Video capability block. v2: s/quantzation/quantization/ in the comment Reviewed-by: Paulo Zanoni Signed-off-by:

[Intel-gfx] [PATCH v3 2/4] drm/i915: Add "Automatic" mode for the "Broadcast RGB" property

2013-01-17 Thread ville . syrjala
From: Ville Syrjälä Add a new "Automatic" mode to the "Broadcast RGB" range property. When selected the driver automagically selects between full range and limited range output. Based on CEA-861 [1] guidelines, limited range output is selected if the mode is a CEA mode, except 640x480. Otherwise

[Intel-gfx] [PATCH v3 1/4] drm/i915: Fix RGB color range property for PCH platforms

2013-01-17 Thread ville . syrjala
From: Ville Syrjälä The RGB color range select bit on the DP/SDVO/HDMI registers disappeared when PCH was introduced, and instead a new PIPECONF bit was added that performs the same function. Add a new INTEL_MODE_LIMITED_COLOR_RANGE private mode flag, and set it in the encoder mode_fixup if limi

[Intel-gfx] drm/i915: RGB quantization range stuff v3

2013-01-17 Thread ville . syrjala
Third attempt at handling the RGB quantization range for HDMI and DP. Changes since the last time: - Addressed all of Paulo's review comments. I think this is ready to go in, unless someone complains loudly. ___ Intel-gfx mailing list Intel-gfx@lists.fr

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

2013-01-17 Thread Daniel Vetter
Hi Dave More important fixes for 3.9: - error_state improvements to help debug the new scanline wait code added for gen6+ - bug reports started popping up :( patch from Chris Wilson. - fix a panel power sequence confusion between the eDP and lvds detection code resulting in black screens - reg

Re: [Intel-gfx] [PATCH 0/8] Detect and deal with Interrupt 'Storms' from noisy Hotplug Lines.

2013-01-17 Thread Egbert Eich
Hi Daniel, On Fri, Jan 11, 2013 at 09:34:08PM +0100, Daniel Vetter wrote: > > Nice work, and we know that we need this since quite a while. But > unfortunately we've not yet come around to implement something. Some > high-level comments on how I think this should best be handled: > > - imo dv_pr

Re: [Intel-gfx] [PATCH 10/13 v2] drm/i915: Needs_dmar, not

2013-01-17 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Wed, Jan 16, 2013 at 4:22 PM, Ben Widawsky wrote: > The reasoning behind our code taking two paths depending upon whether or > not we may have been configured for IOMMU isn't clear to me. It should > always be safe to use the pci mapping functions as they are designe

Re: [Intel-gfx] [PATCH 07/13 v2] drm/i915: Stop using gtt_total_entries

2013-01-17 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Wed, Jan 16, 2013 at 4:22 PM, Ben Widawsky wrote: > Similar to gtt_mappable_entries we don't usually want the entries, > it's easy enough to calculate it when you need. > > v2: Move relevant fields above pre-gen6 init > > Signed-off-by: Ben Widawsky > --- > drivers

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Add "Automatic" mode for the "Broadcast RGB" property

2013-01-17 Thread Paulo Zanoni
Hi 2013/1/16 : > From: Ville Syrjälä > > Add a new "Automatic" mode to the "Broadcast RGB" range property. > When selected the driver automagically selects between full range and > limited range output. > > Based on CEA-861 guidelines, limited range output is selected if the > mode is a CEA mode

Re: [Intel-gfx] [PATCH 06/13 v2] drm/i915: Remove use of gtt_mappable_entries

2013-01-17 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Wed, Jan 16, 2013 at 4:22 PM, Ben Widawsky wrote: > Mappable_end, ie. size is almost always what you want as opposed to the > number of entries. Since we already have that information, we can scrap > the number of entries and only calculate it when needed. > > If gtt

Re: [Intel-gfx] [PATCH 05/13 v2] drm/i915: Remove use on gma_bus_addr on gen6+

2013-01-17 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Wed, Jan 16, 2013 at 4:20 PM, Ben Widawsky wrote: > We have enough info to not use the intel_gtt bridge stuff. > > v2: Move setup of mappable_base above the legacy init stuff because we > still need that on older platforms. (Daniel) > > Signed-off-by: Ben Widawsky >

Re: [Intel-gfx] [PATCH 13/13 v2] drm/i915: Finally kill off struct intel_gtt

2013-01-17 Thread Rodrigo Vivi
ops, I just noticed this v2 here... same for this one: Reviewed-by: Rodrigo Vivi On Wed, Jan 16, 2013 at 4:23 PM, Ben Widawsky wrote: > Nothing is shared anymore between AGP and drm/i915 driver. Pre-GEN6 > still uses AGP, but all necessary info is encapsulated per driver. > > v2: Conflict resolu

Re: [Intel-gfx] [PATCH 13/13] drm/i915: Finally kill off struct intel-gtt

2013-01-17 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Tue, Jan 15, 2013 at 7:26 PM, Ben Widawsky wrote: > Nothing is shared anymore between AGP and drm/i915 driver. Pre-GEN6 > still uses AGP, but all necessary info is encapsulated per driver. > > Signed-off-by: Ben Widawsky > --- > drivers/char/agp/intel-gtt.c

Re: [Intel-gfx] [PATCH 1/4] drm/i915: Fix RGB color range property for PCH platforms

2013-01-17 Thread Paulo Zanoni
Hi 2013/1/16 : > From: Ville Syrjälä > > The RGB color range select bit on the DP/SDVO/HDMI registers > disappeared when PCH was introduced, and instead a new PIPECONF bit > was added that performs the same function. > > Add a new INTEL_MODE_LIMITED_COLOR_RANGE private mode flag, and set > it in

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Provide the quantization range in the AVI infoframe

2013-01-17 Thread Ville Syrjälä
On Thu, Jan 17, 2013 at 10:16:46AM -0200, Paulo Zanoni wrote: > Hi > > 2013/1/16 : > > From: Ville Syrjälä > > > > The AVI infoframe is able to inform the display whether the source is > > sending full or limited range RGB data. > > > > As per CEA-861 we must first check whether the display repo

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Provide the quantization range in the AVI infoframe

2013-01-17 Thread Paulo Zanoni
Hi 2013/1/16 : > From: Ville Syrjälä > > The AVI infoframe is able to inform the display whether the source is > sending full or limited range RGB data. > > As per CEA-861 we must first check whether the display reports the > quantization range as selectable, and if so we can set the approriate

Re: [Intel-gfx] [PATCH 3/4] drm/edid: Add drm_rgb_quant_range_selectable()

2013-01-17 Thread Paulo Zanoni
Hi 2013/1/16 : > From: Ville Syrjälä > > drm_rgb_quant_range_selectable() will report whether the monitor > claims to support for RGB quantization range selection. > > The information can be found in the CEA Video capability block. Looks correct (checked against the spec, did not really test).

Re: [Intel-gfx] [PATCH gen4asm 1/3] build: Don't use automake's maintainer modey

2013-01-17 Thread Damien Lespiau
On Thu, Jan 17, 2013 at 10:56:28AM +, Beauchesne, Gwenole wrote: > > On Fri, Jan 11, 2013 at 09:41:05AM +0100, Daniel Vetter wrote: > > I'm not against doing that, it'll shed more light/review/etc on the > > assembler (I > > assume patches would have to hit this list first). > > > > Xiang, Ho

Re: [Intel-gfx] [PATCH v2] drm/i915: fix FORCEWAKE posting reads

2013-01-17 Thread Daniel Vetter
On Thu, Jan 17, 2013 at 12:39 PM, Jani Nikula wrote: > Right, I just didn't feel very confident making strong claims here based > on more or less anecdotal evidence. (And even the original "never read > FORCEWAKE" feels like folklore...) Making rc6 more stable on one machine > was implied, but I c

Re: [Intel-gfx] [PATCH v2] drm/i915: fix FORCEWAKE posting reads

2013-01-17 Thread Jani Nikula
On Thu, 17 Jan 2013, Chris Wilson wrote: > On Thu, 17 Jan 2013 10:24:09 +0200, Jani Nikula wrote: >> We stopped reading FORCEWAKE for posting reads in >> >> commit 8dee3eea3ccd3b6c00a8d3a08dd715d6adf737dd >> Author: Ben Widawsky >> Date: Sat Sep 1 22:59:50 2012 -0700 >> >> drm/i915: Neve

Re: [Intel-gfx] [PATCH v2] drm/i915: fix FORCEWAKE posting reads

2013-01-17 Thread Chris Wilson
On Thu, 17 Jan 2013 10:24:09 +0200, Jani Nikula wrote: > We stopped reading FORCEWAKE for posting reads in > > commit 8dee3eea3ccd3b6c00a8d3a08dd715d6adf737dd > Author: Ben Widawsky > Date: Sat Sep 1 22:59:50 2012 -0700 > > drm/i915: Never read FORCEWAKE > > and started using something f

[Intel-gfx] [PATCH v2] drm/i915: fix FORCEWAKE posting reads

2013-01-17 Thread Jani Nikula
We stopped reading FORCEWAKE for posting reads in commit 8dee3eea3ccd3b6c00a8d3a08dd715d6adf737dd Author: Ben Widawsky Date: Sat Sep 1 22:59:50 2012 -0700 drm/i915: Never read FORCEWAKE and started using something from the same cacheline instead. It turns out reading ECOBUS as posting rea