From: Rex Zhu <Rex.Zhu@amd.com>
Date: Fri, 21 Apr 2017 13:14:01 +0800
Subject: drm/amd/powerplay: add new clock type in struct gfx_arbit.
Git-commit: 96cda84a6762a8caa9aee9381022e28adb3ea1ef
Patch-mainline: v4.13-rc1
References: FATE#326289 FATE#326079 FATE#326049 FATE#322398 FATE#326166
Add the new clock type to the gfx arbitor so we can determine
the proper clock floors for it.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Petr Tesarik <ptesarik@suse.com>
---
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 3 +++
1 file changed, 3 insertions(+)
--- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
@@ -136,11 +136,14 @@ struct phm_vce_arbiter {
struct phm_gfx_arbiter {
uint32_t sclk;
+ uint32_t sclk_hard_min;
uint32_t mclk;
uint32_t sclk_over_drive;
uint32_t mclk_over_drive;
uint32_t sclk_threshold;
uint32_t num_cus;
+ uint32_t gfxclk;
+ uint32_t fclk;
};
/* Entries in the master tables */