All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: add RAS EEPROM support for sienna chichlid
@ 2020-07-21 10:02 Clements, John
  2020-07-21 11:11 ` Zhang, Hawking
  0 siblings, 1 reply; 3+ messages in thread
From: Clements, John @ 2020-07-21 10:02 UTC (permalink / raw)
  To: amd-gfx list, Zhang, Hawking


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

[AMD Public Use]

Submitting patch to enable RAS EEPROM support for sienna chichlid

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

[-- Attachment #2: 0001-drm-amdgpu-add-RAS-EEPROM-support-for-sienna-chichli.patch --]
[-- Type: application/octet-stream, Size: 1826 bytes --]

From 3878e7a1c25acbd58fc8e55adab7edbe5a5dc8c6 Mon Sep 17 00:00:00 2001
From: John Clements <john.clements@amd.com>
Date: Tue, 21 Jul 2020 18:00:17 +0800
Subject: [PATCH] drm/amdgpu: add RAS EEPROM support for sienna chichlid

RAS EEPROM init/access support

Signed-off-by: John Clements <john.clements@amd.com>
Change-Id: I2e5ffc759e32be011147dab7535f5bb08de2791c
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
index c0096097bbcf..bfcccd3f82cb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
@@ -30,6 +30,7 @@
 #define EEPROM_I2C_TARGET_ADDR_VEGA20    	0xA0
 #define EEPROM_I2C_TARGET_ADDR_ARCTURUS  	0xA8
 #define EEPROM_I2C_TARGET_ADDR_ARCTURUS_D342  	0xA0
+#define EEPROM_I2C_TARGET_ADDR_SIENNA_CICHLID   0xA0
 
 /*
  * The 2 macros bellow represent the actual size in bytes that
@@ -88,6 +89,10 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
 	case CHIP_ARCTURUS:
 		return __get_eeprom_i2c_addr_arct(adev, i2c_addr);
 
+	case CHIP_SIENNA_CICHLID:
+		*i2c_addr = EEPROM_I2C_TARGET_ADDR_SIENNA_CICHLID;
+		break;
+
 	default:
 		return false;
 	}
@@ -386,7 +391,9 @@ int amdgpu_ras_eeprom_process_recods(struct amdgpu_ras_eeprom_control *control,
 	struct eeprom_table_record *record;
 	struct amdgpu_device *adev = to_amdgpu_device(control);
 
-	if (adev->asic_type != CHIP_VEGA20 && adev->asic_type != CHIP_ARCTURUS)
+	if (adev->asic_type != CHIP_VEGA20           &&
+	    adev->asic_type != CHIP_ARCTURUS         &&
+	    adev->asic_type != CHIP_SIENNA_CICHLID)
 		return 0;
 
 	buffs = kcalloc(num, EEPROM_ADDRESS_SIZE + EEPROM_TABLE_RECORD_SIZE,
-- 
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] 3+ messages in thread

* RE: [PATCH] drm/amdgpu: add RAS EEPROM support for sienna chichlid
  2020-07-21 10:02 [PATCH] drm/amdgpu: add RAS EEPROM support for sienna chichlid Clements, John
@ 2020-07-21 11:11 ` Zhang, Hawking
  2020-07-22  7:20   ` Clements, John
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang, Hawking @ 2020-07-21 11:11 UTC (permalink / raw)
  To: Clements, John, amd-gfx list, Chen, Guchun


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

[AMD Public Use]

-              if (adev->asic_type != CHIP_VEGA20 && adev->asic_type != CHIP_ARCTURUS)
+             if (adev->asic_type != CHIP_VEGA20           &&
+                 adev->asic_type != CHIP_ARCTURUS         &&
+                 adev->asic_type != CHIP_SIENNA_CICHLID)
                               return 0;

Does it make sense to check UMC RAS availability through amdgpu_ras_is_supported, instead of check specific ASIC type one by one?

Also, it would be good to merge the upcoming logic from Guchun where we have a gloal flag to mark the availability of bad page retirement.

Thoughts?

Regards,
Hawking
From: Clements, John <John.Clements@amd.com>
Sent: Tuesday, July 21, 2020 18:02
To: amd-gfx list <amd-gfx@lists.freedesktop.org>; Zhang, Hawking <Hawking.Zhang@amd.com>
Subject: [PATCH] drm/amdgpu: add RAS EEPROM support for sienna chichlid


[AMD Public Use]

Submitting patch to enable RAS EEPROM support for sienna chichlid

[-- Attachment #1.2: Type: text/html, Size: 4550 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] 3+ messages in thread

* RE: [PATCH] drm/amdgpu: add RAS EEPROM support for sienna chichlid
  2020-07-21 11:11 ` Zhang, Hawking
@ 2020-07-22  7:20   ` Clements, John
  0 siblings, 0 replies; 3+ messages in thread
From: Clements, John @ 2020-07-22  7:20 UTC (permalink / raw)
  To: Zhang, Hawking, amd-gfx list, Chen, Guchun


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

[AMD Public Use]

Good points, I'll reorganize and resubmit the patch after Guchuns changes are in

From: Zhang, Hawking <Hawking.Zhang@amd.com>
Sent: Tuesday, July 21, 2020 7:11 PM
To: Clements, John <John.Clements@amd.com>; amd-gfx list <amd-gfx@lists.freedesktop.org>; Chen, Guchun <Guchun.Chen@amd.com>
Subject: RE: [PATCH] drm/amdgpu: add RAS EEPROM support for sienna chichlid


[AMD Public Use]

-              if (adev->asic_type != CHIP_VEGA20 && adev->asic_type != CHIP_ARCTURUS)
+             if (adev->asic_type != CHIP_VEGA20           &&
+                 adev->asic_type != CHIP_ARCTURUS         &&
+                 adev->asic_type != CHIP_SIENNA_CICHLID)
                               return 0;

Does it make sense to check UMC RAS availability through amdgpu_ras_is_supported, instead of check specific ASIC type one by one?

Also, it would be good to merge the upcoming logic from Guchun where we have a gloal flag to mark the availability of bad page retirement.

Thoughts?

Regards,
Hawking
From: Clements, John <John.Clements@amd.com<mailto:John.Clements@amd.com>>
Sent: Tuesday, July 21, 2020 18:02
To: amd-gfx list <amd-gfx@lists.freedesktop.org<mailto:amd-gfx@lists.freedesktop.org>>; Zhang, Hawking <Hawking.Zhang@amd.com<mailto:Hawking.Zhang@amd.com>>
Subject: [PATCH] drm/amdgpu: add RAS EEPROM support for sienna chichlid


[AMD Public Use]

Submitting patch to enable RAS EEPROM support for sienna chichlid

[-- Attachment #1.2: Type: text/html, Size: 5736 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] 3+ messages in thread

end of thread, other threads:[~2020-07-22  7:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 10:02 [PATCH] drm/amdgpu: add RAS EEPROM support for sienna chichlid Clements, John
2020-07-21 11:11 ` Zhang, Hawking
2020-07-22  7:20   ` Clements, John

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.