All of lore.kernel.org
 help / color / mirror / Atom feed
From: raoyi <rao232328@gmail.com>
To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org
Cc: "Chao Liu" <chao.liu@processmission.com>,
	"Alistair Francis" <alistair.francis@wdc.com>,
	"Palmer Dabbelt" <palmer@dabbelt.com>,
	"Weiwei Li" <liwei1518@gmail.com>,
	"Daniel Henrique Barboza" <daniel.barboza@oss.qualcomm.com>,
	"Liu Zhiwei" <zhiwei_liu@linux.alibaba.com>,
	caojunze424 <caojunze424@gmail.com>,
	"Bin Meng" <bin.meng@processmission.com>,
	"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>,
	raoyi <rao232328@gmail.com>
Subject: [PATCH v5 0/3] hw/timer: add K230 DW APB timer support
Date: Wed, 19 Aug 2026 21:18:56 +0800	[thread overview]
Message-ID: <20260819131859.9583-1-rao232328@gmail.com> (raw)

Add a DesignWare APB timer model to QEMU, wire it to the K230 board,
and provide qtest coverage for the timer behavior.

Changes in v5:
- Rename DW_APB_TIMER_CONTROL_INT to
  DW_APB_TIMER_CONTROL_INT_MASK.
- Fix the K230 timer clock frequency from 6.25 MHz to 50 MHz.
- Wrap the qtest commit message at about 70 characters per line.
- Register both K230 qtests directly under CONFIG_K230.

Testing:
- QEMU build passed in the Debian container.
- tests/qtest/k230-dwapb-timer-test: 8/8 passed.
- Mainline Linux 7.2.0-rc3 booted successfully.
- DW APB timer registered at 50 MHz; PLIC timer interrupt counts increased.

raoyi (3):
  hw/timer: add DesignWare APB timer model
  hw/riscv: add DesignWare APB timer to K230 board
  tests/qtest: add k230 dwapb timer test

 MAINTAINERS                         |   3 +
 hw/riscv/Kconfig                    |   1 +
 hw/riscv/k230.c                     |  33 ++-
 hw/timer/Kconfig                    |   4 +
 hw/timer/dw-apb-timer.c             | 376 ++++++++++++++++++++++++++++
 hw/timer/meson.build                |   1 +
 hw/timer/trace-events               |   8 +
 include/hw/riscv/k230.h             |   8 +
 include/hw/timer/dw-apb-timer.h     |  40 +++
 tests/qtest/k230-dwapb-timer-test.c | 274 ++++++++++++++++++++
 tests/qtest/meson.build             |   3 +-
 11 files changed, 747 insertions(+), 4 deletions(-)
 create mode 100644 hw/timer/dw-apb-timer.c
 create mode 100644 include/hw/timer/dw-apb-timer.h
 create mode 100644 tests/qtest/k230-dwapb-timer-test.c


base-commit: f893c46c3931b3684d235d221bf8b7844ddbf1d7
-- 
2.53.0


             reply	other threads:[~2026-08-19 13:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-19 13:18 raoyi [this message]
2026-08-19 13:18 ` [PATCH v5 1/3] hw/timer: add DesignWare APB timer model raoyi
2026-08-19 13:18 ` [PATCH v5 2/3] hw/riscv: add DesignWare APB timer to K230 board raoyi
2026-08-19 13:18 ` [PATCH v5 3/3] tests/qtest: add k230 dwapb timer test raoyi

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=20260819131859.9583-1-rao232328@gmail.com \
    --to=rao232328@gmail.com \
    --cc=alistair.francis@wdc.com \
    --cc=bin.meng@processmission.com \
    --cc=caojunze424@gmail.com \
    --cc=chao.liu@processmission.com \
    --cc=daniel.barboza@oss.qualcomm.com \
    --cc=liwei1518@gmail.com \
    --cc=palmer@dabbelt.com \
    --cc=philmd@oss.qualcomm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    --cc=zhiwei_liu@linux.alibaba.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 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.