Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4059637yba; Mon, 29 Apr 2019 13:03:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqz48HSayhfVgtMNkr0To/N5jEcM+Q3goO+2Wgxn4xyRiCX7IRufs/xFwwKpifO22gMQfMcR X-Received: by 2002:a62:5fc5:: with SMTP id t188mr14302286pfb.155.1556568223085; Mon, 29 Apr 2019 13:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556568223; cv=none; d=google.com; s=arc-20160816; b=HyQ9RQXTWYP+qPqTYD5NKqBL89FIssQJBiHT7SmkVW5wrezSsnuRFHmsVrXVttr5WR CsOq5evaefx77BlfRuXJsO8C4z6ic7i42VEYBCAMl5i1XyfbsnT8Ma4li+QDSwoI2dx3 Bb+KfEjkOouqymIfIucXFVujgEI4znfUB8aqK7HrqELHKgmUJ2TwPWKz4sZPVLPMnOcL b7O2Sk4YBHGcea2yUcWlb/itObXauN8ZO55+nwXnWKK1hJFuojxKhpbjrSSHpExFmJ4Z AG70GoXlm/AMjDVAd8Sd+QpvOByz5Rq2ZOsHFD+lP87zHMl7+0dMYKREmPbOtcVFvpSE O1ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=d5+AR4ZQ6S8Je85I3GXhGfH5pQCSFdPGrCwlud052ps=; b=LBInz+9qptmC21dc2AFCgJHyPCDEIqmI9a+2kjY6KMKxt+G0WBjcnx95H4A6j21tk7 X97mPZtBi4r44y1vg474mVfP1H77fhSFDrLX06dzsdElSBjcQMyBZ5YswLca9TQOTZX6 3LofyBq6fWLoVdgecc6vn5OfhLxRJGmElKYPcPxFxCm/zrdCMn7567W+1H/k6rHdx1vx qstuOLuQr4laKlmzcXZcRScJ7A6ABGD52/fMswy4BgLiqdNMFMUwTau7vA9hr+iQvGKI 8TfSoXs/89oer6H6viYi62xVAfqMqKRQX3CZwK5zWWWNWPJ+Ao9618JK1XPBxO7yDSOh kvBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=XRN9VSnX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si9070753pgd.250.2019.04.29.13.03.26; Mon, 29 Apr 2019 13:03:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=XRN9VSnX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729345AbfD2UCY (ORCPT + 99 others); Mon, 29 Apr 2019 16:02:24 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:50507 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729185AbfD2UCX (ORCPT ); Mon, 29 Apr 2019 16:02:23 -0400 Received: by mail-it1-f194.google.com with SMTP id q14so1057145itk.0 for ; Mon, 29 Apr 2019 13:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=d5+AR4ZQ6S8Je85I3GXhGfH5pQCSFdPGrCwlud052ps=; b=XRN9VSnXHB9YOZLhHV+j78/FmX9TQONi+10x6wv8ySgEM5Q3gC4vGptmW/bxkiWCCY rbcj40eh19ktqbvfBBaI7hdAi4X7nV/L6e/YdSS+D+EnzRxv2YhH95gH9aH/gutPNhO4 RJsx+Ng3drdHuugTlgCMR2KJLCwrOUInFIlaTNKgT+fEPSEflUTe81/58oCezp2WB53J Tdx9M6r9uvjF5dJT3y8Nur7B6mBnp1vd2obduvs8Sw5WW76/Khxa+GnxKWThbOxThEYI WW9SEpLLQwn3CoVL/FBE6o4G0S4hGvPjxIUy76C2Ys9mrLSEiwClLRCuBLFDnHirvptg mgMQ== 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:in-reply-to:message-id :references:user-agent:mime-version; bh=d5+AR4ZQ6S8Je85I3GXhGfH5pQCSFdPGrCwlud052ps=; b=GL9eLAEMGqIC6c8vXFUXNLvsQzsGDt4DUOHkJD5ln45d9w4CCBRCAQpiK5wONv4kb+ Km0azecp4+8Pql5S9qYNcDpqou0jg5GO4TGgbQejN2JN3xaDwBzCHvF6yvbmU8DLqAaT UPe4X3S2joJ1eWuVot54ueqBYCmnVhWc9Sm+yURxtHlzu/100aCr2RJhq2ZTRaj+fJdw ouILfLkXqoRmZSHW9IOtPYxM4lzR5pyjx/aN7msLrTY/frjBs1maKG6u7tNhME9bvQV0 HvgepgAmqw6pOO6p7Cc5boqH99RtX5/ywKx5zXebr1eYx62NUZN6amzb6oXShi5jlLK9 HHXw== X-Gm-Message-State: APjAAAW9NS1A6dCzFl+eMB5gxQgRi7d8GwOltpQmLfyPyDfXGCsW4FvG 3W/8fseVyr/yqkQveaASN9mfCg== X-Received: by 2002:a24:1f06:: with SMTP id d6mr645397itd.11.1556568142581; Mon, 29 Apr 2019 13:02:22 -0700 (PDT) Received: from localhost (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id v25sm7723994ioh.41.2019.04.29.13.02.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Apr 2019 13:02:21 -0700 (PDT) Date: Mon, 29 Apr 2019 13:02:21 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Anup Patel cc: Christoph Hellwig , Palmer Dabbelt , Greg Kroah-Hartman , Anup Patel , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Atish Patra , Albert Ou , Jiri Slaby , "linux-riscv@lists.infradead.org" Subject: Re: [PATCH] tty: Don't force RISCV SBI console as preferred console In-Reply-To: Message-ID: References: <20190425133435.56065-1-anup.patel@wdc.com> <9a8be7ef-e62e-2a93-9170-e3dc70dfb25f@wdc.com> <20190426062133.GA28529@infradead.org> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Apr 2019, Anup Patel wrote: > On Fri, Apr 26, 2019 at 11:51 AM Christoph Hellwig wrote: > > > > On Thu, Apr 25, 2019 at 09:41:21PM -0700, Atish Patra wrote: > > > Do we even need HVC_SBI console to be enabled by default? Disabling > > > CONFIG_HVC_RISCV_SBI seems to be fine while running in QEMU. > > > > > > If we don't need it, I suggest we should remove the config option from > > > defconfig in addition to this patch. > > > > I think the whole concept of the SBI console is a little dangerous. > > It means that for one piece of physical hardware (usually the uart) > > we have two entiries (the M-mode firmware and the OS) in control, > > which tends to rarely end well. > > I think the SBI console is only useful for early SOC bringup and early > SOC debugging when most drivers are not available in upstream > kernel. It cannot (and should not) be used in production deployments. Usually the primary use-case for an abstract console interface is for desktop and server users. Usually Linux distributions want a hardware platform-specific bootloader or BIOS to specify and control the console. Originally I suspect this was implemented in the SBI for semi-hosting purposes, but that's no longer really applicable. - Paul