Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp246683lqt; Thu, 6 Jun 2024 02:18:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVjtTR9fTYqQnUpEM7UpLBOOK0o0XtJoGIuPIl5/rmmMNs3YDC42jTB2ji9uCIzzSY+29T0+bmr4my7TCiju5oHktL5FbjM6iUX4sLd9A== X-Google-Smtp-Source: AGHT+IHbTE2TTVcNhGeW9GAqgx+toX+1oFaD1zF6x0Jg0xXmdaBFoCMjfm7ETplSP0JDdPnYeb1K X-Received: by 2002:a05:6870:b51e:b0:24c:4c82:4f15 with SMTP id 586e51a60fabf-25121e4026dmr5713033fac.24.1717665489113; Thu, 06 Jun 2024 02:18:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717665489; cv=pass; d=google.com; s=arc-20160816; b=luQ1Isxh1+3Wte5SS2NWFY6XBzRIoNnVgetEGylY3jnoyiplJh0scGMe0mwvKXkoB4 JvFE1foa8AXi3HmTsIfOkd2/Ri8yeD4QjZuAwxYZKSxjPnEiejdEcKMQ+RVXEej4hFaM rk9TT5228BoXIhNJikGrDcDMZTQHGQh164If6dDTxeHrhUa/rxXdJXH9P7+RiyPq5EUZ 4eSvnB1Cf0JVTY0O78Os6TN1acUWx+9UhcZDJJXJ+p23PrqhVs9NeNRY6VUlPLINS8kt xRFn4givcUjRiW6xImgqWG+Qrjo2FmuPEdF7hTFheHAU9O/RNgRED1fmB2PChWXLe7jE r2TA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=55FFsN3ftlp8CQPCKWhszPtPcA6LJBd4hfv2N4LBpfU=; fh=S+lAK7bP7TutZGF1V8eR8/sfYyEVHGiIQHDJHovCalY=; b=C5HLhSOKyMe+c70gxB6p7NlThgnfH12N9AKmC8zIn7dLDfvkwWK19aCA3ste3EJ0Ip G/yYUdb5SxrraioPb+LxyUX8Syo53kqlkVYhT911QUDio3FLCzhBZa6KGdKPhEq6wn6+ 1ToNaESe4+upUVFF754k+M3E3NbkDO3P+1Tt/4C4XMBlvmY2z6+iJq40BdZKXRdnJLQU Y0H31ohDgtl31/NdPllCfFJDq/IMb78eaIqIGfqUTTts/VR3mTgIg8YRdBS5TGc3RIaL NQTj1Atl1hnFMJ8liyRm7GlD6QtRHY5FjPTAxPyl5WgNaoAnYBb/6rO/J8rYKkM13m9s Co1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=D4+0UYha; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-202927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202927-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2073c9ecsi833628a12.117.2024.06.06.02.18.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:18:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=D4+0UYha; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-202927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202927-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2DC32286B79 for ; Wed, 5 Jun 2024 16:45:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8331B155CAA; Wed, 5 Jun 2024 16:45:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="D4+0UYha" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF21C15666F; Wed, 5 Jun 2024 16:45:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717605926; cv=none; b=e5kjboji5YqRiW0GWqGIWtqcTg8Ha8yQD4RicjOzEnL3XRAUmn71fH5YxTEM5aQ4vejDEyHL35TJhs3CGZKxDiRSqhZt0XTQ5obJ2J2O1EzUYTXVBwH2hfSlgx83h+YQepMO2NHQe+JnLFxxUcppXI6ywwjzlc5/1X+il0neEQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717605926; c=relaxed/simple; bh=2AvSoawsFzTXh1CTPggnx/EJHpxRpbOoUivtACXyLtg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VWJ7hbuPIji6fW6eckfl2+Lr+blhSx/n7iNB7vDl6A6QoIFWKiHpvAVvcidweq33COMT7G1oKNa193PwQDkg5YH/YV1d3Q6r+zkXL+cFyaQ1FmWjmqITnKveA/e2Xig6UtQ2q7NGMc61epVKdlR2MGJKmANvT6JyLzVRf1fIDLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=D4+0UYha; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id E0BBF40E016C; Wed, 5 Jun 2024 16:45:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HKwGLeMcO4GR; Wed, 5 Jun 2024 16:45:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1717605919; bh=55FFsN3ftlp8CQPCKWhszPtPcA6LJBd4hfv2N4LBpfU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D4+0UYhaGFeq4Zc6tpJEsxCPSQaFqjMqnbtB8E7Hbx37v03uU46ocRwLF+zeDKnOw 846/UnTeB8Stu8aG8S6IegN3HxicT3falfAzU8UwR50gj2iKhblvJzLRcZaVD+kh4X +IqWvFYCme5J2EOcHuuWKPM/DcUZPm7zUX5hsyRYX1vcl1U2cpyna4c2Q4+IWaiw+c hMIDzk0L2p/JQ7pNnGZBuM9PnCCN5QGppvW44xfZff147rX1NmxUfyFAkHEYovWXyl 45m6t0SoxGsa6qYqQdI5+7CMFjfNyoUfVXCXDsTmWpMOZ5ubgaRxAq/fgMyEo5WEwK V+fHenVe1KTsyhK3x1ykyydB7qkAkpcZ7s3U0uX5m2V2Xqb8Gd+e7lhV9uQL+aMiFt kucwaBs4pYUXIr14ORiNUWj7fouVA+9DJsJeFSXtxZLpE4RGGU+3nwI7igqqFBwTIa 3jq/wc8TbFVl5X91FLPVDIbPoXaSVBGqah/ONUH0PEOQfpJ39lAQE2oPT4JVs/zg4R B/liHLkOdYou2BogStRfeOzukxPhss/v7WRCxmbLsHTzBh0orx//5xYdF2JH0lu7wC LUwwpLQW9znPTKnFlWqbwia6f/ZesHffovbLQ4o4H1sOZsCaJjBP4xFiKR2E6E6Oae DUWvQ8fJY8eJW7KWgXn0C4hk= Received: from zn.tnic (p5de8ee85.dip0.t-ipconnect.de [93.232.238.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 412E240E016A; Wed, 5 Jun 2024 16:45:12 +0000 (UTC) Date: Wed, 5 Jun 2024 18:45:05 +0200 From: Borislav Petkov To: Yazen Ghannam Cc: Guenter Roeck , x86@kernel.org, Mario Limonciello , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: Re: [PATCH v3 3/8] hwmon: (k10temp) Check return value of amd_smn_read() Message-ID: <20240605164505.GKZmCWEROq9QByGDRn@fat_crate.local> References: <20240523-fix-smn-bad-read-v3-0-aa44c622de39@amd.com> <20240523-fix-smn-bad-read-v3-3-aa44c622de39@amd.com> <20240605122012.GXZmBX_KFQArXB9Lar@fat_crate.local> <7a7c2f41-1608-4348-9183-d99aaa51398e@amd.com> <20240605161236.GIZmCOdP-CRPJ8-3sY@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Wed, Jun 05, 2024 at 12:30:35PM -0400, Yazen Ghannam wrote: > "It fixes a problem like ... a hardware quirk ..." I'm pretty sure that means a patch which sets a magic bit in some MSR or does something else to make the hardware work again. Errata fix and some other hackery we get to do from time to time. Or my favourite - fix a BIOS f*ckup. > Most systems will return 0 for SMN addresses that are not accessible. > This is in line with AMD convention that unavailable registers are > Read-as-Zero/Writes-Ignored. > > However, some systems will return a "PCI Error Response" instead. This > value, along with an error code of 0 from the PCI config access, will > confuse callers of the amd_smn_read() function. Yes, but it hasn't so far. It is all pretty-much, a hypothetical, "what if" thing. Sure, if that error would cause a serious issue on some system, by any means. But just because it might potentially happen... Meh. > But I think it's fine to drop the stable tag after reading through the > rules again. I'll do option 2 or 3 if there's interest for specific > branches. And the cherry-pick thing should be easy to do if all the > prerequisites are already upstream. Just wait until some real issue happens. Otherwise, you'll be pretty much wasting time and energy. And, btw, people should upgrade their kernels on a regular basis - not run old, Frankenstein backported crap and think they've got the best of both worlds. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette