Re: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v3)

2019-01-07 Thread Grodzovsky, Andrey
Reviewed-by: Andrey Grodzovsky Andrey On 01/07/2019 12:31 PM, StDenis, Tom wrote: > v2: Move locks around in other functions so that this > function can stand on its own. Also only hold the hive > specific lock for add/remove device instead of the driver > global lock so you can't add/remove

[PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v3)

2019-01-07 Thread StDenis, Tom
v2: Move locks around in other functions so that this function can stand on its own. Also only hold the hive specific lock for add/remove device instead of the driver global lock so you can't add/remove devices in parallel from one hive. v3: add reset_lock Signed-off-by: Tom St Denis ---

Re: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2)

2019-01-07 Thread Grodzovsky, Andrey
gt;> The changes is acked-by Shaoyun.liu < shaoyun@amd.com> >>>>>>> >>>>>>> -Original Message- >>>>>>> From: amd-gfx On Behalf Of >>>>>>> StDenis, Tom >>>>>>> Se

Re: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2)

2019-01-07 Thread StDenis, Tom
amd.com> >>>>>> >>>>>> -Original Message- >>>>>> From: amd-gfx On Behalf Of >>>>>> StDenis, Tom >>>>>> Sent: Monday, January 7, 2019 10:16 AM >>>>>> To: amd-gfx@lists.freedesktop.o

Re: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2)

2019-01-07 Thread Grodzovsky, Andrey
From: amd-gfx On Behalf Of >>>>> StDenis, Tom >>>>> Sent: Monday, January 7, 2019 10:16 AM >>>>> To: amd-gfx@lists.freedesktop.org >>>>> Cc: StDenis, Tom >>>>> Subject: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive(

Re: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2)

2019-01-07 Thread StDenis, Tom
>> Sent: Monday, January 7, 2019 10:16 AM >>>> To: amd-gfx@lists.freedesktop.org >>>> Cc: StDenis, Tom >>>> Subject: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2) >>>> >>>> v2: Move locks around in other functions so th

Re: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2)

2019-01-07 Thread Grodzovsky, Andrey
changes is acked-by Shaoyun.liu < shaoyun@amd.com> >>> >>> -Original Message- >>> From: amd-gfx On Behalf Of StDenis, >>> Tom >>> Sent: Monday, January 7, 2019 10:16 AM >>> To: amd-gfx@lists.freedesktop.org >>> Cc:

Re: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2)

2019-01-07 Thread StDenis, Tom
m> >> >> -Original Message- >> From: amd-gfx On Behalf Of StDenis, >> Tom >> Sent: Monday, January 7, 2019 10:16 AM >> To: amd-gfx@lists.freedesktop.org >> Cc: StDenis, Tom >> Subject: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v

Re: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2)

2019-01-07 Thread Grodzovsky, Andrey
Tom > Sent: Monday, January 7, 2019 10:16 AM > To: amd-gfx@lists.freedesktop.org > Cc: StDenis, Tom > Subject: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2) > > v2: Move locks around in other functions so that this function can stand on > its own. Also only h

RE: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2)

2019-01-07 Thread Liu, Shaoyun
org Cc: StDenis, Tom Subject: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2) v2: Move locks around in other functions so that this function can stand on its own. Also only hold the hive specific lock for add/remove device instead of the driver global lock so you can't add/remove d

[PATCH] add missing mutex lock to amdgpu_get_xgmi_hive() (v2)

2019-01-07 Thread StDenis, Tom
v2: Move locks around in other functions so that this function can stand on its own. Also only hold the hive specific lock for add/remove device instead of the driver global lock so you can't add/remove devices in parallel from one hive. Signed-off-by: Tom St Denis ---

Re: [PATCH] add missing mutex lock to amdgpu_get_xgmi_hive()

2019-01-07 Thread StDenis, Tom
Self NAK this ... calling functions take the same lock We should remove the locks from the callers so this function is thread safe on its own... Tom On 2019-01-07 10:00 a.m., StDenis, Tom wrote: > Signed-off-by: Tom St Denis > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 13

[PATCH] add missing mutex lock to amdgpu_get_xgmi_hive()

2019-01-07 Thread StDenis, Tom
Signed-off-by: Tom St Denis --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c index 8a8bc60cb6b4..587a5f73ae8c 100644 ---