]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:42:01 +0000 (14:42 +0200)
commitab13c8a5f777b9e3ac6cf55faa671622f44143c7
treef88dc77b5cc6f61b2bae7f687534b4279f230a88
parent0acdc4d6e679ba31d01e3e7e2e4124b76d6d8e2a
drm/amdkfd: Set per-process flags only once cik/vi

[ Upstream commit 289e68503a4533b014f8447e2af28ad44c92c221 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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