amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: resolve ras print bug
@ 2021-04-21  6:55 Clements, John
  2021-04-21  7:00 ` Clements, John
  0 siblings, 1 reply; 2+ messages in thread
From: Clements, John @ 2021-04-21  6:55 UTC (permalink / raw)
  To: amd-gfx, Zhang, Hawking


[-- Attachment #1.1: Type: text/plain, Size: 115 bytes --]

[AMD Official Use Only - Internal Distribution Only]

Submitting patch to resolve RAS related dmesg print issue

[-- Attachment #1.2: Type: text/html, Size: 1840 bytes --]

[-- Attachment #2: 0002-drm-amdgpu-resolve-ras-print-bug.patch --]
[-- Type: application/octet-stream, Size: 1338 bytes --]

From 6b05c870c1743748f416836fd5925ed76e5aac71 Mon Sep 17 00:00:00 2001
From: John Clements <john.clements@amd.com>
Date: Wed, 21 Apr 2021 14:40:22 +0800
Subject: [PATCH 2/2] drm/amdgpu: resolve ras print bug

only print mmea error status in the event of error

Signed-off-by: John Clements <john.clements@amd.com>
Change-Id: I80bb088879ec984971f3958719f1491bdf010be1
---
 drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
index e1500be4a208..c4bc45f647ee 100644
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
@@ -1305,7 +1305,7 @@ static void mmhub_v1_7_query_ras_error_status(struct amdgpu_device *adev)
 	for (i = 0; i < ARRAY_SIZE(mmhub_v1_7_ea_err_status_regs); i++) {
 		reg_value =
 			RREG32(SOC15_REG_ENTRY_OFFSET(mmhub_v1_7_ea_err_status_regs[i]));
-		if (REG_GET_FIELD(reg_value, MMEA0_ERR_STATUS, SDP_RDRSP_STATUS) ||
+		if ((REG_GET_FIELD(reg_value, MMEA0_ERR_STATUS, SDP_RDRSP_STATUS) != 3) ||
 		    REG_GET_FIELD(reg_value, MMEA0_ERR_STATUS, SDP_WRRSP_STATUS) ||
 		    REG_GET_FIELD(reg_value, MMEA0_ERR_STATUS, SDP_RDRSP_DATAPARITY_ERROR)) {
 			dev_warn(adev->dev, "MMHUB EA err detected at instance: %d, status: 0x%x!\n",
-- 
2.17.1


[-- 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 related	[flat|nested] 2+ messages in thread

* RE: [PATCH] drm/amdgpu: resolve ras print bug
  2021-04-21  6:55 [PATCH] drm/amdgpu: resolve ras print bug Clements, John
@ 2021-04-21  7:00 ` Clements, John
  0 siblings, 0 replies; 2+ messages in thread
From: Clements, John @ 2021-04-21  7:00 UTC (permalink / raw)
  To: Clements, John, amd-gfx, Zhang, Hawking


[-- Attachment #1.1: Type: text/plain, Size: 473 bytes --]

[AMD Official Use Only - Internal Distribution Only]

Please ignore this patch , it has a problem

From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Clements, John
Sent: Wednesday, April 21, 2021 2:56 PM
To: amd-gfx@lists.freedesktop.org; Zhang, Hawking <Hawking.Zhang@amd.com>
Subject: [PATCH] drm/amdgpu: resolve ras print bug


[AMD Official Use Only - Internal Distribution Only]

Submitting patch to resolve RAS related dmesg print issue

[-- Attachment #1.2: Type: text/html, Size: 2987 bytes --]

[-- Attachment #2: 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:[~2021-04-21  7:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21  6:55 [PATCH] drm/amdgpu: resolve ras print bug Clements, John
2021-04-21  7:00 ` Clements, John

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).