Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5151719ybl; Tue, 14 Jan 2020 04:26:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwhI34ZhtByn9lcOG0lBMVYfmFHnp5CnS5+PTsUItU8ouR6YwRHmbquG0gLdDZwVQQllsZf X-Received: by 2002:a05:6830:4d5:: with SMTP id s21mr16023180otd.294.1579004803736; Tue, 14 Jan 2020 04:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579004803; cv=none; d=google.com; s=arc-20160816; b=i/KNUi5Q1OxEHzgbBmi2DI0Y2jOp4rg9ks+n+8ELyA2xt4faFh1m4oR144tnkV1tjW Ts/tyK6sEkf5kazCQ3oMssJlGaJ2hwqVioJxWPZRypnyz/1hVRaEatT56TCE0LShX9oQ n647CEy0J/ySqsK8nz/px+goLSbTAYXe6hQ9HpCRqc6tqO+PgLqwbGNXGo8vdcoeruCB 8xD2DXhnsAc+ctKyu4f3CN/It1D9dxlvjdHC7HLFM7BuGhIOybGalYjTopi7zhxM35/G HFMknbBAOF1N/XUraeKtj9e3BalnG0lpPZaOhcysLkc4mGEsGAaEBEoNNLmmY3wpYS8/ mGPQ== 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:mime-version :message-id:date:subject:to:from:dkim-signature; bh=5mSoKlTvMJsvy/aWRaeQ2pQkJgO/oDfhepfqApYUWHY=; b=Ob8JPHssIjDGZxaLOi7udGrpFmstKZnn9+6uaS0m36h/X0rkRdu/ykqeG62fOIPPqP VfctiPo8P4CIX9zoc6bkj5qzRp4q+67HnjcmJQJky6Oqeknl24VRUG51FIyINabDOVT/ 3gvu16RSBg2/pb0t7KIRCqeO1/vVGogzg+MY6vxw8gznH3O0wozDWyjYwAFtlrUZpDfJ adoj0rn4erqBWMAlknhhNClTLmiBYbWBKIjHm3QuZluhlvBHJBUzcxCEfHF9D/K3z1VI Q0emVkdiccsiwN2sH3oWUja9EW6qkQGll8jnrliDk8K7hJXXBfSS7Shh/5v2LvglAWPj ogAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=iq1+IOT0; 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 i13si8427760oth.175.2020.01.14.04.26.33; Tue, 14 Jan 2020 04:26:43 -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=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=iq1+IOT0; 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 S1729360AbgANMYZ (ORCPT + 99 others); Tue, 14 Jan 2020 07:24:25 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46238 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729169AbgANMYY (ORCPT ); Tue, 14 Jan 2020 07:24:24 -0500 Received: by mail-wr1-f67.google.com with SMTP id z7so11910672wrl.13 for ; Tue, 14 Jan 2020 04:24:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=5mSoKlTvMJsvy/aWRaeQ2pQkJgO/oDfhepfqApYUWHY=; b=iq1+IOT0TSlUk5bWsYYbaKhXsd8S3JjZHsCYS/tkRtbI4ywzBvUpEU52kcoNqC61SK 9rKM0kn99StxumghVrT/mXaVOEwXX/QBt1h0+vx61hihI+gx7v7+7Kp5TBSOna/LkAam n9ZBC3EUmYB0j8BLWInMbsRO2reicDCaW5jSIZL5JbWoUtaF11kH8dlYiS0dxOMOXuLN k3VbLXBYx/xYvWkt5wjThwQhEvfU+zdbcuYFX2IUtTBl6Ds8YCv3N+Ga/FaPydwTOvk9 4BBCdr+KdYFp390biCT/5eJBKlVtnFDymbAc/0sXEK9tt/j4sz+hA0g4BzHbay7EPRfl wS8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=5mSoKlTvMJsvy/aWRaeQ2pQkJgO/oDfhepfqApYUWHY=; b=SbFsSKFQOItZ8AHnuvCjmE2FksNNBrQz9Y1v8x8jTmoO3BxJVGpWdorir3J+EQDYHi gVMa0PhCm27h10Pr6wxP/kWBOKHZXZ4IC01Er47OJrloJur7eveb625VHIMz9Ns004bS z4sWktM4lJmFrGUeXVtOGKK6D/jwSOUoj3Ztg7AePTcNXD7MVsVa5A0uIEWBzw2BVAig dbFHG2GwXCSGTfkJ6Hyhga9TdSPFBqOYRG/EVrLd1F+OxZudUwQa2/uV2dVzWlP075cc 1FP4ZUQtIe9vMZKBdeGOimdfNyb9aAqZ3oZpf73jba9xDq48KHhD79CQw2cXdc0brELb h+iw== X-Gm-Message-State: APjAAAWvVAs935WUAs26KjrCKgGyzdIsuKhs18OVTXQccOo5T9GNXpCk 1YgGtnHtcGrPTptnZzy1UVWhiTcr/2cl5Q== X-Received: by 2002:a5d:5706:: with SMTP id a6mr12029783wrv.108.1579004662239; Tue, 14 Jan 2020 04:24:22 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id v3sm19257860wru.32.2020.01.14.04.24.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Jan 2020 04:24:21 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH] microblaze: Kernel parameters should be parsed earlier Date: Tue, 14 Jan 2020 13:24:20 +0100 Message-Id: X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/setup.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 = boot_command_line; setup_memory(); - parse_early_param(); console_verbose(); @@ -177,6 +176,8 @@ void __init machine_early_init(const char *cmdline, unsigned int ram, /* Initialize global data */ per_cpu(KM, 0) = 0x1; /* We start in kernel mode */ per_cpu(CURRENT_SAVE, 0) = (unsigned long)current; + + parse_early_param(); } void __init time_init(void) -- 2.24.0