From patchwork Fri Feb 16 15:17:19 2024 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: 202186 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp588746dyb; Fri, 16 Feb 2024 07:26:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU+8ZMtgLUNv0j7BVfPle6TpZO+KAiLuODt5YtNB6Cl3bBrS00ad1BS+03tvOaGHzh/I2D50MRH1BS3yNID3SGE/oW4ig== X-Google-Smtp-Source: AGHT+IHEaxUvJ8WrSME3q01uxvczMSKaCScI9m9HqRRagcVudg/xlG89eGPWV9HeDkqc8tYrW780 X-Received: by 2002:a17:90a:7288:b0:299:3f5d:b5e0 with SMTP id e8-20020a17090a728800b002993f5db5e0mr986965pjg.49.1708097206996; Fri, 16 Feb 2024 07:26:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708097206; cv=pass; d=google.com; s=arc-20160816; b=VwROmt5LtuGZmZhVJKA6zO05ec2gnj+5GikCSVa+/GW/21Q/30gwD7fVDO6RxlB1pO x5w1rckEsOD2p4AluWcqd03X1/2IzQ7NrnCNGIpHUBLUorL6jQ+yPd9s4Cs6D4LOI34+ YNkBP0UScOYOqUTA2y7oXIXxo9GfHDkbCT0yQudApbr2FlR8BMvfmFlwqSCfvqF+73+C 1rOhF+HNYGVajAS1P0KiJRZRqOpOnTozCkwJ9NIuX2GzdbIM2gWQbhnDIloZtaJ530fH 73/whttI28+4lrBUqhzaRAaI4FTMyTVbNumaVs9VUo4tbgQMOwXUq2MhGzq4WGY3OXsM xUpQ== 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=NFDZOk3CF+plwPGV6FSuesG0u9SxV0ui7OgL/FdRHIE=; fh=HfXWoIhgCc+vt39DMIJv/Ec0aAKnw0eFA8QxuIQTUoQ=; b=0FYe/XwIHAdQmP9qFXN8vx4p5xX6VunKsfgT/T/Yz+GSDV9F2D/CCYrNzSg4qTBUP9 K1/xFHcFuh9DaH2Vk8GM88axJs+UKU71iD5mNpxn4FftC9v7JhMQLsO3B9wwMWiP2e9z QucIDYQEdVkjPy31bo0X1JRcccZ9z123n3ydaHGXWhDqrobAQ2Iyk10Nqm/5Qw+TY2dB t2c2b27P4MPfpHRfQjigPXs57O6Manj+nGvupG4ITL2/Zr8D4rdtI8QAIGvj14Yyd1nR e3zJTlnFBFmpzmpCDnQMvI+23x9M3qBIadlJs0TJ+1SOaBqMpIkJxncPJRAeRnG8hs8k W6xQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4bwb4LRM; 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-68833-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68833-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cq24-20020a17090af99800b00299489ae52bsi118941pjb.12.2024.02.16.07.26.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:26:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68833-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4bwb4LRM; 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-68833-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68833-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A373828593D for ; Fri, 16 Feb 2024 15:25:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D68414AD3E; Fri, 16 Feb 2024 15:17:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4bwb4LRM"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zAisVLXa" 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 4DFFB1487E9; Fri, 16 Feb 2024 15:17:21 +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=1708096643; cv=none; b=Nht2yxmiEZeeABdwChUvEWqlNZVuEZMI8T7Jjq8ggA7SK3GU6mwKecJ7UDPQDx/GVeZ2JFunRj5KYBon1OXXOX+Ica71l2j1XNmqwE0N1jwdJASb5CVE5bCsVT+Pwdwk+3wx93RTbSqZKRUAqANvnZusq59Vhf7jFcrQMjx42gs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708096643; c=relaxed/simple; bh=Ka7l+9b/kcJ8yeluk86OI7o6/TI3/gV9KGz2qXFF7Ks=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Zl7O7XdYlhC3vWTUF4mY7nG0FzVdlEpHpOxPu105493rgnFNb+fzLMuxAHDSMg/AulY3M2zs8kXGnHDEgVHP6Dx/CaJfnVV1wDp6GvfS1HYctrzMJXWdOc1GQN9FdgNgkT8jjGetfPiEP2ZdZSEZCTawoUa5VKBMIo7uTcDRqsw= 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=4bwb4LRM; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zAisVLXa; 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:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708096639; 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=NFDZOk3CF+plwPGV6FSuesG0u9SxV0ui7OgL/FdRHIE=; b=4bwb4LRMdAZm18DRa5SZCPKW1pCuvsmXW5j6CX8Tza1GDQIKCM3ikEceYlqRWx3fbUj1Vq rz7WxnJqpwRigaMjAK82XGr19S5GN1z+e2K5LVIyTTcRG9EP0JW147Lzli54sOAAmKu1QX scgMbU23ax9gd2HEWqGiPcrwXQ9VRFaeEwWOW6arqPlBmtKCzGniy3SSvpujq3trPQ1Vux 1HOi3fCCLPrEwc+ohdeJ0nGefZUl8OgkEw6TsBsHx/BBmMjJPFDHjbYRDoDUSfFUQ6m3pX IO8MoD4pcAzK0QzMtys6YC/5RITA4OPPIGSKXEEL5m+axeefCXEYkrPlaT0n/w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708096639; 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=NFDZOk3CF+plwPGV6FSuesG0u9SxV0ui7OgL/FdRHIE=; b=zAisVLXa+8ujMTnDqzU2Yh0ZK0NxBPULGbaIIv5aub/RJHS6uEXVGFMNCgF/DUIB3R4HO0 Ly4wQBhtK1tQyqDA== 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/mpparse: Provide separate early/late callbacks Cc: Thomas Gleixner , Michael Kelley , Sohil Mehta , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240212154639.370491894@linutronix.de> References: <20240212154639.370491894@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170809663903.398.7540995320450780112.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790819652617862475 X-GMAIL-MSGID: 1791069737121919926 The following commit has been merged into the x86/apic branch of tip: Commit-ID: fc60fd009c830a21c7699c6e36ab9ec51b9dd939 Gitweb: https://git.kernel.org/tip/fc60fd009c830a21c7699c6e36ab9ec51b9dd939 Author: Thomas Gleixner AuthorDate: Tue, 13 Feb 2024 22:05:03 +01:00 Committer: Thomas Gleixner CommitterDate: Thu, 15 Feb 2024 22:07:40 +01:00 x86/mpparse: Provide separate early/late callbacks The early argument of x86_init::mpparse::get_smp_config() is more than confusing. Provide two callbacks, one for each purpose. Signed-off-by: Thomas Gleixner Tested-by: Michael Kelley Tested-by: Sohil Mehta Link: https://lore.kernel.org/r/20240212154639.370491894@linutronix.de --- arch/x86/include/asm/x86_init.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h index 4ae7764..375825f 100644 --- a/arch/x86/include/asm/x86_init.h +++ b/arch/x86/include/asm/x86_init.h @@ -17,11 +17,15 @@ struct irq_domain; * @setup_ioapic_ids: platform specific ioapic id override * @find_mptable: Find MPTABLE early to reserve the memory region * @get_smp_config: get the smp configuration + * @early_parse_smp_cfg: Parse the SMP configuration data early before initmem_init() + * @parse_smp_cfg: Parse the SMP configuration data */ struct x86_init_mpparse { void (*setup_ioapic_ids)(void); void (*find_mptable)(void); void (*get_smp_config)(unsigned int early); + void (*early_parse_smp_cfg)(void); + void (*parse_smp_cfg)(void); }; /**