Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1169484rdb; Fri, 16 Feb 2024 07:21:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXH+zIOjCoz4buYvBwwWirEB2Msd4x5tx8rZVmzyGumCoNizAMMxSB5HcfdyJOVr9TPFeUWJcz3tiwNMdvFgS1p8RIAlGSu3NOA/pllcQ== X-Google-Smtp-Source: AGHT+IHNPkB4HOk0wRddP57CSSg8Ff+YscRrxLUJ/HHE6jBBGy2t+OAD6wLA/eR9ORz2lkiWcHIl X-Received: by 2002:ac2:47e7:0:b0:511:4b2d:d87c with SMTP id b7-20020ac247e7000000b005114b2dd87cmr3784073lfp.49.1708096893561; Fri, 16 Feb 2024 07:21:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708096893; cv=pass; d=google.com; s=arc-20160816; b=YlvDUKXCJU9IIRkimYtQJyjOMTrbNnHxngmbVPllz9N6mfn4CxrIgwkwozDiV4qPZf Jq4PmvG8/ux46+qrsfENENpaPdnCjRQ9PYC3lcYxTaSU3dlYG5smu70uPMlUlLE+VuxV 0ixp6TZ5EOzAQ2DiNdMjHY9BVmYoAi6IyzLkmmIzpMcbZprFRMHP00OHG2t0svWT3428 /1LJTVGF4TyvkAXsuPTkGWVStfHkC+l7MYsrlZZSVd4SeuB3sBi6/06veVLjW0kjMtYw o8xwPvt3j3bFSsRIhxWCPZY9SNnN+rZFRzshwIJXI8jTwttyoxkG9aPf7dSws4/Zc8r/ 8RuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=+L5iRYmZdYjIECIcXNFLJj4hBT/g4HKkiw3kOQFReC8=; fh=HfXWoIhgCc+vt39DMIJv/Ec0aAKnw0eFA8QxuIQTUoQ=; b=NbAC15pf2mkdqiSbfITSK7a+iC0HGvErTsrzTNQmHyympMZOwh7oV8Dz9kXMojWoTO CSJtXD2XyNou0NJFuDlOSRkWqKugIRh7QkjP9wFYG709WOvvU8/bnjBSKYSwyBQSOCnD 3ZEVDehYhG0mW5akBsOyxPTvm5b16zVz0t3I+fvFNKSkVd6Bhuhj5XsHt9WQCblmrD94 5YCj9BlI4EgQZf/hvQpqMwb9LQahiOtSrB0CXFRNdrtEHzLIrbyxySt7OdA2VPw8qw00 B60kuA5zbpUDvoKo+m7bmIX7vqnc6hekeGn6YWCwnc+ZwaVgbI6RsQsUUIT2lKtCPCkq ntYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QPjXR9qY; 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-68813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g11-20020a056402180b00b00563d3d43d60si50007edy.627.2024.02.16.07.21.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:21:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QPjXR9qY; 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-68813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68813-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A1F131F2273F for ; Fri, 16 Feb 2024 15:21:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3878F136662; Fri, 16 Feb 2024 15:17:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QPjXR9qY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="qqxk4Fza" 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 ABA341353E5; Fri, 16 Feb 2024 15:17:06 +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=1708096628; cv=none; b=ZumiEtOzuE9YsfqQmJpXpBnxxKVbnJFMVzGYzYo3VAcvf2zJbqVrg3lp0w06ts4EamvXIRS8hkxQ9WHyeGkuTpp/zAcwCLu7WH1VAxGNcq5/fONseoY/TcxPqxDY8U3Yc0AfdcCxC6KFV/YaPUhW1yknwD3HnagW/AbRtTPyN0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708096628; c=relaxed/simple; bh=emJDLlnHKVanNbQ6vdtT7ASier8FBGto9Qbr3l7og2c=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=sW5RmQ+bUCgsJHrMRxI/vcnPi5qzQGQpMFZ45v46033ueVM+1pcOpZ/7XExNI8Q34xGdkP+c9P3F7HajVEJa/WEAv470aIrYmn4SBzivJOn/L3vfKSvgdvUgo9LQaNZk4CS5+ovseNyO2J3cSTkLhDzplo45MHC1aEcRq4reiNo= 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=QPjXR9qY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=qqxk4Fza; 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 Date: Fri, 16 Feb 2024 15:17:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708096625; 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: in-reply-to:in-reply-to:references:references; bh=+L5iRYmZdYjIECIcXNFLJj4hBT/g4HKkiw3kOQFReC8=; b=QPjXR9qYJa6yr+f3ezd0sIWhCZy96JHvy+JuvRg2clGJJWzOfq28WfhdB8TRyXim7pAZ/i BRnjOm79NlJHpnOF6ep0QA1Xw+DjVBwmGRpXtMe3liPrKrdwfqlD3K+TluUqlEbHIHnYML I++rukq8+DEhlJaUVaSJqCPtljtVCe4+sof5Vu6mjwEErUzWc8KXDB3rK9HHk6MWjz0LQS yq6+lf0l2obLCC0hbIjePtbvKN/rhDxwQ+gfS9dgc9cbJp0LwoMFH2tAQZQb4Go3GAwWqP cGgrwWknd+iHi4+hjVOt813Ie6w2pEP2Lx8Nf8zhKRsbtk3wMbzJvu5EXr8LZQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708096625; 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: in-reply-to:in-reply-to:references:references; bh=+L5iRYmZdYjIECIcXNFLJj4hBT/g4HKkiw3kOQFReC8=; b=qqxk4Fza/6tZ/UXObGxnqgXVD1Kpu6leRziXXEQf+S+u6SBNvc91iTaqFEJNnOfwr0N+pO pwnuo2LyL6YnMkCg== 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/acpi: Dont invoke topology_register_apic() for XEN PV Cc: Thomas Gleixner , Michael Kelley , Sohil Mehta , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240213210251.885489468@linutronix.de> References: <20240213210251.885489468@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170809662457.398.4835651325448978814.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/apic branch of tip: Commit-ID: cab8e164a49c0ee5c9acb7edec33d76422d831bf Gitweb: https://git.kernel.org/tip/cab8e164a49c0ee5c9acb7edec33d76422d831bf Author: Thomas Gleixner AuthorDate: Tue, 13 Feb 2024 22:05:43 +01:00 Committer: Thomas Gleixner CommitterDate: Thu, 15 Feb 2024 22:07:42 +01:00 x86/acpi: Dont invoke topology_register_apic() for XEN PV The MADT table for XEN/PV dom0 is not really useful and registering the APICs is momentarily a pointless exercise because XENPV does not use an APIC at all. It overrides the x86_init.mpparse.parse_smp_config() callback, resets num_processors and counts how many of them are provided by the hypervisor. This is in the way of cleaning up the APIC registration. Prevent MADT registration for XEN/PV temporarily until the rework is completed and XEN/PV can use the MADT again. Signed-off-by: Thomas Gleixner Tested-by: Michael Kelley Tested-by: Sohil Mehta Link: https://lore.kernel.org/r/20240213210251.885489468@linutronix.de --- arch/x86/kernel/acpi/boot.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 42799d5..df741fb 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -23,6 +23,8 @@ #include #include +#include + #include #include #include @@ -166,7 +168,8 @@ static int __init acpi_parse_madt(struct acpi_table_header *table) static __init void acpi_register_lapic(u32 apic_id, u32 acpi_id, bool present) { - topology_register_apic(apic_id, acpi_id, present); + if (!xen_pv_domain()) + topology_register_apic(apic_id, acpi_id, present); } static bool __init acpi_is_processor_usable(u32 lapic_flags) @@ -1087,7 +1090,8 @@ static int __init early_acpi_parse_madt_lapic_addr_ovr(void) return count; } - register_lapic_address(acpi_lapic_addr); + if (!xen_pv_domain()) + register_lapic_address(acpi_lapic_addr); return count; }