Lee Jones
55a79cc25b
drm/radeon/sumo_dpm: Move 'sumo_get_pi()'s prototype into shared header
...
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/radeon/sumo_dpm.c:81:25: warning: no previous prototype for ‘sumo_get_pi’ [-Wmissing-prototypes]
81 | struct sumo_power_info *sumo_get_pi(struct radeon_device *rdev)
| ^~~~~~~~~~~
Cc: Alex Deucher <alexander.deucher@amd.com >
Cc: "Christian König" <christian.koenig@amd.com >
Cc: David Airlie <airlied@linux.ie >
Cc: Daniel Vetter <daniel@ffwll.ch >
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-11-13 00:12:30 -05:00
Sam Ravnborg
88f489d26b
drm/radeon: prepare header files for drmP.h removal
...
While removing drmP.h from all .c files the list of
header files are also sorted alphabetically.
To allow this adjust the header files to pull in
the dependencies they needed to allow this.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Cc: "Christian König" <christian.koenig@amd.com >
Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com >
Cc: David Airlie <airlied@linux.ie >
Cc: Daniel Vetter <daniel@ffwll.ch >
Link: https://patchwork.freedesktop.org/patch/msgid/20190608080241.4958-6-sam@ravnborg.org
2019-06-10 22:30:24 +02:00
Alex Deucher
1afde6b265
drm/radeon: comment out some currently unused sumo dpm code
...
Keep it around for reference.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2015-01-22 10:38:57 -05:00
Alex Deucher
03243fc656
drm/radeon/sumo add helper to go from vid7 to vid2
...
Needed for DPM on KB/KV.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2013-08-30 16:30:10 -04:00
Alex Deucher
9d45ad5aff
drm/radeon/dpm: remove local sumo_get_xclk()
...
Use the new asic callback instead.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2013-06-27 19:16:22 -04:00
Alex Deucher
422a56bc8a
drm/radeon/dpm: add pre/post_set_power_state callback (sumo)
...
This properly implemented dynamic state adjustment by
using a working copy of the requested and current
power states.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2013-06-27 19:16:18 -04:00
Alex Deucher
7cf36de9eb
drm/radeon/dpm: fixup dynamic state adjust for sumo
...
Use a dedicated copy of the current power state since
we may have to adjust it on the fly.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2013-06-27 19:15:51 -04:00
Alex Deucher
d70229f704
drm/radeon/kms: add dpm support for trinity asics
...
This adds dpm support for trinity asics. This includes:
- clockgating
- powergating
- dynamic engine clock scaling
- dynamic voltage scaling
set radeon.dpm=1 to enable it.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2013-06-27 19:15:45 -04:00
Alex Deucher
80ea2c129c
drm/radeon/kms: add dpm support for sumo asics (v2)
...
This adds dpm support for sumo asics. This includes:
- clockgating
- powergating
- dynamic engine clock scaling
- dynamic voltage scaling
set radeon.dpm=1 to enable it.
v2: fix indention
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Jerome Glisse <jglisse@redhat.com >
2013-06-27 19:15:44 -04:00