All of lore.kernel.org
 help / color / mirror / Atom feed
* EDID modes unavailable when no connector/crtc available at boot
@ 2013-08-11  4:41 ` Tony Prisk
  0 siblings, 0 replies; 8+ messages in thread
From: Tony Prisk @ 2013-08-11  4:41 UTC (permalink / raw)
  To: dri-devel, David Airlie, linux-fbdev@vger.kernel.org

I am working on the HDMI driver for the i.MX6 as part of the larger DRM 
driver written by Sascha Hauer and need a little advice. I seem to be 
missing one important part of the subsystem that I haven't been able to 
resolve.

In my testing, powering on the system with only a HDMI cable connected 
works perfectly. Resolution is set to 1920x1080 as requested (with the 
framebuffer console at the same resolution).

If I boot up the system without an HDMI cable connected (or any other 
cable), I get the expected:
[    1.470273] imx_hdmi_connector_detect
[    1.470276] returned cable DISCONNECTED
[    1.470289] imx-drm imx-drm: No connectors reported connected with modes
[    1.470297] [drm] Cannot find any crtc or sizes - going 1024x768

When I connect the cable at a later time, all EDID detected modes are 
'truncated' to '<= 1024x768', but because I have a video=xxx in 
bootargs, the driver still seems to initialize to 1920x1080, but with a 
framebuffer of 1024x768.

I assume this is a mistake on my part, but I don't know what I'm missing 
that would cause it.

I see in drm_crtc_helper.c:drm_helper_mode_fill_fb_struct that the 
width/height are set to the initialized mode.
Later in drm_fb_helper.c:drm_fb_helper_hotplug_event, max_width if set 
to fb->width.

This is what causes the modes to be truncated when the HDMI connector is 
finally connected (max_width is now limited to 1024).


Suggestions appreciated.

Regards
Tony Prisk

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-08-11 10:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-11  4:41 EDID modes unavailable when no connector/crtc available at boot Tony Prisk
2013-08-11  4:41 ` Tony Prisk
2013-08-11  8:42 ` Dave Airlie
2013-08-11  8:42   ` Dave Airlie
2013-08-11  9:42   ` Tony Prisk
2013-08-11  9:42     ` Tony Prisk
2013-08-11 10:06     ` Dave Airlie
2013-08-11 10:06       ` Dave Airlie

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.