Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp865000ybk; Wed, 13 May 2020 15:26:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3f9HtzvVKACYS+7HkEgf53kAnsEIWt8xWNfTQr1/WD5FUVB1UZAGIoQVVkXDox3RQxpB9 X-Received: by 2002:a17:906:abce:: with SMTP id kq14mr1105308ejb.187.1589408811461; Wed, 13 May 2020 15:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589408811; cv=none; d=google.com; s=arc-20160816; b=xuDyUbed9VdzDD+z9CTb4aYlRpLhKXNKAsuH8oUyVMrEhtcD3FQ6r5PXEyws9U6Bcs 3C6fbbMtutoOaEGVmMlBdEm4cLmND1N8tOagagF+9Tv5mz7AzXL/P8CQWPKfdAnyl2Uw +oyGVRQulqfWlWQjDu/bjXtF5/R7ZpGTW+KxyLtGTCADmq+I13dcL/ONVzy8ZwLrPSTK hEv+Uwpg2dXxYmfXa4dy/69gqPPKakJeGNLq1Vw+eS62GkB70UNUC6JL8uubk3Rdfisq +Iu/n/AkpmHYE/yiPS4ssSug/xxosptxBabHCzDZqS78ofjzoj1/i6ZHzc4+YZK03GDP PY7w== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=cJkjXoa2jlN4VmWfEWui0p7+ZAzERQLhuKA0JX6zcTM=; b=GK4/lr2jyRMTyuBcFSgcdDbpkIfnhBWkgf1BbdRmfAKYz32IMuIL++Msu/EmuiCoTM aHftuVL2v7OldY4HO9qJpmRURokWpkpPALoJBOJAujb3UjfLmTI7UVTDeaWyv6x50bxN dTOhtUhaVKF+nQuSEiDctvoja2NY6jGnCp5IAusvTj1338zmm7CtF32M3Zt/BNVG+pvR MC5HX5cJaDK9SSsaprz7zaSXtLasRsAPK21XXsn30gkGfaso28uSWFytYW+idUdT31kf ek2T3nWJS6nZTmo4OLKPNK3Vve4y6lp7/xEQQBGXpP7qTuH3Yhy1yrYqBhQUgH/6PNI2 MVOg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz18si765211ejb.112.2020.05.13.15.26.28; Wed, 13 May 2020 15:26:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731438AbgEMWYg (ORCPT + 99 others); Wed, 13 May 2020 18:24:36 -0400 Received: from kernel.crashing.org ([76.164.61.194]:58346 "EHLO kernel.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730064AbgEMWYd (ORCPT ); Wed, 13 May 2020 18:24:33 -0400 Received: from localhost (gate.crashing.org [63.228.1.57]) (authenticated bits=0) by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 04DMMYir028068 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 13 May 2020 17:22:38 -0500 Message-ID: <2b67927057455bc91310f88a1952f808339f14cb.camel@kernel.crashing.org> Subject: Re: [RFC PATCH v2 0/3] Prefer working VT console over SPCR and device-tree chosen stdout-path From: Benjamin Herrenschmidt To: Petr Mladek , Alper Nebi Yasak Cc: Greg Kroah-Hartman , Jiri Slaby , Sergey Senozhatsky , linux-serial@vger.kernel.org, Steven Rostedt , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Morton , Andy Shevchenko , Arvind Sankar , Daniel Vetter , "David S. Miller" , Eric Biggers , Feng Tang , Grzegorz Halat , Lukas Wunner , Nicolas Pitre , Sam Ravnborg Date: Thu, 14 May 2020 08:22:33 +1000 In-Reply-To: <20200513143755.GM17734@linux-b0ei> References: <20200430161438.17640-1-alpernebiyasak@gmail.com> <20200513143755.GM17734@linux-b0ei> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-05-13 at 16:37 +0200, Petr Mladek wrote: > The only common rules are: > > + The last console on the command line should always be the > preferred one when defined. > > + Consoles defined by the device (SPCR, device tree) are used > when there is no commandline. With the exception that on x86, SPCR is only used for early_con, we don't do add_preferred_console() at all for it. I sort-of understand why... the track record on BIOS quality out there being what it is, I could see this causing a number of systems start sending the console to a non-existent or non-wired serial port instead of the tty/gpu because the BIOS leave SPCR set/enabled for no reason. It may or may not be the case in practice but I don't see how we can figure that out without either a large campain of data collection from tons of systems (which will miss plenty) or just taking the chance & breaking people and see who screams :-) Cheers, Ben.