Received: by 10.213.65.68 with SMTP id h4csp44933imn; Mon, 19 Mar 2018 19:01:50 -0700 (PDT) X-Google-Smtp-Source: AG47ELsjIe1yYZO/kjLAbijo/KVKAalbgDD3FCESLL3TZU6p4hOayQn0PQCzVcORTNFsh7W4UGmH X-Received: by 2002:a17:902:b946:: with SMTP id h6-v6mr8489291pls.35.1521511310062; Mon, 19 Mar 2018 19:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521511310; cv=none; d=google.com; s=arc-20160816; b=1DvPByjiwn4/jIvev4tcgf9EwsBcYoIKFyH5PL7qzu7yAeJPcLMPK0DlHWTBGrazJx 6gcFrhyGrQvHj7dgpxBNom8vDAMkPzvHbEV88MT5Xp0LE4OO05QpQ3wtM3f5M6d7HZGB TLL8ZBfm8yIA0kRTRrWF9ExzvxqADhFyE8OVZ8fqv/eMJMjOngU1X5DmvSt+bqTDqH6v WNlxntzurcdUVAv9lysFrgclpRwVmeZ+R3ytvAe28LntFuUmlNs26w4UuDBm0njpSocZ TJTrEZEefxhSYFmXFxfM+ar3tJahAZunOTaGsgiyaNiNw2Gzsj9k/EAg2W8RRjVtRavB /BxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=9xgi9yuEeLYDVDiDGKP9WQ1EutInsp/WN4t+caQdEe4=; b=yTQLsE6zlNkG1lp0sieziGhosGsn7hazMbB7Xnp5gZpbhDbOrcR08IW59Z1+pJI52n JmAE1+Rknqjc5GDqeAII0LKjWJjQJab6mTc80Msm/IjmANrWykpmSEIObkL72qUJcZGM nphF+CXn4FWXYGmJa4vz3CHfh3YXA276T+iurIMIYuvnCQfhl7oFYf+rMTlW07Gkbo2X ZGkhQcTXyM8UYWcYrUH4IKKappN0nRKBg2YqpcebIvH+BjnZRG16xFV9bCnJ/XVZa8oA UVc64lstfjfV5JxbMUnmpddt0xGdJPBpMS98mrUgEKmpzZBm3UnkebKJ+tv4qA0qqEvE VOAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=viaHt4zv; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 37-v6si562562plq.451.2018.03.19.19.01.36; Mon, 19 Mar 2018 19:01:50 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=viaHt4zv; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933429AbeCSXFi (ORCPT + 99 others); Mon, 19 Mar 2018 19:05:38 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:37773 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933347AbeCSXFh (ORCPT ); Mon, 19 Mar 2018 19:05:37 -0400 Received: by mail-pg0-f68.google.com with SMTP id n11so2807669pgp.4 for ; Mon, 19 Mar 2018 16:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to; bh=9xgi9yuEeLYDVDiDGKP9WQ1EutInsp/WN4t+caQdEe4=; b=viaHt4zvgw8MOJISLZdIYtD5Mgn0FyMPBQ2oLzQhplSXzIz1nAuTUqo8f2RzirAW29 q0k+6hrnqeXxIoiGX65bG2DN2da+cZ4Lt2Izmk/f7yoAtOYbOS60/v8TIuSNRMzoT2Uw Ck+RYqZGwpWA+fm3TBxfKvCPdPb44/BtnPg/tq+LnrH1o1h4wkzfCwZLbrkCMlZiRoix c2nunoyxPn9TYNRQN7Q3HClBGRUauF5jzGRxTqO6OCeXOK/PgALemJZaCUiFnamfxkOq AyjMXctBPAiW16qEcKALWUjEjJ9hf1gwq5XRk/jPeW3kuC1ZpVKE1aw22kSDPu9jarUJ bQeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to; bh=9xgi9yuEeLYDVDiDGKP9WQ1EutInsp/WN4t+caQdEe4=; b=Yvaeds4f7GI4c00b3kXFuDZ7FFDAuV4MAXq2dOtv0EbJ2tHNgbdkvZA/6a9AEE3mE3 kwHqhe4NaXNVcVpzhJkzDWZt1Izx5tyV94BsbS+VjKvMhZPISmAoJU9P7D+coOcHws+X yQB33qZ3GXk8/JbNYc4/DzFzwyN2TGKeM5dNScN3hjuCffvoL7ookhuMhX29Qqpx5kQn 0m/x2AlCR8UpzcHn3Z6WJQLbsEp+DJfNEoX+tXQ+WwAZ06IvcAOKGSykbRp4soNmHGvy eTZb8yr7oQQ8kw8rqvN1KacQVvAEhmW1O5eIrAjtjdo+Vowl8SzTWTTx/aX4UYSIc0Un zGKQ== X-Gm-Message-State: AElRT7E9k9i3rNXAqNmkLwec+koQ47zI9edgWqc9bGu5r8OB93ThKVVp DEBmBR47M/Ebn6KJKFMy1n+U0Q== X-Received: by 10.99.53.6 with SMTP id c6mr10558914pga.413.1521500735706; Mon, 19 Mar 2018 16:05:35 -0700 (PDT) Received: from decatoncale.mtv.corp.google.com ([2620:0:1000:1501:e4e8:e3c6:19f1:ae51]) by smtp.googlemail.com with ESMTPSA id s86sm342639pfi.4.2018.03.19.16.05.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Mar 2018 16:05:34 -0700 (PDT) Subject: Re: [PATCH 2/3] perf/x86/intel: Add Cannon Lake support of RAPL profiling To: Harry Pan , LKML Cc: gs0622@gmail.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, kan.liang@linux.intel.com, vincent.weaver@maine.edu, peterz@infradead.org, colin.king@canonical.com, puthik@google.com, bleung@chromium.org, Benson Leung References: <20180309121549.630-1-harry.pan@intel.com> <20180309121549.630-2-harry.pan@intel.com> From: Benson Leung Organization: Google Message-ID: Date: Mon, 19 Mar 2018 16:05:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180309121549.630-2-harry.pan@intel.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bApq2JhOmXiQsZcOfM2hDc4uKLEulSVPm" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bApq2JhOmXiQsZcOfM2hDc4uKLEulSVPm Content-Type: multipart/mixed; boundary="bxYjLrPmX8wwIxjJupRU5SRBoMe4KWmuM"; protected-headers="v1" From: Benson Leung To: Harry Pan , LKML Cc: gs0622@gmail.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, kan.liang@linux.intel.com, vincent.weaver@maine.edu, peterz@infradead.org, colin.king@canonical.com, puthik@google.com, bleung@chromium.org, Benson Leung Message-ID: Subject: Re: [PATCH 2/3] perf/x86/intel: Add Cannon Lake support of RAPL profiling References: <20180309121549.630-1-harry.pan@intel.com> <20180309121549.630-2-harry.pan@intel.com> In-Reply-To: <20180309121549.630-2-harry.pan@intel.com> --bxYjLrPmX8wwIxjJupRU5SRBoMe4KWmuM Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable Hi Harry, On 03/09/2018 04:15 AM, Harry Pan wrote: > This patch enables RAPL counters (energy consumption counters) > support for Cannon Lake processors. >=20 > ESU and power domains refer to Intel Software Developers' Manual, > Vol. 4, Order No. 335592. >=20 > Usage example: >=20 > $ perf list > $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 >=20 > Signed-off-by: Harry Pan Reviewed-by: Benson Leung > --- > arch/x86/events/intel/rapl.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > 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[] __i= nitconst =3D { > X86_RAPL_MODEL_MATCH(INTEL_FAM6_KABYLAKE_MOBILE, skl_rapl_init), > X86_RAPL_MODEL_MATCH(INTEL_FAM6_KABYLAKE_DESKTOP, skl_rapl_init), > =20 > + 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), > =20 >=20 Thanks, --=20 Benson Leung Staff Software Engineer Chrome OS Kernel Google Inc. bleung@google.com Chromium OS Project bleung@chromium.org --bxYjLrPmX8wwIxjJupRU5SRBoMe4KWmuM-- --bApq2JhOmXiQsZcOfM2hDc4uKLEulSVPm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE6gYDF28Li+nEiKLaHwn1ewov5lgFAlqwQj0ACgkQHwn1ewov 5lgOng/8CIMSr/bX1r0jjZ28v3068+aphf00dM9LuqR7dKETNEYekgTU3dYxYRUE LGeQC61deplilDwZ0oGcQ9ViqFd9dAHwPufwkIz7BoVYszE7H4j5qOGaKi1MVTfr rjK/7ziLLVqu6QUdNSFxp+SlThAB0dzP/szYR8+6fjfmHZzK0oPoaW66Eol/LeYm L8tOmZzKbZE6AUc3bLaurti0Ty1QRv15j8x6RW+KaR82S/TJIHMXA4gVCfkYa/2U hZinIEUJVLmLfpKcCD/T99P9hdZd7CHQjGlljMOfWjot77noMJalOJ8MBxEHtOcO +enVTk3HEVb+XuUOKrNJBPjCKOZwUF2Wn4eEY7j1v55JLGLr0F5xXrE9BaCW61EJ 71vsiyneWroa3BP2yrKgEpUx9m5ZrMA1AzdAiOvkqmtgzVCVYRpIVzboeO0u1aDu 4NjNEmxOUA7veoa2gMSDNvHO7RlCnn1+ueMM+GJZElQSUDmd72Mi6mQQW1MKN/A0 TGMEyflBPr+MjJlMpwyY0RFfmVBUe6zucuLvjX4ZYz5vlh9DsTNyYo/WiXeDQ3da G0UhL8N4n/dwDa7Yb9Ab5rAsjH6obL3KRKwXajvsl9AUAKoZzOm0HEvISZF/0c+0 A4dZH0F4ITKsQlMiHNrLcZr8IjsW9iA/B7CHrG706Im9KGG0aU0= =BrlL -----END PGP SIGNATURE----- --bApq2JhOmXiQsZcOfM2hDc4uKLEulSVPm--