[Intel-gfx] [PATCH 63/76] drm/i915: switch the load detect code to the staged modeset config

2012-07-26 Thread Daniel Vetter
Now that set_mode also disables crtcs and expects it's new configuration in the staged output links we need to adjust the load detect code a bit. Signed-Off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_display.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --gi

[Intel-gfx] [PATCH 64/76] drm/i915: push commit_output_state past the crtc/encoder preparing

2012-07-26 Thread Daniel Vetter
With this change we can (finally!) rip out a few of the temporary hacks and clean up a few other things: - Kill intel_crtc_prepare_encoders, now unused. - Kill the hacks in the crtc_disable/enable functions to always call the encoder callbacks, we now always call the crtc functions with the right

[Intel-gfx] [PATCH 65/76] drm/i915: disable all crtcs at suspend time

2012-07-26 Thread Daniel Vetter
We need this to avoid confusing the hw state readout code with the cpt pch plls at resume time: We'd read the new pipe state (which is disabled), but still believe that we have a life pll connected to that pipe (from before the suspend). Hence properly disable pipes to clear out all the residual st

[Intel-gfx] [PATCH 66/76] drm/i915: add tons of modeset state checks

2012-07-26 Thread Daniel Vetter
... let's see how whether this catches anything earlier and I can track down a few bugs. v2: Add more checks and also add DRM_DEBUG_KMS output so that it's clear which connector/encoder/crtc is being checked atm. Which proved rather useful for debugging ... v3: Add a WARN in the common encoder dp

[Intel-gfx] [PATCH 67/76] drm/i915: rip out intel_disable_pch_ports

2012-07-26 Thread Daniel Vetter
Even with the old crtc helper code we should have disabled all encoders on that pipe by now, and with the new code this would definitely paper over a bug. We already have the necessary checks in place in intel_disable_transcoder, so if we accidentally leave a pch port on, this will be caught. Henc

[Intel-gfx] [PATCH 68/76] drm/i915: don't disable fdi links harder in ilk_crtc_enable

2012-07-26 Thread Daniel Vetter
Because they should have been disabled when shutting down the display pipe previously. To ensure that this is the case, add a few assserts instead of unconditionally disabling the fdi link. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_display.c |8 +--- 1 file changed, 5 i

[Intel-gfx] [PATCH 69/76] drm/i915: don't call dpms funcs after set_mode

2012-07-26 Thread Daniel Vetter
... because our current set_mode implementation doesn't bother to adjust for the dpms state, we just forcefully update it. So stop pretending that we're better than we're are and rip out this extranous call. Note that this totally confuses userspace, because the exposed connector property isn't ac

[Intel-gfx] [PATCH 70/76] drm/i915: update dpms property in set_mode

2012-07-26 Thread Daniel Vetter
Hopefully this makes userspace slightly less confused about us frobbing the dpms state behind its back. Yeah, it would be better to be more careful with not changing the dpms state, but that is quite more invasive. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_display.c |9

[Intel-gfx] [PATCH 71/76] drm/i915: add encoder->pre_enable/post_disable

2012-07-26 Thread Daniel Vetter
The cpu eDP encoder has some horrible hacks to set up the DP pll at the right time. To be able to move them to the right place, add some more encoder callbacks so that this can happen at the right time. LVDS has some similar funky hacks, but that would require more work (we need to move around the

[Intel-gfx] [PATCH 72/76] drm/i915: clean up the cpu edp pll special case

2012-07-26 Thread Daniel Vetter
By using the new pre_enabel/post_disable functions. To ensure that we only frob the cpu edp pll while the pipe is off add the relevant asserts. Thanks to the new output state staging, this is now really easy. Signed-Off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_dp.c | 74 ++

[Intel-gfx] [PATCH 61/76] drm/i915: s/intel_encoder_disable/intel_encoder_noop

2012-07-26 Thread Daniel Vetter
Because that's what it is. Unfortunately we can't rip this out because the fb helper has an incetious relationship with the crtc helper - it likes to call disable_unused_functions, among other things. Signed-Off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_crt.c |2 +- drivers/gpu/dr

[Intel-gfx] [PATCH 73/76] drm/i915: robustify edp_pll_on/off

2012-07-26 Thread Daniel Vetter
With the previous patch to clean up where exactly these two functions are getting called, this patch can tackle the enable/disable code itself: - WARN if the port enable bit is in the wrong state or if the edp pll bit is in the wrong state, just for paranoia's sake. - Don't disable the edp pll h

[Intel-gfx] [PATCH 74/76] drm/i915: rip out dp port enabling cludges^Wchecks

2012-07-26 Thread Daniel Vetter
These have been added because dp links are fiddle things and don't like it when we try to re-train an enabled output (or disable a disable output harder). And because the crtc helper code is ridiculously bad add tracking the modeset state. But with the new code in place it is simply a bug to disab

[Intel-gfx] [PATCH 75/76] drm/i915: disable the cpu edp port after the cpu pipe

2012-07-26 Thread Daniel Vetter
See bspec, Vol3 Part2, Section 1.1.3 "Display Mode Set Sequence". This applies to all platforms where we currently support eDP on, i.e. ilk, snb & ivb. Without this change we fail to light up the eDP port on previously unused crtcs (likely because something is stuck on the old pipe), and we also f

[Intel-gfx] [PATCH 76/76] drm/i915: move encoder->mode_set calls to crtc_mode_set

2012-07-26 Thread Daniel Vetter
Makes more sense to group the entire mode_set stage into one function. Noticed while discussion the rather confusing set of function names with Paulo Zanoni. Unfortunately I don't have an idea to make the function names lesss confusion. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel

[Intel-gfx] [PATCH] drm/i915: Set DERRMR around batches required vblank events

2012-07-26 Thread Chris Wilson
In order for the Display Engine to send messages to the Render Engine, that event must be unmasked in the Display Engine Render Response Mask Register (DERRMR). By default all events are masked to prevent unwanted messages to conserve power, and it is strongly recommended that only single events be

Re: [Intel-gfx] [PATCH 1/1] drm/i915: prevent possible pin leak on error path

2012-07-26 Thread Daniel Vetter
On Mon, Jun 18, 2012 at 11:04:30PM +0100, Chris Wilson wrote: > On Mon, 18 Jun 2012 19:03:38 -0300, Eugeni Dodonov > wrote: > > We should not hit this under any sane conditions, but still, this does not > > looks right. > > For pedagology. > > > > CC: Chris Wilson > > CC: Daniel Vetter > > CC

[Intel-gfx] [PATCH] drm/i915: PIPE_CONTROL TLB invalidation fix

2012-07-26 Thread Ben Widawsky
The IVB simulator really doesn't like a TLB invalidate with no post-sync operation, in fact it blows up in an assertion failure. The documentation states that we must issue the TLB invalidate with a CS stall: "Also Requires stall bit ([20] of DW1) set." This patch doesn't comply with the docs, but

Re: [Intel-gfx] [PATCH 4/4] drm/i915: l3 parity sysfs interface

2012-07-26 Thread Zhang, Xiong Y
Who will monitor this sysfs interface, 2D driver or 3D driver or other application ? Now, I don't find any user of this sysfs interface in 2D driver or 3D driver. thanks -Original Message- From: intel-gfx-bounces+xiong.y.zhang=intel@lists.freedesktop.org [mailto:intel-gfx-

Re: [Intel-gfx] [PATCH] drm/i915: PIPE_CONTROL TLB invalidation fix

2012-07-26 Thread Daniel Vetter
On Thu, Jul 26, 2012 at 04:48:43PM -0700, Ben Widawsky wrote: > The IVB simulator really doesn't like a TLB invalidate with no post-sync > operation, in fact it blows up in an assertion failure. The > documentation states that we must issue the TLB invalidate with a CS > stall: "Also Requires stall

<    1   2