Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3663554pxf; Mon, 15 Mar 2021 15:25:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIdIpMtrpBJw/efyzMV5hYsA38LwOBsJy4TYHiw04yBDR1vObUuhDXpE43JxpvL45N8PCU X-Received: by 2002:a17:906:4d85:: with SMTP id s5mr24461702eju.43.1615847115671; Mon, 15 Mar 2021 15:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615847115; cv=none; d=google.com; s=arc-20160816; b=RFId+HRqxroq/UN170VNmcPTinIEhI3oi4yuL21FkDlUczVZHWqj8+jG2YuG048jYa o9gxKSmF0eUovRLN60ckagBqIYEGYQEXJkgqjeOKcaVV1cJn8IQvFfsW7N8PkYTLWoDA r6ze/Gi1NznhNgJ+N9+Pr3w3oiVN3mm0/wu5NHpTYMCo6J1NhX2Qh4FgGOsvEWppAJMc LJ03kNhKrszqesFJVPG9CzucoL/41cAw+/DB3ByWnpDu0RjcIOHDIPRQHzMm7f1f6k86 jyS3xm27UUYHvKwDIseI1HmaPBFWO0LyBNF+r+Szqor2lTQZcc0SSVuxZNHu5ykQoA9y lU9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=SXXZ7zAtMIKTRWaFNBTob3b1oxLrYHdskmTBBva/ets=; b=z8j0Xhap6MHdbrtnehg+pi2a87HPxSZUbLkWd8wZQkJTWQfJYNR5z24lC+G0ec7I+W jCJ6I6NJnzzXCs3W3ZD9x1LBvFZFjc2s/wISC6H/6I8IXSBOJWDp+HfAVPpDRC/k1N50 jt3rDrzXh1QSg1O0ggMwuCpUWRRIPtSP3e0PbiEbYpR4u0371lJ3nPD1zWSQsR+bmVCM 2xi+ET0HbrND3oM9E8mp2s+XJODCS79fN/q60xfwUtFW1O3Qa+VLDS+45urIC3yw452D V7EYuh9gp9t+KpliPxaUfQnMqeMAlSJ5vS4QX5QhE1dx+2j+9NuEjVzlnuRe6YazQzUq oPpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@debian.org header.s=20200417.ckk.user header.b=IV5HwDUX; 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 hb37si12217709ejc.81.2021.03.15.15.24.52; Mon, 15 Mar 2021 15:25:15 -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=fail header.i=@debian.org header.s=20200417.ckk.user header.b=IV5HwDUX; 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 S231969AbhCOWVx (ORCPT + 99 others); Mon, 15 Mar 2021 18:21:53 -0400 Received: from smtp.kvr.at ([83.65.151.181]:50365 "EHLO smtp.kvr.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbhCOWVi (ORCPT ); Mon, 15 Mar 2021 18:21:38 -0400 X-Greylist: delayed 1629 seconds by postgrey-1.27 at vger.kernel.org; Mon, 15 Mar 2021 18:21:38 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=20200417.ckk.user; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SXXZ7zAtMIKTRWaFNBTob3b1oxLrYHdskmTBBva/ets=; b=IV5HwDUXvQxwg+CsM0dCxDQ5NQ l1+P00mEOkcoSkj7kgpaTSGXpL5rM45f5KWk3/ArcwG87XE8K7e4r/jNxqWWz8LONlAfC7ZEJsVX1 0fJrqTEVopwKqGeZvtyhQ0+tRiFEMHz+06WDOhiMipTUnWdpi61JJFJg0lyj8NB+jx1QEPHu0/7+D UJ7WtCDbIHPXvI1W4voN/OiIwgHi6x+ZHLu6gSeuMLy82hq+aUvuKL5Ryx92jk8gTe1JYo4mqx2ET zrXtAcnGC2yYcCLBVfAVoGieOrbs+spjdZhX1XciU5LQx5zrWIfs2Z91qwyYAuPc3VYK9LgTHzxxG ue1O783/f0pjQuTsNysWPvFoEPq2yP4d3EYRxb07IS7ZZVtv/7NpzqVdHTDkHp+MVb1IkTt+JC2X8 Ae0/JW1gxR8PTO6KwUBUZ2B1zm6DZOgrej93MpOCCYVECc6hCcv17+NiRK9gJxIL0bVIG3qHSFJuz OUuW+VERRIfbUWbN4KEahVM7bsHWHN/jpXzMSGGGDLznbLLdlyiG3oCAra87ww+b8FOkPBgFdGTgf KuJouqmRfNLY1xjhrkbFxX2jvt+2Cn0scXgCun54C3p5Ur5T+7R8WjdUwPF53MQLzrJ63gAOppzLQ dDPUNSmVoBNywEF2IQD8Vs40SNGMwGIjzcQnTU0E8=; Received: from [192.168.0.7] (port=47058) by smtp.kvr.at with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1lLvAP-002As1-7A; Mon, 15 Mar 2021 22:54:25 +0100 Subject: Re: turbostat: Fix Pkg Power on Zen To: Kurt Garloff , Len Brown , LKML References: <1f1fb01e-0616-34ea-ede6-dc7dd679c3d4@garloff.de> From: Christian Kastner Message-ID: Date: Mon, 15 Mar 2021 22:54:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Best, Christian