summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h
diff options
context:
space:
mode:
authorMukul Joshi <mukul.joshi@amd.com>2023-08-28 14:18:23 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-09-11 18:15:43 -0400
commit81faf9e0c3d39d47c6825469591d60a2cd0bbe10 (patch)
tree6febe7b091f2130e87682a08e693727959e19c18 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h
parentafaf2b38025ab327c85e218f36d1819e777d4d45 (diff)
downloadlinux-81faf9e0c3d39d47c6825469591d60a2cd0bbe10.tar.gz
linux-81faf9e0c3d39d47c6825469591d60a2cd0bbe10.tar.bz2
linux-81faf9e0c3d39d47c6825469591d60a2cd0bbe10.zip
drm/amdkfd: Fix reg offset for setting CWSR grace period
This patch fixes the case where the code currently passes absolute register address and not the reg offset, which HWS expects, when sending the PM4 packet to set/update CWSR grace period. Additionally, cleanup the signature of build_grace_period_packet_info function as it no longer needs the inst parameter. Signed-off-by: Mukul Joshi <mukul.joshi@amd.com> Reviewed-by: Jonathan Kim <jonathan.kim@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h
index 936e501908ce..ce424615f59b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h
@@ -100,5 +100,4 @@ void kgd_gfx_v9_build_grace_period_packet_info(struct amdgpu_device *adev,
uint32_t wait_times,
uint32_t grace_period,
uint32_t *reg_offset,
- uint32_t *reg_data,
- uint32_t inst);
+ uint32_t *reg_data);