drm/amdgpu: support per device powerplay enablement (v2)
authorJammy Zhou <Jammy.Zhou@amd.com>
Tue, 10 Nov 2015 23:31:08 +0000 (18:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:42:27 +0000 (16:42 -0500)
commite61710c59dd205b48413762b2aedd46e86df3c45
tree99246b35234fc3d4a54fd269f10a28b11b0221a2
parent8804b8d5b05bbf5aea205e49fa4ed8240eb1728d
drm/amdgpu: support per device powerplay enablement (v2)

The amdgu_powerplay variable is global for multiple GPU instances.

v2: fold in Flora's module option change, protect adev reference in
macros

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c