Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp33510pxf; Wed, 24 Mar 2021 20:03:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQwnKXQMTsg//tGBAIRut5Xj7YgJXowja/99Hm+3ZzOhiwpB3LNkAFlNH96bdQG0C17cUb X-Received: by 2002:aa7:dc15:: with SMTP id b21mr6680580edu.350.1616641404471; Wed, 24 Mar 2021 20:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616641404; cv=none; d=google.com; s=arc-20160816; b=pVWksJ42BUGQBrDaFELMsafkRl4w5WLd3Qr9nATfFtASDeWdSdngYST8hfV1yAN0DO FcThLzpwMYa8BFhz+Ue/3stX9w/ynaIDOrXl1UG5BDynVnljSr9KA5nMknw0CUoyopD5 F4OhgxVHhJDwZkeOHrfEvBls0UgmLk8a4lElOc+rqpAvv0nMvLo2Xso9PxTft8QJwgzI F0vXqy1r3SGrMc31A0pOAAl149lhWmOIG5tua2ZA7iUcNcbHUzIEHnytg66o/xsTc3G0 vH0m+7Aa3YwCFOa/aos/fr2EhRbjWuMjC6SjTilpyUT5kzsGyo2szF/YUNpWCoimCbQz 5jFw== 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:sender:dkim-signature; bh=Mt31SZR/o6YA2k4YRrLR3VTpnaJxsF0VK5o2je/XXYw=; b=Y+Jj+RSPQtG3J8A2DQvxoiYzbydDWE2CjkSRj3Vf+zrMMCxbDPlrt9m6BOyckAt7Vy Pq8EIhj3OxH7+urkl6wVgE9yFxl1FkchfpLzsiTdXQC0MGW1S5urlAWRC4+3555+XNy3 R7XTQsZ1/sbnQq6twgBOMCV62NjHSypN0RLJ4G77so1Dkt9VqBvobZ5od2PWjKyYSMDt 7tTXSui7wC473ILB7zeXzykYl5Xtpxk/cCqYfBvYkkYsvN1axLGR1Od631HU6VHd1bGF ZJYB2M6KDjrErJOLaIy82c+20MoXTXu3F1vLsU0v9URf9BfXiQy9SCqEr0CURd23Yp5L CoTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HeqpHWrQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs1si3390046edb.64.2021.03.24.20.03.00; Wed, 24 Mar 2021 20:03:24 -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=@gmail.com header.s=20161025 header.b=HeqpHWrQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233563AbhCXMhw (ORCPT + 99 others); Wed, 24 Mar 2021 08:37:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232787AbhCXMhb (ORCPT ); Wed, 24 Mar 2021 08:37:31 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 986B1C061763; Wed, 24 Mar 2021 05:37:30 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id z2so24304125wrl.5; Wed, 24 Mar 2021 05:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Mt31SZR/o6YA2k4YRrLR3VTpnaJxsF0VK5o2je/XXYw=; b=HeqpHWrQg+9WKd/M/HkkOepQ9pCfOPP7erzYnn5cvvTdI2Sj+qcIwQ4mJjkkuxG62P HzuIJJGYmJIn/QADpwshwcD8o+BouFeovHH9Q1NCu6G0bB61IP10mB9BRLSAEP9quXfn Yo9nLo59oqsPKn9MRV/WkYSKlDAhzsmVCHtm3pwyFEr8N5M4KBWIuuqGUb3qeJAtErtx gE17I0782yWQPmHWgtz1AKgAn1sbZGBBRNFRFmAHwk5wOFnK3XEhArdofOE6lJ/J1Ip6 IvsEbMuHPs7aHdkjrh9rLEZy+doiEJQeukErlFFfJ9tUdj/TS1Hfy/7PgZPK7J56Yksl wFIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=Mt31SZR/o6YA2k4YRrLR3VTpnaJxsF0VK5o2je/XXYw=; b=HslZpyus3aMXr9Lszj4j1UekQVGbyP5HKMYHRBeAHnLx9fXcGELkMj7UR7zK5hkS2J YmM13Jd8wQXJI8q2gX383md8LAQPKeeK/kd0v/fSLQyb4G76ZBGYAuH/BskA7RiE+ReV SK48Uu7VIEwqXGYcJA4w5yxWp6x2zok9D4isOGG+uQzDIhO3jfHawtWRYDOK4exrNMSW iOiffI7WUJObYWTgVW2WoR2arsl9H8/79mX2mRq+Z649Ej2CVfpbTxU1aVdNQKIrSAj5 xdDR2JOvNRdqgGHwD9a2uA3W1VQUbT/ITbGrXxvT7gnE/2FJV2Vgg5DC1eNwVSTLeINU jMuQ== X-Gm-Message-State: AOAM531hLl2T+D2QETzz+OHagbZs/OD1tEywY3DNaEFZIbfQhFWQoRi/ MhhEGJbGPfRngArZYy7F+kRie/tImLTmnQ== X-Received: by 2002:a05:6000:18cd:: with SMTP id w13mr3271926wrq.20.1616589448657; Wed, 24 Mar 2021 05:37:28 -0700 (PDT) Received: from lorien (lorien.valinor.li. [2a01:4f8:192:61d5::2]) by smtp.gmail.com with ESMTPSA id m11sm3132366wri.44.2021.03.24.05.37.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 05:37:27 -0700 (PDT) Sender: Salvatore Bonaccorso Date: Wed, 24 Mar 2021 13:37:27 +0100 From: Salvatore Bonaccorso To: Len Brown Cc: Christian Kastner , Kurt Garloff , LKML , linux-pm@vger.kernel.org Subject: Re: turbostat: Fix Pkg Power on Zen Message-ID: References: <1f1fb01e-0616-34ea-ede6-dc7dd679c3d4@garloff.de> 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 Hi Len, On Mon, Mar 15, 2021 at 10:54:24PM +0100, Christian Kastner wrote: > Hi, > > On 01.02.21 10:01, Kurt Garloff wrote: > > Issue persists on Ryzen in 5.11-rc6: > > > > kvmadmin@KurtSrv2018(//):~ [0]$ sudo /casa/src/linux-stable/tools/power/x86/turbostat/turbostat > > [...] > > kvmadmin@KurtSrv2018(//):~ [243]$ > > > > ?????????????????????????????????????????????????????? ^^^ Exit code > > > > With the patch: > > > > kvmadmin@KurtSrv2018(//):~ [243]$ sudo /casa/src/linux-stable/tools/power/x86/turbostat/turbostat?????? > > [...]???????????????????????????????????? > > Core?????? CPU???????? Avg_MHz Busy%???? Bzy_MHz TSC_MHz IRQ???????? POLL?????? C1?????????? C2?????????? POLL%???? C1%???????? C2%???????? CorWatt PkgWatt > > -???????????? -???????????? 27?????????? 1.04?????? 2562?????? 3411?????? 16046???? 33?????????? 2931?????? 12895???? 0.00?????? 0.85?????? 98.48???? 1.57?????? 18.81 > > 0???????????? 0???????????? 12?????????? 0.55?????? 2193?????? 3400?????? 885???????? 1???????????? 111???????? 757???????? 0.00?????? 1.12?????? 98.42???? 0.04?????? 18.74 > > 0???????????? 16?????????? 1???????????? 0.05?????? 2351?????? 3400?????? 53?????????? 0???????????? 3???????????? 54?????????? 0.00?????? 0.05?????? 99.92???????????? > > 1???????????? 1???????????? 20?????????? 0.89?????? 2261?????? 3400?????? 478???????? 0???????????? 39?????????? 427???????? 0.00?????? 0.37?????? 98.80???? 0.06 > > 1???????????? 17?????????? 9???????????? 0.40?????? 2329?????? 3400?????? 308???????? 0???????????? 38?????????? 282???????? 0.00?????? 0.35?????? 99.29???????????? > > [...] > > I was seeing the same issue (no stats, program just exits with 243), and > Kurt's simple patch resolved it for me. Does Kurt's patch seems good to you and can be applied or is there anything missing? Regards, Salvatore