Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp175934rdh; Tue, 13 Feb 2024 13:11:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXWQPoTG3SO/LRykXoHjptU6OrbzAQLQ9eYeiN9lG3ebY77Wz0Q2v9S21iavq5AOw11w6ozMD7r96Kf6fP4A5L7gBbal+05i4TVu0mR9Q== X-Google-Smtp-Source: AGHT+IFiOTyK6xMjiKfubQ0pPHmGoooiwtaJrDvmawfpb7b6zl4RqsLyQp3wk/j5prolatu5XJJl X-Received: by 2002:a17:907:1189:b0:a3d:f94:ebe2 with SMTP id uz9-20020a170907118900b00a3d0f94ebe2mr347675ejb.76.1707858664798; Tue, 13 Feb 2024 13:11:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707858664; cv=pass; d=google.com; s=arc-20160816; b=CudbsaVcwcWinSyY8MackoyNypj546oafrx41s1bGVXPH9S2rnKuROz+CQdcn248ga ZGO8LTVPSPHQNLUqpMRcw0+h1mR8EhiPogvl0y9eD/ViEdcTm+Z0wHstYowPTWUC7ON1 4sXYUjgAdfs++ntnnCO8gHRXtjiAL+74RvgYk9h2ULYYeO2kJatuja5Qf27y8oWZ9ewu vyytE/SM09vFfWEPtRw8Oghy13qUC6pEUGjpy65D6HavGTvPxnh5yMv+eU8UR5Ovr7GJ n0xwr/gU0EG10nUJVb/E04lPFAHJ1z6sBFkI9x93pnwA0NmApk3laquasZycO6llf0pY b9hQ== 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=EmjPrhHZ4Xfv5u1ypAsr8L4jtuqWqQDdEKzEe5yTv6Q=; b=xfvwNx+XEv/Zb/4Fu6Y9ZBi9tYACKOGO5fZi0/yfZMVzxsGYiwBiBrz3TznxzJ6ugw XlzL9/1xGXCdkQSWJhwheBTlp4v4uxI8BcmxGb1SEaYECrsx4qUr629dkaTg3CoH3SRP U5mo8R1PBkoWp6I6KZASe01Y84yoDfN6fe+JkGE0kKs/IChDn08hM5WADAuGiOmP8J1x 4+6hdc0N1bh6iN0AOJSzY9pxpLZNho//wfxkUQ4gfO8aRWc7wE8HtU7HXp9OlMsw8KEf oWeAwbMLH3yPwm4/TLVg57t5gsAy4EYUXlXqnTuxTQesPdMlkHevUJXoKmzu9BDnhNCQ uxow==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCUIQuxalLOxGxEcSULE9yMXx49PjTbn2GM1wxMBu4XZjtLrhwiiBpMg6dzzbCEHdwYFjciVQcrVr2wp3ohMob5I/9ooWcvvVlHWWAXpkw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dp14-20020a170906c14e00b00a3cc87b0500si1731379ejc.1004.2024.02.13.13.11.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:11:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64270-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=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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64270-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 738581F28454 for ; Tue, 13 Feb 2024 21:11:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83975626B4; Tue, 13 Feb 2024 21:05:07 +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 ; 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 To: LKML Cc: x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Sohil Mehta , K Prateek Nayak , Kan Liang , Zhang Rui , "Paul E. McKenney" , Feng Tang , Andy Shevchenko , Michael Kelley , "Peter Zijlstra (Intel)" , Andy Shevchenko , Wei Liu 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Tue, 13 Feb 2024 22:05:03 +0100 (CET) From: Thomas Gleixner 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 --- 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); }; /**