From patchwork Wed Aug 9 15:34:12 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: 133350 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2956560vqr; Wed, 9 Aug 2023 10:22:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgiZSp38ulGNjTyul+SrjfqNJLCInsnGz7yDKyy04igUP+XQk0zM4kWiNRVqr+Bh8dBD2U X-Received: by 2002:a17:902:d4d0:b0:1bb:9bc8:d22d with SMTP id o16-20020a170902d4d000b001bb9bc8d22dmr3919965plg.16.1691601738252; Wed, 09 Aug 2023 10:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691601738; cv=none; d=google.com; s=arc-20160816; b=bqFSO15TkvcDkdcW4HxG/DvTnAVCiwVz1ETu5qRbfuyuFTAaDbcRUE7Wwdfk6/tWoT JftCztna5LgJ75b3vK8TnO/71GUuT3v50R50vEL+sA1T+ao/VsvPK6OLgkgcgoIBk0dO m3RzgdbXHqZW7rXqC582Jvr7l0GigBRyKhI8FffQzDjrTdwPf9yfd2jjpXt4ZSd4koLH uR0GOfWH0jCHrkKypc63o6bdt4uAg0TYyeD0EqDY8ydyJ6Y3ZW9UUd6prnpBGYRw0DAc S92mAoTLdHHL9cqU8TKCttN978h2RLGPlRinutYepUXSA5txGxad9siok9N1KpWciwgr EoEg== 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=Nt+zZaVdwUgZFTmuy7LkcH09d8Xhbf6cCuO0YE8P3J8=; fh=xeBNGOuZM5vy4okdFvBNsMTGHQ6tdBlFPaNKCUScG5A=; b=amRh6Ef4cH2ZzIWKL2/Ls2M8EgCYuam0DUah2UXyX4mY27nZb+A+IEcqSuSqmjP/MH 81gNW/3JX+3QKIPVqX/GQdHmKSTpS6JdGWrValF7+yoNjvkarIhBgQA00u4hNUrZ7DVs WTeaVDyo+zGNR/Wok4T/zvYa7S2iv/ueAqwjh7AiQ6xbEKWk+pH+SZNexSo4H/cUJykW qzIgCtJZUekPV3lnSaAKmOSuVfR35Td66VSat+cJ+/mn/U+iNJNcT1ULKamJKNpLyvp8 loNzrS24ZtaHhaP0uEjHcCIMuUcB9vphIIOGzULFBXz1F4CIG9IL2Dx2G2MqdtIV7745 jEGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vjWcYxDs; dkim=neutral (no key) header.i=@linutronix.de header.b=quxzvLlc; 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 f11-20020a170902ce8b00b001b837f239c4si9891807plg.651.2023.08.09.10.22.05; Wed, 09 Aug 2023 10:22:18 -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=vjWcYxDs; dkim=neutral (no key) header.i=@linutronix.de header.b=quxzvLlc; 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 S233647AbjHIPeU (ORCPT + 99 others); Wed, 9 Aug 2023 11:34:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233600AbjHIPeP (ORCPT ); Wed, 9 Aug 2023 11:34:15 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEAAF2111; Wed, 9 Aug 2023 08:34:14 -0700 (PDT) Date: Wed, 09 Aug 2023 15:34:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691595253; 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=Nt+zZaVdwUgZFTmuy7LkcH09d8Xhbf6cCuO0YE8P3J8=; b=vjWcYxDs2GIQkOcN89mHUrLP10ctZmLfSYtGYhVpQyPM/GrfjYdMyh9oUk7LCs3ESlo5S9 F1r0sdZJnk268qSm6HvhRYp4bQ2SA8VZtWlEFBgRez617TkiVxPsawCBHVGdcN+0Op3qei uWLcNl9Wrrli9hmmcwwtgLqmuyRPfgLqHlZUOxAsrTXRHe3qR3rBSp/bHINarr6Bc+NJXJ 4aEOqWxmtri+Oiv4ZVlYVNStAxn1zoAmAjqjwB3/d15xZzEo/oNnUqUPe04tUdaxse2JnG xCt4NXNCHACfPF/UO5SRgVeL1/TfyQzMzfUUy+8m52Cvz/6yV0Zg2Qd4mesDrQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691595253; 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=Nt+zZaVdwUgZFTmuy7LkcH09d8Xhbf6cCuO0YE8P3J8=; b=quxzvLlcEmxwv/yVKiKZEY8dTWWPc3ebtIVtGCwpu1A2Imiqh91gLlK5veo9wH0G3E6tqy E+AAowdjx4D1tACg== 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)" , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169159525273.27769.947618313714395207.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: 1773772983915790911 The following commit has been merged into the x86/apic branch of tip: Commit-ID: 1ad49dcd9f85ed507a9a7543e2db360cf70005ba Gitweb: https://git.kernel.org/tip/1ad49dcd9f85ed507a9a7543e2db360cf70005ba Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:03:50 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 08:10:11 -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) --- 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(); }