]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86/amd/pmf: Rename IPU metrics fields to NPU for consistency
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Thu, 20 Nov 2025 10:52:08 +0000 (16:22 +0530)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 21 Nov 2025 15:17:15 +0000 (17:17 +0200)
Update smu_pmf_metrics_v2 to use NPU terminology instead of IPU. This
aligns the driver with current firmware/hardware naming and fixes the
mismatch. There is no functional change and no impact to the struct layout
and only field names are updated.

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by:
Link: https://patch.msgid.link/20251120105210.3945710-2-Shyam-sundar.S-k@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/pmf/pmf.h

index bd19f2a6bc786b9917805d2f1a80d3cef8959fbc..6ea5380f3b2339fd0eea0b4b60cf68c9f8f21b31 100644 (file)
@@ -243,12 +243,12 @@ struct smu_pmf_metrics_v2 {
        u16 vclk_freq;                  /* MHz */
        u16 vcn_activity;               /* VCN busy % [0-100] */
        u16 vpeclk_freq;                /* MHz */
-       u16 ipuclk_freq;                /* MHz */
-       u16 ipu_busy[8];                /* NPU busy % [0-100] */
+       u16 npuclk_freq;                /* MHz */
+       u16 npu_busy[8];                /* NPU busy % [0-100] */
        u16 dram_reads;                 /* MB/sec */
        u16 dram_writes;                /* MB/sec */
        u16 core_c0residency[16];       /* C0 residency % [0-100] */
-       u16 ipu_power;                  /* mW */
+       u16 npu_power;                  /* mW */
        u32 apu_power;                  /* mW */
        u32 gfx_power;                  /* mW */
        u32 dgpu_power;                 /* mW */
@@ -257,9 +257,9 @@ struct smu_pmf_metrics_v2 {
        u32 filter_alpha_value;         /* time constant [us] */
        u32 metrics_counter;
        u16 memclk_freq;                /* MHz */
-       u16 mpipuclk_freq;              /* MHz */
-       u16 ipu_reads;                  /* MB/sec */
-       u16 ipu_writes;                 /* MB/sec */
+       u16 mpnpuclk_freq;              /* MHz */
+       u16 npu_reads;                  /* MB/sec */
+       u16 npu_writes;                 /* MB/sec */
        u32 throttle_residency_prochot;
        u32 throttle_residency_spl;
        u32 throttle_residency_fppt;