]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: use work queue to perform throttling logging
authorEvan Quan <evan.quan@amd.com>
Wed, 3 Jun 2020 03:45:49 +0000 (11:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:17 +0000 (01:59 -0400)
commit1e52394be55add7eb90abeeec63ae871586e2b4d
tree795391d2750d3505603a424d458d89bbe09dba4c
parentf6aa92653ee72b5c189c6670f4649ca8d7127d23
drm/amd/powerplay: use work queue to perform throttling logging

As IO operations(access to SMU internals) and possible sleep are
involved in throttling logging. Workqueue can handle them well.
Otherwise we may hit "scheduling while atomic" error.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/smu_v11_0.c