Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp659366ybz; Fri, 1 May 2020 06:20:41 -0700 (PDT) X-Google-Smtp-Source: APiQypLQZRcNYHOj7VGctRek1Z6aQshZ0YlZxcyVdRIABlEdxhRdbRTIRoLL4TZFi292gxwz20z6 X-Received: by 2002:a17:907:40f2:: with SMTP id no2mr3210286ejb.41.1588339241765; Fri, 01 May 2020 06:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588339241; cv=none; d=google.com; s=arc-20160816; b=Ykgczw/HQZDQXOkLbs8OnltBz07WDdvERW90+TQiEGjs/ddDjxy+2Gu++HDOsUa9tq 0VzUxWTv1gFkBdZF15A4qMXxLkAubQPyEtqKGGyfbxfXJVsjbVrf7UbZjTgLcY5CCbue bRQ5pjSAfBfbWAEUaE8Cy9i47wTn9HdBV06bGljpJ+B6htkF3L2K3Xp5QjKDP5m3RZe/ b4xSGOcb35Gnu/Zs0dVxFiuuG98xDeriRc5qBXFPzWH9WsXfkaWY5uXgWabL1UPcxz0n y7YVTFZAbIQ9s77ILRTlHD92g/iWN+MBAzFVbiWCVq2bhTu9X0rQ6Zg/BhtMfo3mShkx zYNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=b2+/9XXY8Y1RxQllaPBwEstw2gB8BpLP9hF+BFGMRto=; b=Y85mcS3vUZFCp2O3BO78vwnIMCazL2gN6ZxIul7ISwHQIbvH8LDohDg42YRnVJYHs8 UlkA+rTr6uj6sRgNUJo3eU1+E/XWefoGcy6oRVzWphYy10qhKJDFJar61GIkRcwEs3ib J6UKEoTm56F7aMTdkwOe5JLK9ETd0agqkBcKiujLFN9grRx499aLAnTMfcbis5VSxSzx tn8OKn9qzTBTy55ETGxBIKwhL9r0wcB8d24KdvQIs9WCkREsUNWosxXdGSucUnf4v4m9 vmxB27D3P7pAUHPjpQYU67De2QVE5peylKJPwihTan7NbwAZOihDfIQlmR+hXKIzOoo0 AlxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GCmm1wMV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si1617448edr.254.2020.05.01.06.20.16; Fri, 01 May 2020 06:20:41 -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=@gmail.com header.s=20161025 header.b=GCmm1wMV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728833AbgEANQq (ORCPT + 99 others); Fri, 1 May 2020 09:16:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728809AbgEANQp (ORCPT ); Fri, 1 May 2020 09:16:45 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0E30C061A0C; Fri, 1 May 2020 06:16:45 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id l20so4538885pgb.11; Fri, 01 May 2020 06:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b2+/9XXY8Y1RxQllaPBwEstw2gB8BpLP9hF+BFGMRto=; b=GCmm1wMVqYxnGfNpvKp1cw9fbv2U2gMWk1CMbTh48Hm7wPNMne/GbW31xoR7mD00S6 +uYXr4iDO7nSP6i6NtmbZ50/3IbLNNl4H21oYebEd34ccm62tuScRjfDRf1UWetYkb65 odnWO7yMmFF0syGwu/kMQNNJLwLW9Ij93HzkYPKmRli9xqzyC1VZ3EEehyJPysb8KWdz T+7Umkferm/ayeT9tP5ghbICCAKDJv7XaRspMAl82ljUL/xT1Jwb2cPlduJ7JsQ0OhsH Ld0vBtmY9g6MuytPotItD3U+UU2gcrdRAg8rKiiJr6QVPNe7h5eDislLZN2nuhtD84Cl FNAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b2+/9XXY8Y1RxQllaPBwEstw2gB8BpLP9hF+BFGMRto=; b=rSy2Pt8N0sREFiUERz8cWRLX2mHTohJw2fT5eigFfXMfLUQzc3qHvHRue2jVjaGUI/ VR34jNs9etyCCfSGSFiQ+qru15W00f3vuCLK7Dy5lHPrV67ARCLJEpDu4GMTwt48PYUy rhgKzlsOaUIEco1lUnS/3NXBr31UrN8Kzq9f5Z4iDDhWUlxhC6kKJdsUeG0hll77mVUb 4ttdvcAe/zcFtEnCMkRhsEBYFZZohH4wfI15vUaoWIGbofxpnWAHBVlcX8awxV1gkTtc hbdVTdoO5RLzFb3mbvMCEW9fCPAeom8SJyy35wLST1h4A06vCwX3Uvu4vyU+CDIWjVVy XvLw== X-Gm-Message-State: AGi0PuYoN+I/RNTF0N84qwVotjlKp2qxAS4946m9YtiyghtNcGfLi178 XYnxUFnlfFQDOpctkA1NRW2C8sMDGHBhH9mWShc= X-Received: by 2002:a62:f908:: with SMTP id o8mr4034258pfh.170.1588339005327; Fri, 01 May 2020 06:16:45 -0700 (PDT) MIME-Version: 1.0 References: <20200430161438.17640-1-alpernebiyasak@gmail.com> <20200501013044.GA288759@jagdpanzerIV.localdomain> <818ba356-ba35-68de-b7bf-f145a89280f1@gmail.com> In-Reply-To: <818ba356-ba35-68de-b7bf-f145a89280f1@gmail.com> From: Andy Shevchenko Date: Fri, 1 May 2020 16:16:33 +0300 Message-ID: Subject: Re: [RFC PATCH v2 0/3] Prefer working VT console over SPCR and device-tree chosen stdout-path To: Alper Nebi Yasak Cc: Sergey Senozhatsky , Greg Kroah-Hartman , Jiri Slaby , Petr Mladek , "open list:SERIAL DRIVERS" , Steven Rostedt , linux-arm Mailing List , Linux Kernel Mailing List , Andrew Morton , Andy Shevchenko , Arvind Sankar , Benjamin Herrenschmidt , Daniel Vetter , "David S. Miller" , Eric Biggers , Feng Tang , Grzegorz Halat , Lukas Wunner , Nicolas Pitre , Sam Ravnborg Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 1, 2020 at 2:11 PM Alper Nebi Yasak wrote: > On 01/05/2020 04:30, Sergey Senozhatsky wrote: > I'm assuming "by default" here means "without console arguments" > regardless of firmware requests. This paragraph (with small changes) is > repeated on many other Kconfig descriptions (drivers/tty/serial/Kconfig, > drivers/tty/serial/8250/Kconfig, arch/sparc/Kconfig from grepping for > '/dev/tty0' on **/Kconfig). > > From Documentation/admin-guide/serial-console.rst: > > > You can specify multiple console= options on the kernel command line. > > [...] > > Note that you can only define one console per device type (serial, video). > > > > If no console device is specified, the first device found capable of > > acting as a system console will be used. At this time, the system > > first looks for a VGA card and then for a serial port. So if you don't > > have a VGA card in your system the first serial port will automatically > > become the console. > > and later on: > > > Note that if you boot without a ``console=`` option (or with > > ``console=/dev/tty0``), ``/dev/console`` is the same as ``/dev/tty0``. > > In that case everything will still work. I'm wondering if behaviour is changed if you put console=tty1 instead of console=tty0. -- With Best Regards, Andy Shevchenko