]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: Allow panel preferred EDID to override BIOS native mode
authorMatthew Garrett <mjg@redhat.com>
Mon, 8 Aug 2011 16:21:15 +0000 (16:21 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 12 Aug 2011 10:02:46 +0000 (11:02 +0100)
commit8924f0600f2d1b0b69a222136e72ce58c057116b
tree0a8c3e19bcbcb80e5ec9ba06fce9b7e3c8b6aa33
parentcd1c2f6c08bd3cd6db4b7986bd064fad51592cad
drm/radeon: Allow panel preferred EDID to override BIOS native mode

We have two sources of information about panel capabilities on mobile
radeon - the BIOS, which gives us a native mode, and the panel's preferred
mode. In theory these two will always match, but there's some corner cases
where the BIOS hasn't been fully initialised and so the native mode in it
ends up with default values. However, if we get a panel with reasonable
EDID, it's probably the case that the panel's preferred mode does actually
represent the panel capabilities. This patch handles that case by replacing
the native mode with the panel's preferred mode if the resolutions don't
match. Systems without a valid internal panel EDID will still use the BIOS
native mode.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_connectors.c