Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp390773yba; Fri, 26 Apr 2019 01:44:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPbwotLW/Wef+uRM/BhIqC2PfqgaDj2AFTQgo9bqFdTLUA1CpHfwe/ZYIX2ED24S9bhMjB X-Received: by 2002:a17:902:a582:: with SMTP id az2mr45347933plb.315.1556268288826; Fri, 26 Apr 2019 01:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556268288; cv=none; d=google.com; s=arc-20160816; b=rVwigyWdWjUANu2YbcB3bgqzpk9fD/LHOUjLQZBupYwKsOF/L0RssyhvMU0XKZvsb8 Pc2EPsWNnyfnXRcyfLCr5Q8gTHfoQrqwqOlltFw17+7qUz5FmMwEkvbEFsftzsrM3qXu rgxeDG5CsX1+72COSYe0hgIAGJ2B4cqqApJGH10dZAqCfTOn287gSwf2oQN3huEXFnb2 71pZJOOFJ1RTh4NHevznrIw9LVDlXgqGVafJ/+vsldQnkiZ0SW6/OzK04DYIVOP64+Sf 5GEkn3GxzOYsN5aZXQyduuSIbzAVqURxpy4oj/ZSCPx0qDgOvo9Ufgo2F39a2Heh2eAV KM2g== 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=y9MU1IdAQeQ47a3CDcXM8eoZTJOFdkZQ9xHCLPVf5Nw=; b=nALQcNHkZoMNt6p1OCcPbuFxInBH/HIed32jULykVo6Z0d3OZ8mwieAkXm7xnudA6m Ep+bg+Uz/V+HqsUP+BhTMYNw7mA+54/3s1doTBJTGRsnr1wM3Vt2J8ugVkUReqLoab5D tY2Up8JywwIQchheNNW6JZ+5dgFsh4FIbQHTgmJfFCvLJB02Ld4Ugopm5q5GP9bdjS2O QUMba3e2U3hWYc+3XpShG5o94lvugyJ5J1f0f3W83YtNLodRl5elsqvERHruhgqF2liz xMRWUhKZ0rhEs5fUcHBiztAwNSb9FCGZWpXqRullRIPgjIln9kiB47Gjwwf9ecmr/Uda kW8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b="n/+hgzau"; 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 n9si25283482pfi.193.2019.04.26.01.44.33; Fri, 26 Apr 2019 01:44:48 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b="n/+hgzau"; 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 S1726354AbfDZIms (ORCPT + 99 others); Fri, 26 Apr 2019 04:42:48 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35612 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725935AbfDZImr (ORCPT ); Fri, 26 Apr 2019 04:42:47 -0400 Received: by mail-wr1-f67.google.com with SMTP id f7so3309303wrs.2 for ; Fri, 26 Apr 2019 01:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=y9MU1IdAQeQ47a3CDcXM8eoZTJOFdkZQ9xHCLPVf5Nw=; b=n/+hgzauxCACf37JbCqubpc6ejARtZebct9i9I1Mt2FY8Saok6AmUEEwzfMAD3wVjP m7OYKBxTAi7BbqonQnJVQrQ8jQRNo8PaELaUVe6FizWzGp61N9dyHyo9MzkBuiBFs16+ sAW0KmcYlDBDIjsQv8CagduWQIbY13uFNSRDj6uYuvaj7XLhxWRfN8qcllhxYX1RwyVT 3Vtp3r0DX2yg8jjI7sFAVVTM6i/elxwtZTWpTdpTZLE7FtwGqVKngGxX+gH17w0q+yWg znrOLU0IGOQtXxMh5caRX3xzPyQCUNX7I4EcybbV6csSurhkOkROPjcLE2ccGf4FlQqk 71Rw== 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=y9MU1IdAQeQ47a3CDcXM8eoZTJOFdkZQ9xHCLPVf5Nw=; b=Y4BjDFpkSrOGa/x2tjlXtBDQt/n1qsSF8BISfMVhCkjPpZePvRRqhnjfh9yCQvFb/+ Ltjc2fXryF9GYkkKohffjVMHNon9Tt0zNMmdKnCTSDg6aNa9aXIhte+Lwg0lFKt+EjCf 8iKjy28wxUCcjHEn8/dlzv/csFqESNruYYT0jrblktWTmy4TdJZwGDYFD1bGVf3HXf+Y 1chGfamsR9GpgJ/CuH+ZmR7A41jX03gZpiubpVHvNV3uOG9sK9wTBYAVV6sp8/A5nU10 z8kjTt5iYlViZMTK8n7aL3skdXIgVUPLg1UQ3c0FG8iZxPMOeViRlNRvalwI5e0PuWMW 4ktw== X-Gm-Message-State: APjAAAUCrDkHXkdkKe9cFzjQlfwEJsXJUBy//Yj9eXTvI+ThixNnWk5v scLrlHVAtU9X/HRJ2tq3OJnU39HLQhkUMrJax/X61ete X-Received: by 2002:a5d:5346:: with SMTP id t6mr9152799wrv.59.1556268165924; Fri, 26 Apr 2019 01:42:45 -0700 (PDT) MIME-Version: 1.0 References: <20190425133435.56065-1-anup.patel@wdc.com> <9a8be7ef-e62e-2a93-9170-e3dc70dfb25f@wdc.com> <20190426062133.GA28529@infradead.org> In-Reply-To: <20190426062133.GA28529@infradead.org> From: Anup Patel Date: Fri, 26 Apr 2019 14:12:34 +0530 Message-ID: Subject: Re: [PATCH] tty: Don't force RISCV SBI console as preferred console To: Christoph Hellwig Cc: Atish Patra , Palmer Dabbelt , Greg Kroah-Hartman , Anup Patel , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Albert Ou , Jiri Slaby , "linux-riscv@lists.infradead.org" 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, 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. Regards, Anup