]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: add an option to allow gpu partition allocate all available memory
authorXiaogang Chen <xiaogang.chen@amd.com>
Tue, 31 Mar 2026 18:24:17 +0000 (13:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Apr 2026 17:50:29 +0000 (13:50 -0400)
commite0e9792ea2d4bc72634c0ba77472c3d4ef01fc8e
tree6c17c466d5c1d21987719fed669e5a07f9498ce9
parentf315099fd26ae8e9ab7718fbc8f66b157828313a
drm/amdgpu: add an option to allow gpu partition allocate all available memory

Current driver reports and limits memory allocation for each partition equally
among partitions using same memory partition. Application may not be able to
use all available memory when run on a partitioned gpu though system still has
enough free memory.

Add an option that app can use to have gpu partition allocate all available
memory.

Signed-off-by: Xiaogang Chen <xiaogang.chen@amd.com>
Reviewed-by: Philip Yang <philip.yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h