Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2039439ybz; Thu, 30 Apr 2020 09:46:55 -0700 (PDT) X-Google-Smtp-Source: APiQypLrc+R9Q3O2SzbXiRsUCnIDutudspzYP36ytPzjP3LF7qmydAcCjJ/29CGwPrtVPjRXwn16 X-Received: by 2002:aa7:d655:: with SMTP id v21mr3654479edr.355.1588265215376; Thu, 30 Apr 2020 09:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588265215; cv=none; d=google.com; s=arc-20160816; b=T35lMoJlvskyM9S5LEKHA8v92L0TI9ZdhDezkG5SImAHATjhmRdOZQ11a1K0vPJY0G Ua4xzFryustTMQfZbp00lpOSgoDOlSsz3arWXa9BkN/XgqVlx7ECTH+sXLhxy2lWTf6g 6XuYpXPMCHNUJK0mKDznnkXYgmaKPFu7bEv5PgPQu9n9Ocoh41kO7MK5PlotzQbdebrO wEDRekj6cW+uFLAx4XqFuClI0cpNvGwhVwJFxIOKOVN3ruvqJxLANmYgLFSEwkO4w8xD C9HmJk+7mdZBxOSwkyzd4IBb0OiUaxLOwn0ST0vZV7oaY3KPlGQmotjV/0LLgDwQCE4L PWuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=sJ0MPiUNhyQYwL5my9lMUOrZtgZSb/9VGLAAqJmNS1U=; b=B3wImt9sSHr4naLy2PHpZGGB58dIwaWJXp0jrX6JJO78KE1od4KVrCwNPrX5Kh5wxo L2IiL1owNu8bJKNTpQ+Xp2xCOh0QJm05qZ5Tt21W6keA0J0ERs1PJDuLq+oCPRGHsMw5 ZNwhNw2pj54cMHQ8dpKKGUkoxxfSubRkZWbFg00SmqximZbQvgEu76ZpahnTiFUdf6D+ PPwWEdMDVb1qbxrd4rvYUnUjRMxAa4f0l03ZnA072/50mqdkVhVE3dYBlalLD9qldLBQ +Rw6hoIH0tWYtehSazTNik2e7PQkCLPji+GEIl+Z5gLaNBq5/WlyF1z6lre7tQ2bbE7v zxhw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si129685eja.218.2020.04.30.09.46.32; Thu, 30 Apr 2020 09:46:55 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726915AbgD3QoS (ORCPT + 99 others); Thu, 30 Apr 2020 12:44:18 -0400 Received: from mga09.intel.com ([134.134.136.24]:9480 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726897AbgD3QoR (ORCPT ); Thu, 30 Apr 2020 12:44:17 -0400 IronPort-SDR: rgiIKLwiPOpnf4LPEtiylAAHcMLOaX57HxRXFRw1JLFM6J96A3suPTWQNShQ9vX4kYm8AuFq3l 32c/wVDpcfAA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2020 09:44:16 -0700 IronPort-SDR: 9DyQWhpBuuB0EPtN+8MsdJdwmHdFmXWAlbcmymPWP7YQRJK7krA0SwkhvajSwkCXTgSY4jIRDT stT9S+135+ZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,336,1583222400"; d="scan'208";a="276576064" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga002.jf.intel.com with ESMTP; 30 Apr 2020 09:44:12 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jUCIH-003x9f-Sx; Thu, 30 Apr 2020 19:44:13 +0300 Date: Thu, 30 Apr 2020 19:44:13 +0300 From: Andy Shevchenko To: Alper Nebi Yasak Cc: Greg Kroah-Hartman , Jiri Slaby , Petr Mladek , Sergey Senozhatsky , linux-serial@vger.kernel.org, Steven Rostedt , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Morton , Arvind Sankar , Benjamin Herrenschmidt , Daniel Vetter , "David S. Miller" , Eric Biggers , Feng Tang , Grzegorz Halat , Lukas Wunner , Nicolas Pitre , Sam Ravnborg Subject: Re: [RFC PATCH v2 0/3] Prefer working VT console over SPCR and device-tree chosen stdout-path Message-ID: <20200430164413.GV185537@smile.fi.intel.com> References: <20200430161438.17640-1-alpernebiyasak@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200430161438.17640-1-alpernebiyasak@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 30, 2020 at 07:14:34PM +0300, Alper Nebi Yasak wrote: First of all I see only cover letter and one out of 3 patches. > I recently experienced some trouble with setting up an encrypted-root > system, my Chromebook Plus (rk3399-gru-kevin, ARM64) would appear to > hang where it should have asked for an encryption passphrase; and I > eventually figured out that the kernel preferred the serial port > (inaccessible to me) over the built-in working display/keyboard and was > probably asking there. "probably". Please, confirm that first. Also, without command line it's hard to say what you have asked kernel to do. > Running plymouth in the initramfs solves that specific problem, but > both the documentation and tty-related kconfig descriptions imply that > /dev/console should be tty0 if graphics are working, CONFIG_VT_CONSOLE > is enabled and no explicit console argument is given in the kernel > commandline. What is plymouth? > However, I'm seeing different behaviour on systems with SPCR (as in QEMU > aarch64 virtual machines) and/or a device-tree chosen stdout-path node > (as in most arm/arm64 devices). On these machines, depending on the > console argument, the contents of the /proc/consoles file are: > > | "console=tty0" | (no console arg) | > ------------------+-----------------------+-----------------------+ > QEMU VM | tty0 -WU (EC p ) | ttyAMA0 -W- (EC a) | > (w/ SPCR) | ttyAMA0 -W- (E a) | | > ------------------+-----------------------+-----------------------+ > Chromebook Plus | tty0 -WU (EC p ) | ttyS2 -W- (EC p a) | > (w/ stdout-path) | | tty0 -WU (E ) | > ------------------+-----------------------+-----------------------+ > Chromebook Plus | tty0 -WU (EC p ) | tty0 -WU (EC p ) | > (w/o either) | | | > ------------------+-----------------------+-----------------------+ either == SPCR or stdout-path? > This patchset tries to ensure that VT is preferred in those conditions > even in the presence of firmware-mandated serial consoles. This sounds completely wrong. serial should be preferred over vt due to very debugging on early stages and SPCR is exactly for that. > These should > cleanly apply onto next-20200430. > > More discussion due to or about the console confusion on ARM64: > - My Debian bug report about the initramfs prompts [0] > - Fedora test issue arising from ARM64 QEMU machines having SPCR [1] > - Debian-installer discussion on what to do with multiple consoles [2] Maybe you should figure out the real root cause? > [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=952452 > [1] https://bugzilla.redhat.com/show_bug.cgi?id=1661288 > [2] https://lists.debian.org/debian-boot/2019/01/msg00184.html -- With Best Regards, Andy Shevchenko