drm/amdgpu: dGPU mode placement support memory partition
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 26 Jan 2023 23:54:29 +0000 (18:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:36:27 +0000 (10:36 -0400)
commit7f6db89418f9d26eb68e050ff16de8e9827011ca
tree1451c5e95d70afb2cec97abe5559ea1c9ee000b3
parent2046ed6c8aa951e4ae83c5022bb0a7c777386097
drm/amdgpu: dGPU mode placement support memory partition

dGPU mode uses VRAM manager to validate bo, amdgpu bo placement use the
mem_id  to get the allocation range first, last page frame number
from xcp manager, pass to drm buddy allocator as the allowed range.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c