From: Alistair Francis <alistair23@gmail.com>
To: Tommy Wu <tommy.wu@sifive.com>
Cc: qemu-devel@nongnu.org, qemu-riscv@nongnu.org,
alistair.francis@wdc.com, palmer@dabbelt.com,
bin.meng@windriver.com, jim.shu@sifive.com,
frank.chang@sifive.com, liweiwei@iscas.ac.cn, philmd@linaro.org
Subject: Re: [PATCH v5 0/3] Implement the watchdog timer of HiFive 1 rev b.
Date: Thu, 22 Jun 2023 12:09:58 +1000 [thread overview]
Message-ID: <CAKmqyKMKB2c+cfYFdPCwcst10hO7Zn7juB+u5ScV2gBTw=cjbg@mail.gmail.com> (raw)
In-Reply-To: <20230608164542.3675619-1-tommy.wu@sifive.com>
On Fri, Jun 9, 2023 at 2:46 AM Tommy Wu <tommy.wu@sifive.com> wrote:
>
> The HiFive 1 rev b includes a watchdog module based on a 32-bit
> counter. The watchdog timer is in the always-on domain device of
> HiFive 1 rev b, so this patch added the AON device to the sifive_e
> machine. This patch only implemented the functionality of the
> watchdog timer, not all the functionality of the AON device.
>
> You can test the patchset by the QTest tests/qtest/sifive-e-aon-watchdog-test.c
>
> Changes since v1 ( Thank Alistair for the feedback ):
> - Use the register field macro.
> - Delete the public create function. The board creates the aon device itself.
> - Keep all variable declarations at the top of the code block.
>
> Changes since v2 ( Thank Alistair for the feedback ):
> - Delete the declaration and definition of the create function.
>
> Changes since v3 ( Thank Alistair and Thomas for the feedback ):
> - Use `device_class_set_props()` for the properties in sifive_e_aon device.
> - Add SPDX identifier in QTEST.
> - Use libqtest.h in QTEST.
> - Let the statements on one line as long as they still fit into 80 columns.
>
> Changes since v4 ( Thank Phil for the feedback ):
> - Improve code style consistency.
> - Move the timer create function to the sifive_e_aon_init.
> - Allocate the sifive_e_aon device state in the SoC.
>
> Tommy Wu (3):
> hw/misc: sifive_e_aon: Support the watchdog timer of HiFive 1 rev b.
> hw/riscv: sifive_e: Support the watchdog timer of HiFive 1 rev b.
> tests/qtest: sifive-e-aon-watchdog-test.c: Add QTest of watchdog of
> sifive_e
Do you mind rebasing this on
https://github.com/alistair23/qemu/tree/riscv-to-apply.next ? Then I
will apply it
Alistair
>
> hw/misc/Kconfig | 3 +
> hw/misc/meson.build | 1 +
> hw/misc/sifive_e_aon.c | 319 ++++++++++++++++
> hw/riscv/Kconfig | 1 +
> hw/riscv/sifive_e.c | 17 +-
> include/hw/misc/sifive_e_aon.h | 60 +++
> include/hw/riscv/sifive_e.h | 9 +-
> tests/qtest/meson.build | 3 +
> tests/qtest/sifive-e-aon-watchdog-test.c | 450 +++++++++++++++++++++++
> 9 files changed, 858 insertions(+), 5 deletions(-)
> create mode 100644 hw/misc/sifive_e_aon.c
> create mode 100644 include/hw/misc/sifive_e_aon.h
> create mode 100644 tests/qtest/sifive-e-aon-watchdog-test.c
>
> --
> 2.27.0
>
>
next prev parent reply other threads:[~2023-06-22 2:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-08 16:45 [PATCH v5 0/3] Implement the watchdog timer of HiFive 1 rev b Tommy Wu
2023-06-08 16:45 ` [PATCH v5 1/3] hw/misc: sifive_e_aon: Support " Tommy Wu
2023-06-22 2:04 ` Alistair Francis
2023-06-08 16:45 ` [PATCH v5 2/3] hw/riscv: sifive_e: " Tommy Wu
2023-06-22 2:07 ` Alistair Francis
2023-06-08 16:45 ` [PATCH v5 3/3] tests/qtest: sifive-e-aon-watchdog-test.c: Add QTest of watchdog of sifive_e Tommy Wu
2023-06-22 2:08 ` Alistair Francis
2023-06-22 2:09 ` Alistair Francis [this message]
2023-06-27 14:14 ` [PATCH v5 0/3] Implement the watchdog timer of HiFive 1 rev b Tommy Wu
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='CAKmqyKMKB2c+cfYFdPCwcst10hO7Zn7juB+u5ScV2gBTw=cjbg@mail.gmail.com' \
--to=alistair23@gmail.com \
--cc=alistair.francis@wdc.com \
--cc=bin.meng@windriver.com \
--cc=frank.chang@sifive.com \
--cc=jim.shu@sifive.com \
--cc=liweiwei@iscas.ac.cn \
--cc=palmer@dabbelt.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=tommy.wu@sifive.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).