Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4878710ybv; Tue, 11 Feb 2020 05:12:50 -0800 (PST) X-Google-Smtp-Source: APXvYqw3k/NnwRYCxjU7ywxMlmyGgXl/GU26xb0Zq/bf8B2RebtcXUJp80bM8Lbji9aXMKD3tUuZ X-Received: by 2002:aca:b703:: with SMTP id h3mr2796129oif.148.1581426769849; Tue, 11 Feb 2020 05:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581426769; cv=none; d=google.com; s=arc-20160816; b=HCo9Ok3SLB/S2i53tUN81CS5yvgZPBqcrv+NjV8Ds3uFOBpzlkeMdogqGlMkScvZ96 /oONKHSN7mbvPr1fxU0D/VU/Y3YM7UtHQrbaNkc3aU4ADZGEPConjZ779JXnBFGayh2+ RmNghafeTBDjM/WNrFaJTj2/ofWTyi9oYSRpqmZg0CjqxNXo5zhkgTc4HRxv+G0RVjEg P9iRoIUPyux7FV6znxQT4HLXcAgreWKvJlJVzgN+CC2ELz9xTo0q1daH1wLbnibj9k8T XTMEqRHs3hhciyN3GnWrtb3XV+EkGqOH7/4K+6b4/pWfO3Nf0pYHw7cfmuOg75X64udf HSeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UA2beqx54fjO5bKZyYU4NwJP5Rv5VfOGPf4QXCsMCsQ=; b=brYPKRy1N96qjKDoYkE7fMnm06af/LzRCvZiieU4bSayKOVRuRS+frcNXPxpmX22vc 3LjOegVqZYq/IxLVb/gUtbKfTo3QtjESaPep5beKeVEydcDRNfl+SVpXKdUxq596d6F8 yHnZC6SkE3iW/rnoyAj/zb0NGp31D5AhXTylyiKVR8D6xPvGeiQITI/fQuUiPozt871u vE/Z5GDZkGInL99CklOyBRnjrmVQeKbatZgoOCkZwZI2oVHl7ylWktcogx0GgtoeJqdf 4RvyxDsIL4gfIzsM3u3fESo3DGYNOyd9j/4rW7g6UdBf6QPBEK8Gr9ZVMTMwGdjtfaQv mmoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=tRlCSEkT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si1710773oik.46.2020.02.11.05.12.34; Tue, 11 Feb 2020 05:12:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=tRlCSEkT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728955AbgBKNL4 (ORCPT + 99 others); Tue, 11 Feb 2020 08:11:56 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54888 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727567AbgBKNL4 (ORCPT ); Tue, 11 Feb 2020 08:11:56 -0500 Received: by mail-wm1-f65.google.com with SMTP id g1so3455848wmh.4 for ; Tue, 11 Feb 2020 05:11:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=UA2beqx54fjO5bKZyYU4NwJP5Rv5VfOGPf4QXCsMCsQ=; b=tRlCSEkTLWVkuZ2x7II5PMHiNXEp+jsbcFS9rtGPRIrvMoJ8CKFXAoQpoirL2AxmHA bTcMlWGPVklAGpDhcozMQad0sbRQDJ57rVrqM0Q6wT5NA7aw31azy0FDSj7uVphSogqH veisg3Z6r7cmHdX0JwUm0aklAnjjsIgsN1Q6zFautoRd2YA4pZirfP3IcRFCJ7hpSzX3 sDGPAIeub0+xHJnIar2p16e34t0PpVYqrIg0kewKChJv9Gesqtzn2Ot0qM4GRp8wXFGb tvI/fXqvjQrRSHDnTQAG0n/TPrFZD0IqBbjm2MOSUL+5PVTjXZClEssqG9RDz0SifaWS +MvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=UA2beqx54fjO5bKZyYU4NwJP5Rv5VfOGPf4QXCsMCsQ=; b=EfJpm5qvY8YpFXIiuKcwvsru/sMSdh7VB5wxyAFlbz8bViSRqGh3cTXW1wDBRVEwdL boF/0BHJomDiuPoRadlXmFJ43qvbBmV9c2b4zMKF+waufveDNIj9RxGc+MydfvNs491m ttBEkjLW3osQtrUSKjkgdgUxZLtumiNIaaDyWL54KSrp7CLbGxvx5pCJXpFatBXBZ1Ek miJJAaWTadvm+9cUAiPR6BfJfIfIW+rIFOOF8kSZiiWK5fKywtsUjIN6Gc9kigqNt/j4 57y7lj5ez37hLZweyxhj/Hbsk4u2Ejz4/km27YvHA4PUn2MNGT4xP/DSPyiSopuEFVbV 4/kw== X-Gm-Message-State: APjAAAVxkjP2NFoVmwyv3NxZhsB3w7QDQtFw8B8Fm4bAvY5lsETTNDjR a5ArS6Xevzr4eZYXwAoDD0faqva1BWpJtGNw6LVGrlDGxx4= X-Received: by 2002:a1c:7919:: with SMTP id l25mr5441871wme.135.1581426713763; Tue, 11 Feb 2020 05:11:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Michal Simek Date: Tue, 11 Feb 2020 14:11:42 +0100 Message-ID: Subject: Re: [PATCH] microblaze: Kernel parameters should be parsed earlier To: LKML , Michal Simek , git Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C3=BAt 14. 1. 2020 v 13:24 odes=C3=ADlatel Michal Simek napsal: > > Kernel command line should be parsed before mmu_init is called to be able > to get for example cma sizes from command line. That's why call > parse_early_param() earlier in machine_early_init(). > > Signed-off-by: Michal Simek > --- > > arch/microblaze/kernel/setup.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setu= p.c > index effed14eee06..34a082b17a01 100644 > --- a/arch/microblaze/kernel/setup.c > +++ b/arch/microblaze/kernel/setup.c > @@ -54,7 +54,6 @@ void __init setup_arch(char **cmdline_p) > *cmdline_p =3D boot_command_line; > > setup_memory(); > - parse_early_param(); > > console_verbose(); > > @@ -177,6 +176,8 @@ void __init machine_early_init(const char *cmdline, u= nsigned int ram, > /* Initialize global data */ > per_cpu(KM, 0) =3D 0x1; /* We start in kernel mode */ > per_cpu(CURRENT_SAVE, 0) =3D (unsigned long)current; > + > + parse_early_param(); > } > > void __init time_init(void) > -- > 2.24.0 > We found that this breaks earlycon support that's why v2 is necessary. M --=20 Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs