diff options
author | Kevin Wang <kevin1.wang@amd.com> | 2019-09-26 16:22:13 +0800 |
---|---|---|
committer | Kevin Wang <kevin1.wang@amd.com> | 2019-09-27 19:19:23 +0800 |
commit | bc210e5901a155c06e174f4518a93a547e145e38 (patch) | |
tree | cab4d12b021997ccdb17a22c5d4711ebad814a2b /mm/mmap.c | |
parent | 3e5c563c7c5bf13a3844b3e84d1200fb8da0d3ba (diff) |
drm/amd/powerplay: add sensor lock support for smu
when multithreading access sysfs of amdgpu_pm_info at the sametime.
the swsmu driver cause smu firmware hang.
eg:
single thread access:
Message A + Param A ==> right
Message B + Param B ==> right
Message C + Param C ==> right
multithreading access:
Message A + Param B ==> error
Message B + Param A ==> error
Message C + Param C ==> right
the patch will add sensor lock(mutex) to avoid this error.
Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions