drm/amdgpu: skip hdp invalidation for HDP 4.4.2
authorLe Ma <le.ma@amd.com>
Tue, 31 Aug 2021 05:32:20 +0000 (13:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 19:21:56 +0000 (14:21 -0500)
No mmHDP_READ_CACHE_INVALIDATE register on HDP 4.4.2.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c

index adf8968..ee09cf1 100644 (file)
@@ -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)