Re: [PATCH] drm/amdgpu: added synchronization for psp cmd buf access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[Public]


Hello Guchun,

In most of those cases you are right it is redundant, the reason i kept them separate for now is to resolve this bug while also keeping those interfaces modular, and not affecting the psp submit sequence yet. We are planning a bigger change to that source to remove alot of the duplicate code regarding the cmd buffer prepare/submit flow and will probably go back down to one mutex there.

Thank you,
John Clements


From: Chen, Guchun <Guchun.Chen@xxxxxxx>
Sent: Tuesday, August 3, 2021 9:58 PM
To: Clements, John <John.Clements@xxxxxxx>; amd-gfx@xxxxxxxxxxxxxxxxxxxxx <amd-gfx@xxxxxxxxxxxxxxxxxxxxx>
Cc: Zhang, Hawking <Hawking.Zhang@xxxxxxx>; Li, Candice <Candice.Li@xxxxxxx>; Lazar, Lijo <Lijo.Lazar@xxxxxxx>
Subject: RE: [PATCH] drm/amdgpu: added synchronization for psp cmd buf access
 

[Public]

 

Before calling into psp_cmd_submit_buf, a mutex psp->cmd_buf_mutex is there, and after entering psp_cmd_submit_buf, there is another mutex psp->mutex, is it a bit redundant?

 

Regards,

Guchun

 

From: Clements, John <John.Clements@xxxxxxx>
Sent: Tuesday, August 3, 2021 5:50 PM
To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
Cc: Zhang, Hawking <Hawking.Zhang@xxxxxxx>; Li, Candice <Candice.Li@xxxxxxx>; Lazar, Lijo <Lijo.Lazar@xxxxxxx>; Chen, Guchun <Guchun.Chen@xxxxxxx>
Subject: [PATCH] drm/amdgpu: added synchronization for psp cmd buf access

 

[AMD Official Use Only]

 

Submitting patch to synchronize access to psp cmd submission memory to resolve potential race conditions.


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux