On Thu, 15 Oct 2026 at 19:11, Marcelo Manzo <[email protected]> wrote:
>
> Add test_arm_raspi4_genet, exercising the raspi4b GENET controller
> end to end: boot with a -nic bcm2838-genet device attached, confirm
> the guest driver probes it ("GENET 5.0 EPHY" in the kernel log),
> reach a shell, and confirm the link actually comes up
> ("ip link show eth0" reports LOWER_UP) rather than just that the
> device exists.
>
> Verified locally against this series with the exact kernel/initrd
> assets this file already pins (raspberrypi-kernel_1.20230106-1 /
> groeck linux-build-test rootfs). The link only comes up because the
> MDIO patch handles the PHY autonegotiation-restart request (BMCR
> ANRESTART) correctly; without that the link never comes up and this
> test would hang at the "ip link show eth0" step, so it also serves
> as a regression test for it.
>
> Signed-off-by: Marcelo Manzo <[email protected]>
> ---
> tests/functional/aarch64/test_raspi4.py | 30 +++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/tests/functional/aarch64/test_raspi4.py
> b/tests/functional/aarch64/test_raspi4.py
> index bacecbbe9c..f703fc69ae 100755
> --- a/tests/functional/aarch64/test_raspi4.py
> +++ b/tests/functional/aarch64/test_raspi4.py
> @@ -109,5 +109,35 @@ def test_arm_raspi4_initrd(self):
> #self.vm.wait()
>
>
> + def test_arm_raspi4_genet(self):
I think you need
self.require_netdev('user')
here, to skip the test on builds which were configured without
the usermode networking backend.
Otherwise
Reviewed-by: Peter Maydell <[email protected]>
thanks
-- PMM