qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Add nRF51 DETECT signal with test
@ 2023-07-26  3:31 Chris Laplante
  2023-07-26  3:31 ` [PATCH v2 1/6] hw/gpio/nrf51: implement DETECT signal Chris Laplante
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Chris Laplante @ 2023-07-26  3:31 UTC (permalink / raw)
  To: qemu-devel; +Cc: Joel Stanley, Peter Maydell, qemu-arm, Chris Laplante

This patch series implements the nRF51 DETECT signal
in the GPIO peripheral. A qtest is added exercising the signal.

To implement the test, named out-GPIO IRQ interception had to be added
to the qtest framework. I also took the opportunity to improve IRQ
interception a bit by adding 'FAIL' responses when interception fails.
Otherwise, it is frustrating to troubleshoot why calls to
qtest_irq_intercept_out and friends appears to do nothing.

v1: https://patchwork.kernel.org/project/qemu-devel/list/?series=766078

Testing
=======
Passes 'make check'

Changelog
=========
v2: factor out qtest_install_gpio_out_intercept before usage (Peter)
    renamed qtest_install_gpio_out_intercepts => qtest_install_gpio_out_intercept
    don't pass DETECT to soc level (Peter)
    change qtest to use DETECT at GPIO level (Peter)


Chris Laplante (6):
  hw/gpio/nrf51: implement DETECT signal
  qtest: factor out qtest_install_gpio_out_intercept
  qtest: implement named interception of out-GPIO
  qtest: bail from irq_intercept_in if name is specified
  qtest: irq_intercept_[out/in]: return FAIL if no intercepts are
    installed
  qtest: microbit-test: add tests for nRF51 DETECT

 hw/gpio/nrf51_gpio.c         | 14 ++++++++-
 include/hw/gpio/nrf51_gpio.h |  1 +
 softmmu/qtest.c              | 56 ++++++++++++++++++++++++++----------
 tests/qtest/libqtest.c       |  6 ++++
 tests/qtest/libqtest.h       | 11 +++++++
 tests/qtest/microbit-test.c  | 42 +++++++++++++++++++++++++++
 6 files changed, 114 insertions(+), 16 deletions(-)

--
2.41.0




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-07-28  9:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26  3:31 [PATCH v2 0/6] Add nRF51 DETECT signal with test Chris Laplante
2023-07-26  3:31 ` [PATCH v2 1/6] hw/gpio/nrf51: implement DETECT signal Chris Laplante
2023-07-27 16:10   ` Peter Maydell
2023-07-26  3:31 ` [PATCH v2 2/6] qtest: factor out qtest_install_gpio_out_intercept Chris Laplante
2023-07-27 16:11   ` Peter Maydell
2023-07-26  3:32 ` [PATCH v2 3/6] qtest: implement named interception of out-GPIO Chris Laplante
2023-07-27 16:23   ` Peter Maydell
2023-07-27 21:32     ` Chris Laplante
2023-07-28  9:31       ` Peter Maydell
2023-07-26  3:32 ` [PATCH v2 4/6] qtest: bail from irq_intercept_in if name is specified Chris Laplante
2023-07-26  3:32 ` [PATCH v2 5/6] qtest: irq_intercept_[out/in]: return FAIL if no intercepts are installed Chris Laplante
2023-07-26  3:32 ` [PATCH v2 6/6] qtest: microbit-test: add tests for nRF51 DETECT Chris Laplante
2023-07-27 16:24 ` [PATCH v2 0/6] Add nRF51 DETECT signal with test Peter Maydell

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).