Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp953160lql; Tue, 12 Mar 2024 03:07:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBaiAn/opEOBm1uUAqWyantJUfXezek3cIPcFVhyN3zZZSPSYOUwn7+5ol8bsxdo4pw0rQze0V6U4lqZ0yeg3W5hNbX0o3+d75U2qfcw== X-Google-Smtp-Source: AGHT+IGB0kODbDrQpy9PFeb77tzdnpdpIOJY3VM+6CO6ZFKwFBUqHnocRnd+yDuudmwbYMFXNqtU X-Received: by 2002:a17:90a:c20b:b0:29a:1ad0:632 with SMTP id e11-20020a17090ac20b00b0029a1ad00632mr1364610pjt.39.1710238067871; Tue, 12 Mar 2024 03:07:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710238067; cv=pass; d=google.com; s=arc-20160816; b=Hkh++FclkkVfkQsicWl5TeJLdcRtHXf8M5p6sjU1woL0ktbxrVwfMEqDi3hBw5EWoL eGKnFtJ3sgQsiTjlE3C+yJ3QLxcRuxfdpX84wkZXQDYr5pY1S1NNs+Wp2cJ1f41fnV6i E3DCfoRFU6Ro1JxMvuA2Y9cr9ChYuA3ZMPPeZV3YJmh+zgm1gSRE2v6UrU+IDRkHGt5g ihLy/vCpb6T8NIer9IIumL6ER/JGFfI0oBr6QPfjneye76b5G2sAeMUPnM9+vIw2bnYu 1BAhyNAlm+aRDjRv3fxG3U4ZgcVGBzlzYSQdjc4p2908q8qLL4LIYvV+zGchRaqETsPX FqrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=yhjK5b3mLPLjt7IRKiFb96a/RGCJHwt7u3VLnuYDLqA=; fh=TTcpltHUibcVIi6wD3z8FrsgqS5cHxsWDFcWTU2Cg5M=; b=yoGu/CkVecxDDSW813eeLqtbVXak03ZKO3kb8IT2+acRvVEyEUwduGRoHEoBJ9pwhm NRiqXFVNqTvvha3t0TPc43awsJA2fmbypSs8SLuEk63GDjxEiWNxRJSECs3SGM9RtPic F3x71jaUivREkovrKOeWCV+sjW8ikoicmnnmEnmxTyj+Xl/6b5YFcol+vdS+dobxc3T3 DXl4F/JgMtrCPADdajRWArkK1vopDpEN9mqXzmotmZ7hxJbBRpozqCTK8RAefUX7WFzC E3avILX0jForxbU3cgRAOhli5O+qtI+O4hdUu8zA7x57VjqC9Wu5VTImiBX1sctev7vW 9DyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SiE2pY22; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-100092-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d1-20020a17090a110100b0029b7a26651fsi10619308pja.71.2024.03.12.03.07.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 03:07:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100092-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SiE2pY22; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-100092-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.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 859E7281CC7 for ; Tue, 12 Mar 2024 10:07:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 579A87829C; Tue, 12 Mar 2024 10:07:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SiE2pY22"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="f0o2Zrht" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 F3B203D3A7; Tue, 12 Mar 2024 10:07:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710238061; cv=none; b=GsudIj8Z3Y9uxvmlOWZnib2fMYkmoZ17yv7/b7umoRk04PEVreYDCvc7U8jHGAVRU3F0AiQIUGRGKBgWoZvSsp0QRg48PVwlt692Jbm5wSDq4R1S30gOFHlGqUZKGK4Bdtm67tfVVdqxp+xuwFo5H6MDANSDqjCIz+lq7RetD/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710238061; c=relaxed/simple; bh=Dd9d0UnxqufVfdrX22bmS5DDjMof9oB963Q+fw5StGk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Qqy28GSabaNHXpu1Ddzm6pvo51m4BppWPUnCvk3GEg0MZ/ds+SCcIZAtTslwilV/9PuoIrihCAIku6aTxEiB5ZZePjt/w3w9D5TP27aTABk0kHh6hTwx3hqksRiHiWS3ry0JOHnsk2bZxawj4ejc8QGfXxaov2XMQt3eqJORWcs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=SiE2pY22; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=f0o2Zrht; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1710238058; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yhjK5b3mLPLjt7IRKiFb96a/RGCJHwt7u3VLnuYDLqA=; b=SiE2pY22XIbt74fR5+g2hNoNj0RHmko1vTPOMNDWKAzlkp5cx1OB+Ilo2MsjiQloBgK88q nSI3QE08TUPWZCmRyGz6sZkhaMvF2stbmJrWZARVO5uRHiPlIol2WfXG5Gl7q6GI0YOR5A YhPCZYUPe4JfibKcmeC4GxrtbWMXcR2RPPVacgl2mIgsiGYuE3hFb2HvaREc9DiyCjso9p bMySyLf2SwDjskWnSFSn/ll1a99Rd3i/NRoaHet08ihN/SvJDLc1scF0qqtH55jaapN4Po 0dFBVTcV3bQMafDzUbb6L+TrksQb6kwcCZGszcnH6o4r9XT0qMQh0TUJheoIGw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1710238058; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yhjK5b3mLPLjt7IRKiFb96a/RGCJHwt7u3VLnuYDLqA=; b=f0o2Zrht095O28J8Uccd+vmmzvLXXUYxOaEPM3OX74O386o2g55p7o8LepzAvnAOWAkHNQ LIcF4YFs44W+y9Ag== To: Linus Torvalds , Borislav Petkov Cc: x86-ml , lkml , linux-edac Subject: Re: [GIT PULL] EDAC updates for v6.9 In-Reply-To: References: <20240311155651.GAZe8pw0urOnUZj1y_@fat_crate.local> Date: Tue, 12 Mar 2024 11:07:37 +0100 Message-ID: <878r2npxue.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Mon, Mar 11 2024 at 18:12, Linus Torvalds wrote: > On Mon, 11 Mar 2024 at 08:57, Borislav Petkov wrote: >> >> - return topology_die_id(err->cpu) % amd_get_nodes_per_socket(); >> + return topology_amd_node_id(err->cpu) % topology_amd_nodes_per_pkg(); > > Ho humm. Lookie here: > > static inline unsigned int topology_amd_nodes_per_pkg(void) > { return 0; }; > > that's the UP case. > > Yeah, I'm assuming nobody tests this for UP, but it's clearly wrong to > potentially do that modulus by zero. Duh. I clearly was not thinking at all when I wrote this. Thanks for spotting it. tglx