]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdkfd: Fix reg offset for setting CWSR grace period
authorMukul Joshi <mukul.joshi@amd.com>
Mon, 28 Aug 2023 18:18:23 +0000 (14:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Sep 2023 21:07:33 +0000 (17:07 -0400)
commit56d6daa3c743ab48d2f747d9373bfc4db0c8fd5a
tree07d0228ce44f7190d952056817065f34f9243a65
parent88ca2f8a962eb02fca31ead32c3cf3f308d6cd1a
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
drivers/gpu/drm/amd/include/kgd_kfd_interface.h