]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: Drop legacy message related fields
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 16 Dec 2025 08:56:46 +0000 (14:26 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 10 Jan 2026 19:08:51 +0000 (14:08 -0500)
Remove legacy message related fields from smu context.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h

index 8284f74b6c546fed7f47146b2d1c0415d7fbdbb8..6b6b05e8f7361cd1015772c0569dc44a861f3b4d 100644 (file)
@@ -826,8 +826,6 @@ static int smu_early_init(struct amdgpu_ip_block *ip_block)
        smu->user_dpm_profile.fan_mode = -1;
        smu->power_profile_mode = PP_SMC_POWER_PROFILE_UNKNOWN;
 
-       mutex_init(&smu->message_lock);
-
        adev->powerplay.pp_handle = smu;
        adev->powerplay.pp_funcs = &swsmu_pm_funcs;
 
index 3b2937c07cad8e2b41823784d0cf5d79af6518b3..9e0c8ed67e732c9bd71f2e69c3829977edbad2b5 100644 (file)
@@ -655,13 +655,11 @@ struct smu_context {
        struct amdgpu_irq_src           irq_source;
 
        const struct pptable_funcs      *ppt_funcs;
-       const struct cmn2asic_msg_mapping       *message_map;
        const struct cmn2asic_mapping   *clock_map;
        const struct cmn2asic_mapping   *feature_map;
        const struct cmn2asic_mapping   *table_map;
        const struct cmn2asic_mapping   *pwr_src_map;
        const struct cmn2asic_mapping   *workload_map;
-       struct mutex                    message_lock;
        uint64_t pool_size;
 
        struct smu_table_context        smu_table;
@@ -745,10 +743,6 @@ struct smu_context {
 
        struct firmware pptable_firmware;
 
-       u32 param_reg;
-       u32 msg_reg;
-       u32 resp_reg;
-
        u32 debug_param_reg;
        u32 debug_msg_reg;
        u32 debug_resp_reg;