Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1190179pxf; Fri, 12 Mar 2021 04:15:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJze4Z++4z/NXgN/vEWrOah9f0BKWBWfcbAN0i0/HUAPrbDyHFr1lB3maA8UdQEZLDwKPXwl X-Received: by 2002:aa7:c78e:: with SMTP id n14mr13672111eds.31.1615551309301; Fri, 12 Mar 2021 04:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615551309; cv=none; d=google.com; s=arc-20160816; b=aLcu5aZDtXYSiuJlHEr2ikNzDSWYxkoLzdgEyI6LdOKTNhaFE5fK5+wAhLLF1FSzfo 0+caPrw69Xxh+rh5yXYWyM35e15CR01lGJA0AwrQqLOYLV7PkWDJfEuf5wtgsWlFVcGj HhY/XYJGOdxQ+GG5UrUp2Tx4pA1xg732scua3bkXqU02eo0piT8MKvwxQXLMxdsPCCIe MRAb1Q5IeR5VAgSwEpheX64n/yiJT0cLkOl2gqmcjWNNj5QzGUDMzuHWeqCDxXzQj2Sx tsP9MzDy3t38kBtKCmQ7SqvXH6lxZ37F1Z4hTuctAWTc90x5b5bOIuVF2wUhjGSh3yMX 99eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=32l4atiOrVcLKuwsaPFHL+lA7uAY+tfTYb77G8m2IcU=; b=mzYjXHUfXEEieACB6MBamW6bIxK6kRWvKcHsUduBGBYHPmrmWKBUo+RX8LI0HWsW9C dsLL6yPJXV8sYkPZljCJLexzb6briIdRfyLObURTv28YuCdjEMBsnO1MkRgmA86uhavY 3blKBLnzB7lVKq2XMZ9WjMBHdWMC0B1KWDFNgZKnhA9zQNhzq9fVovPWvBLTbidHj5/h BxZeFpPjg/IElozXEg/s8OQr08Sp5m9zeMxIXzKjr+j22iOUNKPl8Q6XWuacznie1xwK aryU48n5Eun5POZngJ5nR175EkMsblw2Hl7Mjr1PrIXyCtOHtUe8GPujsB/oiDIY9NgB a0WA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs18si4149733ejb.648.2021.03.12.04.14.46; Fri, 12 Mar 2021 04:15:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230127AbhCLMNN (ORCPT + 99 others); Fri, 12 Mar 2021 07:13:13 -0500 Received: from mga09.intel.com ([134.134.136.24]:52245 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbhCLMNL (ORCPT ); Fri, 12 Mar 2021 07:13:11 -0500 IronPort-SDR: YzncO2AwEKjUgHlSL0Iy3bmPrDU17xD6MZYkdTiwZFNFwqm1/BFVt8Nb7fiofZy0HPFMt69RlR V+6NAlCuJlkA== X-IronPort-AV: E=McAfee;i="6000,8403,9920"; a="188918695" X-IronPort-AV: E=Sophos;i="5.81,243,1610438400"; d="scan'208";a="188918695" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 04:13:10 -0800 IronPort-SDR: PUAPyjI0CW2jFqvzuEi+V2XS2XIQ2ixL78nyHUr6/gs8JoBU7OCTrO/NwVE9gLSHPh9+PmINry AZrDP3ua7MoA== X-IronPort-AV: E=Sophos;i="5.81,243,1610438400"; d="scan'208";a="404398155" Received: from chenyu-desktop.sh.intel.com (HELO chenyu-desktop) ([10.239.158.173]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 04:13:08 -0800 Date: Fri, 12 Mar 2021 20:17:17 +0800 From: Chen Yu To: Doug Smythies Cc: bas@basnieuwenhuizen.nl, erwanaliasr1@gmail.com, owen.si@ucloud.cn, youling257 , lenb@kernel.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, Len Brown Subject: Re: [3/3,v3] tools/power turbostat: Enable accumulate RAPL display Message-ID: <20210312121717.GA20019@chenyu-desktop> References: <1f6d32e14f121a8ccf8807b8343597c3ae88c7d2.1587196252.git.yu.c.chen@intel.com> <20210308134957.23852-1-youling257@gmail.com> <20210308161548.GA37664@chenyu-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 04:03:31PM -0800, Doug Smythies wrote: > Hi Yu, > > I am just resending your e-mail, adjusting the "To:" list to > include the 3 others that have submitted similar patches. > Thanks for adding the authors. I'll combine their patch with their credits and send to Len for pulling. thanks, Chenyu > ... 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