From nobody Thu Nov 13 18:09:43 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581794822097536.5884293234053; Sat, 15 Feb 2020 11:27:02 -0800 (PST) Received: from localhost ([::1]:53944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j335g-0003RI-TV for importer@patchew.org; Sat, 15 Feb 2020 14:27:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36457) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j331I-0004D5-Qt for qemu-devel@nongnu.org; Sat, 15 Feb 2020 14:22:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j331H-0000zA-EX for qemu-devel@nongnu.org; Sat, 15 Feb 2020 14:22:28 -0500 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]:46537) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j331H-0000y8-7Q for qemu-devel@nongnu.org; Sat, 15 Feb 2020 14:22:27 -0500 Received: by mail-ed1-x544.google.com with SMTP id p14so7289543edy.13 for ; Sat, 15 Feb 2020 11:22:27 -0800 (PST) Received: from localhost.localdomain (78.red-88-21-202.staticip.rima-tde.net. [88.21.202.78]) by smtp.gmail.com with ESMTPSA id a24sm657128ejt.40.2020.02.15.11.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Feb 2020 11:22:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tzrui7Hni4HFas47JhhX91fv9JSO990o0375X1EFRvA=; b=Y2VFKwqKuyOKh2fZHOUSqMmH7qFh3qXZhhJrDA9lvf0Ak3QDxxoCnggcMkwgc/u/Ss J24qPzJu1u9Vr03FoOj8UZ9QIbmIkDUB1LRjHkvIJfaeF3hfO/9/AV2+C53xoizEtGVi re8HUXO9Hs0Cf8zqVTihfMw5mB4uF++JYeVGO0FBefpI+Gj4Io+kyaG3v40MDzKIQoBq yt8SW/KS4PKVXNd/hHWxfa78lozMhDJFZS8iUo9KHYzXrou8IQ5ELWgcKYoQv5QA1jNW RqoDLR8W4T9+HnLFGNjIXykh6zkOzwwelAB3XrJ45Nd3SkfcYH3nUdnCiNlQJItjcpdG BzyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=tzrui7Hni4HFas47JhhX91fv9JSO990o0375X1EFRvA=; b=ufudAQfIi/2DDjba5FS2yyw7gIt97rfNUmImCbCkDOYOcg7mlYn+wkQkhC6JSzBzNp 9xA+qUX1Of3U1eAwLUlD3IvDckV1aphrKCA+tKZw97+TMJNIM3+7h/YB2r4O/5bu5aDI oBhaDejhvgCSiGe7x0hQVCewKCFZzvZQGZ7JmagsW0vSSfv3olWQm1FV5448BlsdsZ+Y kiRQHYiveVJirKQh1JAmBQyYJBnoF2SCAwCPv+6vHXjpPQVuX+f5NaUHsvu/cOjPdXqK e2CQQOP4lPx+IXJkXC/nTgqM+/j3IFHP9ink6w3k4+e0Ku0rN1PnJ/iWOkJ7dc9RKr0Y bTqw== X-Gm-Message-State: APjAAAVWESrtoLbPcPntO6kAtXtDlxlho/1HysVoUmNlO/S4YraOi/ej 6ubzVgaf7iz/8h6CeAIgausCM5xWlFQ= X-Google-Smtp-Source: APXvYqzARskAAw3XImlSx0Y7jKGg1loNMYvhMzaxSl1hWagJJgDAu6PUr7acneCnzd5B+v+kFiVdsQ== X-Received: by 2002:a17:906:4a5a:: with SMTP id a26mr8428680ejv.49.1581794545977; Sat, 15 Feb 2020 11:22:25 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 5/8] tests/acceptance/boot_linux_console: Test the raspi1 AUX console Date: Sat, 15 Feb 2020 20:22:13 +0100 Message-Id: <20200215192216.4899-6-f4bug@amsat.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200215192216.4899-1-f4bug@amsat.org> References: <20200215192216.4899-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::544 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Andrew Baumann , Igor Mammedov Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) $ avocado --show=3Dapp,console run -t device:bcm2835_aux tests/acceptance/ JOB ID : a8846d69d52da701681b1d17f80ef299009fd078 JOB LOG : avocado/job-results/job-2020-02-05T23.44-a8846d6/job.log (1/3) tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_arm_r= aspi0_uart1: console: [ 0.000000] Booting Linux on physical CPU 0x0 console: [ 0.000000] Linux version 4.14.98+ (dom@dom-XPS-13-9370) (gcc= version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 Tue Fe= b 12 20:11:02 GMT 2019 console: [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revisi= on 7 (ARMv7), cr=3D00c5387d console: [ 0.000000] CPU: VIPT aliasing data cache, unknown instructio= n cache console: [ 0.000000] OF: fdt: Machine model: Raspberry Pi Zero W console: [ 0.000000] earlycon: uart8250 at MMIO32 0x20215040 (options = '') console: [ 0.000000] bootconsole [uart8250] enabled console: [ 0.000000] Memory policy: Data cache writeback console: [ 0.000000] cma: Reserved 8 MiB at 0x1b800000 console: [ 0.000000] Built 1 zonelists, mobility grouping on. Total p= ages: 113680 console: [ 0.000000] Kernel command line: printk.time=3D0 earlycon=3Du= art8250,mmio32,0x20215040 console=3DttyS1,115200 PASS (13.31 s) (2/3) tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_arm_r= aspi1_uart1: console: [ 0.000000] Booting Linux on physical CPU 0x0 console: [ 0.000000] Linux version 4.14.98+ (dom@dom-XPS-13-9370) (gcc= version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 Tue Fe= b 12 20:11:02 GMT 2019 console: [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revisi= on 7 (ARMv7), cr=3D00c5387d console: [ 0.000000] CPU: VIPT aliasing data cache, unknown instructio= n cache console: [ 0.000000] OF: fdt: Machine model: Raspberry Pi Model B console: [ 0.000000] earlycon: uart8250 at MMIO32 0x20215040 (options = '') console: [ 0.000000] bootconsole [uart8250] enabled console: [ 0.000000] Memory policy: Data cache writeback console: [ 0.000000] cma: Reserved 8 MiB at 0x1b800000 console: [ 0.000000] Built 1 zonelists, mobility grouping on. Total p= ages: 113680 console: [ 0.000000] Kernel command line: printk.time=3D0 earlycon=3Du= art8250,mmio32,0x20215040 console=3DttyS1,115200 PASS (13.39 s) (3/3) tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_arm_r= aspi2_uart1: console: [ 0.000000] Booting Linux on physical CPU 0xf00 console: [ 0.000000] Linux version 4.14.98-v7+ (dom@dom-XPS-13-9370) (= gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 SMP= Tue Feb 12 20:27:48 GMT 2019 console: [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7= ), cr=3D10c5387d console: [ 0.000000] CPU: div instructions available: patching divisio= n code console: [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT ali= asing instruction cache console: [ 0.000000] OF: fdt: Machine model: Raspberry Pi 2 Model B console: [ 0.000000] earlycon: uart8250 at MMIO32 0x3f215040 (options = '') console: [ 0.000000] bootconsole [uart8250] enabled console: [ 0.000000] Memory policy: Data cache writealloc console: [ 0.000000] cma: Reserved 8 MiB at 0x3b800000 console: [ 0.000000] percpu: Embedded 17 pages/cpu @baf2e000 s38720 r8= 192 d22720 u69632 console: [ 0.000000] Built 1 zonelists, mobility grouping on. Total p= ages: 243600 console: [ 0.000000] Kernel command line: printk.time=3D0 earlycon=3Du= art8250,mmio32,0x3f215040 console=3DttyS1,115200 PASS (12.46 s) RESULTS : PASS 3 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | = CANCEL 0 JOB TIME : 39.60 s Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Luc Michel --- tests/acceptance/boot_linux_console.py | 37 +++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index bd3f0fc852..3d442b6cd1 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -359,6 +359,14 @@ def do_test_arm_raspi(self, version, uart_model): 1: 'earlycon=3Dpl011,0x20201000 console=3DttyAMA0', 2: 'earlycon=3Dpl011,0x3f201000 console=3DttyAMA0', }, + 'bcm2835_aux': { + 0: 'earlycon=3Duart8250,mmio32,0x20215040 console=3DttyS1,= 115200', + 1: 'earlycon=3Duart8250,mmio32,0x20215040 console=3DttyS1,= 115200', + 2: 'earlycon=3Duart8250,mmio32,0x3f215040 console=3DttyS1,= 115200', + }, + } + uart_id =3D { + 'pl011': 0, 'bcm2835_aux': 1, } kernel =3D { 0: '/boot/kernel.img', @@ -378,7 +386,7 @@ def do_test_arm_raspi(self, version, uart_model): kernel_path =3D self.extract_from_deb(deb_path, kernel[version]) dtb_path =3D self.extract_from_deb(deb_path, dtb[version]) =20 - self.vm.set_console() + self.vm.set_console(console_index=3Duart_id[uart_model]) kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + serial_kernel_cmdline[uart_model][version]) self.vm.add_args('-kernel', kernel_path, @@ -397,6 +405,15 @@ def test_arm_raspi0_uart0(self): """ self.do_test_arm_raspi(0, 'pl011') =20 + def test_arm_raspi0_uart1(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:raspi0 + :avocado: tags=3Dcpu:arm1176 + :avocado: tags=3Ddevice:bcm2835_aux + """ + self.do_test_arm_raspi(0, 'bcm2835_aux') + def test_arm_raspi1_uart0(self): """ :avocado: tags=3Darch:arm @@ -406,6 +423,15 @@ def test_arm_raspi1_uart0(self): """ self.do_test_arm_raspi(1, 'pl011') =20 + def test_arm_raspi1_uart1(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:raspi1 + :avocado: tags=3Dcpu:arm1176 + :avocado: tags=3Ddevice:bcm2835_aux + """ + self.do_test_arm_raspi(1, 'bcm2835_aux') + def test_arm_raspi2_uart0(self): """ :avocado: tags=3Darch:arm @@ -415,6 +441,15 @@ def test_arm_raspi2_uart0(self): """ self.do_test_arm_raspi(2, 'pl011') =20 + def test_arm_raspi2_uart1(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:raspi2 + :avocado: tags=3Dcpu:cortex-a7 + :avocado: tags=3Ddevice:bcm2835_aux + """ + self.do_test_arm_raspi(2, 'bcm2835_aux') + def test_arm_exynos4210_initrd(self): """ :avocado: tags=3Darch:arm --=20 2.21.1