Re: Kernel crash at reloading amdgpu

2019-05-09 Thread Lin, Amber
oun...@lists.freedesktop.org> on behalf of Lin, Amber <mailto:amber@amd.com> Sent: Wednesday, May 8, 2019 4:56 PM To: amd-gfx@lists.freedesktop.org<mailto:amd-gfx@lists.freedesktop.org> Subject: Kernel crash at reloading amdgpu [CAUTION: External Email] Hi, When I do "rmmod amdgpu; m

Re: Kernel crash at reloading amdgpu

2019-05-08 Thread Deucher, Alexander
The attached patch should fix it. Alex From: amd-gfx on behalf of Lin, Amber Sent: Wednesday, May 8, 2019 4:56 PM To: amd-gfx@lists.freedesktop.org Subject: Kernel crash at reloading amdgpu [CAUTION: External Email] Hi, When I do "rmmod amdgpu; mod

Kernel crash at reloading amdgpu

2019-05-08 Thread Lin, Amber
Hi, When I do "rmmod amdgpu; modprobe amdgpu", kernel crashed. This is vega20. What happens is in amdgpu_device_init():     /* check if we need to reset the asic *  E.g., driver was not cleanly unloaded previously, etc. */     if (!amdgpu_sriov_vf(adev) && amdgpu_