Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5060488pxu; Tue, 22 Dec 2020 07:29:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJywW8hS9uL/A/c285iqCIbohBeZCu1kb3X6FeAlgZFJGr8bKOg0JatNJsqrilHYY6j4BuPR X-Received: by 2002:a17:907:2071:: with SMTP id qp17mr20528606ejb.110.1608650947188; Tue, 22 Dec 2020 07:29:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608650947; cv=none; d=google.com; s=arc-20160816; b=D0+2acd+TjgxQDvTrmG54XyrPSrvu7zWT192XVfpUG1vdR9dt8MCO8Rmas4cn6X5fj qTjO5thDIAlHtR8k5eOM23afNxN3UwwJuhG8Uxoj6LCy+76+gu5adbuuFnDDiBzKsGoh 7kvWVg8mzmthNu6rXND+GED2kn5RQvBnPM6ZWaP13qUVsPSSUmo5ePt3BZfRrvHIQ+bD /BIYBjNjnXa7zpHtUy0g9hKDff4Tr/GWS+nPW6Fys8ZDHbjUdvHeyzDqibw3Ad0Ddi6D 2Quuhg87+ndYdbNiq0wpfMBnA1UAPq5t8GEIbOfGfLDjM9mvwuxEdF53ij+x/AKjXXmE z8KQ== 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=+GMr5VCPTqCz2ZfWhdjCVasC/tsHX8qwCEfhYsLYdAg=; b=eCucb5WsXCATVA3YdOer7ScFr3IL8Gx0Nv4YFGHxXYkd1ogby/dl/z1K0eH4Hcx1bJ nQKcOb9w1srwGrnT2x5aNbT3XMptsZhySLXBBB00eKdL4mAZhMOK2QXR8XGG1zXUHCQr jMh/rWjZ+6gmp71bLY5v3qdC4UrGIeDcUd/HNU++nmr7h6k9y9axfUmpAe7lbR2nhqXl xUDBUNoOQrxYU3ohHUe3tV3KByV/NRAP1L0eTrOmqdYV4xVCI8La3KsVln7bnsWnMl6h KgJ0T0xDoLu6FKzr1anf6hICFjgTvassx7s9FpO9WI1p5JayMWyBoXKv8x/XrW0oRBSl 6n3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=pjBMMl7H; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb44si10901317ejc.150.2020.12.22.07.28.43; Tue, 22 Dec 2020 07:29:07 -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=@googlemail.com header.s=20161025 header.b=pjBMMl7H; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727952AbgLVP10 (ORCPT + 99 others); Tue, 22 Dec 2020 10:27:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727936AbgLVP1Z (ORCPT ); Tue, 22 Dec 2020 10:27:25 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51072C0613D3; Tue, 22 Dec 2020 07:26:45 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id s26so32801117lfc.8; Tue, 22 Dec 2020 07:26:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+GMr5VCPTqCz2ZfWhdjCVasC/tsHX8qwCEfhYsLYdAg=; b=pjBMMl7HgkRiFIGdJygUked00u2rRnsciWj9vSEfaT/mIpaxKhZufXxFk2vBRyY18S qJ5uX+ckghvmzYTJDp2IzlzaQ2szcafhnR3gQnlaeu6IrOzdztqIVa9OzjBwtRObvM9/ qcDZ73SUtfEkc6UCCzA5al/d8cTdspT/HuZdxqJPwfeq2OHmrz3la33ZODuWkAzHpcRD 7lGHfN+LcOaTRA1pIOGSMrPBdMCz0dWBE5ADWtB3u62zAQF5FuLUfYjjn+ymfs7LOaNv e5+RMSA6Kaf3RT5+50pHGKmQANRXGEZJ36FYs01w/7rMxKBmxAbb4ovJn+/RQKJVsoGi bECw== 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=+GMr5VCPTqCz2ZfWhdjCVasC/tsHX8qwCEfhYsLYdAg=; b=HCv2s0r3qS9UGLY1q8/jN+ocZd4EbjKHJVvgp7zeoj+ywyzlUUu1SI/8w8+MiipftQ InEkJdcEH98HSFhWjrgUIJauVEkkEjZXwIZiFlQY/ztc8AX6wLuPkVWyPJeRKbbgdNWw KpcGuthwArcgJqvgs1rMbaKV68vrCw6M2pH1nDR+GY7cnrhSK/Zpm57/44jyFRp31gx7 w2X/RaT50+8YfCmRlEtrTCU1m46Jmwy0yMSqknDX4pRhzB9+oAMdkGh87IxLuiOo8ffJ tJ72URG9F/zgbrLqAKEvQm4hG4N55LoTQP9CIqyMg43hajxrdL8wvE7ko1k8p2eb7VBV nQNA== X-Gm-Message-State: AOAM533FMYX6TN9NT6v0YATS2HeEmZXY9RNHoBeffzfrK5qZzC5nVUhH TJmt/w9z2H9tJdUzNdLW7Px96KC9JTB7bb0HKQ== X-Received: by 2002:a19:23d8:: with SMTP id j207mr9670559lfj.144.1608650803872; Tue, 22 Dec 2020 07:26:43 -0800 (PST) MIME-Version: 1.0 References: <9d621d34-e5ce-301a-1b89-92c0791fe348@roeck-us.net> <20201222061630.GB76917@roeck-us.net> In-Reply-To: <20201222061630.GB76917@roeck-us.net> From: Gabriel C Date: Tue, 22 Dec 2020 16:26:17 +0100 Message-ID: Subject: Re: k10temp: ZEN3 readings are broken To: Guenter Roeck Cc: linux-hwmon@vger.kernel.org, LKML , Wei Huang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Di., 22. Dez. 2020 um 07:16 Uhr schrieb Guenter Roeck : > > On Tue, Dec 22, 2020 at 05:33:17AM +0100, Gabriel C wrote: > [ ... ] > > At least is what the weird amd_energy driver added and since is only supporting > > fam 17h model 0x31 which is TR 3000 & SP3 Rome, I guess fam 19h 0x1 is > > TR/SP3 ZEN3. > > The limited model support is because people nowadays are not willing to > accept that reported values may not always be perfect ... and the reported > energy for non-server parts is known to be not always perfect. Kind of an > odd situation: If we support non-server parts, we have people complain > that values are not perfect. If we only support server parts, we have > people complain that only server parts are supported. For us, that is > a lose-lose situation. I used to think that is is better to report > _something_, but the (sometimes loud) complaints about lack of perfection > teached me a lesson. So now my reaction is to drop support if I get > complaints about lack of perfection. > I agree it is an odd situation with these modules, but having something is better than nothing. As for the amd_energy driver, yes it is off on some platforms by 2%-5% or alike but without having that support in the kernel, regardless of the module, we cannot ever come to perfection or near it. For both k10temp & amd_energy driver I suggest to not drop the support but add kernel modules options disabled by default, much like a lot laptop platform drivers have for different reasons. The amd_energy driver could have some any_ryzen option which turned off by default. That way people may decide if they want to use it even when not 100% perfect and can report back on platforms the reporting is accurate. Waiting for AMD to give us ID of what may be in their eyes accurate is like waiting for pigs to fly. The k10temp module much like the same, some experimental_voltage_report module option will be fine for now, I think. I'm also sure owner of AMD HW will help out optimizing and maintaining the code. > Guenter Best Regards, Gabriel C.