drm/amdgpu: rework GART copy window handling
authorChristian König <christian.koenig@amd.com>
Mon, 31 Jan 2022 12:42:52 +0000 (13:42 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Feb 2022 23:26:50 +0000 (18:26 -0500)
commit6927913d700749a4b9550f87f294778df2a7faa4
tree5ab95f3cf6a87aa0e353a271f22d14184537bd4f
parente0a4459d45425fabd5f020a2117d350c5a07477b
drm/amdgpu: rework GART copy window handling

Instead of limiting the size before we call the mapping
function let the function itself limit the size.

Signed-off-by: Christian König <christian.koenig@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_ttm.c