]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/pm: Add caching for SystemMetrics table
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 28 Aug 2025 04:32:35 +0000 (10:02 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 21:38:40 +0000 (17:38 -0400)
commitb842b994ed0678faf73907a67fb13afcd5e50509
tree468067c527c3b1fdd0547bb70780c509f9a05dcb
parentcf32515a70618c0fb2319bd4a855f4d9447940a8
drm/amd/pm: Add caching for SystemMetrics table

Implement caching separately for SystemMetrics table from PMFW. The same
table could be used for multiple interfaces. Hence, cache it internally
to avoid multiple queries to the firmware. For SystemMetrics table, 5ms
cache interval is sufficient.

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/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.h