From patchwork Thu Jun 16 16:48:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Pan X-Patchwork-Id: 9181359 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 8CD036075D for ; Thu, 16 Jun 2016 16:51:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EBE02835D for ; Thu, 16 Jun 2016 16:51:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73B8628365; Thu, 16 Jun 2016 16:51:30 +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 0B88D2835D for ; Thu, 16 Jun 2016 16:51:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754771AbcFPQu4 (ORCPT ); Thu, 16 Jun 2016 12:50:56 -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 S1753945AbcFPQuz (ORCPT ); Thu, 16 Jun 2016 12:50:55 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 16 Jun 2016 09:50:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,481,1459839600"; d="scan'208";a="977177018" Received: from icelake.jf.intel.com ([10.7.199.88]) by orsmga001.jf.intel.com with ESMTP; 16 Jun 2016 09:50:30 -0700 From: Jacob Pan To: Len Brown , LKML , Linux PM , Rafael Wysocki Cc: Jacob Pan Subject: [PATCH 2/3] tools/power/turbostat: add denverton support Date: Thu, 16 Jun 2016 09:48:21 -0700 Message-Id: <1466095702-5537-3-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 is an Atom based micro server which shares the same Goldmont architecture as Broxton. The available C-states on Denverton is a subset of Broxton with only C1, C1e, and C6. Signed-off-by: Jacob Pan --- tools/power/x86/turbostat/turbostat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 26566e6..d219c4f 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -2218,6 +2218,7 @@ int probe_nhm_msrs(unsigned int family, unsigned int model) pkg_cstate_limits = phi_pkg_cstate_limits; break; case 0x5C: /* BXT */ + case 0x5F: /* DNV */ pkg_cstate_limits = bxt_pkg_cstate_limits; break; default: @@ -3315,6 +3316,7 @@ void process_cpuid() crystal_hz = 25000000; /* 25.0 MHz */ break; case 0x5C: /* BXT */ + case 0x5F: /* DNV */ crystal_hz = 19200000; /* 19.2 MHz */ break; default: