Skip to contentSkip to conversation

quirk for Samsung 2443BW

PATCH Baurzhan Ismagulov 3 participants 5 messages Jul 14, 2012 – Aug 11, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello David,

Samsung 2443BW is 1920x1200 but reports 1920x1080 in the EDID. Attached is a proof-of-concept implementation of a quirk. It works on my i686 PC.

The patch is against the latest linux-2.6. An attempt to clone
git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git (as listed in MAINTAINERS) resulted in "fatal: The remote end hung up unexpectedly".

This implementation matches the wrong mode by size. Other approaches are possible.

I'd appreciate feedback.

With kind regards,
Baurzhan.

Quoted 1 line

From b6c7a43e8b8fa0b6b39ed4a99c463071269d1a50 Mon Sep 17 00:00:00 2001

From: Baurzhan Ismagulov <[email protected]>
Date: Sat, 14 Jul 2012 22:27:18 +0200
Subject: [PATCH 1/2] drm: Make edid_quirk_list const

---
 drivers/gpu/drm/drm_edid.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/drm_edid.c +3 -3
index a8743c3..09ff2bb 100644
@@ -86,7 +86,7 @@ static struct edid_quirk {
 	char vendor[4];
 	int product_id;
 	u32 quirks;
-} edid_quirk_list[] = {
+} const edid_quirk_list[] = {
 	/* Acer AL1706 */
 	{ "ACR", 44358, EDID_QUIRK_PREFER_LARGE_60 },
 	/* Acer F51 */
@@ -415,7 +415,7 @@ EXPORT_SYMBOL(drm_get_edid);
  *
  * Returns true if @vendor is in @edid, false otherwise
  */
-static bool edid_vendor(struct edid *edid, char *vendor)
+static bool edid_vendor(struct edid *edid, const char *vendor)
 {
 	char edid_vendor[3];
 
@@ -435,7 +435,7 @@ static bool edid_vendor(struct edid *edid, char *vendor)
  */
 static u32 edid_get_quirks(struct edid *edid)
 {
-	struct edid_quirk *quirk;
+	const struct edid_quirk *quirk;
 	int i;
 
 	for (i = 0; i < ARRAY_SIZE(edid_quirk_list); i++) {
Signature · 1 line
1.7.2.5
Quoted 1 line

From ea4ca18f607c3829239ad602b0cb8d319fbcd75e Mon Sep 17 00:00:00 2001

From: Baurzhan Ismagulov <[email protected]>
Date: Sat, 14 Jul 2012 22:23:33 +0200
Subject: [PATCH 2/2] drm: Add quirk for Samsung SyncMaster 2443BW

---
 drivers/gpu/drm/drm_edid.c |   64 ++++++++++++++++++++++++++++++-------------
 1 files changed, 44 insertions(+), 20 deletions(-)
drivers/gpu/drm/drm_edid.c +44 -20

189 lines not on this page · raw message

Signature · 1 line
1.7.2.5

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

Hey,

Op 14-07-12 23:42, Baurzhan Ismagulov schreef:

Quoted 10 lines

Hello David,

Samsung 2443BW is 1920x1200 but reports 1920x1080 in the EDID. Attached is a proof-of-concept implementation of a quirk. It works on my i686 PC.

The patch is against the latest linux-2.6. An attempt to clone
git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git (as listed in MAINTAINERS) resulted in "fatal: The remote end hung up unexpectedly".

I actually own a 2443BW and don't have the problem you're referring to?

~Maarten

#2 lore raw
Quoted 9 lines · Maarten Lankhorst
Quoted 8 lines

Samsung 2443BW is 1920x1200 but reports 1920x1080 in the EDID. Attached is a proof-of-concept implementation of a quirk. It works on my i686 PC.

The patch is against the latest linux-2.6. An attempt to clone
git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git (as listed in MAINTAINERS) resulted in "fatal: The remote end hung up unexpectedly".

I actually own a 2443BW and don't have the problem you're referring to?

Samsung might have fixed the data. If you care to send me your EDID data, I can compare it with mine. Still, there are many users who have broken monitors; it would be nice to provide a fix for them.

With kind regards,
Baurzhan.

maintainer
#3 lore raw
In reply to Baurzhan Ismagulov
Quoted 10 lines · Baurzhan Ismagulov

Hello David,

Samsung 2443BW is 1920x1200 but reports 1920x1080 in the EDID. Attached is a proof-of-concept implementation of a quirk. It works on my i686 PC.

The patch is against the latest linux-2.6. An attempt to clone
git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git (as listed in MAINTAINERS) resulted in "fatal: The remote end hung up unexpectedly".

Quoted 4 lines

This implementation matches the wrong mode by size. Other approaches are possible.

I'd appreciate feedback.

ajax, seem sane?

Dave.

#4 lore raw

ping: Re: quirk for Samsung 2443BW

Hello Adam,

Quoted 2 lines · Dave Airlie
Quoted 2 lines

Samsung 2443BW is 1920x1200 but reports 1920x1080 in the EDID. Attached is a proof-of-concept implementation of a quirk. It works on my i686 PC.

...

Quoted 6 lines
Quoted 4 lines

This implementation matches the wrong mode by size. Other approaches are possible.

I'd appreciate feedback.

ajax, seem sane?

Ping?

With kind regards,
Baurzhan.

Quoted 1 line

From b6c7a43e8b8fa0b6b39ed4a99c463071269d1a50 Mon Sep 17 00:00:00 2001

From: Baurzhan Ismagulov <[email protected]>
Date: Sat, 14 Jul 2012 22:27:18 +0200
Subject: [PATCH 1/2] drm: Make edid_quirk_list const

---
 drivers/gpu/drm/drm_edid.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/drm_edid.c +3 -3
index a8743c3..09ff2bb 100644
@@ -86,7 +86,7 @@ static struct edid_quirk {
 	char vendor[4];
 	int product_id;
 	u32 quirks;
-} edid_quirk_list[] = {
+} const edid_quirk_list[] = {
 	/* Acer AL1706 */
 	{ "ACR", 44358, EDID_QUIRK_PREFER_LARGE_60 },
 	/* Acer F51 */
@@ -415,7 +415,7 @@ EXPORT_SYMBOL(drm_get_edid);
  *
  * Returns true if @vendor is in @edid, false otherwise
  */
-static bool edid_vendor(struct edid *edid, char *vendor)
+static bool edid_vendor(struct edid *edid, const char *vendor)
 {
 	char edid_vendor[3];
 
@@ -435,7 +435,7 @@ static bool edid_vendor(struct edid *edid, char *vendor)
  */
 static u32 edid_get_quirks(struct edid *edid)
 {
-	struct edid_quirk *quirk;
+	const struct edid_quirk *quirk;
 	int i;
 
 	for (i = 0; i < ARRAY_SIZE(edid_quirk_list); i++) {
Signature · 1 line
1.7.2.5
Quoted 1 line

From ea4ca18f607c3829239ad602b0cb8d319fbcd75e Mon Sep 17 00:00:00 2001

From: Baurzhan Ismagulov <[email protected]>
Date: Sat, 14 Jul 2012 22:23:33 +0200
Subject: [PATCH 2/2] drm: Add quirk for Samsung SyncMaster 2443BW

---
 drivers/gpu/drm/drm_edid.c |   64 ++++++++++++++++++++++++++++++-------------
 1 files changed, 44 insertions(+), 20 deletions(-)
drivers/gpu/drm/drm_edid.c +44 -20

189 lines not on this page · raw message

Signature · 1 line
1.7.2.5

_______________________________________________
dri-devel mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel