From patchwork Tue Feb 13 21:05:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 200621 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp811141dyb; Tue, 13 Feb 2024 13:12:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWSiGkuGQxw+im7k7PQ3jKV3FL+ZNg2LirU5aMb02YDNTXNH/nDcj+TIL508WsEhpw9FF8wIJ2vIwq9Sjv07F3PgU3u/g== X-Google-Smtp-Source: AGHT+IGKeBIzi/euwGLJmFIN6WClxuSZ3Z2jTeKThfgG4CL9OaK6buadwoYbvKnQUfJqyzbts393 X-Received: by 2002:a05:6a20:d80e:b0:19e:c32f:35d0 with SMTP id iv14-20020a056a20d80e00b0019ec32f35d0mr1022404pzb.3.1707858742553; Tue, 13 Feb 2024 13:12:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707858742; cv=pass; d=google.com; s=arc-20160816; b=NwwfWouKisntxAPxi8+XR7CDFiTmz/eO11KqNM504dPwjpy7MJ1XMirydc77w6QSff i0de9xKc5UT+Ydu4+y1PtkzgMMmcqYEAx/cd5udyC+MqcZ0crKSFTpfuSiFWtc1bwz4/ IOpPGxuB33Iq1w8F1h1F29rjg6aXYeaSrPuA37QOC/D5nsvEjpnMu32RxIu+sl/ChpSz 46lBOjen8CUQzjgrvLp0rqzIM2JpTCQhidtuSMsRoHNkRq6kfwuvoQopJIw48QT+rjcr xPfplYCMCjsZZ0IZKStc56lw7f3CgLfqzUu7xUEyKczwuxuQvTezntrPHNZ3FF7MdX4u qBFA== 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=5tB+MKbxnCRqnNBw/Nhccod2u2EIbbnezB/2Q45uL2I=; fh=klNQxjACqLNiuOlpLvzATb8DGFuW752wX+m+0yMlXAs=; b=R4LjZDYn7zvA45l8cqzQG2jeVhgL1H0fWY5fUaMEITOswMhYlH2xlLyyy6PWD1emmA B1i3f75VXH/lb/Wnx5auoyLECnErIrDRq30g+GsS2c3Xs9Oa540QLYdCEAy4rm1Gova6 5u/S5Ns5r7EuZCqNLqCpIGBoUbfKsn8Qh7KU9Xlp8H2Mu2MxY26bGAhegn7G2lMtIxEs pPNyMJR3squgcGOUkG7t2RRD3TR219jRx/2w0D3v96bGLVxIlwCUDNwTvdGBeIlu62eY 5rJia4O3IdCbo4zRz/N7cRkp307eZqTOzkVEhEwY2DGcX94Aw20acimmWAOJaEt1yepY 7RKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QqelgSXQ; 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-64273-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64273-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCW7moPV7uqgCOXcnMKUAXsqmsZsM96mexfpH32tbpbsmk1bbZOaop2aftRBFhCpfyEP98Tm1Zxl67dTpONzEj+wOLhu4Q== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 75-20020a63014e000000b005ced4fbeb75si2549264pgb.581.2024.02.13.13.12.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:12:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64273-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=QqelgSXQ; 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-64273-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64273-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 1806E28B434 for ; Tue, 13 Feb 2024 21:12:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B0FE74E25; Tue, 13 Feb 2024 21:05:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QqelgSXQ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="whO1ND1o" 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 8640F6BB36 for ; Tue, 13 Feb 2024 21:05:09 +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=1707858311; cv=none; b=tXS5YOP55qdR+HXBo32mZEvrZcSrgOF433FLSO25DNGPctH0SbNB/DWTach7/aC5+y3pa5Gj8dyyuy/JlW1UvwEnDr/OWDwsljdOyWaFkBr75s05w7Vpd7TvpOlh7DkSPMHFDZgHf4csSM7SFQZzyC8/VbcbB0OkkD89CWQwjzM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707858311; c=relaxed/simple; bh=pa7Z7kYv7zP49p6OwxqqzQrdpAyZ2xMo0u3HIZWB638=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=q2kYxa4FRZ5UdivGGOqUTXlraGW1rOzxngcYUZp90OIktonhRZmlgrs+5E9afvpfujJLNKirQ6PDeo2i2RifAvapH9Md3VQzkGGeROV9BYtcrCUOwNYcJNDCiuwmvDKf3rjiR1Y1y8Mz/SXG7NtTX6L3Yscqr+kVlBSVygnuyRw= 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=QqelgSXQ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=whO1ND1o; 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.558085053@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707858308; 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=5tB+MKbxnCRqnNBw/Nhccod2u2EIbbnezB/2Q45uL2I=; b=QqelgSXQA/vyVxf1svhGlpyUsTzNMjr44XPnXQA+HnfYO0LNufq2qtR5MuovU5c/EnKLZv FivuLehewyC+LL40FjLpIPo8l+zzU2zAVKuVKhjCAgxSMekJDvtD2e81CM37/3DqZNC37g 6i2B8zgxxjp6wYVVh81mZOd+N0XNDP0OiSLjVYzZsG8/pmmNqf1+Irsaa2db9MqYfcDbQy g4sHgD1XN8tM+sjsySh6IOF9dqYy0FIPknYUU+h3oe46sSwo/94Ms9E41eTaOPK7xDV/pR ZWI8VJNC+Y9tTCFCFeU/Oai4uC9G3ZlXMsBncovSbLWn3YnuMyYP+C8pawPooA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707858308; 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=5tB+MKbxnCRqnNBw/Nhccod2u2EIbbnezB/2Q45uL2I=; b=whO1ND1oDEscPhVNUptrXFYc7pbRmJhSokJhkrXfaqZspV14/q009+wkMGbqLIh6Qpahun inBXcIARzH1cLTAQ== 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 12/22] x86/platform/ce4100: Prepare for separate mpparse 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 Date: Tue, 13 Feb 2024 22:05:07 +0100 (CET) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790819688912574584 X-GMAIL-MSGID: 1790819688912574584 From: Thomas Gleixner Select x86_dtb_parse_smp_config() as SMP configuration parser in preparation of splitting up the get_smp_config() callback. Signed-off-by: Thomas Gleixner --- arch/x86/platform/ce4100/ce4100.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) --- --- a/arch/x86/platform/ce4100/ce4100.c +++ b/arch/x86/platform/ce4100/ce4100.c @@ -135,12 +135,14 @@ static void sdv_pci_init(void) */ void __init x86_ce4100_early_setup(void) { - x86_init.oem.arch_setup = sdv_arch_setup; - x86_init.resources.probe_roms = x86_init_noop; - x86_init.mpparse.get_smp_config = x86_init_uint_noop; - x86_init.mpparse.find_mptable = x86_init_noop; - x86_init.pci.init = ce4100_pci_init; - x86_init.pci.init_irq = sdv_pci_init; + x86_init.oem.arch_setup = sdv_arch_setup; + x86_init.resources.probe_roms = x86_init_noop; + x86_init.mpparse.find_mptable = x86_init_noop; + x86_init.mpparse.early_parse_smp_cfg = x86_init_noop; + x86_init.mpparse.parse_smp_cfg = x86_dtb_parse_smp_config; + x86_init.mpparse.get_smp_config = x86_init_uint_noop; + x86_init.pci.init = ce4100_pci_init; + x86_init.pci.init_irq = sdv_pci_init; /* * By default, the reboot method is ACPI which is supported by the