Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp74784pxb; Tue, 2 Mar 2021 19:43:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSdNmuEFPpWgtKRW8UtBGTZ3jmGEoCO/XYCth/u80haKqiz4UzLr2dH9Ra1Z+9Lpt3Dr1R X-Received: by 2002:a17:906:c08f:: with SMTP id f15mr6536576ejz.318.1614743000355; Tue, 02 Mar 2021 19:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614743000; cv=none; d=google.com; s=arc-20160816; b=oyY7xMMNPsfDgiKF9yMdopgafazE+NrNK8zGCQgONr36jSkj38bDr0Rve8si5N5SmY Q3+22O/KYObwjvt7rjFZYowyTzsmm3KhujRqX3fdZWkpbFML/9uNz62IQUQCh69UGYNs 4dWe4/KXyC1FDglulCwpFEdfe7PuN8QGdcu4Y88q/rvmuREbuUI/PwvBN0OYO/FdMxDA Z+7IDTN8bF8FGCCMmyzF0ORGzPWcyVgwfrbNkNclKBGPesCeqLB/dbP6P32g8pi3IMUW 6/IKRiY1mCcYbzCcXM3QDOHiPYCfgyNyuMFXYKZ17iXMCDvNGix4NDwOX9iyko8V4ygH heUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3w1eF9LHp7QcFUvtQPp8CkuujhoRhLpfb9f+p7H8+lI=; b=odrrcTR55Hf7rwre6UFDC1WLk5QZZ/v5OzU5yAL8FijDJmowYwvki5HwvO23034YEJ SzjpEQZEh3jVEHilFmPjmaOD/AjjOvSXhQN9Obb3Au3xx4yVaneQk1KDsVcznnpKxMjY S4dKvd4pai7CPvV+GdLGNA6x0CM70ICzWkL3ryLr2kMTQ59TeLhgVAZ4P5y0nwlH3SA3 X3MicGM2TRyMSzwVrn98ltxQqFOm9tAsiM0GTxX9PWrtUPdAlh7QkbqLHkFw9tgb0E5A mrYJy22Sz8hc/Qraxe8EqiLP5xRkoniuFuHGY8sAiPDea44lU7gQEbVTn0PNi5zl+xpu 8cJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q2OqajdE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p20si14279323edu.558.2021.03.02.19.42.58; Tue, 02 Mar 2021 19:43:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q2OqajdE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233042AbhCAOVD (ORCPT + 99 others); Mon, 1 Mar 2021 09:21:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:51942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233004AbhCAOU2 (ORCPT ); Mon, 1 Mar 2021 09:20:28 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5D51164DF1; Mon, 1 Mar 2021 14:19:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614608387; bh=3w1eF9LHp7QcFUvtQPp8CkuujhoRhLpfb9f+p7H8+lI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=q2OqajdEdZNZKrpBvBcGOV1M4BqfNHN8CMoFQMi5JPUXoTuk2A26SGymG5mg8LEdX uDFBSbhz1lrr/IN+tHhfzoaPdR2VsS4dV9d8v3wTt3v4As4dWR0E89AiKLine5FEEJ dJmu9ZXnagrODfCE5MJLvjY9hBbadr8vj/Gb85KvqOtm/6GtkHzHAbMegwFDZ3ylJg eRcAM3GRKBH6QyemIVPv34SmyyO8/zKsLMOdz1n/cMSe/psDtEEvuZRXVGU9XrIJP4 HVPfojUiZZDiB0i2RnkUSCEciCR+pQ/imdw+e9fsONZCG5RgdVaMyZrvGz+7Lzh1ZB sock6eqMjz1bw== Received: by mail-ed1-f42.google.com with SMTP id f6so5167037edd.12; Mon, 01 Mar 2021 06:19:47 -0800 (PST) X-Gm-Message-State: AOAM533/ipT+pxwnpPNJ0Q426wsF0ztsYit9GBTjoeYSMmzjRrJ3o0vA sETFOhKL6rAPqRK4VN9TtWIluvU7KawrtOT3Ag== X-Received: by 2002:a05:6402:2d0:: with SMTP id b16mr16879109edx.194.1614608386039; Mon, 01 Mar 2021 06:19:46 -0800 (PST) MIME-Version: 1.0 References: <20210225125921.13147-1-will@kernel.org> In-Reply-To: <20210225125921.13147-1-will@kernel.org> From: Rob Herring Date: Mon, 1 Mar 2021 08:19:32 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] Fix CMDLINE_EXTEND handling for FDT "bootargs" To: Will Deacon Cc: "linux-kernel@vger.kernel.org" , Max Uvarov , Ard Biesheuvel , Marc Zyngier , Doug Anderson , Tyler Hicks , Frank Rowand , Arnd Bergmann , Palmer Dabbelt , Greg Kroah-Hartman , Catalin Marinas , Android Kernel Team , linux-arm-kernel , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 25, 2021 at 6:59 AM Will Deacon wrote: > > Hi folks, > > We recently [1] enabled support for CMDLINE_EXTEND on arm64, however > when I started looking at replacing Android's out-of-tree implementation [2] Did anyone go read the common, reworked version of all this I referenced that supports prepend and append. Here it is again[1]. Maybe I should have been more assertive there and said 'extend' is ambiguous. > with the upstream version, I noticed that the two behave significantly > differently: Android follows the Kconfig help text of appending the > bootloader arguments to the kernel command line, whereas upstream appends > the kernel command line to the bootloader arguments. That is, except for > the EFI stub, which follows the documented behaviour. > > I think the documented behaviour is more useful, so this patch series > reworks the FDT code to follow that and updates the very recently merged > arm64 idreg early command-line parsing as well. I can just as easily argue that the kernel having the last say makes sense. Regardless, I'm pretty sure there's someone out there relying on current behavior. What is the impact of this change to other arches? Rob [1] https://lore.kernel.org/lkml/20190319232448.45964-2-danielwa@cisco.com/