Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4116944imu; Sat, 19 Jan 2019 02:44:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Y2eqiPUBB/NccZ8GgDD4m1Fwif6JIi3AU5EG4xV6OUZbDaqecC7V4/Xgpp0ACnD0z6ZZp X-Received: by 2002:a63:b30f:: with SMTP id i15mr21345110pgf.240.1547894691553; Sat, 19 Jan 2019 02:44:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547894691; cv=none; d=google.com; s=arc-20160816; b=PPW7E9aMIZbBM0PstigRxASaUC0Ixi2NhWL9TLNgzYdKbudHVDA5mpOdhXijjgTefX RjKwQ7A7Rd8lygMYf9MSAY287ZMll852x0KpYAKuZC3n88D8YL2rhXjGznd/Otwt51D+ 2CC6NwwVBk3isYrzkuUZsAHYbHM6if8MyoZOgVqFMFvGlV9KO/LPrpfhLZp0/w2Q6/B8 mZLXyteGrrDB026XGBa+1gaBPADPazlL0DGaXJ53KZpWBd0YKQGocUZXHVtCogKH65JS W96hbgNMAiBF99GoiUMqkgG2x9tm3JWwaBsxJpmO5p9Y5JFJ+tYp6Sz2Xsy48giwqKVo TOzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UEd4cxki9+m4DdvXxjUhMu6h0iHxu0fTOzTyJl5I/AI=; b=l/P7TSHgspw0XDd8hvR9HyegWFDdBQxzOarU/yuIyI1KyHDfLiR3OgHubjaCInRhay B345wgmGMJonpu+RgXh+rL0W4V+XOxt7Hpsplrad6k4Q2Rb5sNsKZ+yQFnxMEvhzFSly hgjLQfmUGhP4aVK+u9Xz6CgdqdQFKvkAsBmYeC0ItwWhtQemC39EIx9jnL2tlmrJMMNt f7n/5iW6fG2yDYwcwPRGvg+JyoHvCwAWsyd8Du7t6R0AxiPvEEF+TCfyhMcRGQ/5DnFd NkPUQrpd3J7AgzlNNwEM5ueZ8ImT7vKkwnz9oEdUQj6JiV61/a3YM776dAJLX4x84bZe BccQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=PSy4ti8V; 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 p3si6670517plk.424.2019.01.19.02.44.33; Sat, 19 Jan 2019 02:44:51 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=PSy4ti8V; 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 S1727870AbfASKmg (ORCPT + 99 others); Sat, 19 Jan 2019 05:42:36 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:34342 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726306AbfASKmf (ORCPT ); Sat, 19 Jan 2019 05:42:35 -0500 Received: by mail-wm1-f67.google.com with SMTP id y185so2689572wmd.1 for ; Sat, 19 Jan 2019 02:42:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UEd4cxki9+m4DdvXxjUhMu6h0iHxu0fTOzTyJl5I/AI=; b=PSy4ti8VZpNjpHRPHzkf1+JxjlEBG3aYkYrU3Z9ZH8m9k+qlqh/4URa1Q/hk3PhpNB 0wrofvdIUoMzxIKtJkjo/tXPl89IR6k9KwsG9OEeqq0wUlEuGqHlrbONbjpp4dBvJ5Ps 8Fad5rKc4/sEro9GhouyzXMRQ1TkGsPmnlr3Mgbs5gfFYAkreTJRUwZo2H7QXvWd6Z68 oWMUPmDOH1a/eMKF2sLonGxdHCLBYM4lylzxgtP8FeeZjE7j7Z26T+DbonslB4iS98xR FXm/dJnImfooepGSmT1rfZeFnRV+UJpJTj1K73aQmRrpnpXrPXnioo6ZWo2M+nsstmvc TBrA== 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:cc; bh=UEd4cxki9+m4DdvXxjUhMu6h0iHxu0fTOzTyJl5I/AI=; b=R9A3SQlb5WMrcRiYTlTp8BlAgnGL+l1GxokrdFkrFlri0rwXX1AAFduzC4cvYLchlX KrCaGQhZ7wD62WhAjq3C1nuSVTXf6YG3bv0700nDsaci67Aph9lBnGhnM+zfePERtx7s MIoT4B/XPYgG/p9fqo6y+h+IytpclB3em2zRO4vn38TZpatXlrPKb0bq28BBvr9J8RNA dmyul4MIXvSAQzVvYYV+8Y5aHvEQvJ2RMBtAL4cYpriE93jJuSQ7kW+MrxQB9RkHHnB9 zze2FxBOAPgh6gvEDnsDUiQovNU9pf6FVYha7DOeu+QrE6cOywN4c0KbCz/ISNXzG+WQ WPgQ== X-Gm-Message-State: AJcUukcM05iGz2tSP5l6kMq+uDrsxUcprXzpwu8afK0vKDn4tevesmHV coxKac5j4DmueQwvssXpMOXFahE1rz8Iqc8Jpoj4Ww== X-Received: by 2002:a1c:f509:: with SMTP id t9mr19506057wmh.76.1547894553425; Sat, 19 Jan 2019 02:42:33 -0800 (PST) MIME-Version: 1.0 References: <20190107161047.10516-1-anup@brainfault.org> <20190107161047.10516-3-anup@brainfault.org> <20190115134410.GC13216@infradead.org> In-Reply-To: <20190115134410.GC13216@infradead.org> From: Anup Patel Date: Sat, 19 Jan 2019 16:12:22 +0530 Message-ID: Subject: Re: [PATCH 2/5] RISC-V: Setup init_mm before parse_early_param() To: Christoph Hellwig Cc: Palmer Dabbelt , Albert Ou , Anup Patel , "linux-kernel@vger.kernel.org List" , Atish Patra , Paul Walmsley , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 15, 2019 at 7:14 PM Christoph Hellwig wrote: > > On Mon, Jan 07, 2019 at 09:40:44PM +0530, Anup Patel wrote: > > From: Anup Patel > > > > We should setup init_mm before doing parse_early_param() > > in setup_arch() to be consistent with setup_arch() of > > other architectures such as x86, ARM, and ARM64. > > > > Signed-off-by: Anup Patel > > Is there any good inherent reason why the order matters? Not that I > really care either way.. The parse_early_param() calls param callbacks in variety of subsystems including MM. Doing init_mm setup before parse_early_param() ensures that initial MM state is available when MM param callbacks are called. My intention was mainly to make boot-up flow similar to x86, ARM and ARM64 so that it is easy to add features already present in these arch ports. Regards, Anup