drm/radeon/kms: add dpm support for btc (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Jun 2013 04:15:24 +0000 (00:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2013 23:15:44 +0000 (19:15 -0400)
commit6596afd48af4d07c8b454849b2fe7e628974f3ef
tree4a6a081ef0f3b6cc96afc36c65ff502129072bd1
parentdc50ba7f9a6d9a920409892c7f30bce266067345
drm/radeon/kms: add dpm support for btc (v3)

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

Set radeon.dpm=1 to enable.

v2: reduce stack usage
v3: attempt to fix state enable

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/Makefile
drivers/gpu/drm/radeon/btc_dpm.c [new file with mode: 0644]
drivers/gpu/drm/radeon/btc_dpm.h [new file with mode: 0644]
drivers/gpu/drm/radeon/btcd.h [new file with mode: 0644]
drivers/gpu/drm/radeon/ni.c
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