Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp713233pxf; Wed, 10 Mar 2021 16:08:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/GKmUfYmAxZIP4YtMSgNskEgRcsaF7IFSlgYzDXhPa6uxSvtU8E/8oZ6C6h2jKQERM5Tj X-Received: by 2002:a05:6402:382:: with SMTP id o2mr6051927edv.238.1615421298227; Wed, 10 Mar 2021 16:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615421298; cv=none; d=google.com; s=arc-20160816; b=FcyBErPKyvHhS8l2+jCNU016yPM4roQgmQwY7GhOLg8sfcj42Cqi64T3N2o9Rl/yaK UeXttUzckZyxEczGrCaNs+fd5Vl25U+Bnfv0B2qlGpOjk2jnRNvgM4zWnIBTmWdh5xmJ Nlg248ELptCBQET7vYD26Mf+SN4UBVrshg8WD70UKl8sR8fL5G2U8uRYlUSMiYsHDmXo kHiMfTblbgn9RnoeDkuS0teHgIKzb7nXu0hHKrKJx70oJE8zFeujSHXmwsm/ZdqufzC1 J7pAxECMWOP9Y8LiXLLD/z7F5R/y1GEG2O3RtdTKWNyr9xm8D5UXO7fTaBa7sk3Vkb4Y fA7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cFWDtf2wFIR6Z0pjhiaIXpIQXNSN34oYlbsbQvsmVJQ=; b=timucVmkGvffvWOE/s96XbY0/SR48H9+HyeGpGeach7lNu2w6F9Oz2Es6Wrs7dBrfP K2rGjLzSbfsEHANEHpZkNzCvhALbWXlnef0cqSkzWBpzqhyMhNz0vsW5S9Cny09V5ISq X2cdOKnhePLuyvx4djduruwSDlLmEp6UIWt53UN3n37bnmG2Fu/kyvEydaeOmeyclWpc tQy7cjCa7oJLG0Gnq/dufXT4mtfkmZ9bhSO8eNAIkvd74BANDxtoYtdt7AG5sXtrWW0i lhDPdWBHGG/o5+5WUQVZh8TdTR1Z/bM7ZMqYzs6UnWTIcHCXpjMq8h1/8CYYx579mENu hQmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@telus.net header.s=google header.b=btcspacd; 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=telus.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u27si510823ejj.726.2021.03.10.16.07.28; Wed, 10 Mar 2021 16:08:18 -0800 (PST) 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=@telus.net header.s=google header.b=btcspacd; 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=telus.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229658AbhCKADt (ORCPT + 99 others); Wed, 10 Mar 2021 19:03:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbhCKADn (ORCPT ); Wed, 10 Mar 2021 19:03:43 -0500 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDE7FC061574 for ; Wed, 10 Mar 2021 16:03:43 -0800 (PST) Received: by mail-il1-x12a.google.com with SMTP id z9so17339092iln.1 for ; Wed, 10 Mar 2021 16:03:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cFWDtf2wFIR6Z0pjhiaIXpIQXNSN34oYlbsbQvsmVJQ=; b=btcspacds/zBLnwErhu3LItaqtsVPPFk8yn1Il+UOyDX17OD/7ZmfHtxdgTAt/9r20 lVRadOU5TBXqinOGT971pBLSKnxKW8lHnCe0ev1VOmc9CABqKT/6MDAeR7VcQqU7nMe1 v9plKBiRUElJPpWfvbQTcsPso9OS3DqRt48x5QJ22Ho51JHOy06/AdYAjZnlzPQBH+mD SrLHJUgS22v2qhGRQ5q7Zdd2AfjYfaWYnKSyuZU9u3bb1DiX7mnqazRUoGeRJ1nRqrEo zfGmEwrmlXwKwCyQ38snSEJEosiOkXTt6eeJ0BUSO9jQdh+O/zbPbggeVyp7nGkIZYae fb7w== 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=cFWDtf2wFIR6Z0pjhiaIXpIQXNSN34oYlbsbQvsmVJQ=; b=KZvAGGSKX0gnDbmiRWBgjlFZAKgvdjHC48n+NI+iQPICdg7rBeN6PaPgF6EqG/AJc7 UoveGVMVbFJUV97u+eqd1gNfSvFVjLYKTvsY7sngH8aq3aJq8JgV/F9ODP7TqiBSWlNp frhYxzq7pWgJQI9HOHPLsm4Eb1mUvJzL8s9MPFi3wpIhMmbrI/iuDdNY0XGQHUwA1qi1 RR0HXIBZIRYNrjW8Q2N+wohOCjkbLobRtX4DlUajn5/Wz4P8ZnKEx6as4MvHNF4Oy6OS 9dEWPLQNe7CgwJ4RzSsnML/bc3Alj+szxS2v3jZLQ55fBF4NnuplyLkuYnOQlgltHtqg QGQQ== X-Gm-Message-State: AOAM532LIIb32LTHmPWZKCDy7Sf02khBHyLr1XmS9CDaSW27gjjXmqbM 7LvzflY80PRKgKdKAbR5PwAH2pRw7C5VMkFm3AwJPQ== X-Received: by 2002:a92:cd81:: with SMTP id r1mr4695898ilb.252.1615421023280; Wed, 10 Mar 2021 16:03:43 -0800 (PST) MIME-Version: 1.0 References: <1f6d32e14f121a8ccf8807b8343597c3ae88c7d2.1587196252.git.yu.c.chen@intel.com> <20210308134957.23852-1-youling257@gmail.com> <20210308161548.GA37664@chenyu-desktop> In-Reply-To: <20210308161548.GA37664@chenyu-desktop> From: Doug Smythies Date: Wed, 10 Mar 2021 16:03:31 -0800 Message-ID: Subject: Re: [3/3,v3] tools/power turbostat: Enable accumulate RAPL display To: Chen Yu , bas@basnieuwenhuizen.nl, erwanaliasr1@gmail.com, owen.si@ucloud.cn Cc: youling257 , lenb@kernel.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, Len Brown , dsmythies Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yu, I am just resending your e-mail, adjusting the "To:" list to include the 3 others that have submitted similar patches. ... Doug On Mon, Mar 8, 2021 at 8:11 AM Chen Yu wrote: > > Hi, > On Mon, Mar 08, 2021 at 07:37:07AM -0800, Doug Smythies wrote: > > On Mon, Mar 8, 2021 at 5:50 AM youling257 wrote: > > > > > > this cause turbostat not work on amd cpu. > > > > > > root@localhost:~# /turbostat > > > turbostat version 20.09.30 - Len Brown > > > CPUID(0): AuthenticAMD 0xd CPUID levels; 0x8000001f xlevels; family:model:stepping 0x17:18:1 (23:24:1) > > > > There are already two fixes for this in the queue. > > https://marc.info/?l=linux-pm&m=161382097503925&w=2 > > https://marc.info/?l=linux-pm&m=161141701219263&w=2 > Thanks for reporting and pointing this out. I assume these two patches are both fixing the > same issue? It looks like these two patches should be merged into one: > 1. Bingsong's patch access MSR_PKG_ENERGY_STAT only when RAPL_AMD_F17H is set, > which is consistent with the original context. > 2. Bas Nieuwenhuizen's patch also fixes the issue in idx_valid() > in case RAPL_PKG was not set but with RAPL_AMD_F17H set. > > thanks, > Chenyu