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 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 840F1C0015E for ; Fri, 28 Jul 2023 16:19:37 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPPxd-0004rN-OJ; Fri, 28 Jul 2023 12:05:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPPxb-0004qc-RW for qemu-devel@nongnu.org; Fri, 28 Jul 2023 12:04:59 -0400 Received: from mail-4018.proton.ch ([185.70.40.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPPxY-0004LQ-DX for qemu-devel@nongnu.org; Fri, 28 Jul 2023 12:04:59 -0400 Date: Fri, 28 Jul 2023 16:04:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=laplante.io; s=protonmail3; t=1690560292; x=1690819492; bh=zQBB7Ko53fiYSwYt5uROhNcqpPSMi6i/NSWBA2hbLdU=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=dHK4WEvAJL4aG0DOOHUQ6Tmez53x9s1ufdaLOTpEZPUn14w8yHG5fNxwXj5Rb1cxG T21c1Uv2BzcqzUfGp+MC5fmkK76UrBU4QC1oAxzuXnu+1/GSiT08O+ojd/p44cWaKU n/0Dcrp3gRE6bCYD26miqzidH6JpIjzS9WAhcRMiuhgMVyo0Btx/RcvcWme2BMzrk8 48eqOpGcghOKjW1mn82Nsf9FOaOpE/6CoHMS0BC/c4Wg7bv3l1v3y/5CnKh0Ag7Obs IhR+iTM99a62Mx4dK79V5ecZwGreztiUyfFgMZq0a5pw2qQVub7E+ktu30CnuLKIXr 1AOpokfsjCqyw== To: qemu-devel@nongnu.org From: Chris Laplante Cc: Joel Stanley , Peter Maydell , qemu-arm@nongnu.org, Chris Laplante Subject: [PATCH v3 0/6] Add nRF51 DETECT signal with test Message-ID: <20230728160324.1159090-1-chris@laplante.io> Feedback-ID: 43500449:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.18; envelope-from=chris@laplante.io; helo=mail-4018.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org 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. v2: https://patchwork.kernel.org/project/qemu-devel/list/?series=3D769532 Testing =3D=3D=3D=3D=3D=3D=3D Passes 'make check' Changelog =3D=3D=3D=3D=3D=3D=3D=3D=3D v2: factor out qtest_install_gpio_out_intercept before usage (Peter) renamed qtest_install_gpio_out_intercepts =3D> qtest_install_gpio_out_i= ntercept don't pass DETECT to soc level (Peter) change qtest to use DETECT at GPIO level (Peter) v3: formatting fixup (Peter) handle multiple named out-GPIOs, not just one (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 | 52 +++++++++++++++++++++++++----------- tests/qtest/libqtest.c | 6 +++++ tests/qtest/libqtest.h | 11 ++++++++ tests/qtest/microbit-test.c | 42 +++++++++++++++++++++++++++++ 6 files changed, 110 insertions(+), 16 deletions(-) -- 2.41.0