drm/radeon: Fix Asus M2A-VM HDMI EDID error flooding problem
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drm: Separate EDID Header Check from EDID Block Checkdrivers/ include/ | +19 | 2 replies | |
| 2/3 | drm/radeon: Fix Asus M2A-VM HDMI EDID error flooding problemdrivers/ drivers/ drivers/ +1 more | +80 | 4 replies | |
| 3/3 | drm/radeon: Log Subsystem Vendor and Device Informationdrivers/ | +3 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Alex Deucher | Stephen Michaels |
|---|---|---|
| Series | R-b | A-b |
| 1/3 | R-b | |
| 2/3 | R-b | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] drm/radeon: Fix Asus M2A-VM HDMI EDID error flooding problem
From: Thomas Reim <[email protected]>
Dear Alex,
Quoted 22 lines
Quoted 19 lines
From: Thomas Reim <[email protected]>
Some integrated ATI Radeon chipset implementations
with add-on HDMI card (e. g. Asus M2A-VM HDMI) indicate the availability of a DDC even when the add-on card is not plugged in or HDMI is disabled in BIOS setup. In this case,drm_get_edid()anddrm_edid_block_valid()periodically dump data and kernel errors into system log files and onto terminals. For these chipsets DDC probing is extended by a check for a correct EDID header. Only in case a valid EDID header is also found, the (HDMI) connector will be used by the Radeon driver. This prevents the kernel driver from useless flooding of logs and terminal sessions with EDID dumps and error messages.
This patch adds a flag 'requires_extended_probe' to theradeon_connectorstructure. In functionradeon_connector_needs_extended_probe()this flag can be set on a chipset family/vendor/connector type specific basis. In addition, functiondrm_edid_header_is_valid()has been added for EDID header check and functionradeon_ddc_probe()has been adapted to perform extended DDC probing if required by the connector's flag.Quoted 2 lines
Tested for kernel 2.35, 2.38 and 3.0 on Asus M2A-VM HDMI board
Quoted 10 lines
Once it's ready, just add:
Cc: [email protected]
to the commit message and it will go into the stable kernels as well. Might want to mention the bug report in your commit message as well. Just a couple comments below. With those fixed:Reviewed-by Alex Deucher <[email protected]>Quoted 1 line
Signed-off-by Thomas Reim <[email protected]>
thank you for the review and your feedback. I've incorporated your comments as follows:
Quoted 5 lines
* Sanity check the EDID block (base or extension). Return 0 if the block
Quoted 4 lines
* doesn't check out, or 1 if it's valid.
(quoted diff) +0
-0@@ -139,12 +156,7 @@ drm_edid_block_valid(u8 *raw_edid) struct edid *edid = (struct edid *)raw_edid;
Quoted 13 lines
Review drm_edid_block_valid(u8 *raw_edid) · line 162
Quoted 11 lines
(quoted diff) +1
-6if (raw_edid[0] == 0x00) { - int score = 0; - - for (i = 0; i < sizeof(edid_header); i++) - if (raw_edid[i] == edid_header[i]) - score++; - + int score = drm_edid_header_is_valid(raw_edid); if (score == 8) ; else if (score >= 6) { DRM_DEBUG("Fixing EDID header, your hardware may be failing\n");Might want to break this hunk out as a separate patch.
Done. Moved to [PATCH 1/3] drm: Separate EDID Header Check from EDID Block Check
Quoted 6 lines
---
a/drivers/gpu/drm/radeon/radeon_device.cQuoted 5 lines
+++
b/drivers/gpu/drm/radeon/radeon_device.c(quoted diff) +0
-0@@ -704,8 +704,13 @@ int radeon_device_init(struct radeon_device *rdev, rdev->gpu_lockup = false; rdev->accel_working = false;
Quoted 13 lines
Review int radeon_device_init(struct radeon_device *rdev, · line 714
Quoted 9 lines
(quoted diff) +6
-1- DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X).\n", + if (pdev->subsystem_vendor == 0) + DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X).\n", radeon_family_name[rdev->family], pdev->vendor, pdev->device); + else + DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X 0x%04X:0x%04X).\n", + radeon_family_name[rdev->family], pdev->vendor, pdev->device, + pdev->subsystem_vendor, pdev->subsystem_device);No need for the if block. Just always print both the pci and subsystem ids. Also, I'd suggest making that a separate patch as it's not related to the actual fix.
Done. Moved to [PATCH 3/3] drm/radeon: Log Subsystem Vendor and Device Information.
The following mails will contain the three patches:
[PATCH 1/3] drm: Separate EDID Header Check from EDID Block Check [PATCH 2/3] drm/radeon: Fix Asus M2A-VM HDMI EDID error flooding problem [PATCH 3/3] drm/radeon: Log Subsystem Vendor and Device Information
[PATCH 2/3] requires [PATCH 1/3] (new function drm_edid_header_is_valid). [PATCH 3/3] is an add-on that helps people to identify also the subsystem vendor and device PCI ID of a Radeon chipset within the kernel log. So all information that is needed to include Radeon implementations other than Asus M2A-VM HDMI for extended DDC probing should now be available in dmesg.
The patches were generated against revision 'Linux 3.0-rc6' in Linux kernel git repository.
Best regards
Thomas Reim
Thomas Reim (3):
drm: Separate EDID Header Check from EDID Block Check drm/radeon: Fix Asus M2A-VM HDMI EDID error flooding problem drm/radeon: Log Subsystem Vendor and Device Information
drivers/gpu/drm/drm_edid.c | 24 +++++++++++---- drivers/gpu/drm/radeon/radeon_connectors.c | 45 ++++++++++++++++++++++++++-- drivers/gpu/drm/radeon/radeon_device.c | 5 ++- drivers/gpu/drm/radeon/radeon_display.c | 9 +++++ drivers/gpu/drm/radeon/radeon_i2c.c | 32 +++++++++++++++----- drivers/gpu/drm/radeon/radeon_mode.h | 6 +++- include/drm/drm_crtc.h | 1 + 7 files changed, 102 insertions(+), 20 deletions(-)