Received: by 10.213.65.68 with SMTP id h4csp507748imn; Sat, 31 Mar 2018 03:23:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+qD1P2z0yYK7//QPyV+HXbjZ2ryOFdMRAmHdAkgazyJjmIiG8xzyOmDmOy3lA0jOo5mffS X-Received: by 10.98.217.139 with SMTP id b11mr1806645pfl.113.1522491792590; Sat, 31 Mar 2018 03:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522491792; cv=none; d=google.com; s=arc-20160816; b=EZk7SukpbKDjv0/vzDkGHyKxaebZUubbPxVZFDXW09s2UAXbnPycEsfVykrLIIWQto oY4RS6RPDF2A9D1j/pNQYalPyheM1a++bzFZfLCfbfWv7mLsBpSD9i+GEAJKuzmoIE+J NZuPN1Gk5Z2VEQwS7GzG9xErBl+qW84tyDE+MijEL+e/cBr55vkiBNN5zSCDUusF1J4C l+b/heouDFnn2kfEYuA/iR8E0PETWKhGsPAzmyJb3n97BMrSFtLIOvYPo4HsumSc0Qq1 spOxTi7er5U85ictE+yGfnOtoQOBPRqc83Bvjbv69Nga9Ydy8OFGeYeozxbSPlM3UF/t tUPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=WHaf0Ce+gMYJWsuqH+g83NNNyqcWikD9nr4yC8KLWQY=; b=REshrQCKntST5wLwANiQY3Tj5LY28Dp8L7xBjWgiBMVzdBgH/ry1hlCAbnRu8Z3jXR 9AFOKd/X9d6jxvbNN9R/xqRPCs7H1cp0ZXGAtS6W/+ZRHFbO/X4O+00FiKsQa0jX5+GP RJWhRct+JottIvvyw40TxXctJjrUoAgpr6sBC4p1+5n5Xys0WW4UdMkQUnn0Ulyqo3dn V2K/iUQjqvx2tECubDx2vWt57N2oPi3HNaT9wU28HnP9pzY19ayYhWKMTk9hWrdjqUq2 4WcpU+ZpnB9+KKWxjuWkQkaWNzeKDMTagnWQ9QYL+e1ZSokmQCWSVG3FlxHKPHrw1XKr v0NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21-v6si6052981plr.695.2018.03.31.03.22.58; Sat, 31 Mar 2018 03:23:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753437AbeCaKUm (ORCPT + 99 others); Sat, 31 Mar 2018 06:20:42 -0400 Received: from terminus.zytor.com ([198.137.202.136]:38429 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752962AbeCaKUk (ORCPT ); Sat, 31 Mar 2018 06:20:40 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w2VAJ5Wf2261993; Sat, 31 Mar 2018 03:19:05 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w2VAJ5Qa2261990; Sat, 31 Mar 2018 03:19:05 -0700 Date: Sat, 31 Mar 2018 03:19:05 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Harry Pan Message-ID: Cc: peterz@infradead.org, mingo@kernel.org, vincent.weaver@maine.edu, torvalds@linux-foundation.org, harry.pan@intel.com, bleung@chromium.org, hpa@zytor.com, jolsa@redhat.com, puthik@chromium.org, acme@redhat.com, tglx@linutronix.de, eranian@google.com, alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org Reply-To: torvalds@linux-foundation.org, harry.pan@intel.com, bleung@chromium.org, vincent.weaver@maine.edu, mingo@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, eranian@google.com, tglx@linutronix.de, acme@redhat.com, puthik@chromium.org, jolsa@redhat.com, hpa@zytor.com In-Reply-To: <20180309121549.630-2-harry.pan@intel.com> References: <20180309121549.630-2-harry.pan@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf/x86/intel: Add Cannon Lake support for RAPL profiling Git-Commit-ID: 490d03e83da2a5e9d7db84b1ec30a9c95415787e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 490d03e83da2a5e9d7db84b1ec30a9c95415787e Gitweb: https://git.kernel.org/tip/490d03e83da2a5e9d7db84b1ec30a9c95415787e Author: Harry Pan AuthorDate: Fri, 9 Mar 2018 20:15:47 +0800 Committer: Ingo Molnar CommitDate: Sat, 31 Mar 2018 11:28:36 +0200 perf/x86/intel: Add Cannon Lake support for RAPL profiling This patch enables RAPL counters (energy consumption counters) support for Cannon Lake processors. ( ESU and power domains refer to Intel Software Developers' Manual, Vol. 4, Order No. 335592. ) Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Tested-by: Puthikorn Voravootivat Signed-off-by: Harry Pan Reviewed-by: Benson Leung Cc: Alexander Shishkin Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Thomas Gleixner Cc: Vince Weaver Cc: colin.king@canonical.com Cc: gs0622@gmail.com Cc: kan.liang@linux.intel.com Link: http://lkml.kernel.org/r/20180309121549.630-2-harry.pan@intel.com Signed-off-by: Ingo Molnar --- arch/x86/events/intel/rapl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index a2efb490f743..32f3e9423e99 100644 --- a/arch/x86/events/intel/rapl.c +++ b/arch/x86/events/intel/rapl.c @@ -774,6 +774,8 @@ static const struct x86_cpu_id rapl_cpu_match[] __initconst = { X86_RAPL_MODEL_MATCH(INTEL_FAM6_KABYLAKE_MOBILE, skl_rapl_init), X86_RAPL_MODEL_MATCH(INTEL_FAM6_KABYLAKE_DESKTOP, skl_rapl_init), + X86_RAPL_MODEL_MATCH(INTEL_FAM6_CANNONLAKE_MOBILE, skl_rapl_init), + X86_RAPL_MODEL_MATCH(INTEL_FAM6_ATOM_GOLDMONT, hsw_rapl_init), X86_RAPL_MODEL_MATCH(INTEL_FAM6_ATOM_DENVERTON, hsw_rapl_init),