Received: by 10.213.65.68 with SMTP id h4csp45127imn; Mon, 19 Mar 2018 19:02:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELuQBEdL0ld3T4bIZ1XmxAFmrbAlFIi6kYkvK2Yfu0kjn1IzkOyXolIaXmlSrzLFErRQE7lI X-Received: by 2002:a17:902:7885:: with SMTP id q5-v6mr14351877pll.207.1521511330547; Mon, 19 Mar 2018 19:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521511330; cv=none; d=google.com; s=arc-20160816; b=hGFIua26v97ZBXdxtpNKkjG5NahowemHJG5I4DDZkFQTMu2isoJgLyPjoKJbUpeFaO 5iRBxlMGhcN/gA2f1l4x17QEcSwO3mHyypBwK0aL37rWZCX9dxHJWOmJE+KanCyc9hWi d4NYHqnoO6rymivDUa/3hNF1f8AGaw+VnrfuWWPqNjEZKm1ws0tOs39o2tuqrqEHhtby JxLKhrolRw20FfhuB5Jr916EfMyXk2JJbAlNtGF0N/9OIopMv1gl97b6fKsNaFq+5bGJ kL9sd/gRZ2B6k5q3kvqpGTh/icZn6fMr/PcCNpejcM1osTj8+t3wkt0ZxVeJyCGbt7p7 Jl7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=IKm/iuPZOmqk/m10Ok0TYbX7aD0hmS3pbLKqCEBxfvs=; b=nTgEZCuaDLnR/F98o3qWGDkBmEfZtOYIA9uuSBrm7wIc9+B19gGKNjGdpwidnzm7Pl 9ZMoXhEnX3piG6jE8i0L1k7uzl/+JROdm+Wnim10lbtB8JZz1ehHSqg+AcYEbX2whSxb wHUaobRt61q1qIIoee/zoL4FDpy7OSBlYwOxCLyaxmly+vavuUsSdcXq2O+AOse8Bdh9 PZGgIv+PvAQ2mVKweXW766IgyT822CuCDnkbKw8P2IedqAkqTxl7vQkwpaA94hvoHC2h Kt4IZaB9niDgc2A7VoC/dXHcAO+6h/gV03gvNwgR0Oe/2DAk1+3c4HeHL0zZ/gRTJ21t GX6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=HND5fsH1; 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 h127si408446pgc.238.2018.03.19.19.01.56; Mon, 19 Mar 2018 19:02:10 -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=HND5fsH1; 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 S933994AbeCSXLS (ORCPT + 99 others); Mon, 19 Mar 2018 19:11:18 -0400 Received: from mail-yb0-f194.google.com ([209.85.213.194]:44596 "EHLO mail-yb0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933619AbeCSXLQ (ORCPT ); Mon, 19 Mar 2018 19:11:16 -0400 Received: by mail-yb0-f194.google.com with SMTP id v8-v6so683508ybm.11 for ; Mon, 19 Mar 2018 16:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IKm/iuPZOmqk/m10Ok0TYbX7aD0hmS3pbLKqCEBxfvs=; b=HND5fsH1U4X1od/x6VKOdLKoDWkmAWiI9Hr4Cdk8sJMW1uLs+F7OcaP9WGlnlQ543R sshOfZxJSdQRJObF9Btq9/rONJz/LokLXst6nQRxUo7JPCatYzRjyS/nYs366MZZj6xC zJi0J0YS1xdXxtTUDoIBL0tiiMbox4s+d+bAgd3AOJ+C57mJ7xa3I6n9WFlP303pYTIB woniXH0WSXjj/27NiO6G+k3ir5QJmLN5MqMIL+HCfXOrWPaoKdQSIEdyg6kLDABhH6Bo 98vzXJQ7PdTfuO7pWH+3bQHb8YY1T2wnlW7GnQC8lfph+pK0D4YC8SeTVgRwMqNXUor7 7rgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IKm/iuPZOmqk/m10Ok0TYbX7aD0hmS3pbLKqCEBxfvs=; b=l1FzuPTW/R8OsVMqQJ0vF1l2McqQxorF5r+aRSTkzAbk7QfH+bgISrDNglGNzt1v/l LS7+PzvatGve/lpln0PcW80SGLTRZQkFh5ui1Ht68TjK0fcKXPgh13ZsYpNzFPifiqSj iZ+goPmXRk1cqiKZVZYzi+U+e7qQhn0ltUnDRma8tE1YM/iS8Mh+EJug8xZ8OCIb909C 0r7/DLM8NKrDq7yq0mn2t77/4UoXTuSlnLfezj1mIJeM9eqhNY2E0BSDi2jC+ry/cqmE nNOWkBgNdHe5b0KOGaUaYVc+BFDSAsp5vQV1Im1W7lpQ4/RLnGik/JcDp1TsyLpG/Wcf WKGQ== X-Gm-Message-State: AElRT7EOraHz0qvETI0eTsXggr6cU8/CVoA/CO6ax0tIfSHnMa6eTPkv DmbsQHioToD4/jRTVw3bBm+gMeuezFVO73MtBduH4Q== X-Received: by 2002:a25:cf55:: with SMTP id f82-v6mr8253480ybg.396.1521501075488; Mon, 19 Mar 2018 16:11:15 -0700 (PDT) MIME-Version: 1.0 References: <20180309121549.630-1-harry.pan@intel.com> <20180309121549.630-2-harry.pan@intel.com> In-Reply-To: From: Puthikorn Voravootivat Date: Mon, 19 Mar 2018 23:11:00 +0000 Message-ID: Subject: Re: [PATCH 2/3] perf/x86/intel: Add Cannon Lake support of RAPL profiling To: harry.pan@intel.com Cc: linux-kernel@vger.kernel.org, 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, bleung@chromium.org, Benson Leung Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 19, 2018 at 4:05 PM Benson Leung wrote: > 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. > > > > 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 > > > > Signed-off-by: Harry Pan > Reviewed-by: Benson Leung Tested-by: Puthikorn Voravootivat > > --- > > 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), > > > > > Thanks, > -- > Benson Leung > Staff Software Engineer > Chrome OS Kernel > Google Inc. > bleung@google.com > Chromium OS Project > bleung@chromium.org