OSDN Git Service

drm/amd/amdgpu: add mutex locking for both DPM and PP based powergating for UVD/VCE
authorTom St Denis <tom.stdenis@amd.com>
Thu, 28 Jul 2016 13:40:07 +0000 (09:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 15:32:36 +0000 (11:32 -0400)
commite95a14a9094a8e6396fba22cbdea9201824d6fd1
treefff4770630ed0bf8802b4bc8f4c3d23099ff3537
parent70bb246154229550e5c9095d484b39fb82047907
drm/amd/amdgpu: add mutex locking for both DPM and PP based powergating for UVD/VCE

This adds a mutex lock for both DPM/PP around the changes in
power gating state so that userspace can poll registers without
a race condition on power state.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c