Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp33658676rwd; Sat, 8 Jul 2023 17:56:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlFM1/i/u/0y9OJLdsLd8YBkDYfMpEZH0aAMgbUNlPJZ5GhxxewuDs9SrCM98mAAnHcMAC11 X-Received: by 2002:a17:907:b020:b0:974:55ea:1ad8 with SMTP id fu32-20020a170907b02000b0097455ea1ad8mr7053617ejc.63.1688864175175; Sat, 08 Jul 2023 17:56:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688864175; cv=none; d=google.com; s=arc-20160816; b=Rf/qGi6CidKxkhzkXwcBbKE1mT9P/n1PdlviLuswWi5vit8Rtuas2XuSwvZDgn6lE6 QUhe+tD4hs95wkddKqjjtjbkSFVJhGvQosGB0DCYqTU5aMkdl7sHve5Qq9seYMHzNeP/ HfnOqEyHTP6Kj7raIG7Wq5kuASTWvkyjs5C5lJBH3WkCERN8vuVpuYeOUgYcx23vWdK8 qplNTd7As7Iy5yXldpU0rt98zY00S6ZEnKYMboyaIU/dbbQgKRCju6V2jYlInKglgIef b4p7YfcDdMua6cX5FDSvoUNynh8h2NGISi8Cegkn/um22StViqfO3190ggJQM0/S1iXC lmUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=JsV6Igm8XGJqtTOAHErFXX6QToJW+VnRFmGD1lclDb8=; fh=O+mDb3NSHWkI+bt+ilaXgDOsfFybR+456LmDxFsja04=; b=QkS5SfSdKRHtA66FNRdXy3IMAQ5II19Zw0rEXYzXYJ96+fzCnEYGLlZ+EG+tuC+xc2 4JMflEhvR2MEMIP1HEYZ1amD1f6JVL0dk6Bc3PNVqFfnWOCXzDs4PqPxeYE6dGiHl5uT zFZ3xkRn8c/NqFYccTs6+IKxbudFyFBpkorSf8CUJQCSBBnV/ZFZPcCBDAHT7wOvkIGg ZeT9nVmV4HEmsR0EyZ+YbuSIjhMJMzoWssgHmf9BLIoF9C+Ze4iYtwTY0GDpdgFaD0KA 57B7JOaalYGdc3vMIrx2gdWezaNecTQ+Ul+5U+gf3c19DOtJVrJiLvhrJbp7WfUQ8mwe MfrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=E96WqHPz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a170906a28700b00988635d8c25si5061046ejz.603.2023.07.08.17.55.50; Sat, 08 Jul 2023 17:56:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=E96WqHPz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229490AbjGIAsf (ORCPT + 99 others); Sat, 8 Jul 2023 20:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjGIAsf (ORCPT ); Sat, 8 Jul 2023 20:48:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5866F1B1 for ; Sat, 8 Jul 2023 17:48:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D2C7060B6A for ; Sun, 9 Jul 2023 00:48:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAD8CC433CB; Sun, 9 Jul 2023 00:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1688863713; bh=NpI7oDWpqAVs0CHykF8fwhNiyx1mUm8S3ReSuS96Jgg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=E96WqHPzB7bKJYspthaeV3NEac3yO784gTNlA8sR517nkvNQ7bkU6uojS8BzpUFTc EblVG1EXztwCwa1yo6FjeFFWRtT8zU7VSpMwJcHYoBQLfynrw5Vtcjf/Eqcpp5fqJE be5ZRThsPJLp44DoMAOMwGL2HDBxYkGbEWqghf/M= Date: Sat, 8 Jul 2023 17:48:32 -0700 From: Andrew Morton To: Raul E Rangel Cc: linux-kernel@vger.kernel.org, mario.limonciello@amd.com, kramasub@chromium.org, Alexander Potapenko , Ard Biesheuvel , "Jason A. Donenfeld" , Li Zhe , "Liam R. Howlett" , Mark Rutland , Will Deacon , Wolfram Sang , Zhou jie Subject: Re: [PATCH] init: Don't proxy console= to earlycon Message-Id: <20230708174832.0af1d974cf67805dfc8ad655@linux-foundation.org> In-Reply-To: <20230707191721.1.Id08823b2f848237ae90ce5c5fa7e027e97c33ad3@changeid> References: <20230707191721.1.Id08823b2f848237ae90ce5c5fa7e027e97c33ad3@changeid> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 7 Jul 2023 19:17:25 -0600 Raul E Rangel wrote: > Right now we are proxying the `console=XXX` command line args to the > param_setup_earlycon. This is done because the following are > equivalent: > > console=uart[8250],mmio,[,options] > earlycon=uart[8250],mmio,[,options] > > In addition, when `earlycon=` or just `earlycon` is specified on the > command line, we look at the SPCR table or the DT to extract the device > options. > > When `console=` is specified on the command line, it's intention is to > disable the console. Right now since we are proxying the `console=` > flag to the earlycon handler, we enable the earlycon_acpi_spcr_enable > variable when an SPCR table is present. This means that we > inadvertently enable the earlycon. > > This change makes it so we only proxy the console= command if it's > value is not empty. This way we can correctly handle both cases. > I hope someone understands this ;) Please "grep -r earlycon Documentation" and check for suitable places to update our documentation.