Home
last modified time | relevance | path

Searched refs:gpu_metrics (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/
H A Dcyan_skillfish_ppt.c387 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 …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu14/
H A Dsmu_v14_0_0_ppt.c544 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 …]
H A Dsmu_v14_0_2_ppt.c2123 struct gpu_metrics_v1_3 *gpu_metrics = in smu_v14_0_2_get_gpu_metrics() local
2135 smu_cmn_init_soft_gpu_metrics(gpu_metrics, 1, 3); in smu_v14_0_2_get_gpu_metrics()
2137 gpu_metrics->temperature_edge = metrics->AvgTemperature[TEMP_EDGE]; in smu_v14_0_2_get_gpu_metrics()
2138 gpu_metrics->temperature_hotspot = metrics->AvgTemperature[TEMP_HOTSPOT]; in smu_v14_0_2_get_gpu_metrics()
2139 gpu_metrics->temperature_mem = metrics->AvgTemperature[TEMP_MEM]; in smu_v14_0_2_get_gpu_metrics()
2140 gpu_metrics->temperature_vrgfx = metrics->AvgTemperature[TEMP_VR_GFX]; in smu_v14_0_2_get_gpu_metrics()
2141 gpu_metrics->temperature_vrsoc = metrics->AvgTemperature[TEMP_VR_SOC]; in smu_v14_0_2_get_gpu_metrics()
2142 gpu_metrics->temperature_vrmem = max(metrics->AvgTemperature[TEMP_VR_MEM0], in smu_v14_0_2_get_gpu_metrics()
2145 gpu_metrics->average_gfx_activity = metrics->AverageGfxActivity; in smu_v14_0_2_get_gpu_metrics()
2146 gpu_metrics->average_umc_activity = metrics->AverageUclkActivity; in smu_v14_0_2_get_gpu_metrics()
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0_4_ppt.c251 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 …]
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dvega12_hwmgr.c2865 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 …]
H A Dvega20_hwmgr.c4311 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 …]