Skip to contentSkip to conversation

drm/amdgpu: add MMHUB 3.3.1 support

PATCH New Alex Deucher 1 participant 4 messages Feb 15, 2024

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/4 drm/amdgpu: add MMHUB 3.3.1 support

From: Yifan Zhang <[email protected]>

This patch to add MMHUB 3.3.1 support.

v2: squash in fault info fix (Alex)

---
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c  | 1 +
 drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +1 -0
index 6c68135cac9f..998daa702b44 100644
@@ -571,6 +571,7 @@ static void gmc_v11_0_set_mmhub_funcs(struct amdgpu_device *adev)
 		adev->mmhub.funcs = &mmhub_v3_0_2_funcs;
 		break;
 	case IP_VERSION(3, 3, 0):
+	case IP_VERSION(3, 3, 1):
 		adev->mmhub.funcs = &mmhub_v3_3_funcs;
 		break;
 	default:
drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c +1 -0
index dc4812ecc98d..b3961968c10c 100644
@@ -98,6 +98,7 @@ mmhub_v3_3_print_l2_protection_fault_status(struct amdgpu_device *adev,
 
 	switch (amdgpu_ip_version(adev, MMHUB_HWIP, 0)) {
 	case IP_VERSION(3, 3, 0):
+	case IP_VERSION(3, 3, 1):
 		mmhub_cid = mmhub_client_ids_v3_3[cid][rw];
 		break;
 	default:
Signature · 1 line
2.42.0
author maintainer
#1 lore raw

PATCH 2/4 drm/amdgpu: add GFXHUB 11.5.1 support

From: Yifan Zhang <[email protected]>

This patch to add GFXHUB 11.5.1 support.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +2 -0
index 998daa702b44..a3812f0036a0 100644
@@ -587,6 +587,7 @@ static void gmc_v11_0_set_gfxhub_funcs(struct amdgpu_device *adev)
 		adev->gfxhub.funcs = &gfxhub_v3_0_3_funcs;
 		break;
 	case IP_VERSION(11, 5, 0):
+	case IP_VERSION(11, 5, 1):
 		adev->gfxhub.funcs = &gfxhub_v11_5_0_funcs;
 		break;
 	default:
@@ -748,6 +749,7 @@ static int gmc_v11_0_sw_init(void *handle)
 	case IP_VERSION(11, 0, 3):
 	case IP_VERSION(11, 0, 4):
 	case IP_VERSION(11, 5, 0):
+	case IP_VERSION(11, 5, 1):
 		set_bit(AMDGPU_GFXHUB(0), adev->vmhubs_mask);
 		set_bit(AMDGPU_MMHUB0(0), adev->vmhubs_mask);
 		/*
Signature · 1 line
2.42.0
author maintainer
#2 lore raw

PATCH 3/4 drm/amdgpu: add tmz support for GC IP v11.5.1

In reply to Alex Deucher

From: Yifan Zhang <[email protected]>

Add tmz support for GC 11.5.1.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +1 -0
index d4a848c51a83..be4629cdac04 100644
@@ -843,6 +843,7 @@ void amdgpu_gmc_tmz_set(struct amdgpu_device *adev)
 	case IP_VERSION(10, 3, 3):
 	case IP_VERSION(11, 0, 4):
 	case IP_VERSION(11, 5, 0):
+	case IP_VERSION(11, 5, 1):
 		/* Don't enable it by default yet.
 		 */
 		if (amdgpu_tmz < 1) {
Signature · 1 line
2.42.0
author maintainer
#3 lore raw

PATCH 4/4 drm/amdgpu: enable gmc11 discovery support for GC 11.5.1

In reply to Alex Deucher

From: Yifan Zhang <[email protected]>

This patch to enable gmc11 for GC 11.5.1

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
index 3bd47d882205..ace5e924f279 100644
@@ -1730,6 +1730,7 @@ static int amdgpu_discovery_set_gmc_ip_blocks(struct amdgpu_device *adev)
 	case IP_VERSION(11, 0, 3):
 	case IP_VERSION(11, 0, 4):
 	case IP_VERSION(11, 5, 0):
+	case IP_VERSION(11, 5, 1):
 		amdgpu_device_ip_block_add(adev, &gmc_v11_0_ip_block);
 		break;
 	default:
Signature · 1 line
2.42.0