From patchwork Fri Aug 17 16:34:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Calvin Walton X-Patchwork-Id: 10569195 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2C8DB109C for ; Fri, 17 Aug 2018 16:35:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20ED32BB5F for ; Fri, 17 Aug 2018 16:35:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 138662BB72; Fri, 17 Aug 2018 16:35:06 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham 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 A3C052BB5F for ; Fri, 17 Aug 2018 16:35:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbeHQTjF (ORCPT ); Fri, 17 Aug 2018 15:39:05 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:33921 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727445AbeHQTjD (ORCPT ); Fri, 17 Aug 2018 15:39:03 -0400 Received: by mail-io0-f195.google.com with SMTP id c22-v6so1257698iob.1 for ; Fri, 17 Aug 2018 09:35:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kepstin.ca; s=google; h=from:to:cc:subject:date:message-id; bh=U1kQXAo4f9cVT9z5IiXtIdmmGGul8C5A8nbD933USbI=; b=DneLgrnFQGy20CUNNlnTUkmCxQXZSZ/Xhk9d8ibYLdGMXoeq/47phS+O68hbLiwtsP P2D8q8Ayc33qa68yJJHyHcmOkk9LBvGfDFdzPj0o1qycCiJZd5oWm87hL5iCPbStDLZJ khljRjb93Mx5x1KIQ1D3/P1gsXUlqtYMGDpds= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=U1kQXAo4f9cVT9z5IiXtIdmmGGul8C5A8nbD933USbI=; b=uY02QgXou61xreuQGdxmPaY1ipzgfH4D5esufJySfo32lsOshwXIpYZ49oAZKyw7dm tIjmhYiFLlUwrfoXXfc2WkBGC5wP7bbvH5MIoABidIe2qHg2JmUjgFi/LI3RmettRoWQ jQ3XQiFHa0P53hQiKxwgCfFynqSaUKNQW6uP0r6lS6dg4s53oSylGdB1Mmt6kX4jQcpp +mrSMWBRbG4/kckR413qYT9zZnjIgn0CSAnhg6fghdnohmH9HDYWuCIDxytQZOgicacx NvBdv9vg6T1Sk56Wmmi617NXxmcNyXPsoHj08DdX3mCzA1ErgfUy1DbbHLGcSIVyGH46 QuOw== X-Gm-Message-State: AOUpUlELpQCpS7NI0dHTq+Qg4/1qzK7jBQgVwvj/AQe3BE2djq7ER0YF JmOy+zmIm5nkhrj044tRAURgWg== X-Google-Smtp-Source: AA+uWPz79wv6Jaa5lW/UqJuwkEI98kVMvpLZYCEfTWx6B+eW+ppRLQWh+I4X8F108f6X1JTDh1XNKg== X-Received: by 2002:a6b:bf04:: with SMTP id p4-v6mr30106838iof.15.1534523700802; Fri, 17 Aug 2018 09:35:00 -0700 (PDT) Received: from fuko.kepstin.ca ([2001:470:b3f4::561]) by smtp.gmail.com with ESMTPSA id e140-v6sm1947974itc.24.2018.08.17.09.34.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Aug 2018 09:34:59 -0700 (PDT) From: Calvin Walton To: Len Brown , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Calvin Walton Subject: [PATCH v3 0/2] tools/power turbostat: Add support for AMD Fam 17h (Zen) RAPL Date: Fri, 17 Aug 2018 12:34:40 -0400 Message-Id: <20180817163442.10065-1-calvin.walton@kepstin.ca> X-Mailer: git-send-email 2.18.0 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 This is an updated version of my RAPL patchset for Zen CPUs, rebased on top of the current state of kernel/git/lenb/linux.get turbostat branch. (In particular, this fixes conflicts with the AMD APIC-id patch) I've split it into two patches now. The first patch only adds Cores power reporting, since I'm fairly confident that this'll work on all of the Zen chips. I think this part is ready to apply now. The second part is still a work in progress until I'm able to (or I'm able to find someone else to) test the package power reporting on a multi-die Zen chip. Calvin Walton (2): tools/power turbostat: Add support for AMD Fam 17h (Zen) RAPL [WIP] tools/power turbostat: Also read package power on AMD F17h (Zen) tools/power/x86/turbostat/turbostat.c | 167 +++++++++++++++++++++----- 1 file changed, 138 insertions(+), 29 deletions(-)