Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp641501ybi; Fri, 2 Aug 2019 01:51:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqz31hthBQ2NDPvZBDzKnT3VEI0k3JAoaX0YNLu8123BuqgAuHUVDx+7YJ+y1gYSvA21ZjV6 X-Received: by 2002:a63:181:: with SMTP id 123mr126273262pgb.63.1564735886161; Fri, 02 Aug 2019 01:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564735886; cv=none; d=google.com; s=arc-20160816; b=sw6Ws47mFuG9SeOnH/rpMAPLeOSfYRI+xQGayaQu4pQUglthnweU5TgO47ETzK403x dBk1vIks4rYwRKc7oLDjeTI3Pn6LrTUXz1xQNaujqCHmpxI7eCAC2CIE9L+UrpTXBH3b Hi0xZ83iPyKdNOOGdXLepsDm0CjUGQ1O946m959u6r4WHuPAh0kd93w4kuiNW7PgDUPp t7+9fF5WHRBujgr5gp9SVRE0A+SF+ANOlK85Eha2wXYYEbaQHS1mnyyvlxWN+UufEQuQ 5WtRDq8IU9MDtWBRLSGl4duZ8RAIPjPU61fig2Mi9Iz4mQCSNYUfFIZc0b6Lb5PvYa1H Dngg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=q4ZMvCC9pF+bx4xNGwk+CVz7RuBSg1EdnJ2pgjPeQI8=; b=kusynIVXo5h6+l37eAEuqy1LKvaZi/RiO/7pMTjx9S8smah24lTbyA7Q2Yd0ygF7S+ JliG42C2VE08Uy3zH/SkcOn2SS15u9BxDVM4UMFvfTl8tchR61LtrpNTs5HBFGS/wih2 96A6TCGTgesf8QPEP/vtR5v0sHd0eykjev2lAVCMsxPy1RW6LDKtV5PKSZPmRLffVAMl osy/OSnm2ZZJEPJBAcVbOIpsnNKCXkYP2ZBkMuOOdWlqA5AILG/JVif/Od6MiojAP22b RlQCS73F6eckpdq8vAVN0tZ0yq0Dx89dUKRyJMmqbJCImVLVjIxZSyAwi+4sshIJpU3x 0ecg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=OrECB1Qi; 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 m9si35747483pll.333.2019.08.02.01.51.08; Fri, 02 Aug 2019 01:51:26 -0700 (PDT) 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=@c-s.fr header.s=mail header.b=OrECB1Qi; 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 S1731845AbfHBEjE (ORCPT + 99 others); Fri, 2 Aug 2019 00:39:04 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:43500 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728157AbfHBEjD (ORCPT ); Fri, 2 Aug 2019 00:39:03 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 460DvS6qFmz9vBfl; Fri, 2 Aug 2019 06:39:00 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=OrECB1Qi; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id VmsG6ZbgH4qa; Fri, 2 Aug 2019 06:39:00 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 460DvS5jsZz9vBfh; Fri, 2 Aug 2019 06:39:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1564720740; bh=q4ZMvCC9pF+bx4xNGwk+CVz7RuBSg1EdnJ2pgjPeQI8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=OrECB1QiT0LZ6vxWcdJhfnUKF4ps7URVPjA44CCjsevXP15OMtx9gDt9OxbJa6e0G glOX9ChRVQVt0QfagwdFNriKpYrVMu7PCJBph3/SUepixBj/d75xTeoTwgzqYkDzWu 103672yojHYi0i9DGUq+onvK/LJGTNefcAYtlff8= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A33F28B795; Fri, 2 Aug 2019 06:39:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id rZwoK36GmEMj; Fri, 2 Aug 2019 06:39:01 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 20BA28B74C; Fri, 2 Aug 2019 06:39:01 +0200 (CEST) Subject: Re: [PATCH v2] powerpc: Support CMDLINE_EXTEND To: Chris Packham , "paulus@samba.org" , "mpe@ellerman.id.au" , "benh@kernel.crashing.org" , "malat@debian.org" Cc: "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" References: <20190801021206.26799-1-chris.packham@alliedtelesis.co.nz> <0a47ab71-d968-5aaa-6b5f-bd255d2565dd@c-s.fr> <1564698745.4914.14.camel@alliedtelesis.co.nz> From: Christophe Leroy Message-ID: <51bbac81-e252-ee27-3b9c-d315f69951ad@c-s.fr> Date: Fri, 2 Aug 2019 06:39:00 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1564698745.4914.14.camel@alliedtelesis.co.nz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 02/08/2019 à 00:32, Chris Packham a écrit : > On Thu, 2019-08-01 at 08:14 +0200, Christophe Leroy wrote: >> >> Le 01/08/2019 à 04:12, Chris Packham a écrit : >>> >>> Bring powerpc in line with other architectures that support >>> extending or >>> overriding the bootloader provided command line. >>> >>> The current behaviour is most like CMDLINE_FROM_BOOTLOADER where >>> the >>> bootloader command line is preferred but the kernel config can >>> provide a >>> fallback so CMDLINE_FROM_BOOTLOADER is the default. CMDLINE_EXTEND >>> can >>> be used to append the CMDLINE from the kernel config to the one >>> provided >>> by the bootloader. >>> >>> Signed-off-by: Chris Packham >>> --- >>> While I'm at it does anyone think it's worth getting rid of the >>> default CMDLINE >>> value if CMDLINE_BOOL and maybe CMDLINE_BOOL? Every defconfig in >>> the kernel >>> that sets CMDLINE_BOOL=y also sets CMDLINE to something other than >>> "console=ttyS0,9600 console=tty0 root=/dev/sda2". Removing >>> CMDLINE_BOOL and >>> unconditionally setting the default value of CMDLINE to "" would >>> clean up the >>> Kconfig even more. >> Note >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/co >> mmit/?id=cbe46bd4f5104552b612505b73d366f66efc2341 >> which is already a step forward. >> >> I guess that default is for users selecting this option manually to >> get >> a first sensitive CMDLINE. But is it really worth it ? >> > > I'm not even sure if it is working as intended right now. Even without > my changes if I use menuconfig and select CMDLINE_BOOL I end up with > CONFIG_CMDLINE="" in the resulting .config. I guess if the CONFIG_CMDLINE doesn't exist yet, it will get the default value. But if it is already there allthough empty, it will remain empty. So yes I guess you could just drop it for this reason and the other reasons you said. Christophe