drm/amdgpu: restructure amdgpu_fill_buffer v2
authorChristian König <christian.koenig@amd.com>
Fri, 28 Jan 2022 14:59:15 +0000 (15:59 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Feb 2022 23:26:55 +0000 (18:26 -0500)
commit22f7cc7524081bb2bfb2720e43ab9889e2ed5b00
tree1fd8a484d43040fc24c1ba75f25cfc436611d6be
parent6927913d700749a4b9550f87f294778df2a7faa4
drm/amdgpu: restructure amdgpu_fill_buffer v2

We ran into the problem that clearing really larger buffer (60GiB) caused an
SDMA timeout.

Restructure the function to use the dst window instead of mapping the whole
buffer into the GART and then fill only 2MiB/256MiB chunks at a time.

v2: rebase on restructured window map.

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