Skip to contentSkip to conversation

drm/amdgpu: skip hdp invalidation for HDP 4.4.2

PATCH New Alex Deucher 1 participant 2 messages Mar 1, 2023

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/2 drm/amdgpu: skip hdp invalidation for HDP 4.4.2

From: Le Ma <[email protected]>

No mmHDP_READ_CACHE_INVALIDATE register on HDP 4.4.2.

---
 drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c +2 -1
index adf89680f53e..ee09cf1b8e4f 100644
@@ -49,7 +49,8 @@ static void hdp_v4_0_flush_hdp(struct amdgpu_device *adev,
 static void hdp_v4_0_invalidate_hdp(struct amdgpu_device *adev,
 				    struct amdgpu_ring *ring)
 {
-	if (adev->ip_versions[HDP_HWIP][0] == IP_VERSION(4, 4, 0))
+	if (adev->ip_versions[HDP_HWIP][0] == IP_VERSION(4, 4, 0) ||
+	    adev->ip_versions[HDP_HWIP][0] == IP_VERSION(4, 4, 2))
 		return;
 
 	if (!ring || !ring->funcs->emit_wreg)
Signature · 1 line
2.39.2
author maintainer
#1 lore raw

PATCH 2/2 drm/amdgpu: add HDP ip block for HDP 4.4.2

From: Hawking Zhang <[email protected]>

Add HDP IP handling for HDP 4.4.2

---
 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 a610fc922df1..8b3ebb7d482b 100644
@@ -2297,6 +2297,7 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
 	case IP_VERSION(4, 2, 0):
 	case IP_VERSION(4, 2, 1):
 	case IP_VERSION(4, 4, 0):
+	case IP_VERSION(4, 4, 2):
 		adev->hdp.funcs = &hdp_v4_0_funcs;
 		break;
 	case IP_VERSION(5, 0, 0):
Signature · 1 line
2.39.2