Re: [Intel-gfx] drm_kms_helper problems

2012-10-23 Thread Bruno Prémont
On Mon, 22 Oct 2012 17:54:26 Mark Hounschell wrote: > Another interesting thing. I changed the boot file to only > "video=HDMI-A-1:e" and the monitor on the DVI port complains about the > resolution being to high. I then put the hdmi cable onto my dvi/hdmi > adapter and plug it into the DVI port

Re: [Intel-gfx] [PATCH 18/18] drm/i915: Introduce mapping of user pages into video memory (userptr) ioctl

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 12:21 AM, Jesse Barnes wrote: > On Fri, 19 Oct 2012 18:03:24 +0100 > Chris Wilson wrote: > >> By exporting the ability to map user address and inserting PTEs >> representing their backing pages into the GTT, we can exploit UMA in order >> to utilize normal application data

Re: [Intel-gfx] [PATCH 1/5] drm/i915: make edp panel power sequence setup more robust

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 12:04 AM, Jesse Barnes wrote: > If the current field is not zero and doesn't match the VBT, we might > add a debug statement. It could indicate a BIOS programmed value that > didn't involve a VBT update (I can imagine some vendors might do > this). Overwriting the current

Re: [Intel-gfx] [PATCH 5/5] flip_test: add wf-vblank test for expired sequence

2012-10-23 Thread Daniel Vetter
On Mon, Oct 22, 2012 at 08:40:08PM +0300, Imre Deak wrote: > Signed-off-by: Imre Deak As discussed on irc, I still have a few whishlists items for this one here left. Patches 1-4 are merged, thanks. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.

[Intel-gfx] [PATCH v2] flip_test: add wf-vblank test for expired sequence

2012-10-23 Thread Imre Deak
Signed-off-by: Imre Deak --- tests/flip_test.c | 58 - 1 file changed, 48 insertions(+), 10 deletions(-) In v2: - Wait for the seq that just completed (current_seq) not last_seq - 1. - Do an equality check for ts and seq instead of >=. The pr

Re: [Intel-gfx] [PATCH] drm/i915: fix overlay on i830M

2012-10-23 Thread Daniel Vetter
On Mon, Oct 22, 2012 at 12:55:55PM +0200, Daniel Vetter wrote: > The overlay on the i830M has a peculiar failure mode: It works the > first time around after boot-up, but consistenly hangs the second time > it's used. > > Chris Wilson has dug out a nice errata: > > "1.5.12 Clock Gating Disable fo

Re: [Intel-gfx] drm_kms_helper problems

2012-10-23 Thread Chris Wilson
On Tue, 23 Oct 2012 08:36:23 +0200, Bruno Prémont wrote: > On Mon, 22 Oct 2012 17:54:26 Mark Hounschell wrote: > > I'm still getting the same messages spewed into the kernel log file. So > > this looks to me like the kernel is confused. Again, I ask, why do I have 3 > > HDMIs and 3 DPs but jus

Re: [Intel-gfx] [PATCH 2/2] drm/i915/sdvo: restore i2c adapter config on intel_sdvo_init() failures

2012-10-23 Thread Chris Wilson
On Mon, 22 Oct 2012 16:12:18 +0300, Jani Nikula wrote: > SDVOB may be multiplexed with HDMIB. If it's not SDVOB, the same i2c > adapter may be used for HDMIB, with the adjusted config (i.e. with GPIO > bit-banging instead of gmbus). Restore i2c adapter config before error > return from intel_sdvo_

Re: [Intel-gfx] [PATCH] drm/i915: VGA needs to be on pipe A on i830M

2012-10-23 Thread Chris Wilson
On Sun, 21 Oct 2012 23:26:29 +0200, Daniel Vetter wrote: > The bit doesn't stick, and the output is always cloned from pipe A, > even when it's supposed to scan out from pipe B. > > Shuts up annoying warnings from the modeset-rework, too. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?

Re: [Intel-gfx] [PATCH] drm/i915/dp: actually nack test request

2012-10-23 Thread Chris Wilson
On Sat, 20 Oct 2012 21:13:05 +0200, Daniel Vetter wrote: > ... like the comment says. No idea whether this has any effect, but > I guess it's better to not lie to the display by acking a test request > and never following through with it. > > Signed-off-by: Daniel Vetter Ha, if I've learnt any

Re: [Intel-gfx] [PATCH] drm/i915: fix overlay on i830M

2012-10-23 Thread Chris Wilson
On Tue, 23 Oct 2012 11:12:02 +0200, Daniel Vetter wrote: > On Mon, Oct 22, 2012 at 12:55:55PM +0200, Daniel Vetter wrote: > > The overlay on the i830M has a peculiar failure mode: It works the > > first time around after boot-up, but consistenly hangs the second time > > it's used. > > > > Chris

Re: [Intel-gfx] drm_kms_helper problems

2012-10-23 Thread Mark Hounschell
On 10/23/2012 02:36 AM, Bruno Prémont wrote: On Mon, 22 Oct 2012 17:54:26 Mark Hounschell wrote: Another interesting thing. I changed the boot file to only "video=HDMI-A-1:e" and the monitor on the DVI port complains about the resolution being to high. I then put the hdmi cable onto my dvi/hdmi

Re: [Intel-gfx] [PATCH 06/10] drm/i915: Stop using AGP layer for GEN6+

2012-10-23 Thread Chris Wilson
On Mon, 22 Oct 2012 18:34:11 -0700, Ben Widawsky wrote: > +/* > + * Binds an object into the global gtt with the specified cache level. The > object > + * will be accessible to the GPU via commands whose operands reference > offsets > + * within the global GTT as well as accessible by the GPU th

Re: [Intel-gfx] [PATCH 2/2] drm/i915/sdvo: restore i2c adapter config on intel_sdvo_init() failures

2012-10-23 Thread Mika Kuoppala
On Mon, 22 Oct 2012 16:12:18 +0300, Jani Nikula wrote: > SDVOB may be multiplexed with HDMIB. If it's not SDVOB, the same i2c > adapter may be used for HDMIB, with the adjusted config (i.e. with GPIO > bit-banging instead of gmbus). Restore i2c adapter config before error > return from intel_sdvo_

Re: [Intel-gfx] [PATCH 01/10] drm/i915: No LLC_MLC for HSW.

2012-10-23 Thread Mika Kuoppala
On Mon, 22 Oct 2012 18:34:06 -0700, Ben Widawsky wrote: > The mid-level cache or as it's more commonly referred to now as L3, is > not setup this way on HSW. > > Signed-off-by: Ben Widawsky > --- > drivers/gpu/drm/i915/i915_gem_gtt.c | 10 +++--- > 1 file changed, 7 insertions(+), 3 deletio

Re: [Intel-gfx] [PATCH v2] flip_test: add wf-vblank test for expired sequence

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 12:07:52PM +0300, Imre Deak wrote: > Signed-off-by: Imre Deak > --- > tests/flip_test.c | 58 > - > 1 file changed, 48 insertions(+), 10 deletions(-) > > In v2: > - Wait for the seq that just completed (current_seq) n

Re: [Intel-gfx] [PATCH] drm/i915: fix overlay on i830M

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 10:56:46AM +0100, Chris Wilson wrote: > On Tue, 23 Oct 2012 11:12:02 +0200, Daniel Vetter wrote: > > On Mon, Oct 22, 2012 at 12:55:55PM +0200, Daniel Vetter wrote: > > > The overlay on the i830M has a peculiar failure mode: It works the > > > first time around after boot-up

Re: [Intel-gfx] [PATCH] drm/i915: VGA needs to be on pipe A on i830M

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 10:49:23AM +0100, Chris Wilson wrote: > On Sun, 21 Oct 2012 23:26:29 +0200, Daniel Vetter > wrote: > > The bit doesn't stick, and the output is always cloned from pipe A, > > even when it's supposed to scan out from pipe B. > > > > Shuts up annoying warnings from the mode

Re: [Intel-gfx] [RFC 1/4] time: export getnstime_raw_and_real for DRM

2012-10-23 Thread Imre Deak
On Tue, 2012-10-09 at 01:00 +0200, Mario Kleiner wrote: > On 08.10.12 13:35, Imre Deak wrote: > > On Sat, 2012-10-06 at 03:41 +0200, Mario Kleiner wrote: > >> [...] > >> > >> But then Psychtoolbox checks each timestamp it gets from somewhere > >> "outside" (OML_sync_control / INTEL_swap_events / AL

Re: [Intel-gfx] [PATCH 6/8] drm/i915: TLB invalidation with MI_FLUSH_SW requires a post-sync op

2012-10-23 Thread Chris Wilson
On Thu, 18 Oct 2012 13:07:17 -0500, Jesse Barnes wrote: > So store into the scratch space of the HWS to make sure the invalidate > occurs. Whoops, instant hang. Probably doesn't agree with being called FLUSH_SW and not FLUSH_DW! ;-) > + /* > + * Bspec vol 1c.5 - video engine command st

Re: [Intel-gfx] [PATCH v2] flip_test: add wf-vblank test for expired sequence

2012-10-23 Thread Imre Deak
On Tue, 2012-10-23 at 12:46 +0200, Daniel Vetter wrote: > On Tue, Oct 23, 2012 at 12:07:52PM +0300, Imre Deak wrote: > > Signed-off-by: Imre Deak > > --- > > tests/flip_test.c | 58 > > - > > 1 file changed, 48 insertions(+), 10 deletions(-)

Re: [Intel-gfx] [PATCH 7/8] drm/i915: PIPE_CONTROL TLB invalidate requires CS stall

2012-10-23 Thread Chris Wilson
On Thu, 18 Oct 2012 13:07:18 -0500, Jesse Barnes wrote: > "If ENABLED, PIPE_CONTROL command will flush the in flight data written > out by render engine to Global Observation point on flush done. Also > Requires stall bit ([20] of DW1) set." That quotation doesn't make sense in the context of T

Re: [Intel-gfx] [PATCH 0/5] eDP improvements

2012-10-23 Thread Paulo Zanoni
Hi 2012/10/20 Daniel Vetter : > Hi all, > > This is useful fallout of my futile attempts at getting the eDP panel on my > ivb > working without the BIOS' help. I now at least get a backlit black screen > though > ;-) > > Paulo said that this is good enough for his hsw eDP machine already, and it

Re: [Intel-gfx] [PATCH] drm/i915: Don't try to use SPR_SCALE when we don't have a sprite scaler

2012-10-23 Thread Jesse Barnes
On Mon, 22 Oct 2012 18:19:27 +0100 Damien Lespiau wrote: > From: Damien Lespiau > > Haswell does not have a scaler in the sprite pipeline anymore, so let's > ensure: > 1/ We bail out of update_plate() when someone is trying to ask to > display a scaled framebuffer, > 2/ We never write

Re: [Intel-gfx] [PATCH 09/10] drm/i915: flush system agent TLBs on SNB

2012-10-23 Thread Jesse Barnes
On Mon, 22 Oct 2012 18:34:14 -0700 Ben Widawsky wrote: > This allows us to map the PTEs WC. I've not done thorough testing or > performance measurements with this patch, but it should be decent. > > This is based on a patch from Jesse with the original commit message > > I've only lightly tested

Re: [Intel-gfx] [PATCH 1/5] drm/i915: make edp panel power sequence setup more robust

2012-10-23 Thread Jesse Barnes
On Tue, 23 Oct 2012 09:23:00 +0200 Daniel Vetter wrote: > On Tue, Oct 23, 2012 at 12:04 AM, Jesse Barnes > wrote: > > If the current field is not zero and doesn't match the VBT, we might > > add a debug statement. It could indicate a BIOS programmed value that > > didn't involve a VBT update (

Re: [Intel-gfx] [PATCH] drm/i915/dp: actually nack test request

2012-10-23 Thread Jesse Barnes
On Tue, 23 Oct 2012 10:53:07 +0100 Chris Wilson wrote: > On Sat, 20 Oct 2012 21:13:05 +0200, Daniel Vetter > wrote: > > ... like the comment says. No idea whether this has any effect, but > > I guess it's better to not lie to the display by acking a test request > > and never following through

Re: [Intel-gfx] [PATCH 6/8] drm/i915: TLB invalidation with MI_FLUSH_SW requires a post-sync op

2012-10-23 Thread Jesse Barnes
On Tue, 23 Oct 2012 12:22:16 +0100 Chris Wilson wrote: > On Thu, 18 Oct 2012 13:07:17 -0500, Jesse Barnes > wrote: > > So store into the scratch space of the HWS to make sure the invalidate > > occurs. > > Whoops, instant hang. Probably doesn't agree with being called FLUSH_SW > and not FLUSH_

Re: [Intel-gfx] [PATCH 09/10] drm/i915: flush system agent TLBs on SNB

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 07:17:53AM -0700, Jesse Barnes wrote: > On Mon, 22 Oct 2012 18:34:14 -0700 > Ben Widawsky wrote: > > > This allows us to map the PTEs WC. I've not done thorough testing or > > performance measurements with this patch, but it should be decent. > > > > This is based on a pa

Re: [Intel-gfx] [PATCH 09/10] drm/i915: flush system agent TLBs on SNB

2012-10-23 Thread Jesse Barnes
On Tue, 23 Oct 2012 16:28:53 +0200 Daniel Vetter wrote: > On Tue, Oct 23, 2012 at 07:17:53AM -0700, Jesse Barnes wrote: > > On Mon, 22 Oct 2012 18:34:14 -0700 > > Ben Widawsky wrote: > > > > > This allows us to map the PTEs WC. I've not done thorough testing or > > > performance measurements wi

Re: [Intel-gfx] [PATCH] drm/i915/dp: actually nack test request

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 07:25:35AM -0700, Jesse Barnes wrote: > On Tue, 23 Oct 2012 10:53:07 +0100 > Chris Wilson wrote: > > > On Sat, 20 Oct 2012 21:13:05 +0200, Daniel Vetter > > wrote: > > > ... like the comment says. No idea whether this has any effect, but > > > I guess it's better to not

Re: [Intel-gfx] [PATCH 09/10] drm/i915: flush system agent TLBs on SNB

2012-10-23 Thread Ben Widawsky
On Tue, 23 Oct 2012 07:35:48 -0700 Jesse Barnes wrote: > On Tue, 23 Oct 2012 16:28:53 +0200 > Daniel Vetter wrote: > > > On Tue, Oct 23, 2012 at 07:17:53AM -0700, Jesse Barnes wrote: > > > On Mon, 22 Oct 2012 18:34:14 -0700 > > > Ben Widawsky wrote: > > > > > > > This allows us to map the PTE

Re: [Intel-gfx] [PATCH] drm/i915: Don't try to use SPR_SCALE when we don't have a sprite scaler

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 07:16:03AM -0700, Jesse Barnes wrote: > On Mon, 22 Oct 2012 18:19:27 +0100 > Damien Lespiau wrote: > > > From: Damien Lespiau > > > > Haswell does not have a scaler in the sprite pipeline anymore, so let's > > ensure: > > 1/ We bail out of update_plate() when someone i

Re: [Intel-gfx] [PATCH 06/10] drm/i915: Stop using AGP layer for GEN6+

2012-10-23 Thread Ben Widawsky
On 2012-10-23 02:59, Chris Wilson wrote: On Mon, 22 Oct 2012 18:34:11 -0700, Ben Widawsky wrote: +/* + * Binds an object into the global gtt with the specified cache level. The object + * will be accessible to the GPU via commands whose operands reference offsets + * within the global GTT as

Re: [Intel-gfx] [PATCH 06/10] drm/i915: Stop using AGP layer for GEN6+

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 4:57 PM, Ben Widawsky wrote: > Actually, after we introduce the FLSH_CNTL patch from Jesse/me later in the > series, I think we just want a POSTING_READ on that register. It is > technically "required" by our desire to some day WC the registers, and > should synchronize eve

Re: [Intel-gfx] [PATCH] drm/i915: Don't try to use SPR_SCALE when we don't have a sprite scaler

2012-10-23 Thread Paulo Zanoni
Hi 2012/10/23 Daniel Vetter : > On Tue, Oct 23, 2012 at 07:16:03AM -0700, Jesse Barnes wrote: >> On Mon, 22 Oct 2012 18:19:27 +0100 >> Damien Lespiau wrote: >> >> > From: Damien Lespiau >> > >> > Haswell does not have a scaler in the sprite pipeline anymore, so let's >> > ensure: >> > 1/ We ba

[Intel-gfx] [PATCH] drm/i915: Don't try to use SPR_SCALE when we don't have a sprite scaler

2012-10-23 Thread Damien Lespiau
From: Damien Lespiau Haswell does not have a scaler in the sprite pipeline anymore, so let's ensure: 1/ We bail out of update_plate() when someone is trying to ask to display a scaled framebuffer, 2/ We never write to the nonexistent SPR_SCALE register Signed-off-by: Damien Lespiau ---

Re: [Intel-gfx] drm_kms_helper problems

2012-10-23 Thread Mark Hounschell
On 10/22/2012 07:42 AM, Mark Hounschell wrote: On 10/21/2012 03:18 PM, Bruno Prémont wrote: Hi Mark, On Sun, 21 October 2012 Mark Hounschell wrote: On 10/21/2012 10:58 AM, Bruno Prémont wrote: On Sun, 21 October 2012 Mark Hounschell wrote: I have a TV that appears to not provide proper EDID

Re: [Intel-gfx] [PATCH 5/5] drm/i915: extract intel_dp_init_panel_power_sequencer

2012-10-23 Thread Daniel Vetter
On Mon, Oct 22, 2012 at 03:08:38PM -0700, Jesse Barnes wrote: > On Sat, 20 Oct 2012 20:57:45 +0200 > Daniel Vetter wrote: > > > That thing has grown way too big already. > > > > Also move around a comment to the right spot. > > > > Signed-off-by: Daniel Vetter > > --- > > drivers/gpu/drm/i915

[Intel-gfx] [PATCH] drm/i915: Don't try to write to SPR_SCALE when disabling the plane

2012-10-23 Thread Damien Lespiau
From: Damien Lespiau A left over from: drm/i915: Don't try to use SPR_SCALE when we don't have a sprite scaler We also need to avoid to reset this register in _disable() Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/intel_sprite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

Re: [Intel-gfx] [PATCH] drm/i915: Don't try to write to SPR_SCALE when disabling the plane

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 06:24:25PM +0100, Damien Lespiau wrote: > From: Damien Lespiau > > A left over from: > drm/i915: Don't try to use SPR_SCALE when we don't have a sprite scaler > > We also need to avoid to reset this register in _disable() > > Signed-off-by: Damien Lespiau Squashed in

Re: [Intel-gfx] [PATCH 18/18] drm/i915: Introduce mapping of user pages into video memory (userptr) ioctl

2012-10-23 Thread Eric Anholt
Daniel Vetter writes: > On Tue, Oct 23, 2012 at 12:21 AM, Jesse Barnes > wrote: >> On Fri, 19 Oct 2012 18:03:24 +0100 >> Chris Wilson wrote: >> >>> By exporting the ability to map user address and inserting PTEs >>> representing their backing pages into the GTT, we can exploit UMA in order >>>

[Intel-gfx] [PATCH 0/2] drm: add monotonic timestamp support

2012-10-23 Thread Imre Deak
This is needed to make applications using wait-for-vblank/page-flip timestamps independent of time ajdustments other than adjustments for HW clock jitter. I've tested these with an updated intel-gpu-test/flip_test and will send the update for that once there's no objection about this patchset. Th

[Intel-gfx] [PATCH 1/2] drm: use monotonic time in drm_calc_vbltimestamp_from_scanoutpos

2012-10-23 Thread Imre Deak
For measuring duration we want to avoid that our start/end timestamps jump, so use monotonic instead of real time for that. Signed-off-by: Imre Deak --- drivers/gpu/drm/drm_irq.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_irq.c b

[Intel-gfx] [PATCH 2/2] drm: add support for monotonic vblank timestamps

2012-10-23 Thread Imre Deak
Jumps in the vblank and page flip event timestamps cause trouble for clients, so we should avoid them. The timestamp we get currently with gettimeofday can jump, so use instead monotonic timestamps. For backward compatibility use a module flag to revert back to using gettimeofday timestamps. Add a

Re: [Intel-gfx] [PATCH 06/10] drm/i915: Stop using AGP layer for GEN6+

2012-10-23 Thread Ben Widawsky
On Tue, 23 Oct 2012 16:58:50 +0200 Daniel Vetter wrote: > On Tue, Oct 23, 2012 at 4:57 PM, Ben Widawsky wrote: > > Actually, after we introduce the FLSH_CNTL patch from Jesse/me later in the > > series, I think we just want a POSTING_READ on that register. It is > > technically "required" by our

Re: [Intel-gfx] [PATCH 06/10] drm/i915: Stop using AGP layer for GEN6+

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 9:57 PM, Ben Widawsky wrote: >> On Tue, Oct 23, 2012 at 4:57 PM, Ben Widawsky wrote: >> > Actually, after we introduce the FLSH_CNTL patch from Jesse/me later in the >> > series, I think we just want a POSTING_READ on that register. It is >> > technically "required" by our

[Intel-gfx] [PATCH] drm/i915: do not set redundant DP dpms mode

2012-10-23 Thread Simon Que
Add a check to intel_dp_dpms() to skip setting the DP's DPMS mode if the current mode is the same as the new one. Signed-off-by: Simon Que --- drivers/gpu/drm/i915/intel_dp.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gp

Re: [Intel-gfx] [PATCH 06/10] drm/i915: Stop using AGP layer for GEN6+

2012-10-23 Thread Ben Widawsky
On Tue, 23 Oct 2012 22:03:21 +0200 Daniel Vetter wrote: > On Tue, Oct 23, 2012 at 9:57 PM, Ben Widawsky wrote: > >> On Tue, Oct 23, 2012 at 4:57 PM, Ben Widawsky wrote: > >> > Actually, after we introduce the FLSH_CNTL patch from Jesse/me later in > >> > the > >> > series, I think we just want

[Intel-gfx] [PATCH 00/18] Haswell eDP enablement v3

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni Hi Here is the third version, which is the result of the discussions I had with Daniel both on the mailing list and on IRC. In my discussions with Daniel we were wondering about code that would or would not be run on VGA (the only output that requires the PCH), so what I actu

[Intel-gfx] [PATCH 01/18] drm/i915: fork a Haswell version of ironlake_crtc_{enable, disable}

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni The way we enable and disable the PCH on Haswell changed considerably since now we have only one PCH transcoder, so we can't keep the same asserts and we also can't just unconditionally disable the PCH transcoder for non-PCH outputs. So let's fork a Haswell version. These new

[Intel-gfx] [PATCH 02/18] drm/i915: fix the checks inside Ironlake/Haswell crtc enable/disable

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni The last commit just forked the functions, this one removes Haswell code from the Ironlake functions and removes Ironlake code from the Haswell functions. It is worth noticing that we are not considering CPT possible on Haswell anymore. So far on Haswell enablement we kept try

[Intel-gfx] [PATCH 03/18] drm/i915: simplify intel_crtc_driving_pch

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni By forking Ironlake and Haswell functions. The only callers are {ironlake,haswell}_crtc_enable anyway, and this way we won't need to add other checks on the Haswell version for the next gens. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 31 +

[Intel-gfx] [PATCH 04/18] drm/i915: don't call Haswell PCH code when we can't or don't need

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni On Ironlake we have one PCH transcoder and FDI per pipe, so we know that if ironlake_crtc_driving_pch returns false we can disable the PCH transcoder and we also know that when we disable the crtc we can also disable the PCH transcoder. On Haswell there is only 1 PCH transcode

[Intel-gfx] [PATCH 05/18] drm/i915: add TRANSCODER_EDP

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni Before Haswell we used to have the CPU pipes and the PCH transcoders. We had the same amount of pipes and transcoders, and there was a 1:1 mapping between them. After Haswell what we used to call CPU pipe was split into CPU pipe and CPU transcoder. So now we have 3 CPU pipes (A

[Intel-gfx] [PATCH 06/18] drm/i915: convert PIPE_CLK_SEL to transcoder

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni This register appeared in Haswell. It does not have an EDP version because the EDP transcoder is always tied to the DDIA clock. Notice that if we call PIPE_CLK_SEL(pipe) when pipe is PIPE_A and transcoder is TRANSCODER_EDP we might introduce a bug, that's why this is a transcod

[Intel-gfx] [PATCH 07/18] drm/i915: convert DDI_FUNC_CTL to transcoder

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni Because there's one instance of the register per CPU transcoder and not per CPU pipe. This is another register that appeared for the first time on Haswell, and even though its Haswell name is PIPE_DDI_FUNC_CTL, it will be renamed to TRANS_DDI_FUNC_CTL, so let's just use the new

[Intel-gfx] [PATCH 08/18] drm/i915: check TRANSCODER_EDP on intel_modeset_setup_hw_state

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni We need to check if any of the pipes is using TRANSCODER_EDP. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/inte

[Intel-gfx] [PATCH 09/18] drm/i915: convert PIPECONF to use transcoder instead of pipe

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni Because the PIPECONF register is actually part of the CPU transcoder, not the CPU pipe. Ideally we would also rename PIPECONF to TRANSCONF to remind people that they should use the transcoder instead of the pipe, but let's keep it like this for now since most Gens still name i

[Intel-gfx] [PATCH 10/18] drm/i915: convert PIPE_MSA_MISC to transcoder

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni Same as the other registers. This one also appeared on Haswell for the first time, so that's why we are renaming it. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 19 ++- drivers/gpu/drm/i915/intel_ddi.c | 18 +- 2 files c

[Intel-gfx] [PATCH 11/18] drm/i915: convert CPU M/N timings to transcoder

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni Same thing as the previous commits. Not renaming this one since it exists since way before Haswell. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_reg.h | 16 drivers/gpu/drm/i915/intel_display.c | 10 +- drivers/gpu/drm/i915/intel_dp

[Intel-gfx] [PATCH 12/18] drm/i915: convert pipe timing definitions to transcoder

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_irq.c | 8 +--- drivers/gpu/drm/i915/i915_reg.h | 14 +++--- drivers/gpu/drm/i915/intel_display.c | 37 ++-- 3 files changed, 31 insertions(+), 28 deletions(-) di

[Intel-gfx] [PATCH 13/18] drm/i915: implement workaround for VTOTAL when using TRANSCODER_EDP

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni See the documentation for the DDI_FUNC_CTL register, EDP Input Select bits: when the EDP input selection is B, the VTOTAL_B must be programmed with the VTOTAL_EDP value, same thing for selection C. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_display.c | 11 +++

[Intel-gfx] [PATCH 14/18] drm/i915: select the correct pipe when using TRANSCODER_EDP

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 3283f6f..106c375 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++

[Intel-gfx] [PATCH 15/18] drm/i915: set the correct eDP aux channel clock divider on DDI

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni The cdclk frequency is not always the same, so the value here should be adjusted to match it. Version 2: call intel_ddi_get_cdclk_freq instead of reading CDCLK_FREQ, because the register is just for earlier HW steppings. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 16/18] drm/i915: set/unset the DDI eDP backlight

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 15 +-- drivers/gpu/drm/i915/intel_dp.c | 4 ++-- drivers/gpu/drm/i915/intel_drv.h | 6 -- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/

[Intel-gfx] [PATCH 17/18] drm/i915: turn the eDP DDI panel on/off

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni It's an important step :) Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 18 -- drivers/gpu/drm/i915/intel_dp.c | 11 --- drivers/gpu/drm/i915/intel_drv.h | 4 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/

[Intel-gfx] [PATCH 18/18] drm/i915: enable DDI eDP

2012-10-23 Thread Paulo Zanoni
From: Paulo Zanoni Now that all the eDP enablement bits are there, we can actually try to use the eDP. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/in

Re: [Intel-gfx] [PATCH] drm/i915: do not set redundant DP dpms mode

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 01:18:46PM -0700, Simon Que wrote: > Add a check to intel_dp_dpms() to skip setting the DP's DPMS mode if > the current mode is the same as the new one. > > Signed-off-by: Simon Que The modeset rework, merged into 3.7 solves this entire disaster rather neatly ... We won't

Re: [Intel-gfx] [PATCH 13/18] drm/i915: implement workaround for VTOTAL when using TRANSCODER_EDP

2012-10-23 Thread Daniel Vetter
On Tue, Oct 23, 2012 at 06:30:03PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > See the documentation for the DDI_FUNC_CTL register, EDP Input Select > bits: when the EDP input selection is B, the VTOTAL_B must be > programmed with the VTOTAL_EDP value, same thing for selection C. > > Sig

Re: [Intel-gfx] bad panel power sequencing delays, disabling panel

2012-10-23 Thread Daniel J Blueman
On 17 October 2012 00:43, Daniel Vetter wrote: > On Tue, Oct 16, 2012 at 6:10 PM, Daniel J Blueman wrote: >> [drm:intel_dp_init], cur t1_t3 0 t8 0 t9 0 t10 0 t11_t12 4000 >> [drm:intel_dp_init], vbt t1_t3 0 t8 0 t9 0 t10 0 t11_t12 0 >> [drm:intel_dp_init], panel power up delay 21, power down dela