diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1421-drm-amd-powerplay-add-two-interfaces-to-set_active_d.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1421-drm-amd-powerplay-add-two-interfaces-to-set_active_d.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1421-drm-amd-powerplay-add-two-interfaces-to-set_active_d.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1421-drm-amd-powerplay-add-two-interfaces-to-set_active_d.patch new file mode 100644 index 00000000..b9f35638 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1421-drm-amd-powerplay-add-two-interfaces-to-set_active_d.patch @@ -0,0 +1,47 @@ +From 46184a5cd76504702965ae4e841187080c3793f7 Mon Sep 17 00:00:00 2001 +From: Huang Rui <ray.huang@amd.com> +Date: Fri, 11 Jan 2019 16:12:03 +0800 +Subject: [PATCH 1421/2940] drm/amd/powerplay: add two interfaces to + set_active_display_count and store_cc6_data + +This patch adds two interfaces to set_active_display_count and store_cc6_data, +they won't be used for smu11, and just be the placeholders for future asic on +display to smu interface. + +Signed-off-by: Huang Rui <ray.huang@amd.com> +Reviewed-by: Evan Quan <evan.quan@amd.com> +Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com> +Acked-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h +index 425be3d07df9..7d8f15c89d6c 100644 +--- a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h ++++ b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h +@@ -264,6 +264,10 @@ struct smu_funcs + int (*read_sensor)(struct smu_context *smu, enum amd_pp_sensors sensor, + void *data, uint32_t *size); + int (*set_deep_sleep_dcefclk)(struct smu_context *smu, uint32_t clk); ++ int (*set_active_display_count)(struct smu_context *smu, uint32_t count); ++ int (*store_cc6_data)(struct smu_context *smu, uint32_t separation_time, ++ bool cc6_disable, bool pstate_disable, ++ bool pstate_switch_disable); + }; + + #define smu_init_microcode(smu) \ +@@ -361,6 +365,10 @@ struct smu_funcs + ((smu)->ppt_funcs? ((smu)->ppt_funcs->get_unallowed_feature_mask? (smu)->ppt_funcs->get_unallowed_feature_mask((smu), (feature_mask), (num)) : 0) : 0) + #define smu_set_deep_sleep_dcefclk(smu, clk) \ + ((smu)->funcs->set_deep_sleep_dcefclk ? (smu)->funcs->set_deep_sleep_dcefclk((smu), (clk)) : 0) ++#define smu_set_active_display_count(smu, count) \ ++ ((smu)->funcs->set_active_display_count ? (smu)->funcs->set_active_display_count((smu), (count)) : 0) ++#define smu_store_cc6_data(smu, st, cc6_dis, pst_dis, pst_sw_dis) \ ++ ((smu)->funcs->store_cc6_data ? (smu)->funcs->store_cc6_data((smu), (st), (cc6_dis), (pst_dis), (pst_sw_dis)) : 0) + + extern int smu_get_atom_data_table(struct smu_context *smu, uint32_t table, + uint16_t *size, uint8_t *frev, uint8_t *crev, +-- +2.17.1 + |