Lines Matching refs:metrics
277 SmuMetrics_legacy_t *metrics = (SmuMetrics_legacy_t *)smu_table->metrics_table; in vangogh_get_legacy_smu_metrics_data() local
288 *value = metrics->GfxclkFrequency; in vangogh_get_legacy_smu_metrics_data()
291 *value = metrics->SocclkFrequency; in vangogh_get_legacy_smu_metrics_data()
294 *value = metrics->VclkFrequency; in vangogh_get_legacy_smu_metrics_data()
297 *value = metrics->DclkFrequency; in vangogh_get_legacy_smu_metrics_data()
300 *value = metrics->MemclkFrequency; in vangogh_get_legacy_smu_metrics_data()
303 *value = metrics->GfxActivity / 100; in vangogh_get_legacy_smu_metrics_data()
306 *value = metrics->UvdActivity / 100; in vangogh_get_legacy_smu_metrics_data()
309 *value = (metrics->CurrentSocketPower << 8) / in vangogh_get_legacy_smu_metrics_data()
313 *value = metrics->GfxTemperature / 100 * in vangogh_get_legacy_smu_metrics_data()
317 *value = metrics->SocTemperature / 100 * in vangogh_get_legacy_smu_metrics_data()
321 *value = metrics->ThrottlerStatus; in vangogh_get_legacy_smu_metrics_data()
324 *value = metrics->Voltage[2]; in vangogh_get_legacy_smu_metrics_data()
327 *value = metrics->Voltage[1]; in vangogh_get_legacy_smu_metrics_data()
330 memcpy(value, &metrics->CoreFrequency[0], in vangogh_get_legacy_smu_metrics_data()
346 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in vangogh_get_smu_metrics_data() local
357 *value = metrics->Current.GfxclkFrequency; in vangogh_get_smu_metrics_data()
360 *value = metrics->Current.SocclkFrequency; in vangogh_get_smu_metrics_data()
363 *value = metrics->Current.VclkFrequency; in vangogh_get_smu_metrics_data()
366 *value = metrics->Current.DclkFrequency; in vangogh_get_smu_metrics_data()
369 *value = metrics->Current.MemclkFrequency; in vangogh_get_smu_metrics_data()
372 *value = metrics->Current.GfxActivity; in vangogh_get_smu_metrics_data()
375 *value = metrics->Current.UvdActivity; in vangogh_get_smu_metrics_data()
378 *value = (metrics->Average.CurrentSocketPower << 8) / in vangogh_get_smu_metrics_data()
382 *value = (metrics->Current.CurrentSocketPower << 8) / in vangogh_get_smu_metrics_data()
386 *value = metrics->Current.GfxTemperature / 100 * in vangogh_get_smu_metrics_data()
390 *value = metrics->Current.SocTemperature / 100 * in vangogh_get_smu_metrics_data()
394 *value = metrics->Current.ThrottlerStatus; in vangogh_get_smu_metrics_data()
397 *value = metrics->Current.Voltage[2]; in vangogh_get_smu_metrics_data()
400 *value = metrics->Current.Voltage[1]; in vangogh_get_smu_metrics_data()
403 memcpy(value, &metrics->Current.CoreFrequency[0], in vangogh_get_smu_metrics_data()
564 SmuMetrics_legacy_t metrics; in vangogh_print_legacy_clk_levels() local
570 memset(&metrics, 0, sizeof(metrics)); in vangogh_print_legacy_clk_levels()
572 ret = smu_cmn_get_metrics_table(smu, &metrics, false); in vangogh_print_legacy_clk_levels()
609 cur_value = metrics.SocclkFrequency; in vangogh_print_legacy_clk_levels()
613 cur_value = metrics.VclkFrequency; in vangogh_print_legacy_clk_levels()
617 cur_value = metrics.DclkFrequency; in vangogh_print_legacy_clk_levels()
621 cur_value = metrics.MemclkFrequency; in vangogh_print_legacy_clk_levels()
666 SmuMetrics_t metrics; in vangogh_print_clk_levels() local
673 memset(&metrics, 0, sizeof(metrics)); in vangogh_print_clk_levels()
675 ret = smu_cmn_get_metrics_table(smu, &metrics, false); in vangogh_print_clk_levels()
712 cur_value = metrics.Current.SocclkFrequency; in vangogh_print_clk_levels()
716 cur_value = metrics.Current.VclkFrequency; in vangogh_print_clk_levels()
720 cur_value = metrics.Current.DclkFrequency; in vangogh_print_clk_levels()
724 cur_value = metrics.Current.MemclkFrequency; in vangogh_print_clk_levels()
1675 SmuMetrics_legacy_t metrics; in vangogh_get_legacy_gpu_metrics_v2_3() local
1678 ret = smu_cmn_get_metrics_table(smu, &metrics, true); 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()
1687 &metrics.CoreTemperature[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()
1696 gpu_metrics->average_soc_power = metrics.Power[1]; in vangogh_get_legacy_gpu_metrics_v2_3()
1697 gpu_metrics->average_gfx_power = metrics.Power[2]; in vangogh_get_legacy_gpu_metrics_v2_3()
1699 &metrics.CorePower[0], in vangogh_get_legacy_gpu_metrics_v2_3()
1702 gpu_metrics->average_gfxclk_frequency = metrics.GfxclkFrequency; in vangogh_get_legacy_gpu_metrics_v2_3()
1703 gpu_metrics->average_socclk_frequency = metrics.SocclkFrequency; in vangogh_get_legacy_gpu_metrics_v2_3()
1704 gpu_metrics->average_uclk_frequency = metrics.MemclkFrequency; in vangogh_get_legacy_gpu_metrics_v2_3()
1705 gpu_metrics->average_fclk_frequency = metrics.MemclkFrequency; in vangogh_get_legacy_gpu_metrics_v2_3()
1706 gpu_metrics->average_vclk_frequency = metrics.VclkFrequency; in vangogh_get_legacy_gpu_metrics_v2_3()
1707 gpu_metrics->average_dclk_frequency = metrics.DclkFrequency; in vangogh_get_legacy_gpu_metrics_v2_3()
1710 &metrics.CoreFrequency[0], in vangogh_get_legacy_gpu_metrics_v2_3()
1712 gpu_metrics->current_l3clk[0] = metrics.L3Frequency[0]; in vangogh_get_legacy_gpu_metrics_v2_3()
1714 gpu_metrics->throttle_status = metrics.ThrottlerStatus; in vangogh_get_legacy_gpu_metrics_v2_3()
1716 smu_cmn_get_indep_throttler_status(metrics.ThrottlerStatus, in vangogh_get_legacy_gpu_metrics_v2_3()
1732 SmuMetrics_legacy_t metrics; in vangogh_get_legacy_gpu_metrics() local
1735 ret = smu_cmn_get_metrics_table(smu, &metrics, true); in vangogh_get_legacy_gpu_metrics()
1741 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in vangogh_get_legacy_gpu_metrics()
1742 gpu_metrics->temperature_soc = metrics.SocTemperature; in vangogh_get_legacy_gpu_metrics()
1744 &metrics.CoreTemperature[0], in vangogh_get_legacy_gpu_metrics()
1746 gpu_metrics->temperature_l3[0] = metrics.L3Temperature[0]; in vangogh_get_legacy_gpu_metrics()
1748 gpu_metrics->average_gfx_activity = metrics.GfxActivity; in vangogh_get_legacy_gpu_metrics()
1749 gpu_metrics->average_mm_activity = metrics.UvdActivity; in vangogh_get_legacy_gpu_metrics()
1751 gpu_metrics->average_socket_power = metrics.CurrentSocketPower; in vangogh_get_legacy_gpu_metrics()
1752 gpu_metrics->average_cpu_power = metrics.Power[0]; in vangogh_get_legacy_gpu_metrics()
1753 gpu_metrics->average_soc_power = metrics.Power[1]; in vangogh_get_legacy_gpu_metrics()
1754 gpu_metrics->average_gfx_power = metrics.Power[2]; in vangogh_get_legacy_gpu_metrics()
1756 &metrics.CorePower[0], in vangogh_get_legacy_gpu_metrics()
1759 gpu_metrics->average_gfxclk_frequency = metrics.GfxclkFrequency; in vangogh_get_legacy_gpu_metrics()
1760 gpu_metrics->average_socclk_frequency = metrics.SocclkFrequency; in vangogh_get_legacy_gpu_metrics()
1761 gpu_metrics->average_uclk_frequency = metrics.MemclkFrequency; in vangogh_get_legacy_gpu_metrics()
1762 gpu_metrics->average_fclk_frequency = metrics.MemclkFrequency; in vangogh_get_legacy_gpu_metrics()
1763 gpu_metrics->average_vclk_frequency = metrics.VclkFrequency; in vangogh_get_legacy_gpu_metrics()
1764 gpu_metrics->average_dclk_frequency = metrics.DclkFrequency; in vangogh_get_legacy_gpu_metrics()
1767 &metrics.CoreFrequency[0], in vangogh_get_legacy_gpu_metrics()
1769 gpu_metrics->current_l3clk[0] = metrics.L3Frequency[0]; in vangogh_get_legacy_gpu_metrics()
1771 gpu_metrics->throttle_status = metrics.ThrottlerStatus; in vangogh_get_legacy_gpu_metrics()
1773 smu_cmn_get_indep_throttler_status(metrics.ThrottlerStatus, in vangogh_get_legacy_gpu_metrics()
1789 SmuMetrics_t metrics; in vangogh_get_gpu_metrics_v2_3() local
1792 ret = smu_cmn_get_metrics_table(smu, &metrics, true); in vangogh_get_gpu_metrics_v2_3()
1798 gpu_metrics->temperature_gfx = metrics.Current.GfxTemperature; in vangogh_get_gpu_metrics_v2_3()
1799 gpu_metrics->temperature_soc = metrics.Current.SocTemperature; in vangogh_get_gpu_metrics_v2_3()
1801 &metrics.Current.CoreTemperature[0], in vangogh_get_gpu_metrics_v2_3()
1803 gpu_metrics->temperature_l3[0] = metrics.Current.L3Temperature[0]; in vangogh_get_gpu_metrics_v2_3()
1805 gpu_metrics->average_temperature_gfx = metrics.Average.GfxTemperature; in vangogh_get_gpu_metrics_v2_3()
1806 gpu_metrics->average_temperature_soc = metrics.Average.SocTemperature; in vangogh_get_gpu_metrics_v2_3()
1808 &metrics.Average.CoreTemperature[0], in vangogh_get_gpu_metrics_v2_3()
1810 gpu_metrics->average_temperature_l3[0] = metrics.Average.L3Temperature[0]; in vangogh_get_gpu_metrics_v2_3()
1812 gpu_metrics->average_gfx_activity = metrics.Current.GfxActivity; in vangogh_get_gpu_metrics_v2_3()
1813 gpu_metrics->average_mm_activity = metrics.Current.UvdActivity; in vangogh_get_gpu_metrics_v2_3()
1815 gpu_metrics->average_socket_power = metrics.Current.CurrentSocketPower; in vangogh_get_gpu_metrics_v2_3()
1816 gpu_metrics->average_cpu_power = metrics.Current.Power[0]; in vangogh_get_gpu_metrics_v2_3()
1817 gpu_metrics->average_soc_power = metrics.Current.Power[1]; in vangogh_get_gpu_metrics_v2_3()
1818 gpu_metrics->average_gfx_power = metrics.Current.Power[2]; in vangogh_get_gpu_metrics_v2_3()
1820 &metrics.Average.CorePower[0], in vangogh_get_gpu_metrics_v2_3()
1823 gpu_metrics->average_gfxclk_frequency = metrics.Average.GfxclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1824 gpu_metrics->average_socclk_frequency = metrics.Average.SocclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1825 gpu_metrics->average_uclk_frequency = metrics.Average.MemclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1826 gpu_metrics->average_fclk_frequency = metrics.Average.MemclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1827 gpu_metrics->average_vclk_frequency = metrics.Average.VclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1828 gpu_metrics->average_dclk_frequency = metrics.Average.DclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1830 gpu_metrics->current_gfxclk = metrics.Current.GfxclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1831 gpu_metrics->current_socclk = metrics.Current.SocclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1832 gpu_metrics->current_uclk = metrics.Current.MemclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1833 gpu_metrics->current_fclk = metrics.Current.MemclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1834 gpu_metrics->current_vclk = metrics.Current.VclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1835 gpu_metrics->current_dclk = metrics.Current.DclkFrequency; in vangogh_get_gpu_metrics_v2_3()
1838 &metrics.Current.CoreFrequency[0], in vangogh_get_gpu_metrics_v2_3()
1840 gpu_metrics->current_l3clk[0] = metrics.Current.L3Frequency[0]; in vangogh_get_gpu_metrics_v2_3()
1842 gpu_metrics->throttle_status = metrics.Current.ThrottlerStatus; in vangogh_get_gpu_metrics_v2_3()
1844 smu_cmn_get_indep_throttler_status(metrics.Current.ThrottlerStatus, in vangogh_get_gpu_metrics_v2_3()
1857 SmuMetrics_t metrics; in vangogh_get_gpu_metrics_v2_4() local
1863 ret = smu_cmn_get_metrics_table(smu, &metrics, true); in vangogh_get_gpu_metrics_v2_4()
1869 gpu_metrics->temperature_gfx = metrics.Current.GfxTemperature; in vangogh_get_gpu_metrics_v2_4()
1870 gpu_metrics->temperature_soc = metrics.Current.SocTemperature; in vangogh_get_gpu_metrics_v2_4()
1872 &metrics.Current.CoreTemperature[0], in vangogh_get_gpu_metrics_v2_4()
1874 gpu_metrics->temperature_l3[0] = metrics.Current.L3Temperature[0]; in vangogh_get_gpu_metrics_v2_4()
1876 gpu_metrics->average_temperature_gfx = metrics.Average.GfxTemperature; in vangogh_get_gpu_metrics_v2_4()
1877 gpu_metrics->average_temperature_soc = metrics.Average.SocTemperature; in vangogh_get_gpu_metrics_v2_4()
1879 &metrics.Average.CoreTemperature[0], in vangogh_get_gpu_metrics_v2_4()
1881 gpu_metrics->average_temperature_l3[0] = metrics.Average.L3Temperature[0]; in vangogh_get_gpu_metrics_v2_4()
1883 gpu_metrics->average_gfx_activity = metrics.Average.GfxActivity; in vangogh_get_gpu_metrics_v2_4()
1884 gpu_metrics->average_mm_activity = metrics.Average.UvdActivity; in vangogh_get_gpu_metrics_v2_4()
1886 gpu_metrics->average_socket_power = metrics.Average.CurrentSocketPower; in vangogh_get_gpu_metrics_v2_4()
1887 gpu_metrics->average_cpu_power = metrics.Average.Power[0]; in vangogh_get_gpu_metrics_v2_4()
1888 gpu_metrics->average_soc_power = metrics.Average.Power[1]; in vangogh_get_gpu_metrics_v2_4()
1889 gpu_metrics->average_gfx_power = metrics.Average.Power[2]; in vangogh_get_gpu_metrics_v2_4()
1891 gpu_metrics->average_cpu_voltage = metrics.Average.Voltage[0]; in vangogh_get_gpu_metrics_v2_4()
1892 gpu_metrics->average_soc_voltage = metrics.Average.Voltage[1]; in vangogh_get_gpu_metrics_v2_4()
1893 gpu_metrics->average_gfx_voltage = metrics.Average.Voltage[2]; in vangogh_get_gpu_metrics_v2_4()
1895 gpu_metrics->average_cpu_current = metrics.Average.Current[0]; in vangogh_get_gpu_metrics_v2_4()
1896 gpu_metrics->average_soc_current = metrics.Average.Current[1]; in vangogh_get_gpu_metrics_v2_4()
1897 gpu_metrics->average_gfx_current = metrics.Average.Current[2]; in vangogh_get_gpu_metrics_v2_4()
1900 &metrics.Average.CorePower[0], in vangogh_get_gpu_metrics_v2_4()
1903 gpu_metrics->average_gfxclk_frequency = metrics.Average.GfxclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1904 gpu_metrics->average_socclk_frequency = metrics.Average.SocclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1905 gpu_metrics->average_uclk_frequency = metrics.Average.MemclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1906 gpu_metrics->average_fclk_frequency = metrics.Average.MemclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1907 gpu_metrics->average_vclk_frequency = metrics.Average.VclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1908 gpu_metrics->average_dclk_frequency = metrics.Average.DclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1910 gpu_metrics->current_gfxclk = metrics.Current.GfxclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1911 gpu_metrics->current_socclk = metrics.Current.SocclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1912 gpu_metrics->current_uclk = metrics.Current.MemclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1913 gpu_metrics->current_fclk = metrics.Current.MemclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1914 gpu_metrics->current_vclk = metrics.Current.VclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1915 gpu_metrics->current_dclk = metrics.Current.DclkFrequency; in vangogh_get_gpu_metrics_v2_4()
1918 &metrics.Current.CoreFrequency[0], in vangogh_get_gpu_metrics_v2_4()
1920 gpu_metrics->current_l3clk[0] = metrics.Current.L3Frequency[0]; in vangogh_get_gpu_metrics_v2_4()
1922 gpu_metrics->throttle_status = metrics.Current.ThrottlerStatus; in vangogh_get_gpu_metrics_v2_4()
1924 smu_cmn_get_indep_throttler_status(metrics.Current.ThrottlerStatus, in vangogh_get_gpu_metrics_v2_4()
1940 SmuMetrics_t metrics; in vangogh_get_gpu_metrics() local
1943 ret = smu_cmn_get_metrics_table(smu, &metrics, true); in vangogh_get_gpu_metrics()
1949 gpu_metrics->temperature_gfx = metrics.Current.GfxTemperature; in vangogh_get_gpu_metrics()
1950 gpu_metrics->temperature_soc = metrics.Current.SocTemperature; in vangogh_get_gpu_metrics()
1952 &metrics.Current.CoreTemperature[0], in vangogh_get_gpu_metrics()
1954 gpu_metrics->temperature_l3[0] = metrics.Current.L3Temperature[0]; in vangogh_get_gpu_metrics()
1956 gpu_metrics->average_gfx_activity = metrics.Current.GfxActivity; in vangogh_get_gpu_metrics()
1957 gpu_metrics->average_mm_activity = metrics.Current.UvdActivity; in vangogh_get_gpu_metrics()
1959 gpu_metrics->average_socket_power = metrics.Current.CurrentSocketPower; in vangogh_get_gpu_metrics()
1960 gpu_metrics->average_cpu_power = metrics.Current.Power[0]; in vangogh_get_gpu_metrics()
1961 gpu_metrics->average_soc_power = metrics.Current.Power[1]; in vangogh_get_gpu_metrics()
1962 gpu_metrics->average_gfx_power = metrics.Current.Power[2]; in vangogh_get_gpu_metrics()
1964 &metrics.Average.CorePower[0], in vangogh_get_gpu_metrics()
1967 gpu_metrics->average_gfxclk_frequency = metrics.Average.GfxclkFrequency; in vangogh_get_gpu_metrics()
1968 gpu_metrics->average_socclk_frequency = metrics.Average.SocclkFrequency; in vangogh_get_gpu_metrics()
1969 gpu_metrics->average_uclk_frequency = metrics.Average.MemclkFrequency; in vangogh_get_gpu_metrics()
1970 gpu_metrics->average_fclk_frequency = metrics.Average.MemclkFrequency; in vangogh_get_gpu_metrics()
1971 gpu_metrics->average_vclk_frequency = metrics.Average.VclkFrequency; in vangogh_get_gpu_metrics()
1972 gpu_metrics->average_dclk_frequency = metrics.Average.DclkFrequency; in vangogh_get_gpu_metrics()
1974 gpu_metrics->current_gfxclk = metrics.Current.GfxclkFrequency; in vangogh_get_gpu_metrics()
1975 gpu_metrics->current_socclk = metrics.Current.SocclkFrequency; in vangogh_get_gpu_metrics()
1976 gpu_metrics->current_uclk = metrics.Current.MemclkFrequency; in vangogh_get_gpu_metrics()
1977 gpu_metrics->current_fclk = metrics.Current.MemclkFrequency; in vangogh_get_gpu_metrics()
1978 gpu_metrics->current_vclk = metrics.Current.VclkFrequency; in vangogh_get_gpu_metrics()
1979 gpu_metrics->current_dclk = metrics.Current.DclkFrequency; in vangogh_get_gpu_metrics()
1982 &metrics.Current.CoreFrequency[0], in vangogh_get_gpu_metrics()
1984 gpu_metrics->current_l3clk[0] = metrics.Current.L3Frequency[0]; in vangogh_get_gpu_metrics()
1986 gpu_metrics->throttle_status = metrics.Current.ThrottlerStatus; in vangogh_get_gpu_metrics()
1988 smu_cmn_get_indep_throttler_status(metrics.Current.ThrottlerStatus, in vangogh_get_gpu_metrics()