All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] drm: Add built-in EDID set of another common screen resolution
@ 2013-04-06 16:01 Carsten Emde
  2013-04-06 16:01 ` [PATCH 1/1] drm: Add 1600x1200 (UXGA) screen resolution to the built-in EDIDs Carsten Emde
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Emde @ 2013-04-06 16:01 UTC (permalink / raw)
  To: David Airlie; +Cc: DRI

Several users were complaining that 1600x1200 screen resolution was
lacking. Here is it.

	-Carsten. 

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

* [PATCH 1/1] drm: Add 1600x1200 (UXGA) screen resolution to the built-in EDIDs
  2013-04-06 16:01 [PATCH 0/1] drm: Add built-in EDID set of another common screen resolution Carsten Emde
@ 2013-04-06 16:01 ` Carsten Emde
  2013-04-07  0:16   ` Paul Menzel
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Emde @ 2013-04-06 16:01 UTC (permalink / raw)
  To: David Airlie; +Cc: DRI

[-- Attachment #1: drivers-gpu-drm-edid-load-firmware-add-1600x1200.patch --]
[-- Type: text/plain, Size: 5179 bytes --]

The 1600x1200 (UXGA) screen resolution was lacking in the set of
built-in selectable EDID screen resolutions that can be used to
repair misbehaving monitor firmware.

This patch adds the related data set and expands the documentation.
 
Signed-off-by: Carsten Emde <C.Emde@osadl.org>

---
 Documentation/EDID/1600x1200.S  |   44 ++++++++++++++++++++++++++++++++++++++++
 Documentation/EDID/HOWTO.txt    |   12 +++++-----
 drivers/gpu/drm/drm_edid_load.c |   21 ++++++++++++++++++-
 3 files changed, 70 insertions(+), 7 deletions(-)

Index: linux/Documentation/EDID/1600x1200.S
===================================================================
--- /dev/null
+++ linux/Documentation/EDID/1600x1200.S
@@ -0,0 +1,44 @@
+/*
+   1600x1200.S: EDID data set for standard 1600x1200 60 Hz monitor
+
+   Copyright (C) 2013 Carsten Emde <C.Emde@osadl.org>
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License
+   as published by the Free Software Foundation; either version 2
+   of the License, or (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
+*/
+
+/* EDID */
+#define VERSION 1
+#define REVISION 3
+
+/* Display */
+#define CLOCK 162000 /* kHz */
+#define XPIX 1600
+#define YPIX 1200
+#define XY_RATIO XY_RATIO_4_3
+#define XBLANK 560
+#define YBLANK 50
+#define XOFFSET 64
+#define XPULSE 192
+#define YOFFSET (63+1)
+#define YPULSE (63+3)
+#define DPI 72
+#define VFREQ 60 /* Hz */
+#define TIMING_NAME "Linux UXGA"
+#define ESTABLISHED_TIMINGS_BITS 0x00 /* none */
+#define HSYNC_POL 1
+#define VSYNC_POL 1
+#define CRC 0x9d
+
+#include "edid.S"
Index: linux/Documentation/EDID/HOWTO.txt
===================================================================
--- linux.orig/Documentation/EDID/HOWTO.txt
+++ linux/Documentation/EDID/HOWTO.txt
@@ -18,12 +18,12 @@ CONFIG_DRM_LOAD_EDID_FIRMWARE was introd
 individually prepared or corrected EDID data set in the /lib/firmware
 directory from where it is loaded via the firmware interface. The code
 (see drivers/gpu/drm/drm_edid_load.c) contains built-in data sets for
-commonly used screen resolutions (1024x768, 1280x1024, 1680x1050,
-1920x1080) as binary blobs, but the kernel source tree does not contain
-code to create these data. In order to elucidate the origin of the
-built-in binary EDID blobs and to facilitate the creation of individual
-data for a specific misbehaving monitor, commented sources and a
-Makefile environment are given here.
+commonly used screen resolutions (1024x768, 1280x1024, 1600x1200,
+1680x1050, 1920x1080) as binary blobs, but the kernel source tree does
+not contain code to create these data. In order to elucidate the origin
+of the built-in binary EDID blobs and to facilitate the creation of
+individual data for a specific misbehaving monitor, commented sources
+and a Makefile environment are given here.
 
 To create binary EDID and C source code files from the existing data
 material, simply type "make".
Index: linux/drivers/gpu/drm/drm_edid_load.c
===================================================================
--- linux.orig/drivers/gpu/drm/drm_edid_load.c
+++ linux/drivers/gpu/drm/drm_edid_load.c
@@ -31,10 +31,11 @@ module_param_string(edid_firmware, edid_
 MODULE_PARM_DESC(edid_firmware, "Do not probe monitor, use specified EDID blob "
 	"from built-in data or /lib/firmware instead. ");
 
-#define GENERIC_EDIDS 4
+#define GENERIC_EDIDS 5
 static char *generic_edid_name[GENERIC_EDIDS] = {
 	"edid/1024x768.bin",
 	"edid/1280x1024.bin",
+	"edid/1600x1200.bin",
 	"edid/1680x1050.bin",
 	"edid/1920x1080.bin",
 };
@@ -79,6 +80,24 @@ static u8 generic_edid[GENERIC_EDIDS][12
 	{
 	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
 	0x31, 0xd8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+	0x05, 0x16, 0x01, 0x03, 0x6d, 0x37, 0x29, 0x78,
+	0xea, 0x5e, 0xc0, 0xa4, 0x59, 0x4a, 0x98, 0x25,
+	0x20, 0x50, 0x54, 0x00, 0x00, 0x00, 0xa9, 0x40,
+	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
+	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x48, 0x3f,
+	0x40, 0x30, 0x62, 0xb0, 0x32, 0x40, 0x40, 0xc0,
+	0x13, 0x00, 0x2b, 0xa0, 0x21, 0x00, 0x00, 0x1e,
+	0x00, 0x00, 0x00, 0xff, 0x00, 0x4c, 0x69, 0x6e,
+	0x75, 0x78, 0x20, 0x23, 0x30, 0x0a, 0x20, 0x20,
+	0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x3b,
+	0x3d, 0x4a, 0x4c, 0x11, 0x00, 0x0a, 0x20, 0x20,
+	0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfc,
+	0x00, 0x4c, 0x69, 0x6e, 0x75, 0x78, 0x20, 0x55,
+	0x58, 0x47, 0x41, 0x0a, 0x20, 0x20, 0x00, 0x9d,
+	},
+	{
+	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
+	0x31, 0xd8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 	0x05, 0x16, 0x01, 0x03, 0x6d, 0x2b, 0x1b, 0x78,
 	0xea, 0x5e, 0xc0, 0xa4, 0x59, 0x4a, 0x98, 0x25,
 	0x20, 0x50, 0x54, 0x00, 0x00, 0x00, 0xb3, 0x00,

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

* Re: [PATCH 1/1] drm: Add 1600x1200 (UXGA) screen resolution to the built-in EDIDs
  2013-04-06 16:01 ` [PATCH 1/1] drm: Add 1600x1200 (UXGA) screen resolution to the built-in EDIDs Carsten Emde
@ 2013-04-07  0:16   ` Paul Menzel
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Menzel @ 2013-04-07  0:16 UTC (permalink / raw)
  To: Carsten Emde; +Cc: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 767 bytes --]

Dear Carsten,


thank you for the patch.


Am Samstag, den 06.04.2013, 18:01 +0200 schrieb Carsten Emde:

> The 1600x1200 (UXGA) screen resolution was lacking in the set of
> built-in selectable EDID screen resolutions that can be used to
> repair misbehaving monitor firmware.
> 
> This patch adds the related data set and expands the documentation.
>  
> Signed-off-by: Carsten Emde <C.Emde@osadl.org>
> 
> ---
>  Documentation/EDID/1600x1200.S  |   44 ++++++++++++++++++++++++++++++++++++++++
>  Documentation/EDID/HOWTO.txt    |   12 +++++-----
>  drivers/gpu/drm/drm_edid_load.c |   21 ++++++++++++++++++-
>  3 files changed, 70 insertions(+), 7 deletions(-)

Acked-by: Paul Menzel <paulepanter@users.sourceforge.net>


Thanks,

Paul

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH 0/1] drm: Add built-in EDID set of another common screen resolution
@ 2013-04-06 23:27 Jacobo Pantoja
  0 siblings, 0 replies; 4+ messages in thread
From: Jacobo Pantoja @ 2013-04-06 23:27 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 309 bytes --]

Wow!!! I have been awaiting for this! I'm now working with my monitor at
1600x1200 flawlessly.

Thank you so much, Carsten! I hope that everything goes fine and will
finally arrive to the mainstream. There is a bunch of users with vintage
CRTs and pre-wide-era TFTs for whom this patch may be useful.

Jacobo

[-- Attachment #1.2: Type: text/html, Size: 388 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2013-04-07  0:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-06 16:01 [PATCH 0/1] drm: Add built-in EDID set of another common screen resolution Carsten Emde
2013-04-06 16:01 ` [PATCH 1/1] drm: Add 1600x1200 (UXGA) screen resolution to the built-in EDIDs Carsten Emde
2013-04-07  0:16   ` Paul Menzel
2013-04-06 23:27 [PATCH 0/1] drm: Add built-in EDID set of another common screen resolution Jacobo Pantoja

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.