Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp722960ybl; Sat, 18 Jan 2020 09:28:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzN2NyHXQU35mHEdTiukKO+nyWocquOqepYVxZUhcKGKj0yiy8oa2Bi0rEICQCyvWHP7WIL X-Received: by 2002:a9d:68cb:: with SMTP id i11mr10121742oto.210.1579368513697; Sat, 18 Jan 2020 09:28:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579368513; cv=none; d=google.com; s=arc-20160816; b=0E0MHGRByMjunNsGv/pgbvlCh5pTFuAX28J7iJLRoPqCz08sgdm1HVYO+ihgC3uJVL 0FrDa8uhOPfkFVqDrWtMJdYSUEwMBCs0S65WLAQT/Cks7ulXEPSR+LBa8wFQTQH3f5/v 50uemaxMCQ0Q2kzh/rqPkYZOMzAVvtWn4gVofgBTcucHuLSaHaerm98AKGNFWfRFZj8+ I+IBCwgDR8/3oz0C/INQlN5H8UsKX/8lxExR44fQE6KJTRNo23Ckk2bLOZjkU20tFjR0 ITjm+9d18dQSAu2JBOQNCtBgfpB2XZziZULr+Ga2WnuMSWhubMMEn/DrOCajVFWjw3f/ C9hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=qGtnMvLqd8KblLQCSjj62pBTLLOlWRPKgUYjU1Mw5vg=; b=VeXqVFmcMHoDiP0WHUIJzUgJ83ZC0AzTIGzEu2v76V0d5G0WeyA9eOEV+DY1xss6Qt EikDtUylJTSoSD1ufg0MGbkWh+ZbZOKc0YPnN9P8L4caaK4rtAEHXc3YClK8IxuITMFl OVaetjwZZgTGapT910r1YeNAKPf4ps7njpxfeKufpGKxx6prpvSCl89vgYJVqjaTkdd+ gR0HKLMICGRRxiFXTHEqKrO+KnldwivQ81I91OM3Rp1jtnaFQyR31MdfuzHC6x+QlNO8 KFVL6RYZK/tdNXUQvmd5+487E/ABMQuXGQk1dQxYxK5QKl0/gQxCbd+GV7Ytf1aP41GR GRng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=eTMZk0eL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si17925499otp.22.2020.01.18.09.28.21; Sat, 18 Jan 2020 09:28:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=eTMZk0eL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728670AbgARR0r (ORCPT + 99 others); Sat, 18 Jan 2020 12:26:47 -0500 Received: from mail-yb1-f193.google.com ([209.85.219.193]:41843 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbgARR0q (ORCPT ); Sat, 18 Jan 2020 12:26:46 -0500 Received: by mail-yb1-f193.google.com with SMTP id z15so7713148ybm.8; Sat, 18 Jan 2020 09:26:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=qGtnMvLqd8KblLQCSjj62pBTLLOlWRPKgUYjU1Mw5vg=; b=eTMZk0eLA7ad0kMZZgW2TO2XNH0R2yUpWaIDS41ax/gi1mPVxxXKID9V19S6QGSKpu sA+un82VhzvE0dN6I9LH9fgpslECLQyM4+WO8IS6rOnoTo8/fPtBpPCpfoqF4Pw06aPU lSeQjGYqPI0n5emg+lPlJeAmW1qVgcn2g4j3/YV8uWG/uBaEnbQqq3GITUDjNHqHANqE 9m7ExnZGqO0MFunXr2Wwg3tKQvL33eaEuiH1QHKKi3AFW5ryyglw2vCP/2p7HK3dM8H4 C/SF37CPvbrYgSPyNMPDE9IIok4tWj6j5r4wKnDyJ5br/2cU97eCmaEOt907yPTaHMTl iyCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=qGtnMvLqd8KblLQCSjj62pBTLLOlWRPKgUYjU1Mw5vg=; b=T4Vo+7NW92O5kdH9Kk1wmu8N+Gm48ot09hfIp0OWGCp8ua4V4IXOYQtkCsEx8r7ZbF WXmxD2E6TAgXpSRrpQcRy800MZH1COCoda0BWtZwPNalyTDcAUegvC87ccGIL5XF7OtE 3TbWKF18nAdb2u3o33dXw+nWr4MYC+nciQ8ZlQB+/6JtTqAL6XyXVsvQYzJd4bMErA6Z xpatN8AsyuPlGd3rQRMzofXyPqkB09O77Y5U8NIvhWVjVeLvC/M3fSUHwBuso0sZwk2F mNTMROYefnR+PkwCI9Sm2pbVv2IaHC5z/H7oyjnRvyLSv9p0d8lLJJcVgaKZQHsjdSOT p9NQ== X-Gm-Message-State: APjAAAUBjMRAFhaKpGGMZpzOpS3CsLXFLy/eGKlxUCk5tLPXBdnD2tHI 78naDQBrdh0y3fzZjqQmuedyxQY5 X-Received: by 2002:a25:9381:: with SMTP id a1mr32840741ybm.88.1579368405384; Sat, 18 Jan 2020 09:26:45 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id a202sm11559448ywe.8.2020.01.18.09.26.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 Jan 2020 09:26:45 -0800 (PST) From: Guenter Roeck To: linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Clemens Ladisch , Jean Delvare , Darren Salt , Bernhard Gebetsberger , Ken Moffat , =?UTF-8?q?Ondrej=20=C4=8Cerman?= , Holger Kiehl , Sebastian Reichel , Brad Campbell , Guenter Roeck Subject: [PATCH v2 5/5] hwmon: (k10temp) Don't show temperature limits on Ryzen (Zen) CPUs Date: Sat, 18 Jan 2020 09:26:15 -0800 Message-Id: <20200118172615.26329-6-linux@roeck-us.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200118172615.26329-1-linux@roeck-us.net> References: <20200118172615.26329-1-linux@roeck-us.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The maximum Tdie or Tctl is not published for Ryzen CPUs. What is known, however, is that the traditional value of 70 degrees C is no longer correct. Displaying it is meaningless, confusing, and wrong. Stop doing it. Signed-off-by: Guenter Roeck --- v2: Added patch. drivers/hwmon/k10temp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index a4313b662a3a..cdfebe435003 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -347,7 +347,7 @@ static umode_t k10temp_is_visible(const void *_data, } break; case hwmon_temp_max: - if (channel) + if (channel || data->show_tdie) return 0; break; case hwmon_temp_crit: -- 2.17.1