All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] radeon, amdgpu: allow for symbolic errno output when reporting drm_edid_to_sad errors
@ 2020-02-21  1:45 Darren Salt
  2020-02-25 15:07 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Darren Salt @ 2020-02-21  1:45 UTC (permalink / raw)
  To: amd-gfx

[-- Attachment #1: Type: text/plain, Size: 121 bytes --]

This fixes some kernel log text when CONFIG_SYMBOLIC_ERRNAMES=Y.

Signed-off-by: Darren Salt <devspam@moreofthesa.me.uk>

[-- Attachment #2: amd-dc-errname.patch --]
[-- Type: application/octet-stream, Size: 2671 bytes --]

--- a/drivers/gpu/drm/radeon/radeon_audio.c	2020-02-21 00:17:44.000000000 +0000
+++ b/drivers/gpu/drm/radeon/radeon_audio.c	2020-02-21 01:11:03.835993217 +0000
@@ -368,7 +368,7 @@
 
 	sad_count = drm_edid_to_sad(radeon_connector_edid(connector), &sads);
 	if (sad_count < 0)
-		DRM_ERROR("Couldn't read SADs: %d\n", sad_count);
+		DRM_ERROR("Couldn't read SADs: %pe\n", ERR_PTR(sad_count));
 	if (sad_count <= 0)
 		return;
 	BUG_ON(!sads);
--- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c	2020-02-21 00:17:44.000000000 +0000
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c	2020-02-21 01:11:34.074545114 +0000
@@ -1324,7 +1324,7 @@
 
 	sad_count = drm_edid_to_sad(amdgpu_connector_edid(connector), &sads);
 	if (sad_count < 0)
-		DRM_ERROR("Couldn't read SADs: %d\n", sad_count);
+		DRM_ERROR("Couldn't read SADs: %pe\n", ERR_PTR(sad_count));
 	if (sad_count <= 0)
 		return;
 	BUG_ON(!sads);
--- a/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c	2020-02-21 00:17:44.000000000 +0000
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v6_0.c	2020-02-21 01:11:42.003689931 +0000
@@ -1275,7 +1275,7 @@
 
 	sad_count = drm_edid_to_sad(amdgpu_connector_edid(connector), &sads);
 	if (sad_count < 0)
-		DRM_ERROR("Couldn't read SADs: %d\n", sad_count);
+		DRM_ERROR("Couldn't read SADs: %pe\n", ERR_PTR(sad_count));
 	if (sad_count <= 0)
 		return;
 
--- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c	2020-02-21 00:17:44.000000000 +0000
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c	2020-02-21 01:11:26.406405102 +0000
@@ -1371,7 +1371,7 @@
 
 	sad_count = drm_edid_to_sad(amdgpu_connector_edid(connector), &sads);
 	if (sad_count < 0)
-		DRM_ERROR("Couldn't read SADs: %d\n", sad_count);
+		DRM_ERROR("Couldn't read SADs: %pe\n", ERR_PTR(sad_count));
 	if (sad_count <= 0)
 		return;
 	BUG_ON(!sads);
--- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c	2020-02-21 00:17:44.000000000 +0000
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c	2020-02-21 01:11:53.194894390 +0000
@@ -1397,7 +1397,7 @@
 
 	sad_count = drm_edid_to_sad(amdgpu_connector_edid(connector), &sads);
 	if (sad_count < 0)
-		DRM_ERROR("Couldn't read SADs: %d\n", sad_count);
+		DRM_ERROR("Couldn't read SADs: %pe\n", ERR_PTR(sad_count));
 	if (sad_count <= 0)
 		return;
 	BUG_ON(!sads);
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c	2020-02-21 00:17:55.000000000 +0000
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c	2020-02-21 01:12:02.367062021 +0000
@@ -98,7 +98,7 @@
 
 	sad_count = drm_edid_to_sad((struct edid *) edid->raw_edid, &sads);
 	if (sad_count < 0)
-		DRM_ERROR("Couldn't read SADs: %d\n", sad_count);
+		DRM_ERROR("Couldn't read SADs: %pe\n", ERR_PTR(sad_count));
 	if (sad_count <= 0)
 		return result;
 

[-- Attachment #3: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2020-02-25 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-21  1:45 [PATCH] radeon, amdgpu: allow for symbolic errno output when reporting drm_edid_to_sad errors Darren Salt
2020-02-25 15:07 ` Alex Deucher

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.