]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdkfd: Set per-process flags only once cik/vi
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Tue, 14 Jan 2025 19:07:24 +0000 (14:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Mar 2025 20:33:49 +0000 (15:33 -0500)
commit289e68503a4533b014f8447e2af28ad44c92c221
treea99a4000952c5aa9baf720dbc15e133b0dd1dd65
parent68bfdc8dc0a1a7fdd9ab61e69907ae71a6fd3d91
drm/amdkfd: Set per-process flags only once cik/vi

Set per-process static sh_mem config only once during process
initialization. Move all static changes from update_qpd() which is
called each time a queue is created to set_cache_memory_policy() which
is called once during process initialization.

set_cache_memory_policy() is currently defined only for cik and vi
family. So this commit only focuses on these two. A separate commit will
address other asics.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Reviewed-by: Amber Lin <Amber.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c