diff options
| author | Le Ma <le.ma@amd.com> | 2021-08-31 13:32:20 +0800 | 
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2023-03-07 14:21:56 -0500 | 
| commit | 2024ccc8e28309d549578190ce0ec7a986069e9f (patch) | |
| tree | d08d9d575f00d2a3166f1e5354a81a5a50956a5c /drivers/gpu | |
| parent | 4f17289f14da7fd255f330d0e6545251f81c711c (diff) | |
drm/amdgpu: skip hdp invalidation for HDP 4.4.2
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>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c b/drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c index adf89680f53e..ee09cf1b8e4f 100644 --- a/drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c @@ -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) | 
