Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp791539rdb; Tue, 5 Dec 2023 23:04:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMkawumtxP23hSnltSlWpr/FfsVxYHrL4atjL0qRgc2U1g5EFD/UMPcXz0siJDdsXvnJqv X-Received: by 2002:a05:6a20:428e:b0:18a:181b:1439 with SMTP id o14-20020a056a20428e00b0018a181b1439mr328052pzj.6.1701846273565; Tue, 05 Dec 2023 23:04:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701846273; cv=none; d=google.com; s=arc-20160816; b=MyIOz53Xoo3hvX2u7lYQ8uwqYNFq/lTEzm/Q2Hn3nLT9G3pP03Ci6EqdEV5Ye1MyhU MJ+z9miy4hfTre7HtK3okSvJQeIKSr94wKCCgs7aFmNIWIeQNTwwTaQZoHDxHVK2jFz6 Zps5JJYBtGMGazqs4rGtO5WCY3Cavrw4Psi9zHBDgaEMFrdoYUIHkMNxznM9Z0GuXHX3 wpDDMVDg+VaBP9MXS+mWCtgZnHO9UUwwFlfYt+l+7QakLZ3abYmA8KZZUszIWAHsZjmy Ys9uaxZoatEXWapWD7SKMBa04q8DDwAkNSokNPBKqqfQEbVaflgN/axsoVlZZx7IFGYT GnCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=QwmC/TeQGACNvmSZEvlJstCySOilTI3WVWB/NqvOWao=; fh=6D2wixWlu9MvdRtVgtLYmSbEe5Mll3No8PPIxpQ3xSA=; b=y8d0So77U7OD8SJd2a5+so3iuJ+JlcjHiAdzydDf4JfDYpRXWitIUs71DIRZrMzw2X 6XNsrKcfWdnuYIhSIHB7UIs46yL1uGipT77gOnLjDWgmJTB9tNOxNMbatw/sBQb1u0u/ aXzrCK6JUS4qRtWQPpdd1zPJkayWiUz4z7+4uyuuYjVCRbSs6dknIPYTDbldFUZHhj7M DVYsTgKn5mPM7ny6P1HljIOnzUgYjG5L5JFmaIYDayVA80sKEzE68ucDviV58sdQL7g9 Bf9RrS9doAa61JJWG8X0/c13ri02ZmHkrDHwG7CydilIYaYdStf8Xakt+zQboZF54acr aKGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm1 header.b=ZSeN5jG9; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=dtShI6lf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=anarazel.de Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id cl7-20020a056a0032c700b006933caa6f03si178481pfb.165.2023.12.05.23.04.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 23:04:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm1 header.b=ZSeN5jG9; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=dtShI6lf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=anarazel.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B230E80699C3; Tue, 5 Dec 2023 23:04:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376928AbjLFHEU (ORCPT + 99 others); Wed, 6 Dec 2023 02:04:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376848AbjLFHET (ORCPT ); Wed, 6 Dec 2023 02:04:19 -0500 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C7101A2; Tue, 5 Dec 2023 23:04:25 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E69295C01CE; Wed, 6 Dec 2023 02:04:24 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 06 Dec 2023 02:04:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1701846264; x=1701932664; bh=Qw mC/TeQGACNvmSZEvlJstCySOilTI3WVWB/NqvOWao=; b=ZSeN5jG9zzzGFuZYqb hfcGQ/x3tj82jM0IrN8wFoG/WSpPWnmbkWooAQmP9ISwE/PMZm8GrR9XjZJ8CcDJ tksKx8rblF8kj6um2UlN2fmw+DO7gKS40vXUEM2VAQufOJj70K3lScxOtWsc0yPm B/qH2exi53Soq/ttS7H763TteOuUXmMaxZXeEHb66YOUszgw8HgG9ETzP/jQr/66 mwAI4MGu0GOlQ/GY5h9ebOGdxk0O/h3hNcb5A68PbN0ZmK/RtKKeCqy+S3szmi/k zlnK0SO0Q8pt0lBcpGAEFd1Ayp6mwycRiTqMwLr/ngvS4yRfpjSTuPhH53dTbdqO 4H8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701846264; x=1701932664; bh=QwmC/TeQGACNv mSZEvlJstCySOilTI3WVWB/NqvOWao=; b=dtShI6lf4r1MY/o9Ve57miONw1MBD ZO5HDZLr89Y2xQsW8mtOJLgukiFWPzgiRmyah5ZZLn/7WGO/6WX1XAYB5W7EbEyY CxpHTlwSpKyMt5gjGX1mss3hJXSQ/V9xfdNtq1tiUoEzJZjkOFAYb/xjTnMBvdcR YARN5/+DeeYM256Y342h9rfhW3cJSsqzC3qag9QRQG93JPMt8e/Q3sKar9LQq+0Y NKHJ6bQgqMx62SbTI87wdXzpSPtKegPFXLrLHFGoCi0OO3w6Ab9dtu2TYhPOk8fL u3C76tSmvMxqrJJrdcch6PfkNxJ4QL3SjqVS96/IsfBMGwnNW0cSzUg9w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudejledgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepueelhedvkeehvddvgeevleektefhteefueefhefhteeigffgtdegkeek geeigeeunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghl rdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Dec 2023 02:04:24 -0500 (EST) Date: Tue, 5 Dec 2023 23:04:23 -0800 From: Andres Freund To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Zhang Rui , Thomas Gleixner , 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 Message-ID: <20231206070423.wp7cxxnwfe3lidm3@awork3.anarazel.de> References: <20231122153212.852040-1-sashal@kernel.org> <20231122153212.852040-2-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122153212.852040-2-sashal@kernel.org> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 23:04:29 -0800 (PST) Hi, On 2023-11-22 10:31:31 -0500, Sasha Levin wrote: > From: Zhang Rui > > [ Upstream commit ec9aedb2aa1ab7ac420c00b31f5edc5be15ec167 ] > > 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. Even if the commit didn't have these unintended consequences, it seems like a commit like this hardly is -stable material? - Andres