drm/amdkfd: Enforce queue BO's adev
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Mon, 22 Apr 2024 21:03:46 +0000 (17:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Apr 2024 21:22:42 +0000 (17:22 -0400)
commit7f11a836e15825342f413ba2c36b589fc38c002a
tree3db20c73e70ad9e418c05a5e12c8be0c5ceb2cc1
parent4fdd07cec81d970995588294528dcfb1d096bc29
drm/amdkfd: Enforce queue BO's adev

Queue buffer, though it is in system memory, has to be created using the
correct amdgpu device. Enforce this as the BO needs to mapped to the
GART for MES Hardware scheduler to access it.

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c