Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1424279

[PATCH 3/3] tools/power/turbostat: add denverton rapl support

From Jacob Pan <jacob.jun.pan@linux.intel.com>
Newsgroups linux.kernel
Subject [PATCH 3/3] tools/power/turbostat: add denverton rapl support
Date 2016-06-16 19:00 +0200
Message-ID <rKIO6-2nS-29@gated-at.bofh.it> (permalink)
References <rKIO6-2nS-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Denverton CPU RAPL supports package, core, and dram domains.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
---
 tools/power/x86/turbostat/turbostat.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index d219c4f..3c10d6d 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -2677,6 +2677,9 @@ void rapl_probe(unsigned int family, unsigned int model)
 	case 0x4D:	/* AVN */
 		do_rapl = RAPL_PKG | RAPL_CORES;
 		break;
+	case 0x5f:	/* DNV */
+		do_rapl = RAPL_PKG | RAPL_DRAM | RAPL_DRAM_POWER_INFO | RAPL_DRAM_PERF_STATUS | RAPL_PKG_PERF_STATUS | RAPL_PKG_POWER_INFO | RAPL_CORES_ENERGY_STATUS;
+		break;
 	default:
 		return;
 	}
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] Tools/Power/Turbostat update for Denverton Jacob Pan <jacob.jun.pan@linux.intel.com> - 2016-06-16 19:00 +0200
  [PATCH 3/3] tools/power/turbostat: add denverton rapl support Jacob Pan <jacob.jun.pan@linux.intel.com> - 2016-06-16 19:00 +0200
    Re: [PATCH 3/3] tools/power/turbostat: add denverton rapl support Len Brown <lenb@kernel.org> - 2016-06-17 03:10 +0200
  [PATCH 2/3] tools/power/turbostat: add denverton support Jacob Pan <jacob.jun.pan@linux.intel.com> - 2016-06-16 19:00 +0200
    Re: [PATCH 2/3] tools/power/turbostat: add denverton support Len Brown <lenb@kernel.org> - 2016-06-17 03:10 +0200

csiph-web