summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>2022-10-04 17:33:39 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-10-06 19:07:37 +0300
commit312b4dc11d4f74bfe03ea25ffe04c1f2fdd13cb9 (patch)
tree9eb4fe8bd531019100a25ab8298057972c2caea3 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent7e4ab9fb2b9449ef01977e79157d06c8900f73fd (diff)
downloadlinux-312b4dc11d4f74bfe03ea25ffe04c1f2fdd13cb9.tar.xz
drm/amdgpu: Fix VRAM BO swap issue
DRM buddy manager allocates the contiguous memory requests in a single block or multiple blocks. So for the ttm move operation (incase of low vram memory) we should consider all the blocks to compute the total memory size which compared with the struct ttm_resource num_pages in order to verify that the blocks are contiguous for the eviction process. v2: Added a Fixes tag v3: Rewrite the code to save a bit of calculations and variables (Christian) Fixes: c9cad937c0c5 ("drm/amdgpu: add drm buddy support to amdgpu") Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions