]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: Relax size checking during queue buffer get
authorDonet Tom <donettom@linux.ibm.com>
Mon, 12 Jan 2026 14:06:54 +0000 (19:36 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Jan 2026 19:28:48 +0000 (14:28 -0500)
commit42ea9cf2f16b7131cb7302acb3dac510968f8bdc
tree9cb8af428aeff7041dc569d3de6ea3d50271dcab
parent318b1c36d82a0cd2b06a4bb43272fa6f1bc8adc1
drm/amdkfd: Relax size checking during queue buffer get

HW-supported EOP buffer sizes are 4K and 32K. On systems that do not
use 4K pages, the minimum buffer object (BO) allocation size is
PAGE_SIZE (for example, 64K). During queue buffer acquisition, the driver
currently checks the allocated BO size against the supported EOP buffer
size. Since the allocated BO is larger than the expected size, this check
fails, preventing queue creation.

Relax the strict size validation and allow PAGE_SIZE-sized BOs to be used.
Only the required 4K region of the buffer will be used as the EOP buffer
and avoids queue creation failures on non-4K page systems.

Acked-by: Christian König <christian.koenig@amd.com>
Suggested-by: Philip Yang <yangp@amd.com>
Signed-off-by: Donet Tom <donettom@linux.ibm.com>
Signed-off-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_queue.c