RE: [PATCH v2] drm/amdgpu: fix system hang issue during GPU reset

2020-07-11 Thread Li, Dennis
[AMD Official Use Only - Internal Distribution Only] -Original Message- From: Grodzovsky, Andrey Sent: Friday, July 10, 2020 10:33 PM To: Li, Dennis ; amd-gfx@lists.freedesktop.org; Deucher, Alexander ; Zhou1, Tao ; Zhang, Hawking ; Chen, Guchun Subject: Re: [PATCH v2] drm/amdgpu:

Re: [PATCH v2] drm/amdgpu: fix system hang issue during GPU reset

2020-07-11 Thread Andrey Grodzovsky
On 7/8/20 3:48 AM, Dennis Li wrote: During GPU reset, driver should hold on all external access to GPU, otherwise psp will randomly fail to do post, and then cause system hang. v2: 1. add rwlock for some ioctls, debugfs and file-close function. 2. change to use dqm->is_resetting and dqm_lock