Message ID | 20240212154639.370491894@linutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-64270-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp810846dyb; Tue, 13 Feb 2024 13:11:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXz5xPKi6FQTrGvDW+fchWdYXAxRCGBAqgr4NK3bABFI3FpKjcxRjnyONmXsO17xY/ZOv8VLW7UhosbooIZLDsMjg9cSg== X-Google-Smtp-Source: AGHT+IEAObYzp5gno6HFge5pMUkImgaUv9wK6HyHpKfeze6pekbu/jrV5/F+t0TYgRDBgFSLLAcG X-Received: by 2002:a17:902:ea03:b0:1d9:c367:203e with SMTP id s3-20020a170902ea0300b001d9c367203emr829407plg.5.1707858708477; Tue, 13 Feb 2024 13:11:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707858708; cv=pass; d=google.com; s=arc-20160816; b=HsFm/RkAA9HWY0vE2fLhNRYi1pCw6tD856TY7QSG4KiL/YYjLxzMvL8+63gbQ/33hI gRcN/Eurk1jsE8oUgJepG42QlSjWSx4Iz8eHFmATLP+YUSjX7eBxt1AGB9d3TtrJdXz1 6lW4umowiDAqtGNhYapRypqEXjr7JswhvJz+lZ6VdCoJpkdFHLdSrk6OubCBtJfc3HYz EYN7t8E+beXLQTCiWR80cTIKPBurTJkKbIgvUNZWxSw4IGrmv29qtVfYZUfV3vsfgkv3 /tfStIgR3ykdZHZXHrkgl7AGj53/oc7wUXrDwuCTkGHL5S6uEkkYcHI9rFYU1HgTAuML TiwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:subject:cc:to:from:dkim-signature :dkim-signature:message-id; bh=leAgJYGrQx2PkdvwA0CP55/0I6UB8M3kIZtPOLsqfyA=; fh=LjV1biNEQrnzFF9zgy9dJWfuwdjQjBqGiSlcWeTG2no=; b=YKl7lPqE17BT1MvRWB8EDAuXYUspeWwr0J8iVeglANUPljKCSf5oJTIdQ7Q4e5XwmL WbLruBfaPgSqltyiszxzgOb2Bk4P0PA4A/sElbbsmcXNU0ibj2uGYjmyPrAD426mO9p9 /h+MdcntfyxcbuOecU5DXWHuUm3Q9SiG0fSOJYWhWj+8+IORpmlsddtk237tNkOkkVVC 7zbFwkpQ8+l/JwCIzHpdghEbJU7qVOLYFvFWNzAPyjWeLoewOU0SHYc/07ZZGWrJpkc0 VWTOTxBUpSJ9apZPCPhzcsi1NDdKf146IeJF7RQbulLYOnSRkkRO79YWNE+1sykG0Ep7 9JcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Jk0AdUFr; 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-64270-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64270-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCWRvf/R+Vw6SK5se9TwZtqQXAklF36n6DTDcZNSSJf9wylQcIWwmvPIOhtd/tbrQbwEJwPLIArDwORw65AxIttMPIAdgA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d15-20020a170902ef0f00b001db40a7519dsi1241944plx.590.2024.02.13.13.11.48 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:11:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64270-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=Jk0AdUFr; 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-64270-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64270-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 7096128D202 for <ouuuleilei@gmail.com>; Tue, 13 Feb 2024 21:11:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 400346A8BF; Tue, 13 Feb 2024 21:05:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Jk0AdUFr"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Gh8GYSqI" 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 4CF926A003 for <linux-kernel@vger.kernel.org>; Tue, 13 Feb 2024 21:05:05 +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=1707858306; cv=none; b=IpmoRrYEbAsYxzmLUoQIKWXphH36xdN4xlzSv6D0SLdX8qF/9AYAfj6Ahr1PE7ecH2269Vqg1B0RqFmFzqf9fwKeDuCJ/O34rj9XR41PWCxiNr3LeNeRyS/kmoY543Y1nVETBl9/ZhAwLk46h+YFo8g1PfJSzL9gIFH1J+1Psls= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707858306; c=relaxed/simple; bh=l8RGkcvzLsk2LCgfDaH9KarHeGep9iiW1glCenrkBZw=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=KUnnyeD/YVeilSYP923FcOXefMD+WDdL1KguYlELr9VTIn4Io+YlX0rL2IS3D2JSW6Wy2OTR38Y0aFR+977dO22LQ5gFi/J+GBAkf1XZnltt4TqsuCAlerTaa6892b6LsPEx87gBjVej0r8RhvW5pdFix4eoZJpvvAse3tKp+8Q= 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=Jk0AdUFr; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Gh8GYSqI; 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 Message-ID: <20240212154639.370491894@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707858303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=leAgJYGrQx2PkdvwA0CP55/0I6UB8M3kIZtPOLsqfyA=; b=Jk0AdUFr4KzsWc64OldGE6xCnQRGQJEokacsRLlY76ngasnU2nl/myQglZRcw+PCx4RAkS DHUHNaVLmGwjJQpUu3Y3q6VdCpIWvaQQRx1HZsckYodBFxnDcGHgzNMqHaiRu+aYOMWwHB ig5QpIr+nvTZcqXPsXp5Eb/AGD8y7rUPcaBNGEhnLM5pWE81l0bQnVA2YB8MRKhAHDbmuY ZxegM2wEG1JdKLSRIQgaCoDHgMs37EDluZmAcIx1ikQ8oBFzwmYtLvMTRSRYCmbK7AYwGk D3l/zO617LJqqM0g7MV+oPRLg6VCQyDe+7MB/Rf15Vs22NfzijvLtKg3Mr99GQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707858303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=leAgJYGrQx2PkdvwA0CP55/0I6UB8M3kIZtPOLsqfyA=; b=Gh8GYSqIiu4iNKfYLbfzNlB6SQtIYnQ/uEK7LgeksHGlDxVDNKzGsuXe83CYAZkD6F+voy z7bWBnOezW3PvXCA== From: Thomas Gleixner <tglx@linutronix.de> To: LKML <linux-kernel@vger.kernel.org> Cc: x86@kernel.org, Tom Lendacky <thomas.lendacky@amd.com>, Andrew Cooper <andrew.cooper3@citrix.com>, Arjan van de Ven <arjan@linux.intel.com>, Huang Rui <ray.huang@amd.com>, Juergen Gross <jgross@suse.com>, Dimitri Sivanich <dimitri.sivanich@hpe.com>, Sohil Mehta <sohil.mehta@intel.com>, K Prateek Nayak <kprateek.nayak@amd.com>, Kan Liang <kan.liang@linux.intel.com>, Zhang Rui <rui.zhang@intel.com>, "Paul E. McKenney" <paulmck@kernel.org>, Feng Tang <feng.tang@intel.com>, Andy Shevchenko <andy@infradead.org>, Michael Kelley <mhklinux@outlook.com>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, Andy Shevchenko <andy.shevchenko@gmail.com>, Wei Liu <wei.liu@kernel.org> Subject: [patch V3 09/22] x86/mpparse: Provide separate early/late callbacks References: <20240212154529.402604963@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Tue, 13 Feb 2024 22:05:03 +0100 (CET) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790819652617862475 X-GMAIL-MSGID: 1790819652617862475 |
Series |
x86/topology: More cleanups and preparatory work
|
|
Commit Message
Thomas Gleixner
Feb. 13, 2024, 9:05 p.m. UTC
From: Thomas Gleixner <tglx@linutronix.de> 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 <tglx@linutronix.de> --- arch/x86/include/asm/x86_init.h | 4 ++++ 1 file changed, 4 insertions(+) ---
--- 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); }; /**