diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0067-drm-amdgpu-powerplay-add-some-definition-for-other-i.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0067-drm-amdgpu-powerplay-add-some-definition-for-other-i.patch | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/common/recipes-kernel/linux/files/0067-drm-amdgpu-powerplay-add-some-definition-for-other-i.patch b/common/recipes-kernel/linux/files/0067-drm-amdgpu-powerplay-add-some-definition-for-other-i.patch deleted file mode 100644 index f416db4f..00000000 --- a/common/recipes-kernel/linux/files/0067-drm-amdgpu-powerplay-add-some-definition-for-other-i.patch +++ /dev/null @@ -1,70 +0,0 @@ -From 474eca7871cf0e94ad49d59087b7f68c78c68bcc Mon Sep 17 00:00:00 2001 -From: Rex Zhu <Rex.Zhu@amd.com> -Date: Fri, 9 Oct 2015 18:43:28 +0800 -Subject: [PATCH 0067/1110] drm/amdgpu/powerplay: add some definition for other - ip block to update cg pg. - -Interface for clock and power gating handling. - -Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> -Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> -Reviewed-by: Alex Deucher <alexander.deucher@amd.com> ---- - drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h | 41 +++++++++++++++++++++++ - 1 file changed, 41 insertions(+) - -diff --git a/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h b/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h -index 2281d88..d81b239 100644 ---- a/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h -+++ b/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h -@@ -131,6 +131,47 @@ struct amd_pp_init { - uint32_t rev_id; - }; - -+enum { -+ PP_GROUP_UNKNOWN = 0, -+ PP_GROUP_GFX = 1, -+ PP_GROUP_SYS, -+ PP_GROUP_MAX -+}; -+ -+#define PP_GROUP_MASK 0xF0000000 -+#define PP_GROUP_SHIFT 28 -+ -+#define PP_BLOCK_MASK 0x0FFFFF00 -+#define PP_BLOCK_SHIFT 8 -+ -+#define PP_BLOCK_GFX_CG 0x01 -+#define PP_BLOCK_GFX_MG 0x02 -+#define PP_BLOCK_SYS_BIF 0x01 -+#define PP_BLOCK_SYS_MC 0x02 -+#define PP_BLOCK_SYS_ROM 0x04 -+#define PP_BLOCK_SYS_DRM 0x08 -+#define PP_BLOCK_SYS_HDP 0x10 -+#define PP_BLOCK_SYS_SDMA 0x20 -+ -+#define PP_STATE_MASK 0x0000000F -+#define PP_STATE_SHIFT 0 -+#define PP_STATE_SUPPORT_MASK 0x000000F0 -+#define PP_STATE_SUPPORT_SHIFT 0 -+ -+#define PP_STATE_CG 0x01 -+#define PP_STATE_LS 0x02 -+#define PP_STATE_DS 0x04 -+#define PP_STATE_SD 0x08 -+#define PP_STATE_SUPPORT_CG 0x10 -+#define PP_STATE_SUPPORT_LS 0x20 -+#define PP_STATE_SUPPORT_DS 0x40 -+#define PP_STATE_SUPPORT_SD 0x80 -+ -+#define PP_CG_MSG_ID(group, block, support, state) (group << PP_GROUP_SHIFT |\ -+ block << PP_BLOCK_SHIFT |\ -+ support << PP_STATE_SUPPORT_SHIFT |\ -+ state << PP_STATE_SHIFT) -+ - struct amd_powerplay_funcs { - int (*get_temperature)(void *handle); - int (*load_firmware)(void *handle); --- -2.7.4 - |