Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: clear SA bo when created

This help fix reloading driver hang issue of SDMA
ring

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Monk Liu and committed by
Alex Deucher
9a005bef 768c95e7

+1
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c
··· 115 115 return r; 116 116 } 117 117 r = amdgpu_bo_kmap(sa_manager->bo, &sa_manager->cpu_ptr); 118 + memset(sa_manager->cpu_ptr, 0, sa_manager->size); 118 119 amdgpu_bo_unreserve(sa_manager->bo); 119 120 return r; 120 121 }