RE: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore

2020-08-20 Thread Li, Dennis
@lists.freedesktop.org; Deucher, Alexander ; Kuehling, Felix ; Zhang, Hawking ; Koenig, Christian Subject: RE: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore [AMD Official Use Only - Internal Distribution Only] >>Locked = down_read_trylock(>reset_sem); >>If (!l

RE: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore

2020-08-20 Thread Liu, Monk
sday, August 20, 2020 7:36 PM To: Liu, Monk ; amd-gfx@lists.freedesktop.org; Deucher, Alexander ; Kuehling, Felix ; Zhang, Hawking ; Koenig, Christian Subject: RE: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore [AMD Official Use Only - Internal Distribution Only] [AMD Offi

RE: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore

2020-08-20 Thread Li, Dennis
[AMD Official Use Only - Internal Distribution Only] [AMD Official Use Only - Internal Distribution Only] Hi, Monk, See my below comments. Best Regards Dennis Li [AMD Official Use Only - Internal Distribution Only] --- a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +++

RE: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore

2020-08-20 Thread Liu, Monk
[AMD Official Use Only - Internal Distribution Only] --- a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c @@ -238,19 +238,12 @@ static void xgpu_ai_mailbox_flr_work(struct work_struct *work) struct amdgpu_virt *virt = container_of(work, struct amdgpu_virt,

RE: [PATCH v2] drm/amdgpu: change reset lock from mutex to rw_semaphore

2020-08-20 Thread Li, Dennis
[AMD Official Use Only - Internal Distribution Only] Hi, Frank and Monk, Can you help review this patch? Because it also changes some virtualization related codes. Best Regards Dennis Li -Original Message- From: Dennis Li Sent: Thursday, August 20, 2020 5:33 PM To: