From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 175EDC433EF for ; Sun, 12 Sep 2021 22:39:17 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 039AC610A3 for ; Sun, 12 Sep 2021 22:39:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 039AC610A3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F24D183988; Mon, 13 Sep 2021 00:39:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="R0x6aC8S"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F4B083852; Mon, 13 Sep 2021 00:39:11 +0200 (CEST) Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EC9D783988 for ; Mon, 13 Sep 2021 00:39:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-yb1-xb33.google.com with SMTP id z18so16536038ybg.8 for ; Sun, 12 Sep 2021 15:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rU7cg6WH9Faxp33Esk5DBhmWghVnL6JlsQJD/bwRSDQ=; b=R0x6aC8Sc3oRAPzaP+ZoWosv6RLTAUXoQ1GGvb+auePeeyFEsNYGMjC++V/gO1hVyy WItYpb5U4MGVSD0IZznX+4aZIv8kgciy4PN8oVPaBOvfAwSFVWOhO4NBqkQX5hxAKA/O e+VBr3XkwTraGGwYHZnsdgaz9r8mb/0GiE8k9XdKDlWe8Ysy0uS4InITyl1KzAuB9APb NJnRdCEvh+ybS1MMMejwH9iuddC3D6CKw4ccHTCfXgon63tmPRLEAi/Qd3mltLk+Ce9h SiqA4V23R7bdCk9JX7vqHaC6Up2EhFVZmnRZpk1pk9StogcuOp6G5a/EKwL+QFCTk0rs 2TSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rU7cg6WH9Faxp33Esk5DBhmWghVnL6JlsQJD/bwRSDQ=; b=cRg28BydFZUhFtLPDZk4WCLZbDtRoKSUyybLV9d/5NAjvLgn1UmmjmRJ4fZ3WumKg3 Ip50ZcsHid9zkQZJkQsZaGShaNeqH84FRnCiABp8aKcdXi8nJqCFW3s5IBnbzwyX2aaL XEmgMVHnTmaQId8ASEJ/nNwLbysWqx6jxFOYvCRpLsahVVV1Kir+XHYC8cysOte5+Ph6 z4I1A8m6VCru2r83Tos0JxECFZ5uwr2aUNR2APcAaawJJ5SC9bnomhICseg85Sw7rprS MO2WWzsbmyPCHc4xJ6XPAnwFzFwDNoTx8OmedVOsR8SQppuUS0+eguwJcxt5KM18f5Yx HPhQ== X-Gm-Message-State: AOAM533rLODuOZcdmMQpn/sPk1Skw6cmEfCGNc4IsF2q9JtzhVzARXfD Ne/y1iccOSsEdQVc8aTRBCQ4Jem1CF6oliUCwGk= X-Google-Smtp-Source: ABdhPJxmSE9VIVB9I1dbtCV8i0kT95pk+G3PzoINXbOFwEZ7YERNac/I6YFaowb+TvZiCKHJBkP4Ga+jL0/9By8UkfU= X-Received: by 2002:a25:80d4:: with SMTP id c20mr10630586ybm.345.1631486345632; Sun, 12 Sep 2021 15:39:05 -0700 (PDT) MIME-Version: 1.0 References: <20210912155610.49935-1-samuel@sholland.org> In-Reply-To: <20210912155610.49935-1-samuel@sholland.org> From: Bin Meng Date: Mon, 13 Sep 2021 06:38:55 +0800 Message-ID: Subject: Re: [PATCH] serial: Add a debug console using the RISC-V SBI interface To: Samuel Holland Cc: Rick Chen , Leo , U-Boot Mailing List , AKASHI Takahiro , =?UTF-8?B?TWFyZWsgQmVow7pu?= , Mark Kettenis , Michal Simek , Minkyu Kang , Simon Glass , Stefan Roese , Vabhav Sharma , Weijie Gao Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Sun, Sep 12, 2021 at 11:56 PM Samuel Holland wrote: > > The RISC-V SBI interface v0.1 provides a function for printing a > character to the console. Even though SBI v0.1 functions are deprecated, > the SBI console is quite useful for early debugging, because it works > without any dcache, memory, or MMIO access in S mode. > > Signed-off-by: Samuel Holland > --- > > drivers/serial/Kconfig | 10 ++++++++++ > drivers/serial/Makefile | 1 + > drivers/serial/serial_sbi.c | 16 ++++++++++++++++ > 3 files changed, 27 insertions(+) > create mode 100644 drivers/serial/serial_sbi.c > Reviewed-by: Bin Meng