Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp775780lqo; Wed, 8 May 2024 14:48:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW92w57j5IZUm2Vk1WqydnZO+gH16CIouj4bIGopiQdq2hBP3Pg0MIexw4AeFeYGW+5m4XFcq4Vh6dIFDPCW0Jbbfe6rQMR6h9hsfY4ZA== X-Google-Smtp-Source: AGHT+IFktMlgGQde5pBs8YqCMu7qWoHf81ot/sQYGCiAgr2e7GRQ10oFaoTntKAZm63GKYBOitDw X-Received: by 2002:a05:6a20:9c8d:b0:1af:a35b:a34f with SMTP id adf61e73a8af0-1afc8d4e5a3mr4658854637.25.1715204879894; Wed, 08 May 2024 14:47:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715204879; cv=pass; d=google.com; s=arc-20160816; b=RuOP/QH1wMt56xFTDqJiWDa7VMSaHhJoGaufrICdX6PrnfjR0t8S5cI5CJHuz2mIWC tfXIau3rbORN8mUhA+JtBZs3rVZVNxM6dp3wvSAcPkO0Xef4WNtVTZj1+AdwH1a2BTbT Nd7wcBPOQN2H0nsoamVycMtpjdFdQtbEYggS9xv+XBz4YRx8upWW/4UI84gp0UqRQeNu 6gA/pQUXgRmWFf9ReIrTVUo/WOeVoc3UcIU0upW2gHHhgav5ZmwJs4iF39UmAlR9RuaR P29SlP5Vfvm3y86UCguE7qkJQhnEhCvK7JK/PNiw9avnaa/FwZOe4mxkxkttedcg7LGB DN6Q== 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=ny7SdBBfM4fA06WaOHFWsDW9CAExUUs1RYJao5DtbQU=; fh=fn8S4Tdo79RQDt0upv7VyA2/MPToyuNN2Z1IdpyJ0VM=; b=c2jUAB04rorhOlVCga2wUuNj+BXbGS4F7eCCmbBUQDrsjvsV+J4pzO2adbHdVmeUDp nwWI9OfYb9r/Nl3pXeoSQJbuhsC3jTW/LJcsp2I4v17FdjAd4vm6h4JVaXklTNXXyKce hAWoi3jtxPrRds7UIujED3HGqKVTI5UYY0dS9afyL1JlkL+AcVnCBTtNkA2gV7ikHgsO ftLahIW9GyBIDQo0QGXLDSkmgX4gL5Om65tPC/+wEeJN6lWRDcaC6VPvln3eDCuxXinP T5XZx8FRcmh//xCM1L52sublHWWra0dAhtNAwXx5QM+zFnwHTnfx9owpmW8f2tEWr1mM 17Gw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0tiVP6Cr; 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-173856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173856-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bf3175dsi445425ad.291.2024.05.08.14.47.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 14:47:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173856-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=@linutronix.de header.s=2020 header.b=0tiVP6Cr; 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-173856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173856-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 7040628344D for ; Wed, 8 May 2024 21:47:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCD98132489; Wed, 8 May 2024 21:47:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0tiVP6Cr"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="5KhQVvY5" 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 AC2761E89A for ; Wed, 8 May 2024 21:47:54 +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=1715204876; cv=none; b=hGQL2lK4Oqxlt97SE5MQzy2aOYdJhpnI0rWdptti8g0EniVD3Ezo/Kl1mRqEfEAvIHO2dv5UExFxR6D7SMD6cJm6ZEREkuyERixtxMhqBdeFAXEjsjc4PLCJg+VY4EPGsUd8mY3Ep1hQBePAxB9kNqmMnxasA8xkLRPorcqxF+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715204876; c=relaxed/simple; bh=ApAfur37pJHaDLMNymbOTaDtj9dyHQKpw8yoUE/X7K8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=oAAGStZX2hUS/cMq1Z1EeVSuxz6J63JMnhG6tmMQeByqM5Ot20PPg+2KlH4G5cH2zkXmeEwvrCJEMFJ94rzZkp9k9xOtdWdVIUoKANGVZ0Il4Xr74Kcml5oTJtIpBCGosyxwZDRTyFr0lip/8LnkggfDjSwcUaUHQXxVLlA2Ip4= 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=0tiVP6Cr; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=5KhQVvY5; 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=1715204872; 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=ny7SdBBfM4fA06WaOHFWsDW9CAExUUs1RYJao5DtbQU=; b=0tiVP6CrCXtKmyPXBtBSby+bZ0UDyD2+kHnbHf4uwNdCR/87NEPF8JxBfgPJ7VDICxTQmE Zfk+8G57Q+BSoSTaNrL6iID/XFlKpzMb83wrqsPt3zEGprFSgcHXqjKcV1OFzOj3RuBBSa RUChCkvQYgs735w5RjYM40utaM4pbE9790L371TJwKyvhE58jGZvxyM0qJsIJwfbOWWXDd ksqZoJqa+ly9uDF9k2ufpiRJkbGcf8rLUMpTa4oUqvDH+ARLvhGaRia0CYTCVDWauz46IC Lj+Ngt2EUa3VjKQSlgZu7OkMR3RbNhp/4fxIsTpt95rTU1W/VoDjC4h+mlxrIA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1715204872; 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=ny7SdBBfM4fA06WaOHFWsDW9CAExUUs1RYJao5DtbQU=; b=5KhQVvY5adfQ0p4UxE+x/m9Gz/3WB0U9XGpnX7J8Mk2MJyTLjT9yfAQe4NEMAt8ITGjKli /YAr6AW4jH2eyfAg== To: Mario Limonciello , Lyude Paul , Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: Early boot regression from f0551af0213 ("x86/topology: Ignore non-present APIC IDs in a present package") In-Reply-To: <016902d9-3858-4c65-b3ec-f7a5103af63c@amd.com> References: <3d77cb89857ee43a9c31249f4eab7196013bc4b4.camel@redhat.com> <20240418082703.GCZiDZVyra7qOQbyqn@fat_crate.local> <87plumxz4x.ffs@tglx> <87le59vw1y.ffs@tglx> <3a0afe545747e5314a9cb6bbaa9ce90b259ddfac.camel@redhat.com> <87edautcmz.ffs@tglx> <3b1d16e357c1f9badeef405366492f05af26c085.camel@redhat.com> <878r11t8zu.ffs@tglx> <016902d9-3858-4c65-b3ec-f7a5103af63c@amd.com> Date: Wed, 08 May 2024 23:47:52 +0200 Message-ID: <87h6f8nfg7.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 Mario! On Thu, May 02 2024 at 05:33, Mario Limonciello wrote: > On 4/25/2024 16:42, Thomas Gleixner wrote: >> Right, that's what we saw with the debug patch. The ACPI/MADT table >> is clearly bonkers. The effect of it is that it pretends that the system >> has 16 possible CPUs: >> >> [ 0.089381] CPU topo: Allowing 8 present CPUs plus 8 hotplug CPUs >> >> Which in turn changes the sizing of the per CPU data and affects some >> other details which depend on the number of possible CPUs. > > At least this aspect of this I suspect is caused by commit > fed8d8773b8ea68ad99d9eee8c8343bef9da2c2c. > > If you try reverting that I expect the "hotplug CPUs" disappear. That does not solve anything. The topology core already rejects those CPUs and accounts only for 8, which in turn causes the boot to fail as also demonstrated by limiting the number of possible CPUs to 8. There is some other problem with this broken BIOS/ACPI.