From patchwork Wed Aug 9 19:12:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 133536 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:9d8d:b0:139:fa0d:b2d with SMTP id d13csp153456rwo; Wed, 9 Aug 2023 14:26:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdNnu6gycgEgs+HDJaj4UMU/F/ngbtOUMmD0MmoDgO9vp8bOcoY4lQvZ2pv4KTrULwAmCI X-Received: by 2002:a17:90b:3a87:b0:268:ee6:6bdf with SMTP id om7-20020a17090b3a8700b002680ee66bdfmr410460pjb.47.1691616373621; Wed, 09 Aug 2023 14:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691616373; cv=none; d=google.com; s=arc-20160816; b=IJ+eRornJDPttslcwNHfu6WYG7wL2ITcCQHQafmR6cFixVCkmiXOIZGb+6u+ycDwuE XHlPc33q6aSgeisOLlrEUIkD18YDsnQ1H7uyIc/5LZUQ7s3V6BZqnLTOFuUgX7fabFYH Tx7tAqdnEk15ZylFYqyKxZXxpVPKy+B243hWxOzAByiHf7OCZbyokXZ8aiXq/+1qoul8 N2DE2wJP0Luv2/D880Lwnp1FSO5RgBXmijQQv90aBkesFfjJqj9fExGZow2e3r5GqCWO I2k6oYJvo/A2GnMYaU+Nx0OxyoreMijr86Pv/i4yvn0Q9hJoi/fFR/P/Ao348bTv/blM XKzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=RZg5Gjy7rLpF5IZsWLnVkjA/ZqnKC+GzHeXqWnZFjU8=; fh=jBwjuriIPWA1lnCf5oMMiNAPpgGE0iGPmBzZMsd85oQ=; b=sRhTTlPs+e/dtHRPS3I/g3+Hf2AKH+2AthnfB9/eBz9HW2qBS+6yu5rqm2QUWWaYJf DixsjQerF4F3+EEz8NYfJbBo8QyCYZXdme6kQpFE7eo1/N5YvD7r9iz7bdmNAgOARfD7 lg0lpsJzNbY39EaVpFIxs+4DIWdsg7WM2Y3rXWbhqnSzP1nokEzA7W57WVbhY0btU09E 2sDN6e5bF8baxOIjyh5NmfEvgGj/lRBDA0hlhrFAi2Du+ZnMIPovKhLS3GFVf4nbm8Qu ReJy/Rmn/dRvogNm0FHfV8wvq9afdfQEHqDOvezWHUsYoMg0FbboQemknk0tiroE/tSg nIAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oHtyKjHx; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=3YNhE8c3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ev21-20020a17090aead500b00268307ac3cfsi2119984pjb.185.2023.08.09.14.26.00; Wed, 09 Aug 2023 14:26:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oHtyKjHx; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=3YNhE8c3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233550AbjHITNS (ORCPT + 99 others); Wed, 9 Aug 2023 15:13:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233414AbjHITMk (ORCPT ); Wed, 9 Aug 2023 15:12:40 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA6D92D41; Wed, 9 Aug 2023 12:12:27 -0700 (PDT) Date: Wed, 09 Aug 2023 19:12:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691608343; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RZg5Gjy7rLpF5IZsWLnVkjA/ZqnKC+GzHeXqWnZFjU8=; b=oHtyKjHxg3lrAwbMZB0mhStDfpnjAsfHXHZA2WqMeunTis2KuPgT33oa0wNnpDYsOcLmSB DGG1wIJ604hltwlVx4GdkW5ymqmFPJIxBK/fweZBXBn/Jw/cJM/57ySeePwl3ucDtzB9Ey Wnw6QqYMCI1uEczxuS9IUHzkFwkowrQUQTDzTXyh8ohBUUOfAQEABbonIRiZchLdBk+UXO yVMqtnrlDAbHv9f/CfaMf5uvYBNQR9YzymN6fMNKSYVlU3v2T9ipqm8u9uS1VyhnG47u7o gtD8e2ay2FDs24BLLjn3POH8vANAyrHHB/u/tnlLmbcjFkKEfPDDTxarVk3mmA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691608343; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RZg5Gjy7rLpF5IZsWLnVkjA/ZqnKC+GzHeXqWnZFjU8=; b=3YNhE8c3jaT5RQF9G2b01LNgU5FpcouhhVCC1md0HKKYQz/dBYSMSBzzlknEU4C+6v34lj OEM6hRvvBndKheBQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/apic: Nuke another processor check Cc: Thomas Gleixner , Dave Hansen , "Peter Zijlstra (Intel)" , Michael Kelley , Sohil Mehta , Juergen Gross , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169160834286.27769.10953648367600131647.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773772983915790911 X-GMAIL-MSGID: 1773788330405599613 The following commit has been merged into the x86/apic branch of tip: Commit-ID: 55cc40d3df3c5c49f3a72e451bb710ec9e398ddc Gitweb: https://git.kernel.org/tip/55cc40d3df3c5c49f3a72e451bb710ec9e398ddc Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:03:50 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 11:58:22 -07:00 x86/apic: Nuke another processor check The boot CPUs local APIC is now always registered, so there is no point to have another unreadable validatation for it. Signed-off-by: Thomas Gleixner Signed-off-by: Dave Hansen Acked-by: Peter Zijlstra (Intel) Tested-by: Michael Kelley Tested-by: Sohil Mehta Tested-by: Juergen Gross # Xen PV (dom0 and unpriv. guest) --- arch/x86/kernel/smpboot.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index fc2173b..da795f7 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -1181,23 +1181,6 @@ static void __init smp_sanity_check(void) set_nr_cpu_ids(8); } #endif - - if (!physid_isset(read_apic_id(), phys_cpu_present_map)) { - pr_warn("weird, boot CPU (#%d) not listed by the BIOS\n", - read_apic_id()); - - physid_set(read_apic_id(), phys_cpu_present_map); - } - - /* - * Should not be necessary because the MP table should list the boot - * CPU too, but we do it for the sake of robustness anyway. - */ - if (!apic->check_phys_apicid_present(boot_cpu_physical_apicid)) { - pr_notice("weird, boot CPU (#%d) not listed by the BIOS\n", - boot_cpu_physical_apicid); - physid_set(read_apic_id(), phys_cpu_present_map); - } preempt_enable(); }