[PATCH] drm/amd/display: avoid printing ERROR for unknown CEA parse(v2)

Wang, Chao-kai (Stylon) Stylon.Wang at amd.com
Wed Jul 14 13:29:22 UTC 2021


[AMD Official Use Only]

Hi Guchun,

This patch looks good to me.


Regards

Stylon Wang

MTS Software Development Eng.  |  AMD
Display Solution Team

O +(886) 2-3789-3667 ext. 23667  C +(886) 921-897-142

----------------------------------------------------------------------------------------------------------------------------------

6F, 3, YuanCyu St (NanKang Software Park) Taipei, Taiwan

Facebook<https://www.facebook.com/AMD> |  Twitter<https://twitter.com/AMD> |  amd.com<http://www.amd.com/>



________________________________
From: Chen, Guchun <Guchun.Chen at amd.com>
Sent: July 14, 2021 4:39 PM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>; Wentland, Harry <Harry.Wentland at amd.com>; Wang, Chao-kai (Stylon) <Stylon.Wang at amd.com>; Kazlauskas, Nicholas <Nicholas.Kazlauskas at amd.com>; Siqueira, Rodrigo <Rodrigo.Siqueira at amd.com>; Yin, Tianci (Rico) <Tianci.Yin at amd.com>; Chen, Jiansong (Simon) <Jiansong.Chen at amd.com>
Cc: Chen, Guchun <Guchun.Chen at amd.com>
Subject: [PATCH] drm/amd/display: avoid printing ERROR for unknown CEA parse(v2)

For the unknown CEA parse case on DMUB-enabled ASICs, dmesg will
print an error message like below, this will be captured by
automation tools as it has the word like ERROR during boot up
and treated as a false error, as it does not break bootup process.
So use DRM_WARN printing for this.

[drm:amdgpu_dm_update_freesync_caps [amdgpu]] *ERROR* Unknown EDID CEA parser results

v2: Use DRM_WARN to print such info.

Signed-off-by: Guchun Chen <guchun.chen at amd.com>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 03db86bfaec8..f7ed4d20d168 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -10700,7 +10700,7 @@ static bool dm_edid_parser_send_cea(struct amdgpu_display_manager *dm,
                 vsdb->min_refresh_rate_hz = output->amd_vsdb.min_frame_rate;
                 vsdb->max_refresh_rate_hz = output->amd_vsdb.max_frame_rate;
         } else {
-               DRM_ERROR("Unknown EDID CEA parser results\n");
+               DRM_WARN("Unknown EDID CEA parser results\n");
                 return false;
         }

--
2.17.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20210714/29089ff0/attachment-0001.htm>


More information about the amd-gfx mailing list