drm/radeon/kms: add dpm support for cayman (v5)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Apr 2013 20:42:42 +0000 (16:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2013 23:16:10 +0000 (19:16 -0400)
commit69e0b57a91adca2e3eb56ed4db39ab90f3ae1043
treeaa08ae87050d5e80c883367ce13fabf7bd32a742
parentd22b7e406a4032f9208207d80c1d515267b73358
drm/radeon/kms: add dpm support for cayman (v5)

This adds dpm support for cayman asics.  This includes:
- clockgating
- dynamic engine clock scaling
- dynamic memory clock scaling
- dynamic voltage scaling
- dynamic pcie gen1/gen2 switching (requires additional acpi support)
- power containment
- shader power scaling

Set radeon.dpm=1 to enable.

v2: fold in tdp fix
v3: fix indentation
v4: fix 64 bit div
v5: attempt to fix state enable

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
16 files changed:
drivers/gpu/drm/radeon/Makefile
drivers/gpu/drm/radeon/btc_dpm.c
drivers/gpu/drm/radeon/btc_dpm.h
drivers/gpu/drm/radeon/cypress_dpm.c
drivers/gpu/drm/radeon/cypress_dpm.h
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/ni_dpm.c [new file with mode: 0644]
drivers/gpu/drm/radeon/ni_dpm.h [new file with mode: 0644]
drivers/gpu/drm/radeon/nid.h
drivers/gpu/drm/radeon/nislands_smc.h [new file with mode: 0644]
drivers/gpu/drm/radeon/ppsmc.h
drivers/gpu/drm/radeon/radeon_asic.c
drivers/gpu/drm/radeon/radeon_asic.h
drivers/gpu/drm/radeon/radeon_pm.c
drivers/gpu/drm/radeon/radeon_ucode.h
drivers/gpu/drm/radeon/rv770_smc.c