Re: [PATCH] drm/amd/display: Guard calls to hdcp_ta and dtm_ta

2020-04-01 Thread Kazlauskas, Nicholas
*To:* Alex Deucher ; Lakha, Bhawanpreet *Cc:* Deucher, Alexander ; amd-gfx list ; Zhang, Hawking *Subject:* Re: [PATCH] drm/amd/display: Guard calls to hdcp_ta and dtm_ta On 2020-03-31 1:37 p.m., Alex Deucher wrote: On Mon, Mar 30, 2020 at 6:36 PM Bhawanpreet Lakha wrote: [Why] The buffer used wh

Re: [PATCH] drm/amd/display: Guard calls to hdcp_ta and dtm_ta

2020-03-31 Thread Lakha, Bhawanpreet
Cc: Deucher, Alexander ; amd-gfx list ; Zhang, Hawking Subject: Re: [PATCH] drm/amd/display: Guard calls to hdcp_ta and dtm_ta On 2020-03-31 1:37 p.m., Alex Deucher wrote: > On Mon, Mar 30, 2020 at 6:36 PM Bhawanpreet Lakha > wrote: >> >> [Why] >> The buffer used when c

Re: [PATCH] drm/amd/display: Guard calls to hdcp_ta and dtm_ta

2020-03-31 Thread Kazlauskas, Nicholas
On 2020-03-31 1:37 p.m., Alex Deucher wrote: On Mon, Mar 30, 2020 at 6:36 PM Bhawanpreet Lakha wrote: [Why] The buffer used when calling psp is a shared buffer. If we have multiple calls at the same time we can overwrite the buffer. [How] Add mutex to guard the shared buffer. Signed-off-by:

Re: [PATCH] drm/amd/display: Guard calls to hdcp_ta and dtm_ta

2020-03-31 Thread Alex Deucher
On Mon, Mar 30, 2020 at 6:36 PM Bhawanpreet Lakha wrote: > > [Why] > The buffer used when calling psp is a shared buffer. If we have multiple calls > at the same time we can overwrite the buffer. > > [How] > Add mutex to guard the shared buffer. > > Signed-off-by: Bhawanpreet Lakha Acked-by: Ale

[PATCH] drm/amd/display: Guard calls to hdcp_ta and dtm_ta

2020-03-30 Thread Bhawanpreet Lakha
[Why] The buffer used when calling psp is a shared buffer. If we have multiple calls at the same time we can overwrite the buffer. [How] Add mutex to guard the shared buffer. Signed-off-by: Bhawanpreet Lakha --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 + drivers/gpu/drm/amd/amdgpu/a