* [PATCH] drm/i915: VGA needs to be on pipe A on i830M
@ 2012-10-21 21:26 Daniel Vetter
2012-10-22 13:07 ` Daniel Vetter
2012-10-23 9:49 ` Chris Wilson
0 siblings, 2 replies; 4+ messages in thread
From: Daniel Vetter @ 2012-10-21 21:26 UTC (permalink / raw)
To: Intel Graphics Development; +Cc: Daniel Vetter
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?id=51265
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
drivers/gpu/drm/i915/intel_crt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c
index c42b980..b3e20aa 100644
--- a/drivers/gpu/drm/i915/intel_crt.c
+++ b/drivers/gpu/drm/i915/intel_crt.c
@@ -743,7 +743,7 @@ void intel_crt_init(struct drm_device *dev)
crt->base.type = INTEL_OUTPUT_ANALOG;
crt->base.cloneable = true;
- if (IS_HASWELL(dev))
+ if (IS_HASWELL(dev) || IS_I830(dev))
crt->base.crtc_mask = (1 << 0);
else
crt->base.crtc_mask = (1 << 0) | (1 << 1) | (1 << 2);
--
1.7.11.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: VGA needs to be on pipe A on i830M
2012-10-21 21:26 [PATCH] drm/i915: VGA needs to be on pipe A on i830M Daniel Vetter
@ 2012-10-22 13:07 ` Daniel Vetter
2012-10-23 9:49 ` Chris Wilson
1 sibling, 0 replies; 4+ messages in thread
From: Daniel Vetter @ 2012-10-22 13:07 UTC (permalink / raw)
To: Intel Graphics Development; +Cc: Daniel Vetter
On Sun, Oct 21, 2012 at 11:26:29PM +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?id=51265
> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Note that this also fixes spurious VGA detection, since load-detect tried
to use pipe B (since pipe A was already occupied by the lvds output), but
in reality used pipe A and so wrongfully concluded that something is
connected to the VGA port.
Now we simply get an unknown state since we can't find any load detect
pipe. But if we manually move the LVDS to pipe B it works correctly.
-Daniel
> ---
> drivers/gpu/drm/i915/intel_crt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c
> index c42b980..b3e20aa 100644
> --- a/drivers/gpu/drm/i915/intel_crt.c
> +++ b/drivers/gpu/drm/i915/intel_crt.c
> @@ -743,7 +743,7 @@ void intel_crt_init(struct drm_device *dev)
>
> crt->base.type = INTEL_OUTPUT_ANALOG;
> crt->base.cloneable = true;
> - if (IS_HASWELL(dev))
> + if (IS_HASWELL(dev) || IS_I830(dev))
> crt->base.crtc_mask = (1 << 0);
> else
> crt->base.crtc_mask = (1 << 0) | (1 << 1) | (1 << 2);
> --
> 1.7.11.4
>
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: VGA needs to be on pipe A on i830M
2012-10-21 21:26 [PATCH] drm/i915: VGA needs to be on pipe A on i830M Daniel Vetter
2012-10-22 13:07 ` Daniel Vetter
@ 2012-10-23 9:49 ` Chris Wilson
2012-10-23 11:04 ` Daniel Vetter
1 sibling, 1 reply; 4+ messages in thread
From: Chris Wilson @ 2012-10-23 9:49 UTC (permalink / raw)
To: Intel Graphics Development; +Cc: Daniel Vetter
On Sun, 21 Oct 2012 23:26:29 +0200, Daniel Vetter <daniel.vetter@ffwll.ch> 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?id=51265
> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tbh this doesn't surprise me that much, it wasn't until 855gm that
attaching a second display and using an extended desktop became a
selling point. I haven't spotted any such limitations form the docs yet,
but xxtensive error reporting ftw,
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: VGA needs to be on pipe A on i830M
2012-10-23 9:49 ` Chris Wilson
@ 2012-10-23 11:04 ` Daniel Vetter
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Vetter @ 2012-10-23 11:04 UTC (permalink / raw)
To: Chris Wilson; +Cc: Daniel Vetter, Intel Graphics Development
On Tue, Oct 23, 2012 at 10:49:23AM +0100, Chris Wilson wrote:
> On Sun, 21 Oct 2012 23:26:29 +0200, Daniel Vetter <daniel.vetter@ffwll.ch> 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?id=51265
> > Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
>
> Tbh this doesn't surprise me that much, it wasn't until 855gm that
> attaching a second display and using an extended desktop became a
> selling point. I haven't spotted any such limitations form the docs yet,
> but xxtensive error reporting ftw,
>
> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
I've noticed that with this patch we know get and unknown connection state
since the code can't find a suitable pipe for load detection. But that
beats the previous state of affairs, where it tried to use pipe B,
actually used pipe A and concluded that something is connected (although
it's the LVDS on pipe A and nothing on the VGA connector on pipe B).
I've tried to make load detect work by remapping the pipe->planes stuff,
so that crtc 0 will use pipe B and hence we still have something left for
load-detect on pipe A. But alas, that upset the hw a bit.
So there's still some things to figure out, but this here will at least
paper over some of the problems.
I'll add these more recent observations to the commit.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-23 11:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-21 21:26 [PATCH] drm/i915: VGA needs to be on pipe A on i830M Daniel Vetter
2012-10-22 13:07 ` Daniel Vetter
2012-10-23 9:49 ` Chris Wilson
2012-10-23 11:04 ` Daniel Vetter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.