turbostat.c (6799ba84cab7784cb9f060a24790482de209e318) | turbostat.c (f52ba93190457aa285ae805a3e8360a50552cfd8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * turbostat -- show CPU frequency and C-state residency 4 * on modern Intel and AMD processors. 5 * 6 * Copyright (c) 2021 Intel Corporation. 7 * Len Brown <len.brown@intel.com> 8 */ --- 4759 unchanged lines hidden (view full) --- 4768 4769 print_power_limit_msr(cpu, msr, "PKG Limit #1"); 4770 fprintf(outf, "cpu%d: PKG Limit #2: %sabled (%f Watts, %f* sec, clamp %sabled)\n", 4771 cpu, 4772 ((msr >> 47) & 1) ? "EN" : "DIS", 4773 ((msr >> 32) & 0x7FFF) * rapl_power_units, 4774 (1.0 + (((msr >> 54) & 0x3) / 4.0)) * (1 << ((msr >> 49) & 0x1F)) * rapl_time_units, 4775 ((msr >> 48) & 1) ? "EN" : "DIS"); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * turbostat -- show CPU frequency and C-state residency 4 * on modern Intel and AMD processors. 5 * 6 * Copyright (c) 2021 Intel Corporation. 7 * Len Brown <len.brown@intel.com> 8 */ --- 4759 unchanged lines hidden (view full) --- 4768 4769 print_power_limit_msr(cpu, msr, "PKG Limit #1"); 4770 fprintf(outf, "cpu%d: PKG Limit #2: %sabled (%f Watts, %f* sec, clamp %sabled)\n", 4771 cpu, 4772 ((msr >> 47) & 1) ? "EN" : "DIS", 4773 ((msr >> 32) & 0x7FFF) * rapl_power_units, 4774 (1.0 + (((msr >> 54) & 0x3) / 4.0)) * (1 << ((msr >> 49) & 0x1F)) * rapl_time_units, 4775 ((msr >> 48) & 1) ? "EN" : "DIS"); |
4776 4777 if (get_msr(cpu, MSR_VR_CURRENT_CONFIG, &msr)) 4778 return -9; 4779 4780 fprintf(outf, "cpu%d: MSR_VR_CURRENT_CONFIG: 0x%08llx\n", cpu, msr); 4781 fprintf(outf, "cpu%d: PKG Limit #4: %f Watts (%slocked)\n", 4782 cpu, 4783 ((msr >> 0) & 0x1FFF) * rapl_power_units, 4784 (msr >> 31) & 1 ? "" : "UN"); |
|
4776 } 4777 4778 if (do_rapl & RAPL_DRAM_POWER_INFO) { 4779 if (get_msr(cpu, MSR_DRAM_POWER_INFO, &msr)) 4780 return -6; 4781 4782 fprintf(outf, "cpu%d: MSR_DRAM_POWER_INFO,: 0x%08llx (%.0f W TDP, RAPL %.0f - %.0f W, %f sec.)\n", 4783 cpu, msr, --- 1679 unchanged lines hidden --- | 4785 } 4786 4787 if (do_rapl & RAPL_DRAM_POWER_INFO) { 4788 if (get_msr(cpu, MSR_DRAM_POWER_INFO, &msr)) 4789 return -6; 4790 4791 fprintf(outf, "cpu%d: MSR_DRAM_POWER_INFO,: 0x%08llx (%.0f W TDP, RAPL %.0f - %.0f W, %f sec.)\n", 4792 cpu, msr, --- 1679 unchanged lines hidden --- |