drm/amdgpu: dGPU mode set VRAM range lpfn as exclusive
authorPhilip Yang <Philip.Yang@amd.com>
Tue, 7 Mar 2023 16:30:24 +0000 (11:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:36:35 +0000 (10:36 -0400)
commit6cfba94a77c5cbad2d7c106ac5f026b6a8b1efe6
treefec51809f0d698b9d2beaf4dd14a6ace6444526d
parentea7bf2f22061a7bd77b17ddd4ac1bb3500ae823f
drm/amdgpu: dGPU mode set VRAM range lpfn as exclusive

TTM place lpfn is exclusive used as end (start + size) in drm and buddy
allocator, adev->gmc memory partition range lpfn is inclusive (start +
size - 1), should plus 1 to set TTM place lpfn.

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