From patchwork Thu Jun 16 16:48:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Pan X-Patchwork-Id: 9181363 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8091F6075D for ; Thu, 16 Jun 2016 16:51:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 704D428360 for ; Thu, 16 Jun 2016 16:51:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6310E2836B; Thu, 16 Jun 2016 16:51:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C7B828360 for ; Thu, 16 Jun 2016 16:51:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754880AbcFPQv3 (ORCPT ); Thu, 16 Jun 2016 12:51:29 -0400 Received: from mga02.intel.com ([134.134.136.20]:12027 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754021AbcFPQu4 (ORCPT ); Thu, 16 Jun 2016 12:50:56 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 16 Jun 2016 09:50:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,481,1459839600"; d="scan'208";a="977177024" Received: from icelake.jf.intel.com ([10.7.199.88]) by orsmga001.jf.intel.com with ESMTP; 16 Jun 2016 09:50:31 -0700 From: Jacob Pan To: Len Brown , LKML , Linux PM , Rafael Wysocki Cc: Jacob Pan Subject: [PATCH 3/3] tools/power/turbostat: add denverton rapl support Date: Thu, 16 Jun 2016 09:48:22 -0700 Message-Id: <1466095702-5537-4-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466095702-5537-1-git-send-email-jacob.jun.pan@linux.intel.com> References: <1466095702-5537-1-git-send-email-jacob.jun.pan@linux.intel.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Denverton CPU RAPL supports package, core, and dram domains. Signed-off-by: Jacob Pan --- 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; }