From patchwork Wed Mar 1 05:27:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 9597555 X-Patchwork-Delegate: rjw@sisk.pl 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 9E99460547 for ; Wed, 1 Mar 2017 05:35:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 920EA28410 for ; Wed, 1 Mar 2017 05:35:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 772B52842B; Wed, 1 Mar 2017 05:35:59 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable 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 244032841E for ; Wed, 1 Mar 2017 05:35:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751787AbdCAFfe (ORCPT ); Wed, 1 Mar 2017 00:35:34 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:34384 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751769AbdCAFfb (ORCPT ); Wed, 1 Mar 2017 00:35:31 -0500 Received: by mail-qk0-f194.google.com with SMTP id s186so8254844qkb.1; Tue, 28 Feb 2017 21:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:reply-to:organization; bh=qBuZnAPYN3KkN9FPsdUn1SHaHebPBdD5IOzTE7nwICI=; b=m7lijt+RZ3Cn1uoVIgwmuCXs1fbF6pA6hRBSDQVPBcMaUqavmoei7XNFRERwf0Irup AS/fQcodzffW7G1HHtf65BcFHdgslY0fHgsmWZSnoKRwE4e557qlVmIUPCP9yLNAgOEj r7lkRSRLo3SoNEXrZ3oi1fM3lF/Oi0lN4f/tEvCYMPBFzCyluYvEoBj/7hT7gHS9NtcC JYy1E7KCENBab7foOxx8K1AhgaSqghfA7yLMP5CIy4md+UNrDFHIJzYjQTQ34Fl/1QQs 1U6wH7cTv6fbjL8cUAPhR+GHW7p23uVKdIM0lV/BRLap585LD8wu6mGkf5+EowU1a91I W9ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:reply-to:organization; bh=qBuZnAPYN3KkN9FPsdUn1SHaHebPBdD5IOzTE7nwICI=; b=qtRCPyxjrfyuIqXwI+qm31Sn81Ss2gzPS4cHORw1nIvywD3xljjaPlfleFlo7Q/2GI j7hbbNYb1PRB6BXf0LnJJflj6/TJBBXAE7wSGjG/e5k/4INDYsm/A7m5KCUhBoyBlM5u xkXcJIO4MW+DYev1V+kTnqR3t98jqX1Qqq/w1JhD8oHUXp0gwDVY4m5+p6EKWve5NI7K 2hf0lby8+Gr+Jmihi+yx1Ez9F92V5uxkDfpNzzN9+QQUF874RdQ0zBy+nvJJTBibLvtR Vmk1NgkkJR5WRikmjiQtruWHix4m9SXjcabN8APcAp20C9i9Y60ffmkJpOdVVmtmG6VT 1pWA== X-Gm-Message-State: AMke39mHUYjHtX4LUVZLFXWzyeuQ2Rbd6z6XGdH6yjDuvJK398o3L29jhRnSz8WnUa1zKw== X-Received: by 10.237.36.172 with SMTP id t41mr7411024qtc.142.1488346119715; Tue, 28 Feb 2017 21:28:39 -0800 (PST) Received: from z87.localdomain (pool-96-230-116-151.bstnma.fios.verizon.net. [96.230.116.151]) by smtp.gmail.com with ESMTPSA id c141sm2530517qkb.10.2017.02.28.21.28.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Feb 2017 21:28:39 -0800 (PST) From: Len Brown To: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown Subject: [PATCH 25/44] tools/power turbostat: initial Gemini Lake SOC support Date: Wed, 1 Mar 2017 00:27:29 -0500 Message-Id: X-Mailer: git-send-email 2.11.0.161.g6610af872 In-Reply-To: <20170301052748.27810-1-lenb@kernel.org> References: <20170301052748.27810-1-lenb@kernel.org> In-Reply-To: <678a3bd1b3de6d2ebf604e7d708bc8150bb667e9.1488345270.git.len.brown@intel.com> References: <678a3bd1b3de6d2ebf604e7d708bc8150bb667e9.1488345270.git.len.brown@intel.com> Reply-To: Len Brown Organization: Intel Open Source Technology Center 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 From: Len Brown Gemini Lake is similar to Apollo Lake (Broxton/Goldmont) Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 4b04ba86e44f..819d67fbb6ca 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -2535,6 +2535,7 @@ int probe_nhm_msrs(unsigned int family, unsigned int model) pkg_cstate_limits = phi_pkg_cstate_limits; break; case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */ + case INTEL_FAM6_ATOM_GEMINI_LAKE: case INTEL_FAM6_ATOM_DENVERTON: /* DNV */ pkg_cstate_limits = bxt_pkg_cstate_limits; break; @@ -3018,6 +3019,7 @@ void rapl_probe(unsigned int family, unsigned int model) } break; case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */ + case INTEL_FAM6_ATOM_GEMINI_LAKE: do_rapl = RAPL_PKG | RAPL_PKG_POWER_INFO; if (rapl_joules) BIC_PRESENT(BIC_Pkg_J); @@ -3361,6 +3363,7 @@ int has_snb_msrs(unsigned int family, unsigned int model) case INTEL_FAM6_KABYLAKE_DESKTOP: /* KBL */ case INTEL_FAM6_SKYLAKE_X: /* SKX */ case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */ + case INTEL_FAM6_ATOM_GEMINI_LAKE: case INTEL_FAM6_ATOM_DENVERTON: /* DNV */ return 1; } @@ -3392,6 +3395,7 @@ int has_hsw_msrs(unsigned int family, unsigned int model) case INTEL_FAM6_KABYLAKE_MOBILE: /* KBL */ case INTEL_FAM6_KABYLAKE_DESKTOP: /* KBL */ case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */ + case INTEL_FAM6_ATOM_GEMINI_LAKE: return 1; } return 0; @@ -3783,6 +3787,7 @@ void process_cpuid() crystal_hz = 25000000; /* 25.0 MHz */ break; case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */ + case INTEL_FAM6_ATOM_GEMINI_LAKE: crystal_hz = 19200000; /* 19.2 MHz */ break; default: