[PATCH 2/5] drm/amdgpu: unbind in amdgpu_ttm_tt_unpopulate

2021-07-28 Thread Christian König
Doing this in amdgpu_ttm_backend_destroy() is to late. It turned out that this is not a good idea at all because it leaves pointers to freed up system memory pages in the GART tables of the drivers. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 ++- 1 file chang

[PATCH 2/5] drm/amdgpu: unbind in amdgpu_ttm_tt_unpopulate

2021-07-22 Thread Christian König
Doing this in amdgpu_ttm_backend_destroy() is to late. It turned out that this is not a good idea at all because it leaves pointers to freed up system memory pages in the GART tables of the drivers. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 ++- 1 file chang

[PATCH 2/5] drm/amdgpu: unbind in amdgpu_ttm_tt_unpopulate

2021-07-22 Thread Christian König
Turned out that doing this in amdgpu_ttm_backend_destroy() is to late. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm