drm/edid: EST fixes
Subsystems (2)
cover drm/edid: EST fixes
I was staring at the est modes a bit and noticed a few small bugs.
Also the modes in our lists confused the hell out of me (esp. the 1152x870 vs 1152x864 issue) until I thought to go digging through xf86EdidModes.c where the history is actually documented.
Looks like the >=0 vs >0 issue was also present in xf86EdidModes.c and it got already fixed there in 2012, but no one thought to bring the fix over to drm_edid.c :(
PATCH 1/3 drm/edid: Fix the 1792x1344-75 EST III mode
From: Ville Syrjälä <[email protected]>
The correct refresh rate for this mode is 75, not 85.
--- drivers/gpu/drm/drm_edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_edid.c +1 -1
@@ -560,7 +560,7 @@ static const struct minimode est3_modes[] = { { 1600, 1200, 75, 0 }, { 1600, 1200, 85, 0 }, { 1792, 1344, 60, 0 }, - { 1792, 1344, 85, 0 }, + { 1792, 1344, 75, 0 }, { 1856, 1392, 60, 0 }, { 1856, 1392, 75, 0 }, { 1920, 1200, 60, 1 },
Signature · 6 lines
1.8.1.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 1/3] drm/edid: Fix the 1792x1344-75 EST III mode
Quoted 5 lines · On Mon, Oct 14, 2013 at 9:44 AM, <[email protected]> wrote:
From: Ville Syrjälä <[email protected]>
The correct refresh rate for this mode is 75, not 85.
Signed-off-by Ville Syrjälä <[email protected]>
For the series:
Quoted 24 lines
--- drivers/gpu/drm/drm_edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_edid.c +1
-2@@ -560,7 +560,7 @@ static const struct minimode est3_modes[] = { { 1600, 1200, 75, 0 }, { 1600, 1200, 85, 0 }, { 1792, 1344, 60, 0 }, - { 1792, 1344, 85, 0 }, + { 1792, 1344, 75, 0 }, { 1856, 1392, 60, 0 }, { 1856, 1392, 75, 0 }, { 1920, 1200, 60, 1 }, --1.8.1.5
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/3 drm/edid: Don't skip every eighth EST III mode
In reply to [email protected]From: Ville Syrjälä <[email protected]>
Also check the est3 modes whose presence is indicated by bit 0.
--- drivers/gpu/drm/drm_edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_edid.c +1 -1
@@ -2080,7 +2080,7 @@ drm_est3_modes(struct drm_connector *connector, struct detailed_timing *timing)u8 *est = ((u8 *)timing) +5 ;for (i =0 ; i <6 ; i++) { -for (j =7 ; j >0 ; j--) { +for (j =7 ; j >=0 ; j--) { m = (i *8 ) + (7 - j);if (m >=ARRAY_SIZE (est3_modes))break ;
Signature · 6 lines
1.8.1.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/3 drm/edid: Yank a helpful comment about EST modes from xf86EdidModes.c
In reply to [email protected]From: Ville Syrjälä <[email protected]>
I got very confused when I tried to compare the EST modes with the spec. Bring over a comment from xf86EdidModes.c that actually describes some of history where these things came from.
--- drivers/gpu/drm/drm_edid.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/gpu/drm/drm_edid.c +9 -0
@@ -458,6 +458,15 @@ static const struct drm_display_mode drm_dmt_modes[] = { DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC) }, }; +/* +* These more or less come from the DMT spec. The 720x400 modes are +* inferred from historical 80x25 practice. The 640x480@67 and 832x624@75 +* modes are old-school Mac modes. The EDID spec says the 1152x864@75 mode +* should be 1152x870, again for the Mac, but instead we use the x864 DMT +* mode. +* +* The DMT modes have been fact-checked; the rest are mild guesses. +*/ static const struct drm_display_mode edid_est_modes[] = { { DRM_MODE("800x600", DRM_MODE_TYPE_DRIVER, 40000, 800, 840, 968, 1056, 0, 600, 601, 605, 628, 0,
Signature · 6 lines
1.8.1.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel