drm/amd/powerplay: add basic powerplay framework
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2015 22:46:21 +0000 (17:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:42:07 +0000 (16:42 -0500)
commit1f7371b2a5faf139465f0af386cccbb54b832534
treecd04371e55d1db6a1b6fe12cd6e849b6e30ba9c3
parent47bf18b5b257d5a385b7d447a29f97301f5b2282
drm/amd/powerplay: add basic powerplay framework

amdgpu_pp_ip_funcs is introduced to handle the two code paths,
the legacy one and the new powerplay implementation.

CONFIG_DRM_AMD_POWERPLAY kernel configuration option is
introduced for the powerplay component.

v4: squash in fixes
v3: register debugfs file when powerplay module enable
v2: add amdgpu_ucode_init_bo in hw init when amdgpu_powerplay enable.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
12 files changed:
drivers/gpu/drm/Kconfig
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/cik.c
drivers/gpu/drm/amd/amdgpu/vi.c
drivers/gpu/drm/amd/powerplay/Kconfig [new file with mode: 0644]
drivers/gpu/drm/amd/powerplay/Makefile [new file with mode: 0644]
drivers/gpu/drm/amd/powerplay/amd_powerplay.c [new file with mode: 0644]
drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h [new file with mode: 0644]