Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp365632lqj; Wed, 10 Apr 2024 12:50:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVI39ZESQW7QKfFF2hk76y3c9c0pyl7itGPFkfda3+Y4MME8mzGXVWf2lSj3qBCCFzxPY76A/YF7j2VQZvJYamtHj+CTWk7LlnDTdVuDQ== X-Google-Smtp-Source: AGHT+IEZsPs5Mb2vxkQlULMAqKDNOJ+0RDEF/eYu4gWICoeAN04RG042t8AGYr9aKnFbsfrCZSNE X-Received: by 2002:a05:6a20:6a20:b0:1a3:c408:42e6 with SMTP id p32-20020a056a206a2000b001a3c40842e6mr4942987pzk.11.1712778606144; Wed, 10 Apr 2024 12:50:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712778606; cv=pass; d=google.com; s=arc-20160816; b=mnaGvKOISNSdSKX6YzR86HTBZyt10a71dKZXj4mJqVQarePi+aioMEEGmlR0nfxV74 RdOPC81VELJTQUMW+vcg0ew4rYFoEHVFRui5Lr18xiWaVX3DcEtayoOrpxjuZRjSg3Iv r5NPXTTYYKb9hiY9NPwHHA4MSZNkO2tUNz62LlSnrNNb44KrSQP3NrQ7zPx02v5G31jL ALz9G+HYKHGKSHvXg7xFNjKh9aA4+w2fbnT6tV55BhGYtjeJeJ1msIbbGF2A2L8C/LcZ xextPgdgO+9wle1ropK0TnXc0hlassKmwRoYOUl2zdj02vB8cCW1F7IA70vqGXShxckP cxFA== 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=Zp/EtX3qMN10K3KBzcAg3kdV/12QTlHSX0dqop3x9f4=; fh=hc8rvoe5UiFOKa+LYT2wUs05NUxUgazbejL+AEmUlxU=; b=0UtKAVAuYnLFdRHX1/iWI5524GHcdIf5UI+MMPCc5adbT/qOw4Ldt6An7mZ080+MOd aNs6VAavEbhxenMDf8Ei9s6JZpuP7mEykRW7nxytMDRhyFIRv6+bx3WBcWwF6PJdU4zL ldzlOB1qPFBLlYuZlunVmIGBzhFslFCwjHXxtQRIHIz6IbmHZUN1jud0vWSvxzZZL3xR y/akKTR+vh/QNZ7lD81rkbK1DhQk2Qu2lWbi6fUOkArkRJZfZrjUwbU1yWmQNVy/e0iH e5Goa1mfu9CNpnRq9uxKsAHWbIOhNb8SxNrBkNlzbdE1tiIKZ6C/GzXTOTmloB+GPGMu nFJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=HMDN2imC; 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-139263-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ka25-20020a056a00939900b006ed99532c2asi20984pfb.296.2024.04.10.12.50.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 12:50:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139263-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=HMDN2imC; 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-139263-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139263-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A799DB26104 for ; Wed, 10 Apr 2024 19:34:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1F24181329; Wed, 10 Apr 2024 19:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="HMDN2imC"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="VF7GiSeX" 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 0021913C9BB for ; Wed, 10 Apr 2024 19:34:35 +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=1712777677; cv=none; b=L/MSMld5fKRAvosdKEXhRwYlPuiLG0ArUVhpEYn0kC2jU/1tYoTbSHUHvkQnbQdlHCTHlTXWxx+jEiBA4tQ0ULCfB9KK/TM8dBCPf7BqJpN7PMMRjuVuYwratpNK0csitwbpvwueEC6+XlMlP4mNABqJdfAtAKfFA4k46MpbOhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712777677; c=relaxed/simple; bh=fY6+WvW3hkdWZaAxo0deKXe/8KWqIVNXBr2BIirxmTo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=R+ahsr+IvqJkrvCmAR8TgwJnrPTgggGmP1g4IhQySXCWfT4a7wHBf3/wRtOH9TUonC2NiaRdkF3zS2b48nMqclPB4GnkdN0NOLh9V+ObFNfDvLC+nQjdU56hF1i5IEAPlVyM17lwyxvr51K4HmVT41mKjxyLosdPyggrhdh9vQI= 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=HMDN2imC; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=VF7GiSeX; 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=1712777674; 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=Zp/EtX3qMN10K3KBzcAg3kdV/12QTlHSX0dqop3x9f4=; b=HMDN2imCIBN/b7ktsutXjXqjRDR7ntAAA/CnE+hm6mQ7/sJYLvqEE0lO3XArMcjBDvKRAl jiUd4PIbqpIjqAtMgcitbHG0IaLWwpxeGBKAo1SvQ/Q0F18FN5THvocPgVleXQRGWwrv1W Vzconq2cnuM3ymru3Nwgz/OgNNsv+VTD8X68fKB4WtpCpyoOER2qd4Clo+EabHdW1x6gwJ QiHJWGRLyIBsv/Z6fj2kEUpp5GjSCL3FrZT+wCxwk6H5Z0gYFTaGoJ6MJvCK/HEp3MzSgL 1TluufqU/8ppM/lHE85jqmdgwTLCj3pnN0Ppv5op2izJlEZ4DAkSj7QToDTClA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712777674; 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=Zp/EtX3qMN10K3KBzcAg3kdV/12QTlHSX0dqop3x9f4=; b=VF7GiSeXE+n5qF/XYUxQetLULBfufOdvK8N14QmUpiVo0kAUVsFM29l1FkIntAvtxJmjLL 2+Gn94YJs4hqjxDA== To: Laura Nao Cc: kernel@collabora.com, laura.nao@collabora.com, linux-kernel@vger.kernel.org, regressions@leemhuis.info, regressions@lists.linux.dev, x86@kernel.org Subject: Re: [REGRESSION] mainline boot regression on AMD Stoney Ridge Chromebooks In-Reply-To: <20240410161141.261818-1-laura.nao@collabora.com> References: <878r1l48xn.ffs@tglx> <20240410161141.261818-1-laura.nao@collabora.com> Date: Wed, 10 Apr 2024 21:34:33 +0200 Message-ID: <87il0p2era.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 Laura! On Wed, Apr 10 2024 at 18:11, Laura Nao wrote: > On 4/10/24 15:57, Thomas Gleixner wrote: >> I just moved the exit check a bit so we should see the scan info. That >> should tell me what goes south. > > Here's the full kernel log with the latest patch applied: > https://pastebin.com/raw/r2CkP396 Ok. Now I can see it. pr_info("NPP %u\n", tscan.amd_nodes_per_pkg); The output is: <6>[ 0.000000] NPP 3 The original code then reads out 1, which is what's expected on that machine. Now that bogus value '3' is used later in a %= b / 3 as b == 2, the division result is zero, which makes the %= operation crash with a division by zero. As there are no handlers yet, nothing to see. The problem causing the bogus readout sits between my keyboard and my chair. I'll send out the fixes with proper change logs later tonight. Thanks for all your help! tglx