Skip to contentSkip to conversation

drm/radeon: fix regression on atom cards with hardcoded EDID record.

PATCH In review Dave Airlie 2 participants 4 messages May 1, 2011

Subsystems (2)
lore
Share & tools
lore

Dave Airlie

author maintainer
#0 lore raw

PATCH 1/1 drm/radeon: fix regression on atom cards with hardcoded EDID record.

From: Dave Airlie <[email protected]>

Since fafcf94e2b5732d1e13b440291c53115d2b172e9 introduced an edid size, it seems to have broken this path.

This manifest as oops on T500 Lenovo laptops with dual graphics primarily.

Should fix: https://bugzilla.kernel.org/show_bug.cgi?id=33812

---
 drivers/gpu/drm/radeon/radeon_atombios.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_atombios.c +3 -2
index f5d12fb..f116516 100644
@@ -1599,9 +1599,10 @@ struct radeon_encoder_atom_dig *radeon_atombios_get_lvds_info(struct
 							memcpy((u8 *)edid, (u8 *)&fake_edid_record->ucFakeEDIDString[0],
 							       fake_edid_record->ucFakeEDIDLength);
 
-							if (drm_edid_is_valid(edid))
+							if (drm_edid_is_valid(edid)) {
 								rdev->mode_info.bios_hardcoded_edid = edid;
-							else
+								rdev->mode_info.bios_hardcoded_edid_size = edid_size;
+							} else
 								kfree(edid);
 						}
 					}
Signature · 1 line
1.7.4.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Dave Airlie

From: Dave Airlie <[email protected]>

Since fafcf94e2b5732d1e13b440291c53115d2b172e9 introduced an edid size, it seems to have broken this path.

This manifest as oops on T500 Lenovo laptops with dual graphics primarily.

Should fix: https://bugzilla.kernel.org/show_bug.cgi?id=33812

Although, I think there may be a problem with the mux switching since we shouldn't hit the hardcoded EDID unless DDC fails.

Alex

Quoted 29 lines

---
 drivers/gpu/drm/radeon/radeon_atombios.c |    5 +++--

 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_atombios.c +3 -3
index f5d12fb..f116516 100644
@@ -1599,9 +1599,10 @@ struct radeon_encoder_atom_dig *radeon_atombios_get_lvds_info(struct
                                                        memcpy((u8 *)edid, (u8 *)&fake_edid_record->ucFakeEDIDString[0],
                                                               fake_edid_record->ucFakeEDIDLength);
 
-                                                       if (drm_edid_is_valid(edid))
+                                                       if (drm_edid_is_valid(edid)) {
                                                                rdev->mode_info.bios_hardcoded_edid = edid;
-                                                       else
+                                                               rdev->mode_info.bios_hardcoded_edid_size = edid_size;
+                                                       } else
                                                                kfree(edid);
                                                }
                                        }
--

1.7.4.2

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

author maintainer
#2 lore raw
Quoted 9 lines · Alex Deucher
Quoted 8 lines · Dave Airlie

From: Dave Airlie <[email protected]>

Since fafcf94e2b5732d1e13b440291c53115d2b172e9 introduced an edid size, it seems to have broken this path.

This manifest as oops on T500 Lenovo laptops with dual graphics primarily.

Should fix: https://bugzilla.kernel.org/show_bug.cgi?id=33812

Quoted 7 lines
Quoted 2 lines

Although, I think there may be a problem with the mux switching since we shouldn't hit the hardcoded EDID unless DDC fails.

I've avoided having to do a MUX switch for DDC so far since I've no idea how to enumerate what the MUX is attached to properly.

The good thing is the table has worked fine up until now.

Dave.

#3 lore raw
Quoted 13 lines · Dave Airlie
Quoted 12 lines · Alex Deucher
Quoted 10 lines · Dave Airlie

From: Dave Airlie <[email protected]>

Since fafcf94e2b5732d1e13b440291c53115d2b172e9 introduced an edid size, it seems to have broken this path.

This manifest as oops on T500 Lenovo laptops with dual graphics primarily.

Should fix: https://bugzilla.kernel.org/show_bug.cgi?id=33812

Quoted 7 lines
Quoted 4 lines

Although, I think there may be a problem with the mux switching since we shouldn't hit the hardcoded EDID unless DDC fails.

I've avoided having to do a MUX switch for DDC so far since I've no idea how to enumerate what the MUX is attached to properly.

Ah ok. That would explain the bugs where VGA/DVI ddc doesn't work you switch gfx.

Alex

Quoted 5 lines

The good thing is the table has worked fine up until now.

Dave.