Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp894839imu; Fri, 7 Dec 2018 10:32:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/X2uQu8p5RNBICqPx+0UT9txXU2Yk9uZHV5yckMFqUdWb189FZL5+/viE4jF6EwFYX8ipJk X-Received: by 2002:a17:902:bd0a:: with SMTP id p10mr3046853pls.322.1544207526401; Fri, 07 Dec 2018 10:32:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544207526; cv=none; d=google.com; s=arc-20160816; b=cyQybfg13TlyDOKzurgUF2nT0RDJVczewOpqJc2XWe/oakzbZ2hpWADZT4zj7EzvEG jV4PqhGz8aIjfiAAhgFZ5UG0fAkS7xjuaDSeik7HZVsr+j5FnCmsA6Pn/bkK2aik9vwR fdKbZNq27HurkHaJU1yvwBzp4DtutISA6sUvlP9R5o9h0WdVtzfnEoA1wtoFG74EmVDY AMl68YKYL0aWWOzYrjZPrIRlpNm0OBrwzIKgk5IiNdO0/WMR9QQqTanU9s/U3QzuwwXk CXp3yS+gnqjDys+EHEC8rm9PTBv4/xYPstPATm9gdq84xSoCi6Q9jJ2ZemVfGAyowpi/ Ng8w== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=XSSMSULfAytnxie2DsEU0LDybwmkejAR17D3/hDbfbE=; b=kCVp6Kh+OkZJJCrXlRyFUmTqm3zXH+i/IdH+yZkkOIP6wYXwGQK41rOHK2IDyvBdcf sXY+NgIDuf5IYM3k0bVT28h6fBE61/wUWE2HTZscd52lOTHo4cOe/mkpryxMvw9bza47 +xOqANp+jn+WxgxicHokz1lpBBwpRHMDVJgfx2Seskv1DWJByTaVPrg2E8S9R26CVrv5 vayblp5m7HB/CzYcGxoXHdudlAGAYIkfMipE5ARt5DB+cilbeV68OygGeOrnHrswvW6U pn9rlAnPwtMw4hwlwd+pBq7qcj4Ut9jpJkxRKTuGlF0O9V0e5AVAAz03FtI+Ilzi5rad WY3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=DQe7Ioyx; 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 d2si3734371pfe.159.2018.12.07.10.31.51; Fri, 07 Dec 2018 10:32:06 -0800 (PST) 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=DQe7Ioyx; 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 S1726309AbeLGSal (ORCPT + 99 others); Fri, 7 Dec 2018 13:30:41 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38558 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726271AbeLGSag (ORCPT ); Fri, 7 Dec 2018 13:30:36 -0500 Received: by mail-pg1-f196.google.com with SMTP id g189so2077226pgc.5 for ; Fri, 07 Dec 2018 10:30:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=XSSMSULfAytnxie2DsEU0LDybwmkejAR17D3/hDbfbE=; b=DQe7Ioyxn4rM5SD2hvHuBSvu2hLQgPkppx8RxtmvCmDTqaOsCGQqxTpHIUhahN9g4r cn4xVgPamU190S9Mr3TGbIi+b5ifAOzpxImMvD2tb09UAmbIRLwfEyMPbSK5tBtFl8Ik 7rb2Qv7TS4RjE8DMasRoOs8ZnUQbfVe+KgjHVMbMeCm/Y18ZZheU1wHWikGH0o0oUVep qw8uqx58g+Rr4ceadSs96giLax9zLzQqroB8ZfKA6Rjq11V9ajk3gQkxQdca/8+4f9H8 6W0D27NHUlz2Fsx4PUmhN8lm8qhYpm/9E1cbGNhMWBygLFqHIcbHJ54Wzfz/IDIHG/QG soLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=XSSMSULfAytnxie2DsEU0LDybwmkejAR17D3/hDbfbE=; b=CVVM6TMSocUQy+PnFT3+c4mxX9SapfCSb/TlD4fTz6AC21yrr7VRxa8xr1VmEulEMH s1x1j327XD/0Sx9AjtFFDe4tjN0Ua82AdhziLT1Ee/+fhDoq75ZDaT99Z16UIE+oG4IV GzX/+aMyNDVzrKKH27GmXRnNG/cEZ/2PLaAGSJXCBKpgIjJHKF0W2UdkKVMlpVzEZ2Qo iVT+Gm0FHf/NrMi5Hxz89Yk24PNZbDkKoy/KxFbh1id3MdpqgVxt7TUMmF3COtIinAVX lrOu9WsVqidwsKwWXXceFucCQJg8hPV2B2Q7n9illjY6tRi6diF9pWyoIFb8uaxX6yLx xjBg== X-Gm-Message-State: AA+aEWaJxroCwvX/yJTR2+v1oszO67fBMZOlSEJcDqSI/0BOcr5bhFhI 0fEKdjRlVbP9RLvxOrYKRc41yg== X-Received: by 2002:a62:9111:: with SMTP id l17mr3292831pfe.200.1544207434804; Fri, 07 Dec 2018 10:30:34 -0800 (PST) Received: from localhost ([216.3.10.7]) by smtp.gmail.com with ESMTPSA id s2sm5867597pfa.167.2018.12.07.10.30.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 10:30:33 -0800 (PST) Date: Fri, 07 Dec 2018 10:30:33 -0800 (PST) X-Google-Original-Date: Fri, 07 Dec 2018 10:30:08 PST (-0800) Subject: Re: [PATCH 0/3] RISC-V SBI earlycon In-Reply-To: <20181204135507.3706-1-anup@brainfault.org> CC: jslaby@suse.com, aou@eecs.berkeley.edu, atish.patra@wdc.com, Christoph Hellwig , robh@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, anup@brainfault.org From: Palmer Dabbelt To: anup@brainfault.org, Greg KH Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 04 Dec 2018 05:55:04 PST (-0800), anup@brainfault.org wrote: > This patchset adds RISC-V SBI earlycon and removes RISC-V EARLY_PRINTK. > > We should use earlycon over existing EARLY_PRINTK for SBI console because: > 1. It's a more generic way of implementing early console for debugging > 2. Current RISC-V EARLY_PRINTK is a compile-time option whereas earlycon > is enabled at run-time via kernel parameters. > 3. To use earlycon with SBI, we have to pass "earlycon=sbi" in kernel > parameters. If earlycon kernel parameter is not provided then kernel > boots much faster which is very useful in real-world RISC-V deployments. > > The patchset is tested on QEMU virt machine. It is based on Linux-4.20-rc5 > and can be found at riscv_earlycon_v1 branch of: > https://github.com/avpatel/linux.git > > Anup Patel (3): > tty/serial: Add RISC-V SBI earlycon support > RISC-V: defconfig: Enable RISC-V SBI earlycon support > RISC-V: Remove EARLY_PRINTK support > > arch/riscv/Kconfig.debug | 2 -- > arch/riscv/configs/defconfig | 1 + > arch/riscv/kernel/setup.c | 28 ------------------------- > drivers/tty/serial/Kconfig | 12 +++++++++++ > drivers/tty/serial/Makefile | 1 + > drivers/tty/serial/earlycon-riscv-sbi.c | 28 +++++++++++++++++++++++++ > 6 files changed, 42 insertions(+), 30 deletions(-) > create mode 100644 drivers/tty/serial/earlycon-riscv-sbi.c I'm adding these to my for-next. Thanks!