]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdkfd: Align expected_queue_size to PAGE_SIZE
authorDonet Tom <donettom@linux.ibm.com>
Mon, 23 Mar 2026 04:28:35 +0000 (09:58 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Mar 2026 18:35:57 +0000 (14:35 -0400)
commitb01cd158a2f5230b137396c5f8cda3fc780abbc2
treec22acb908419108d3be7e2e84a2d82b4d19f6bb8
parent3cfe23b6b04515b07b61c48f8b769c13d5439c9b
drm/amdkfd: Align expected_queue_size to PAGE_SIZE

The AQL queue size can be 4K, but the minimum buffer object (BO)
allocation size is PAGE_SIZE. On systems with a page size larger
than 4K, the expected queue size does not match the allocated BO
size, causing queue creation to fail.

Align the expected queue size to PAGE_SIZE so that it matches the
allocated BO size and allows queue creation to succeed.

Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Donet Tom <donettom@linux.ibm.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_queue.c