All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: Anup Patel <apatel@ventanamicro.com>
Cc: Rick Chen <rick@andestech.com>,
	Atish Patra <atishp@atishpatra.org>,
	 Alistair Francis <Alistair.Francis@wdc.com>,
	Anup Patel <anup@brainfault.org>,
	 U-Boot Mailing List <u-boot@lists.denx.de>,
	Philipp Tomsich <philipp.tomsich@vrull.eu>
Subject: Re: [PATCH 1/3] serial: Add RISC-V HTIF console driver
Date: Tue, 25 Jan 2022 17:16:04 +0800	[thread overview]
Message-ID: <CAEUhbmXyJp+bbQ_4sh7r=reMaKQz2YdNb0ZWdk17qEweTpBL+g@mail.gmail.com> (raw)
In-Reply-To: <CAK9=C2X+7dNSphpgO_hPMxoCJjvnJrG8g5kSma3MtNxKexh-Dg@mail.gmail.com>

On Tue, Jan 25, 2022 at 2:00 PM Anup Patel <apatel@ventanamicro.com> wrote:
>
> On Tue, Jan 25, 2022 at 10:22 AM Bin Meng <bmeng.cn@gmail.com> wrote:
> >
> > On Sat, Jan 15, 2022 at 12:20 AM Anup Patel <apatel@ventanamicro.com> wrote:
> > >
> > > Quite a few RISC-V emulators and ISS (including Spike) have host
> > > transfer interface (HTIF) based console. This patch adds HTIF
> > > based console driver for RISC-V platforms which depends totally
> > > on DT node for HTIF register base address.
> > >
> > > Signed-off-by: Anup Patel <apatel@ventanamicro.com>
> > > Reviewed-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
> > > ---
> > >  drivers/serial/Kconfig       |   8 ++
> > >  drivers/serial/Makefile      |   1 +
> > >  drivers/serial/serial_htif.c | 178 +++++++++++++++++++++++++++++++++++
> > >  3 files changed, 187 insertions(+)
> > >  create mode 100644 drivers/serial/serial_htif.c
> > >
> > > diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
> > > index 6c8fdda9a0..345d1881f5 100644
> > > --- a/drivers/serial/Kconfig
> > > +++ b/drivers/serial/Kconfig
> > > @@ -866,6 +866,14 @@ config PXA_SERIAL
> > >           If you have a machine based on a Marvell XScale PXA2xx CPU you
> > >           can enable its onboard serial ports by enabling this option.
> > >
> > > +config HTIF_CONSOLE
> > > +       bool "RISC-V HTIF console support"
> > > +       depends on DM_SERIAL && 64BIT
> >
> > Does this driver not work on 32-bit?
>
> Only putc() works but getc() does not work on 32-bit. Same issue
> is there with OpenSBI and BBL as well. That's why I have restricted
> this driver to 64-bit only.
>

I don't get it. Is this a QEMU riscv32 bug?

Regards,
Bin

  reply	other threads:[~2022-01-25  9:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-14 16:20 [PATCH 0/3] QEMU spike machine support for U-Boot Anup Patel
2022-01-14 16:20 ` [PATCH 1/3] serial: Add RISC-V HTIF console driver Anup Patel
     [not found]   ` <HK0PR03MB2994046A80E42E46BC77050EC15F9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-01-25  1:14     ` Rick Chen
2022-01-25  4:52   ` Bin Meng
2022-01-25  6:00     ` Anup Patel
2022-01-25  9:16       ` Bin Meng [this message]
2022-01-25 11:31         ` Anup Patel
2022-01-14 16:20 ` [PATCH 2/3] riscv: qemu: Enable HTIF console support Anup Patel
     [not found]   ` <HK0PR03MB299495170A039FA84DE6AA7CC15F9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-01-25  1:16     ` Rick Chen
2022-01-14 16:20 ` [PATCH 3/3] riscv: qemu: Implement is_flash_available() for MTD NOR Anup Patel
     [not found]   ` <HK0PR03MB2994115F103502B3A46F7D38C15F9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-01-25  1:18     ` Rick Chen
2022-01-25  5:03   ` Bin Meng
2022-01-25  6:02     ` Anup Patel
2022-01-25  9:46       ` Bin Meng
2022-01-25 11:32         ` Anup Patel
2022-01-18 10:10 ` [PATCH 0/3] QEMU spike machine support for U-Boot Bin Meng
2022-01-18 10:56   ` Anup Patel
2022-01-25  5:10     ` Bin Meng
2022-01-25  6:03       ` Anup Patel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEUhbmXyJp+bbQ_4sh7r=reMaKQz2YdNb0ZWdk17qEweTpBL+g@mail.gmail.com' \
    --to=bmeng.cn@gmail.com \
    --cc=Alistair.Francis@wdc.com \
    --cc=anup@brainfault.org \
    --cc=apatel@ventanamicro.com \
    --cc=atishp@atishpatra.org \
    --cc=philipp.tomsich@vrull.eu \
    --cc=rick@andestech.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.