]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/pm: Add mutex lock for metrics table
authorAsad Kamal <asad.kamal@amd.com>
Sat, 31 Jan 2026 10:05:31 +0000 (18:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 21:42:57 +0000 (17:42 -0400)
Add metrics table mutex lock in smu table context struct

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

index 90346e70a614b6307f0e6387cae2ef19c5c86276..609f5ab07d8a85664afcbe5baf26a4e1356e0cbd 100644 (file)
@@ -389,6 +389,7 @@ struct smu_table_context {
        void                            *metrics_table;
        void                            *clocks_table;
        void                            *watermarks_table;
+       struct mutex                    metrics_lock;
 
        void                            *max_sustainable_clocks;
        struct smu_bios_boot_up_values  boot_values;