/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | vangogh_ppt.c | 1673 struct gpu_metrics_v2_3 *gpu_metrics = in vangogh_get_legacy_gpu_metrics_v2_3() local 1682 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 2, 3); in vangogh_get_legacy_gpu_metrics_v2_3() 1684 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in vangogh_get_legacy_gpu_metrics_v2_3() 1685 gpu_metrics->temperature_soc = metrics.SocTemperature; in vangogh_get_legacy_gpu_metrics_v2_3() 1686 memcpy(&gpu_metrics->temperature_core[0], in vangogh_get_legacy_gpu_metrics_v2_3() 1689 gpu_metrics->temperature_l3[0] = metrics.L3Temperature[0]; in vangogh_get_legacy_gpu_metrics_v2_3() 1691 gpu_metrics->average_gfx_activity = metrics.GfxActivity; in vangogh_get_legacy_gpu_metrics_v2_3() 1692 gpu_metrics->average_mm_activity = metrics.UvdActivity; in vangogh_get_legacy_gpu_metrics_v2_3() 1694 gpu_metrics->average_socket_power = metrics.CurrentSocketPower; in vangogh_get_legacy_gpu_metrics_v2_3() 1695 gpu_metrics->average_cpu_power = metrics.Power[0]; in vangogh_get_legacy_gpu_metrics_v2_3() [all …]
|
D | cyan_skillfish_ppt.c | 387 struct gpu_metrics_v2_2 *gpu_metrics = in cyan_skillfish_get_gpu_metrics() local 396 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 2, 2); in cyan_skillfish_get_gpu_metrics() 398 gpu_metrics->temperature_gfx = metrics.Current.GfxTemperature; in cyan_skillfish_get_gpu_metrics() 399 gpu_metrics->temperature_soc = metrics.Current.SocTemperature; in cyan_skillfish_get_gpu_metrics() 401 gpu_metrics->average_socket_power = metrics.Current.CurrentSocketPower; in cyan_skillfish_get_gpu_metrics() 402 gpu_metrics->average_soc_power = metrics.Current.Power[0]; in cyan_skillfish_get_gpu_metrics() 403 gpu_metrics->average_gfx_power = metrics.Current.Power[1]; in cyan_skillfish_get_gpu_metrics() 405 gpu_metrics->average_gfxclk_frequency = metrics.Average.GfxclkFrequency; in cyan_skillfish_get_gpu_metrics() 406 gpu_metrics->average_socclk_frequency = metrics.Average.SocclkFrequency; in cyan_skillfish_get_gpu_metrics() 407 gpu_metrics->average_uclk_frequency = metrics.Average.MemclkFrequency; in cyan_skillfish_get_gpu_metrics() [all …]
|
D | navi10_ppt.c | 2925 struct gpu_metrics_v1_3 *gpu_metrics = in navi10_get_legacy_gpu_metrics() local 2938 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 1, 3); in navi10_get_legacy_gpu_metrics() 2940 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in navi10_get_legacy_gpu_metrics() 2941 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in navi10_get_legacy_gpu_metrics() 2942 gpu_metrics->temperature_mem = metrics.TemperatureMem; in navi10_get_legacy_gpu_metrics() 2943 gpu_metrics->temperature_vrgfx = metrics.TemperatureVrGfx; in navi10_get_legacy_gpu_metrics() 2944 gpu_metrics->temperature_vrsoc = metrics.TemperatureVrSoc; in navi10_get_legacy_gpu_metrics() 2945 gpu_metrics->temperature_vrmem = metrics.TemperatureVrMem0; in navi10_get_legacy_gpu_metrics() 2947 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in navi10_get_legacy_gpu_metrics() 2948 gpu_metrics->average_umc_activity = metrics.AverageUclkActivity; in navi10_get_legacy_gpu_metrics() [all …]
|
D | arcturus_ppt.c | 2293 struct gpu_metrics_v1_3 *gpu_metrics = in arcturus_get_gpu_metrics() local 2304 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 1, 3); in arcturus_get_gpu_metrics() 2306 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in arcturus_get_gpu_metrics() 2307 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in arcturus_get_gpu_metrics() 2308 gpu_metrics->temperature_mem = metrics.TemperatureHBM; in arcturus_get_gpu_metrics() 2309 gpu_metrics->temperature_vrgfx = metrics.TemperatureVrGfx; in arcturus_get_gpu_metrics() 2310 gpu_metrics->temperature_vrsoc = metrics.TemperatureVrSoc; in arcturus_get_gpu_metrics() 2311 gpu_metrics->temperature_vrmem = metrics.TemperatureVrMem; in arcturus_get_gpu_metrics() 2313 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in arcturus_get_gpu_metrics() 2314 gpu_metrics->average_umc_activity = metrics.AverageUclkActivity; in arcturus_get_gpu_metrics() [all …]
|
D | sienna_cichlid_ppt.c | 3922 struct gpu_metrics_v1_3 *gpu_metrics = in sienna_cichlid_get_gpu_metrics() local 3966 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 1, 3); in sienna_cichlid_get_gpu_metrics() 3968 gpu_metrics->temperature_edge = use_metrics_v3 ? metrics_v3->TemperatureEdge : in sienna_cichlid_get_gpu_metrics() 3970 gpu_metrics->temperature_hotspot = use_metrics_v3 ? metrics_v3->TemperatureHotspot : in sienna_cichlid_get_gpu_metrics() 3972 gpu_metrics->temperature_mem = use_metrics_v3 ? metrics_v3->TemperatureMem : in sienna_cichlid_get_gpu_metrics() 3974 gpu_metrics->temperature_vrgfx = use_metrics_v3 ? metrics_v3->TemperatureVrGfx : in sienna_cichlid_get_gpu_metrics() 3976 gpu_metrics->temperature_vrsoc = use_metrics_v3 ? metrics_v3->TemperatureVrSoc : in sienna_cichlid_get_gpu_metrics() 3978 gpu_metrics->temperature_vrmem = use_metrics_v3 ? metrics_v3->TemperatureVrMem0 : in sienna_cichlid_get_gpu_metrics() 3981 gpu_metrics->average_gfx_activity = use_metrics_v3 ? metrics_v3->AverageGfxActivity : in sienna_cichlid_get_gpu_metrics() 3983 gpu_metrics->average_umc_activity = use_metrics_v3 ? metrics_v3->AverageUclkActivity : in sienna_cichlid_get_gpu_metrics() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu14/ |
D | smu_v14_0_0_ppt.c | 544 struct gpu_metrics_v3_0 *gpu_metrics = in smu_v14_0_0_get_gpu_metrics() local 553 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 3, 0); in smu_v14_0_0_get_gpu_metrics() 555 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in smu_v14_0_0_get_gpu_metrics() 556 gpu_metrics->temperature_soc = metrics.SocTemperature; in smu_v14_0_0_get_gpu_metrics() 557 memcpy(&gpu_metrics->temperature_core[0], in smu_v14_0_0_get_gpu_metrics() 560 gpu_metrics->temperature_skin = metrics.SkinTemp; in smu_v14_0_0_get_gpu_metrics() 562 gpu_metrics->average_gfx_activity = metrics.GfxActivity; in smu_v14_0_0_get_gpu_metrics() 563 gpu_metrics->average_vcn_activity = metrics.VcnActivity; in smu_v14_0_0_get_gpu_metrics() 564 memcpy(&gpu_metrics->average_ipu_activity[0], in smu_v14_0_0_get_gpu_metrics() 567 memcpy(&gpu_metrics->average_core_c0_activity[0], in smu_v14_0_0_get_gpu_metrics() [all …]
|
D | smu_v14_0_2_ppt.c | 2083 struct gpu_metrics_v1_3 *gpu_metrics = in smu_v14_0_2_get_gpu_metrics() local 2095 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 1, 3); in smu_v14_0_2_get_gpu_metrics() 2097 gpu_metrics->temperature_edge = metrics->AvgTemperature[TEMP_EDGE]; in smu_v14_0_2_get_gpu_metrics() 2098 gpu_metrics->temperature_hotspot = metrics->AvgTemperature[TEMP_HOTSPOT]; in smu_v14_0_2_get_gpu_metrics() 2099 gpu_metrics->temperature_mem = metrics->AvgTemperature[TEMP_MEM]; in smu_v14_0_2_get_gpu_metrics() 2100 gpu_metrics->temperature_vrgfx = metrics->AvgTemperature[TEMP_VR_GFX]; in smu_v14_0_2_get_gpu_metrics() 2101 gpu_metrics->temperature_vrsoc = metrics->AvgTemperature[TEMP_VR_SOC]; in smu_v14_0_2_get_gpu_metrics() 2102 gpu_metrics->temperature_vrmem = max(metrics->AvgTemperature[TEMP_VR_MEM0], in smu_v14_0_2_get_gpu_metrics() 2105 gpu_metrics->average_gfx_activity = metrics->AverageGfxActivity; in smu_v14_0_2_get_gpu_metrics() 2106 gpu_metrics->average_umc_activity = metrics->AverageUclkActivity; in smu_v14_0_2_get_gpu_metrics() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
D | renoir_ppt.c | 1388 struct gpu_metrics_v2_2 *gpu_metrics = in renoir_get_gpu_metrics() local 1397 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 2, 2); in renoir_get_gpu_metrics() 1399 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in renoir_get_gpu_metrics() 1400 gpu_metrics->temperature_soc = metrics.SocTemperature; in renoir_get_gpu_metrics() 1401 memcpy(&gpu_metrics->temperature_core[0], in renoir_get_gpu_metrics() 1404 gpu_metrics->temperature_l3[0] = metrics.L3Temperature[0]; in renoir_get_gpu_metrics() 1405 gpu_metrics->temperature_l3[1] = metrics.L3Temperature[1]; in renoir_get_gpu_metrics() 1407 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in renoir_get_gpu_metrics() 1408 gpu_metrics->average_mm_activity = metrics.AverageUvdActivity; in renoir_get_gpu_metrics() 1410 gpu_metrics->average_socket_power = metrics.CurrentSocketPower; in renoir_get_gpu_metrics() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
D | smu_v13_0_4_ppt.c | 251 struct gpu_metrics_v2_1 *gpu_metrics = in smu_v13_0_4_get_gpu_metrics() local 260 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 2, 1); in smu_v13_0_4_get_gpu_metrics() 262 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in smu_v13_0_4_get_gpu_metrics() 263 gpu_metrics->temperature_soc = metrics.SocTemperature; in smu_v13_0_4_get_gpu_metrics() 264 memcpy(&gpu_metrics->temperature_core[0], in smu_v13_0_4_get_gpu_metrics() 267 gpu_metrics->temperature_l3[0] = metrics.L3Temperature; in smu_v13_0_4_get_gpu_metrics() 269 gpu_metrics->average_gfx_activity = metrics.GfxActivity; in smu_v13_0_4_get_gpu_metrics() 270 gpu_metrics->average_mm_activity = metrics.UvdActivity; in smu_v13_0_4_get_gpu_metrics() 272 gpu_metrics->average_socket_power = metrics.AverageSocketPower; in smu_v13_0_4_get_gpu_metrics() 273 gpu_metrics->average_gfx_power = metrics.Power[0]; in smu_v13_0_4_get_gpu_metrics() [all …]
|
D | aldebaran_ppt.c | 1712 struct gpu_metrics_v1_3 *gpu_metrics = in aldebaran_get_gpu_metrics() local 1723 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 1, 3); in aldebaran_get_gpu_metrics() 1725 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in aldebaran_get_gpu_metrics() 1726 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in aldebaran_get_gpu_metrics() 1727 gpu_metrics->temperature_mem = metrics.TemperatureHBM; in aldebaran_get_gpu_metrics() 1728 gpu_metrics->temperature_vrgfx = metrics.TemperatureVrGfx; in aldebaran_get_gpu_metrics() 1729 gpu_metrics->temperature_vrsoc = metrics.TemperatureVrSoc; in aldebaran_get_gpu_metrics() 1730 gpu_metrics->temperature_vrmem = metrics.TemperatureVrMem; in aldebaran_get_gpu_metrics() 1732 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in aldebaran_get_gpu_metrics() 1733 gpu_metrics->average_umc_activity = metrics.AverageUclkActivity; in aldebaran_get_gpu_metrics() [all …]
|
D | yellow_carp_ppt.c | 561 struct gpu_metrics_v2_1 *gpu_metrics = in yellow_carp_get_gpu_metrics() local 570 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 2, 1); in yellow_carp_get_gpu_metrics() 572 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in yellow_carp_get_gpu_metrics() 573 gpu_metrics->temperature_soc = metrics.SocTemperature; in yellow_carp_get_gpu_metrics() 574 memcpy(&gpu_metrics->temperature_core[0], in yellow_carp_get_gpu_metrics() 577 gpu_metrics->temperature_l3[0] = metrics.L3Temperature; in yellow_carp_get_gpu_metrics() 579 gpu_metrics->average_gfx_activity = metrics.GfxActivity; in yellow_carp_get_gpu_metrics() 580 gpu_metrics->average_mm_activity = metrics.UvdActivity; in yellow_carp_get_gpu_metrics() 582 gpu_metrics->average_socket_power = metrics.CurrentSocketPower; in yellow_carp_get_gpu_metrics() 583 gpu_metrics->average_gfx_power = metrics.Power[0]; in yellow_carp_get_gpu_metrics() [all …]
|
D | smu_v13_0_5_ppt.c | 470 struct gpu_metrics_v2_1 *gpu_metrics = in smu_v13_0_5_get_gpu_metrics() local 479 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 2, 1); in smu_v13_0_5_get_gpu_metrics() 481 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in smu_v13_0_5_get_gpu_metrics() 482 gpu_metrics->temperature_soc = metrics.SocTemperature; in smu_v13_0_5_get_gpu_metrics() 484 gpu_metrics->average_gfx_activity = metrics.GfxActivity; in smu_v13_0_5_get_gpu_metrics() 485 gpu_metrics->average_mm_activity = metrics.UvdActivity; in smu_v13_0_5_get_gpu_metrics() 487 gpu_metrics->average_socket_power = metrics.CurrentSocketPower; in smu_v13_0_5_get_gpu_metrics() 488 gpu_metrics->average_gfx_power = metrics.Power[0]; in smu_v13_0_5_get_gpu_metrics() 489 gpu_metrics->average_soc_power = metrics.Power[1]; in smu_v13_0_5_get_gpu_metrics() 490 gpu_metrics->average_gfxclk_frequency = metrics.GfxclkFrequency; in smu_v13_0_5_get_gpu_metrics() [all …]
|
D | smu_v13_0_7_ppt.c | 2018 struct gpu_metrics_v1_3 *gpu_metrics = in smu_v13_0_7_get_gpu_metrics() local 2030 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 1, 3); in smu_v13_0_7_get_gpu_metrics() 2032 gpu_metrics->temperature_edge = metrics->AvgTemperature[TEMP_EDGE]; in smu_v13_0_7_get_gpu_metrics() 2033 gpu_metrics->temperature_hotspot = metrics->AvgTemperature[TEMP_HOTSPOT]; in smu_v13_0_7_get_gpu_metrics() 2034 gpu_metrics->temperature_mem = metrics->AvgTemperature[TEMP_MEM]; in smu_v13_0_7_get_gpu_metrics() 2035 gpu_metrics->temperature_vrgfx = metrics->AvgTemperature[TEMP_VR_GFX]; in smu_v13_0_7_get_gpu_metrics() 2036 gpu_metrics->temperature_vrsoc = metrics->AvgTemperature[TEMP_VR_SOC]; in smu_v13_0_7_get_gpu_metrics() 2037 gpu_metrics->temperature_vrmem = max(metrics->AvgTemperature[TEMP_VR_MEM0], in smu_v13_0_7_get_gpu_metrics() 2040 gpu_metrics->average_gfx_activity = metrics->AverageGfxActivity; in smu_v13_0_7_get_gpu_metrics() 2041 gpu_metrics->average_umc_activity = metrics->AverageUclkActivity; in smu_v13_0_7_get_gpu_metrics() [all …]
|
D | smu_v13_0_0_ppt.c | 2032 struct gpu_metrics_v1_3 *gpu_metrics = in smu_v13_0_0_get_gpu_metrics() local 2044 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 1, 3); in smu_v13_0_0_get_gpu_metrics() 2046 gpu_metrics->temperature_edge = metrics->AvgTemperature[TEMP_EDGE]; in smu_v13_0_0_get_gpu_metrics() 2047 gpu_metrics->temperature_hotspot = metrics->AvgTemperature[TEMP_HOTSPOT]; in smu_v13_0_0_get_gpu_metrics() 2048 gpu_metrics->temperature_mem = metrics->AvgTemperature[TEMP_MEM]; in smu_v13_0_0_get_gpu_metrics() 2049 gpu_metrics->temperature_vrgfx = metrics->AvgTemperature[TEMP_VR_GFX]; in smu_v13_0_0_get_gpu_metrics() 2050 gpu_metrics->temperature_vrsoc = metrics->AvgTemperature[TEMP_VR_SOC]; in smu_v13_0_0_get_gpu_metrics() 2051 gpu_metrics->temperature_vrmem = max(metrics->AvgTemperature[TEMP_VR_MEM0], in smu_v13_0_0_get_gpu_metrics() 2054 gpu_metrics->average_gfx_activity = metrics->AverageGfxActivity; in smu_v13_0_0_get_gpu_metrics() 2055 gpu_metrics->average_umc_activity = metrics->AverageUclkActivity; in smu_v13_0_0_get_gpu_metrics() [all …]
|
D | smu_v13_0_6_ppt.c | 2303 struct gpu_metrics_v1_5 *gpu_metrics = in smu_v13_0_6_get_gpu_metrics() local 2320 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 1, 5); in smu_v13_0_6_get_gpu_metrics() 2322 gpu_metrics->temperature_hotspot = in smu_v13_0_6_get_gpu_metrics() 2325 gpu_metrics->temperature_mem = in smu_v13_0_6_get_gpu_metrics() 2328 gpu_metrics->temperature_vrsoc = in smu_v13_0_6_get_gpu_metrics() 2331 gpu_metrics->average_gfx_activity = in smu_v13_0_6_get_gpu_metrics() 2333 gpu_metrics->average_umc_activity = in smu_v13_0_6_get_gpu_metrics() 2336 gpu_metrics->curr_socket_power = in smu_v13_0_6_get_gpu_metrics() 2339 gpu_metrics->energy_accumulator = GET_METRIC_FIELD(SocketEnergyAcc); in smu_v13_0_6_get_gpu_metrics() 2344 gpu_metrics->current_gfxclk[i] = in smu_v13_0_6_get_gpu_metrics() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega12_hwmgr.c | 2865 static void vega12_init_gpu_metrics_v1_0(struct gpu_metrics_v1_0 *gpu_metrics) in vega12_init_gpu_metrics_v1_0() argument 2867 memset(gpu_metrics, 0xFF, sizeof(struct gpu_metrics_v1_0)); in vega12_init_gpu_metrics_v1_0() 2869 gpu_metrics->common_header.structure_size = in vega12_init_gpu_metrics_v1_0() 2871 gpu_metrics->common_header.format_revision = 1; in vega12_init_gpu_metrics_v1_0() 2872 gpu_metrics->common_header.content_revision = 0; in vega12_init_gpu_metrics_v1_0() 2874 gpu_metrics->system_clock_counter = ktime_get_boottime_ns(); in vega12_init_gpu_metrics_v1_0() 2882 struct gpu_metrics_v1_0 *gpu_metrics = in vega12_get_gpu_metrics() local 2892 vega12_init_gpu_metrics_v1_0(gpu_metrics); in vega12_get_gpu_metrics() 2894 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in vega12_get_gpu_metrics() 2895 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in vega12_get_gpu_metrics() [all …]
|
D | vega20_hwmgr.c | 4311 static void vega20_init_gpu_metrics_v1_0(struct gpu_metrics_v1_0 *gpu_metrics) in vega20_init_gpu_metrics_v1_0() argument 4313 memset(gpu_metrics, 0xFF, sizeof(struct gpu_metrics_v1_0)); in vega20_init_gpu_metrics_v1_0() 4315 gpu_metrics->common_header.structure_size = in vega20_init_gpu_metrics_v1_0() 4317 gpu_metrics->common_header.format_revision = 1; in vega20_init_gpu_metrics_v1_0() 4318 gpu_metrics->common_header.content_revision = 0; in vega20_init_gpu_metrics_v1_0() 4320 gpu_metrics->system_clock_counter = ktime_get_boottime_ns(); in vega20_init_gpu_metrics_v1_0() 4328 struct gpu_metrics_v1_0 *gpu_metrics = in vega20_get_gpu_metrics() local 4338 vega20_init_gpu_metrics_v1_0(gpu_metrics); in vega20_get_gpu_metrics() 4340 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in vega20_get_gpu_metrics() 4341 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in vega20_get_gpu_metrics() [all …]
|
/linux-6.12.1/Documentation/gpu/amdgpu/ |
D | thermal.rst | 67 gpu_metrics section in GPU sysfs Power State Interfaces 71 :doc: gpu_metrics
|
/linux-6.12.1/drivers/gpu/drm/amd/pm/ |
D | amdgpu_pm.c | 1884 void *gpu_metrics; in amdgpu_get_gpu_metrics() local 1899 size = amdgpu_dpm_get_gpu_metrics(adev, &gpu_metrics); in amdgpu_get_gpu_metrics() 1906 memcpy(buf, gpu_metrics, size); in amdgpu_get_gpu_metrics() 2437 AMDGPU_DEVICE_ATTR_RO(gpu_metrics, ATTR_FLAG_BASIC|ATTR_FLAG_ONEVF), 2502 } else if (DEVICE_ATTR_IS(gpu_metrics)) { in default_attr_update()
|