Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp406126pxb; Wed, 14 Apr 2021 19:23:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzozHIulFH+R4VEQD8nd/An+WkVpJZ70Im3rzcC7nPACt9y4YlCbMUxFE2c5aB8/4fB2/8v X-Received: by 2002:a63:1556:: with SMTP id 22mr1364582pgv.142.1618453383112; Wed, 14 Apr 2021 19:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618453383; cv=none; d=google.com; s=arc-20160816; b=acmVmisiwHzZWOjIW5oUxDetcHz11qxa6w7RNnllYPEknijVLVtgXw2/9S3UxQRM6l dkBawaPM4OMdSqoTuL/wHy17Oa2Dn58b9LVa62ZV1LeGnBO1PMD8+eSyJIHgnedEyA/A O1HaklWq2PUIB37utpO3awU72j2zb8zgADvPZAh4rHb0DJCUxkRyCpNkqXlnuetvB3Hm TDHezb+WUfpT6sxY7x6HCutc6Op+nsTo2PHyqT5QRlJ8DQ/IdmcoD2+EVRDHQ+017kYo akyn0TMluhC/rMCe5ebe60E6mrBWgl9xBPo80dVJFDqKGwPTujhk89YbgzNgoW/9kt4u edjw== 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=DTQ5X/QMn0mz0JtoXNgtHxnl7TjXRNx/+LR05asIcq0=; b=KpK6LqpPStUMKfUXZveDzDEwUub44iaqcFuHkA26//qeVjz77ySm5l4H6I6BUnAbV4 qyq8cVdWv3G+vmXusP53yGAKVSaoAxFpYXs633cY1laeyHJw9pENGSdRxznYMm4pfQnU DQ4/nz/PEh9TFOR4bogtAlF+wUPHGIoS7C49pt6d+13+QA02ZZ61O5oeBB4E7Yaf8FGl mK12219MMxWJQpMmrkGEUAGs8fvAANg/GvJXBum8ThaLs/RbLLQiDtTuDcfqqiegevLp k2iM70AuaQPgSCWwzfsv9pc8M1tVRtvFKIqTam6l2rHPlCBm8cGJa/v/S7n7b4CESZv5 xPAQ== 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 q21si1338594pfk.214.2021.04.14.19.22.50; Wed, 14 Apr 2021 19:23:03 -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; 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 S229736AbhDOCWb (ORCPT + 99 others); Wed, 14 Apr 2021 22:22:31 -0400 Received: from mga05.intel.com ([192.55.52.43]:29039 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbhDOCWa (ORCPT ); Wed, 14 Apr 2021 22:22:30 -0400 IronPort-SDR: /yqU6CHvMnFWvvZIJ9TfUfxya1dmwgKDMLrPIC0Ww9S4mcjs3a1ebIsfqIbQvQvFKKhJddCwac TuFBTjs/bJTg== X-IronPort-AV: E=McAfee;i="6200,9189,9954"; a="280090656" X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="280090656" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 19:22:08 -0700 IronPort-SDR: ggwZsxSbhGyBGUchl9E+OtB9B8VKWhqmkzuPbSU6GF6wDANuPymFEXZzxREtBtSQily6tuFsTU aJQG2fWdlUGw== X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="418570192" 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; 14 Apr 2021 19:22:07 -0700 Date: Thu, 15 Apr 2021 10:26:00 +0800 From: Chen Yu To: Calvin Walton Cc: Linux PM list , "linux-kernel@vger.kernel.org" , Len Brown Subject: Re: [PATCH] Fix turbostat exiting with an error when run on AMD CPUs Message-ID: <20210415022600.GA341188@chenyu-desktop> References: <88d11c19e662f67ae492eb4b93e12e1b24e68c1d.camel@kepstin.ca> <07f5e30a2af1674f0a2f8995641bbaaf64e47d34.camel@kepstin.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07f5e30a2af1674f0a2f8995641bbaaf64e47d34.camel@kepstin.ca> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Calvin, On Wed, Apr 14, 2021 at 10:08:07PM -0400, Calvin Walton wrote: > On Wed, 2021-04-14 at 22:05 -0400, Calvin Walton wrote: > > The current version of turbostat exits immediately upon entering the > > main loop, with error code -13. This is a regression that was > > introducted > > in these commits: > > > > 9972d5d84d76 tools/power turbostat: Enable accumulate RAPL display > > 87e15da95775 tools/power turbostat: Introduce functions to accumulate > > RAPL consumption > > Ah, I failed to check the mailing list before sending this patch! Terry > Bowman's fix here should probably be preferred: > https://patchwork.kernel.org/project/linux-pm/patch/20210331155807.3838-1-terry.bowman@amd.com/ > > My patch was simply the minimum necessary to get turbostat working > again. Thanks for reporting this. We had a fix for this previously at https://lkml.org/lkml/2021/3/12/682 I'll check with Len if this patch has been merged. thanks, Chenyu > -- > Calvin Walton >