* intel_fb_initilal_config encoder->crtc warn
@ 2014-05-30 5:40 Dave Airlie
2014-05-30 8:09 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Dave Airlie @ 2014-05-30 5:40 UTC (permalink / raw)
To: intel-gfx
Hi,
Just wondering what the point of the WARN(!encoder->crtc) in that function is,
I hit this with MST and I can't see what it should matter, where I hit
it is if I dock MST while X is running and VT switch, I get it,
I first wondered when encoder would ever be false in non-MST world
anyways, but I've added a check to find a valid MST encoder at this
point, but none of them have a crtc assigned as of yet as they haven't
been configured, even though I expect X has configured them, fbdev
would turn them off on vt switch I assume.
Dave.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: intel_fb_initilal_config encoder->crtc warn
2014-05-30 5:40 intel_fb_initilal_config encoder->crtc warn Dave Airlie
@ 2014-05-30 8:09 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2014-05-30 8:09 UTC (permalink / raw)
To: Dave Airlie; +Cc: intel-gfx
On Fri, May 30, 2014 at 7:40 AM, Dave Airlie <airlied@gmail.com> wrote:
> Just wondering what the point of the WARN(!encoder->crtc) in that function is,
>
> I hit this with MST and I can't see what it should matter, where I hit
> it is if I dock MST while X is running and VT switch, I get it,
>
> I first wondered when encoder would ever be false in non-MST world
> anyways, but I've added a check to find a valid MST encoder at this
> point, but none of them have a crtc assigned as of yet as they haven't
> been configured, even though I expect X has configured them, fbdev
> would turn them off on vt switch I assume.
If drm_connector->encoder is set, then drm_encoder->crtc must also be
set. Otherwise the hw state readout/sanitize step has left behind
something which doesn't make sense. One of your older version (haven't
checked the latest) used sw state in the get_hw_state functions, that
might explain this if you know have a mix of them ;-)
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-30 8:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-30 5:40 intel_fb_initilal_config encoder->crtc warn Dave Airlie
2014-05-30 8:09 ` 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.