Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4749979rdb; Tue, 12 Dec 2023 08:18:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVErrSCcknlz4a/3u9l0dDrVtm9fOh5tyL77As76S/nokIvK/hBFGWwMLli8LNbqhY/9xk X-Received: by 2002:a17:902:dac1:b0:1d0:c0d2:b194 with SMTP id q1-20020a170902dac100b001d0c0d2b194mr3276934plx.74.1702397896956; Tue, 12 Dec 2023 08:18:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702397896; cv=none; d=google.com; s=arc-20160816; b=aMWc20XKSkGZPVwGGru+Fnt2Ax3QozeoMzxjqRWt58FxALISpx4vExVFiQ6qciE/XA 754oMnkrQBDtEwzTB5BvDQuq/57Yt9bLZY7a16YG82YgBwrzzGdrBhBZTUbacljH+pAq +QlDX/cBLD5j2dolzSaYOxMRajis0FHyg4agi4wfKpz9KohXVXYYAKu6vJjjX72LA//a y8wI13zSfM+FMSzwpAZd1JK5J81COQOnuh8C+aIDPo62FKwFFE/jt0VlpYapeD1y0NCY Q9klk5UYA99sR6Xfog87Dg6liHq6jaArhEcL0PbcgwmNMx1BLI/HykZq7czNYPG/7Nvg lGIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:dkim-signature:dkim-signature:from; bh=IsSxbOXO8kr3M3mwTOxm60Ib6/Sfb/2lPpnn+xrbANk=; fh=5+ibCBZu4ISd4BfORHI6dP0MVAVvaUQn2oT5lTiy+Yw=; b=H8IUo8deioy2hdrl8Riufrd4ZK6wbemexErYSxA3rnKHqoHz4NzI49V43cnd6zCbPt 8QK2udz1SxBa5mM28ygJRJnL28BlvbtKy53NX5ZenagZRbAq54b8ej7NdUUbocYiAlwR JjVdHnvkRtTSgZjkG5/7WOtTmTMGnu+gnMIhseT1UzdlF+O8oAFOPqxL2O2IPDrpVL43 6kP5hvUYrsvSY+0TCf4mN/dQWvwOs3ZxgS9nr8THj13X+yn1M4vXKcOdFmXweXC5dG/7 tZt4+0tH7Dd+2QawP2aLyAp4SFOUqzAUI3FnqyLjs2ttCMQFhWJUh7YyMMK13ZJQ6N0R kHPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MgqOdJJF; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id t8-20020a1709028c8800b001d069748938si7844628plo.105.2023.12.12.08.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 08:18:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MgqOdJJF; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0893980A852E; Tue, 12 Dec 2023 08:18:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232981AbjLLQRw (ORCPT + 99 others); Tue, 12 Dec 2023 11:17:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235087AbjLLQRl (ORCPT ); Tue, 12 Dec 2023 11:17:41 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48B1B139; Tue, 12 Dec 2023 08:17:21 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702397839; 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; bh=IsSxbOXO8kr3M3mwTOxm60Ib6/Sfb/2lPpnn+xrbANk=; b=MgqOdJJFmgzPMEDmG+KroROslkNprpfoHU74xiNAL7cVWSEF9uJx/H6xMOe1hs8M6JcdwV aqNSkjoGf1uosmtxiqs2VSeMecva1xF9ohVe1/8AsMuyNKiyOpNY2bIbV7BCRhIcsUquom IuKSQNHiskWf9tJxP147+l9C3l1fku1W9pQ632uCK7Iz5C/P5PpY7eEV6ZT0+9Vczshqjo hqWGAK4ro8IvWDXKsmwIH5VE7mcy3maKysqP3tTxlFS1d7ZYO9OILS/g02YRkyRQ3FsRal ifjF7ZlKESNL62q93CTHut2M1yyEM2Eb1LqeAmTcMfFWfz1uAefeaQ0snpWQpQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702397839; 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; bh=IsSxbOXO8kr3M3mwTOxm60Ib6/Sfb/2lPpnn+xrbANk=; b=NeglcHbbPQ8braZWOi4Mx9645ZHZGOKyVZxkWGpxfiHnZ3jr1m1CeS1es7HVy+nQvDXHiB BuoFLTTjevqVB+BA== To: Andres Freund , Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Zhang Rui , Peter Zijlstra , rafael@kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH AUTOSEL 6.6 02/17] x86/acpi: Ignore invalid x2APIC entries In-Reply-To: <20231206070423.wp7cxxnwfe3lidm3@awork3.anarazel.de> Date: Tue, 12 Dec 2023 17:17:18 +0100 Message-ID: <8734w7qttd.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 12 Dec 2023 08:18:13 -0800 (PST) On Tue, Dec 05 2023 at 23:04, Andres Freund wrote: > On 2023-11-22 10:31:31 -0500, Sasha Levin wrote: >> Currently, the kernel enumerates the possible CPUs by parsing both ACPI >> MADT Local APIC entries and x2APIC entries. So CPUs with "valid" APIC IDs, >> even if they have duplicated APIC IDs in Local APIC and x2APIC, are always >> enumerated. > > As just described in > https://lore.kernel.org/all/20231206065850.hs7k554v6wym7gw5@awork3.anarazel.de/ > and also previously described by John Sperbeck > https://lore.kernel.org/all/20231122221947.781812-1-jsperbeck@google.com/ > > this patch causes some machines to "loose" cpus. All but one in my > case. Sorry for the delay. > Even if the commit didn't have these unintended consequences, it seems like a > commit like this hardly is -stable material? Shit happens. We are all human, right?