There are different metrics tables provided by driver, and they are all sourced from firmware. However, even with the same firmware table source, different classes of data could have different polling intervals. Hence driver shouldn't apply the same cache policy for all data coming from a single data source. This series adds driver tables with cache interval so that different tables could keep their own caching policy even if the data source is the same.
Lijo Lazar (7): drm/amd/pm: Add smu driver table structure drm/amd/pm: Use driver table structure in smuv11 drm/amd/pm: Use driver table structure in smuv12 drm/amd/pm: Use driver table structure in smuv13 drm/amd/pm: Use driver table structure in smuv14 drm/amd/pm: Use cached gpu metrics table drm/amd/pm: Use driver table for board temperature drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 31 ++++-- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 105 ++++++++++++++++-- .../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 16 ++- .../amd/pm/swsmu/smu11/cyan_skillfish_ppt.c | 15 ++- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 33 ++++-- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 16 ++- .../gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 3 +- .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 44 +++++--- .../gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 14 ++- .../gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c | 3 +- .../drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 18 +-- .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 3 +- .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 16 ++- .../drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 49 ++++---- .../drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c | 17 +-- .../drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c | 19 ++-- .../drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 23 ++-- .../drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 16 ++- .../drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c | 19 ++-- .../gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 3 +- .../drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c | 19 ++-- .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 16 ++- 22 files changed, 332 insertions(+), 166 deletions(-) -- 2.49.0
