Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1765342ybz; Thu, 30 Apr 2020 05:13:51 -0700 (PDT) X-Google-Smtp-Source: APiQypLAzPKAweXOcllFWtghwS9l2OEKFjwbzeZt9VEUXF49gD0LyEHQh/GF3+1H3aTQha0R0LVR X-Received: by 2002:a17:906:3004:: with SMTP id 4mr2376707ejz.381.1588248830931; Thu, 30 Apr 2020 05:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588248830; cv=none; d=google.com; s=arc-20160816; b=Z3EVDkRvfROHigK95sh4PT5O+yupRs5b3dq8jUKIjihHNLLt0ESmDj0mEK3hJGYJ+o SCzHrXYkdLur3mx0V/1+fMPoQy3NSFZQDcOEAgU/1dt+lo6OtYC9J0yzFB4Em2nbxnTf QjR68ZVAck2ziAQBAVvXnJoPpUTRMABt1saXRtDRXZjoKq67Arfe7v+pUgpyZj07GJXl 5Gvfy1DRc6AFw+cAo3Du6QNpDbORzLgamv0DEyA6LQfKR3Q1t5G0HzOEHsQTjZEDcXYl FOsAN/5xFr2JGsfq9bjz4fhr4k1MxfCrvmSR+tZED9trY34h+I9rP6RZw7ioyyYkP5Xg im9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Y0xip88alJJHgT8WR4VPvH6LdcIpB6H16swF0bscE1E=; b=UH310aKENtOCnB5Wz+eXLbtVR5qU9DVF+T5EG8llJQYpmPCPbpwXfK3te+mxqbNwyp S4jtXbqnltgHx3iltnqgVFVT9lKj9zSnubAt9lvQJsmn/l/IJq74+mJT6RCdXkp2+qPd dpJnTlOvcOv/KDuZA5TU+9GZrODDcGoY/fYNv4+EcskqC5yrKLvw1CvsZhOsHmbPmlaE MY2Lgi2gLe4pGNG01Oe5w9axk6tRTGcesbYkykYbldwz7LPpFQ3GEEzH6ujmpeh4/wc8 qnekJbvMHUQqX+zmyutxAW+HkNCpDNy9pov9eBVUTjjdapz4I1+XyXl95Vp+cz7L0oTz KGNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JNArPiV8; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck14si5003252edb.67.2020.04.30.05.13.26; Thu, 30 Apr 2020 05:13:50 -0700 (PDT) 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=@linaro.org header.s=google header.b=JNArPiV8; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726782AbgD3MJi (ORCPT + 99 others); Thu, 30 Apr 2020 08:09:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726520AbgD3MJh (ORCPT ); Thu, 30 Apr 2020 08:09:37 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FB1DC035494 for ; Thu, 30 Apr 2020 05:09:37 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id b11so6587145wrs.6 for ; Thu, 30 Apr 2020 05:09:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Y0xip88alJJHgT8WR4VPvH6LdcIpB6H16swF0bscE1E=; b=JNArPiV8SKWe12+WTT62TxAuEUSJkcGqCY/lyz7LWfYheOeYHkEnRiz1UNNh1M5p7R QCGf8zmPUmyXeT0Xfzk7z10GE5yUKRQ3SnHrl4OtC93ChJ3fwC8qmpjInb4cHGvil0sC /SW4W/JAKbrCSNeHW2271i7nHI2OYosToLTdFLRxI1xSvfARux23tLuqyhvuyIG99ug/ BN0TNVp5l8Svi8ORjkEQcqmZD5QVWYOcN9kSlwsUK7NrIQtQePdY7voHxvPpIM/lwP0u xQTTNuhLcaQabtLRNLnTcsWruRO4HcW8emzrCy8MCr6qegyGQTgP0I7x86Ngozd4qIHF 6Dkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Y0xip88alJJHgT8WR4VPvH6LdcIpB6H16swF0bscE1E=; b=WqTsVWD2pf0XEWyn6zKYNnx3nLevnjyK92zPGgscDIOvXJLxBvP5ECp/leFcTc502b B4ThHevMt3B3MORIhX4w+2vyHadpUZDir6C1/APV29lVig75ky8fkEGF/oSt4G7+22VX vt6Wk0INjOJt3Mse/in6fX5ZDSUsvi10Oq/i2VyJU1sAZj7SEOnAFVtR9dDuq7uJ9EUm n5wxJTKMrS48kDfCBoYJqAfS9pIjdvsmnsNic/jtQ8G4UEZ2t2U+gNxGcauB+c4GEw2B YfjjkzZjlKwT4hH+cmTXVf2l3X4pflol5YtqXkB2X+qAIZ8PdjZLH97CsOtiBG3KwRX3 UY6A== X-Gm-Message-State: AGi0PubyPHAqxfJrRY7WCuVZie/PN9D1Ph02PtejxlOse486ln8XyiHK gtxl/2PbrPcN18LPbSVK3nLOAA== X-Received: by 2002:adf:ff89:: with SMTP id j9mr3527161wrr.245.1588248576067; Thu, 30 Apr 2020 05:09:36 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id u3sm3594603wrt.93.2020.04.30.05.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 05:09:35 -0700 (PDT) Date: Thu, 30 Apr 2020 13:09:33 +0100 From: Daniel Thompson To: Doug Anderson Cc: Greg Kroah-Hartman , Jiri Slaby , Sumit Garg , linux-serial@vger.kernel.org, LKML , Patch Tracking Subject: Re: [PATCH] serial: earlycon: Allow earlier DT scan is acpi=off Message-ID: <20200430120933.r33oraqvt7p4lu2v@holly.lan> References: <20200428162227.687978-1-daniel.thompson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 29, 2020 at 05:40:10PM -0700, Doug Anderson wrote: > Hi, > > On Tue, Apr 28, 2020 at 9:22 AM Daniel Thompson > wrote: > > > > Currently if the kernel has support for ACPI SPCR parsing then earlycon > > without arguments is processed later than the full earlycon=... > > alternative. > > > > If ACPI has been explicitly disabled on the kernel command line then > > there is not need to defer since the ACPI code (both x86 and arm64) > > will never actually run. > > > > Or, put another way it allows lazy people to throw "acpi=off earlycon" > > onto the command line of a DT systems and be confident the console will > > start as early as possible without them having to lookup the driver > > and address needed for a specific platform. > > > > Signed-off-by: Daniel Thompson > > --- > > drivers/tty/serial/earlycon.c | 28 +++++++++++++++++++++++++++- > > 1 file changed, 27 insertions(+), 1 deletion(-) > > I wonder if a cleaner option is to just add a special "earlycon" value > like "earlycon=not_acpi". This wouldn't require any special peeking > and would just be a sentinel that just says "you should autodetect the > earlycon, but don't worry about waiting for ACPI". ...that in itself > is a bit of a hack, but at least it's more self contained in the > earlycon driver and maybe more discoverable when someone is figuring > out how to setup earlycon? Taking this idea further I wonder if we could even make this earlycon=acpi. In other words if the loader provided a DT and earlycon has no arguments when we use the DT to setup the earlycon regardless of any later decision to adopt ACPI. I think the only time this would do the wrong thing is if the DT and ACPI tables are both passed to the kernel and have different early consoles. This would be a very weird thing for the firmware to do by, just in case, we could offer earlycon=acpi to accommodate it. Naturally I do have to code and test it ;-). Daniel.