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 lists1p.gnu.org (lists1p.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 A4FBCC531FC for ; Sat, 25 Jul 2026 01:00:42 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wnQkg-0000Ve-Kl; Fri, 24 Jul 2026 21:00:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wnQTU-00073k-A5 for qemu-arm@nongnu.org; Fri, 24 Jul 2026 20:42:45 -0400 Received: from mail-vs1-xe2f.google.com ([2607:f8b0:4864:20::e2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wnQTS-0000tR-OQ for qemu-arm@nongnu.org; Fri, 24 Jul 2026 20:42:44 -0400 Received: by mail-vs1-xe2f.google.com with SMTP id ada2fe7eead31-74ae4c75b20so514760137.1 for ; Fri, 24 Jul 2026 17:42:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784940162; x=1785544962; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=HnQ7gxsV8OdqblNm0oJhx5jgthosF7mosNZcLoe2o7k=; b=LAVKsSlTyqSNiXURUPMXXvKMonZ+8KENuAyu3ACHS8fymxD2xPboBzVTLfYZnz7pfq zl0qOcPQ45I5OxWfhI+heqSFyiqliWTsISSeAULtsCsLKQZtjK5JWcyTIDg9CejZYr0b EEM38bgtEsmKKP60A2WcfFb9tTDZCDqkhe/NtXo0vnhk7C5gWTg2LCUjzHiHw5PyYPRV Ik2gz08xlLneEi1Ziqx9R2DJpSLGTT8sG8bFT3lBht1iYGc5nJsZsf1+zYWvxFvKndOK 6fBn3+9b7MG1uoi9HotUmpeVvRR3AsEeDVKNnxvXvq/DO2l7KM/GocfHK9Rtwt4oYp92 F8Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784940162; x=1785544962; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=HnQ7gxsV8OdqblNm0oJhx5jgthosF7mosNZcLoe2o7k=; b=Pc0gc16O3CvhQ6mzZeNqd7TrNcrckUw4YFHknpVXb6G8cXTvlBrhKFtExp55wsfqKw 9tFoiMXKfZ0wJvXaEuf+2jrrZ/ljRmR0mQ359379+/Jop5QI4+Oq75hmEBwhkiRKeDFt AfGcGrDWNL3qn6skSWWtEf3oCDcgKzT4UJitH6Hz2Spk2sBGLuFenZvBzSYZeltfoADV YsiFopNSUVDS3EqvxoGeM4QTuUlA/U3jhw9xvQpKEQsetPkcPpZeqHZQs51hFH7M9i7c Hj1KoxOpJqu9HyAorPQpeVMKZi+NK7pPrTSUrLqx3VaGwG2HVBUKy8HG/NUEymQQCqdz +QVg== X-Gm-Message-State: AOJu0Yy3CNCwZ6XDLgc13647/jGTvUM5rbaQF9ceM+maAr98ogDPm8EY nJhHD9dfunqotWtDbXPZNZm+9ntdxqI3/mfD+Q52d/7ZpDXGT7PwdrSu X-Gm-Gg: AR+sD13qfND9tE4l7iwenS0kBaCrv/3VEA2SyF2u1pVYOP1xwZkKoPVafkhZnDHwfVw YiNlkp4eN5Ps7KYq0fjiAVRMQfqS8af8HW9miAvtKPD7ZnKFbaS8gyYv1yKIQAAfXfftajSjDtr dUTbMijBfaMONZb9I7mr2b8KT8UxXTSDSZcajuqh8KBEayLakPvZawx4+/r5ldsZzdXLy+OLwOn kUtMc2T8sldHrpAMU+znja/ibSQisvwba5hj3IXpfCnwNsWg/dOnvdt/3FveCWOwKr/IZlEvpfS 5QtTecTwYMJSpD/WMyHHjumOqEnDfzSbWRC1iHHV17bUzE2eq4d7nFNbTCoMyVctAHVNr9LRQlb twjk10k3p0pmW7NNtUdRcu/sUZzlxsidxBn0P4PgfTnzG7ALeMW+/etgqJYFxtqQM6cA+Fssv7j b5PjjUEAhVeMO1sBXLbVZ+8/xo4irIrcIT X-Received: by 2002:a05:6102:a210:10b0:6cd:b43f:72fd with SMTP id ada2fe7eead31-74f9fc68fb5mr1307052137.22.1784940161607; Fri, 24 Jul 2026 17:42:41 -0700 (PDT) Received: from localhost.localdomain ([146.71.8.128]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-97774f12690sm930591241.12.2026.07.24.17.42.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 24 Jul 2026 17:42:41 -0700 (PDT) From: Marcelo Manzo To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jason Wang , Sergey Kambalin , Marcelo Manzo Subject: [PATCH 19/19] tests/functional/aarch64: add raspi4b GENET networking test Date: Fri, 24 Jul 2026 20:42:18 -0400 Message-ID: <20260725004219.66222-20-marcelomanzo@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20260725004219.66222-1-marcelomanzo@gmail.com> References: <20260725004219.66222-1-marcelomanzo@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::e2f; envelope-from=marcelomanzo@gmail.com; helo=mail-vs1-xe2f.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 24 Jul 2026 21:00:29 -0400 X-BeenThere: qemu-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org 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): without the "fix PHY autonegotiation-restart deadlock" patch earlier in this series, 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 that fix. Signed-off-by: Marcelo Manzo --- 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 7a4302b0..0e254a20 100755 --- a/tests/functional/aarch64/test_raspi4.py +++ b/tests/functional/aarch64/test_raspi4.py @@ -92,5 +92,35 @@ def test_arm_raspi4_initrd(self): #self.vm.wait() + def test_arm_raspi4_genet(self): + kernel_path = self.archive_extract(self.ASSET_KERNEL_20190215, + member='boot/kernel8.img') + dtb_path = self.archive_extract(self.ASSET_KERNEL_20190215, + member='boot/bcm2711-rpi-4-b.dtb') + initrd_path = self.uncompress(self.ASSET_INITRD) + + self.set_machine('raspi4b') + self.vm.set_console() + kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE + + 'earlycon=pl011,mmio32,0xfe201000 ' + + 'console=ttyAMA0,115200 ' + + 'panic=-1 noreboot ' + + 'dwc_otg.fiq_fsm_enable=0') + self.vm.add_args('-kernel', kernel_path, + '-dtb', dtb_path, + '-initrd', initrd_path, + '-append', kernel_command_line, + '-no-reboot', + '-nic', 'user,model=bcm2838-genet') + self.vm.launch() + self.wait_for_console_pattern( + 'bcmgenet fd580000.ethernet: GENET 5.0 EPHY') + self.wait_for_console_pattern('Boot successful.') + + exec_command_and_wait_for_pattern(self, 'ip link show eth0', + 'LOWER_UP') + exec_command_and_wait_for_pattern(self, 'halt', 'reboot: System halted') + + if __name__ == '__main__': LinuxKernelTest.main() -- 2.47.1