Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2552662ybk; Mon, 18 May 2020 01:54:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPv1d/KFgikcXewn8kAn9eb6PtRvmrbPB1zTzfJXaJ1/muPvkmPprN+twi9y4RYuDnNQ2g X-Received: by 2002:a05:6402:31b5:: with SMTP id dj21mr6806953edb.160.1589792098284; Mon, 18 May 2020 01:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589792098; cv=none; d=google.com; s=arc-20160816; b=nyfJITjY57D0/WmlM3x9+vNmXfZwkE/6BOAcSEMUA+CeVPeihFMba9UVjFez0gpWFW bDFfMuaf/ZUlCJq4lVmGWkN+sigodFSnz5K7QBOBH13Dx/zMuRgQg64jEE8IymgY6P9/ jJQrkw6Ly+UCDlyontqWeS8++Nu77eLLniS6dssDQ47i6tgkKH9PC600eANV/ytG0zo3 VFadnGFSOn2DrxGYwO/D1gK/BJkalcEc6tDDDZGiITDL8K7LTp6f4nlXRUgvaP5NL8vY 2GVc7q7tIenMmpsIJ3RuBD/PMjVFX1Yn2860OC2Mx9dPdy7aRskbeNRnajUtjFEPlJI7 kLlg== 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:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jBa1sRdRwUUWtnTpcqYTLRqGp5y5xwQ2N96sP7/a2EE=; b=pqOt0mkhY1aFDgZAO6WdePzEKO1NMxh+YScXqZQXcjviySEcjpZnO4905H/XLGroTO AQd1o9NhcKbmbFmh3FWwDdQ2Qotenm5zKNcadPZc/90AsiTw5Rqnqdpbmiqxl/Li39Z1 qoEhWJBwfxep2B47xFZooy5W06rdmw5nlnQIGFqXnliNzsc2dycU35np5Wrd+wxkEnXH A83gAgSqQ6HLhbW8XoP+1gWc3+8rru482K78FocQHZftBJIgEnaAQ4SybAzcBRvA4asN eb+Dn+Yi4gGo01/mLXe4F1r6TuKj4WfSR251fE+oIlX2ZWw7GsCMJGvzr80eHELJQ13K eY/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KuP5+XLN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si6346353ejq.430.2020.05.18.01.54.34; Mon, 18 May 2020 01:54:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KuP5+XLN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726573AbgERIvG (ORCPT + 99 others); Mon, 18 May 2020 04:51:06 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:60534 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726040AbgERIvG (ORCPT ); Mon, 18 May 2020 04:51:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589791865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jBa1sRdRwUUWtnTpcqYTLRqGp5y5xwQ2N96sP7/a2EE=; b=KuP5+XLNNXNrpWnqqHFC414N54vV8Emw6PoqQiSsjIOhoSbS1RlX+Wvc9DlkFl1IubcnuF NXPMz76YHgFusbW6EfzHlRFEkcVkZtV7zHlisMAHwz737cszywGRPPHcuYe56QdZmOzi7X 1ThtaHxEARVjuiOJuKnw0l63+3ZyaZE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-235-d7XMtz7cMu6sbCBBlZTWhg-1; Mon, 18 May 2020 04:51:03 -0400 X-MC-Unique: d7XMtz7cMu6sbCBBlZTWhg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D940618A0724; Mon, 18 May 2020 08:51:01 +0000 (UTC) Received: from krava (unknown [10.40.195.163]) by smtp.corp.redhat.com (Postfix) with SMTP id 124E56ED80; Mon, 18 May 2020 08:50:59 +0000 (UTC) Date: Mon, 18 May 2020 10:50:58 +0200 From: Jiri Olsa To: Stephane Eranian Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@elte.hu, irogers@google.com, kim.phillips@amd.com Subject: Re: [PATCH 0/3] perf/x86/rapl: Enable RAPL for AMD Fam17h Message-ID: <20200518085058.GB3726797@krava> References: <20200515215733.20647-1-eranian@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515215733.20647-1-eranian@google.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 02:57:30PM -0700, Stephane Eranian wrote: > This patch series adds support for AMD Fam17h RAPL counters. As per > AMD PPR, Fam17h support Package RAPL counters to monitor power usage. > The RAPL counter operates as with Intel RAPL. As such, it is beneficial > to share the code. > > The series first moves the rapl.c file to common perf_events x86 and then > adds the support. > From the user's point of view, the interface is identical with > /sys/devices/power. The energy-pkg event is the only one supported. > > $ perf stat -a --per-socket -I 1000 -e power/energy-pkg/ > > Signed-off-by: Stephane Eranian > > Stephane Eranian (3): > perf/x86/rapl: move RAPL support to common x86 code > perf/x86/rapl: refactor code for Intel/AMD sharing > perf/x86/rapl: add AMD Fam17h RAPL support > > arch/x86/events/Kconfig | 8 ++--- > arch/x86/events/Makefile | 1 + > arch/x86/events/intel/Makefile | 2 -- > arch/x86/events/probe.c | 4 +++ > arch/x86/events/{intel => }/rapl.c | 55 +++++++++++++++++++++++++----- > arch/x86/include/asm/msr-index.h | 3 ++ > 6 files changed, 58 insertions(+), 15 deletions(-) > rename arch/x86/events/{intel => }/rapl.c (92%) looks good to me, intel rapl keeps working for me ;-) Acked-by: Jiri Olsa thanks, jirka