From nobody Tue Nov 18 10:37:46 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.43 as permitted sender) client-ip=209.85.221.43; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f43.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1609542765; cv=none; d=zohomail.com; s=zohoarc; b=hLx05Er1EcaVLxYXy0nICz4Rq07ToGghAp+ClCOz3QovewVcETbfIq5lBbPeFTpepyFImUipZHWm4+psr+Yvi2jSpN4e0JKVRD2uak/1XH9pgNyA9pQ3leFzI91QfWj7CLMhLpO8QLS67T/21AQjHkoWzysy/BxJR4DUb/lW6M4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609542765; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=1ZFaL/tBEiGUgBljBvstAJrPr1DQcDPzv1CfU3zzA3U=; b=jrGYHbFlW3lUzjic61Npict1tUvXcInrCl16nuLcS5PXm4wkpNPi8IBV+VoiZhW2dawhGw/ch5M9/mGlsOBIzav3n5IsURLFRWTCqfYW7ULbc3GCNOj4VyHjcu5bGE/ibduqn19D370PyfGBZux1oIzUI0Au8Nd2X3xgbv0gOhQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.43 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mx.zohomail.com with SMTPS id 1609542765925755.6830853272699; Fri, 1 Jan 2021 15:12:45 -0800 (PST) Received: by mail-wr1-f43.google.com with SMTP id d26so23327499wrb.12 for ; Fri, 01 Jan 2021 15:12:45 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (239.red-83-42-57.dynamicip.rima-tde.net. [83.42.57.239]) by smtp.gmail.com with ESMTPSA id c4sm18477181wmf.19.2021.01.01.15.12.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jan 2021 15:12:43 -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=1ZFaL/tBEiGUgBljBvstAJrPr1DQcDPzv1CfU3zzA3U=; b=G9jluaP0jy6YijI9Utkj31L/O3aPlj4TVxaAKGfgPlhcWG6guGK1JAwhv+8uvyN45N 7b/EXgBZWHJDP62iJEnBt/DHMHu63HpSVCPixZ8gupQBnVsA1qSdCYSqmLdjpOIs+SrA 9pNqKMKG+Nkc2a+sLwE7Utda0jwfgmc9GB2Duq1xa/OcKp+PxzdbTh/0YD/+/ugnuvWQ OZXDtlD61Kfsu4n6yOcYlnbBnci7QqJd1XZy2/to/9Qu63CFgDvrOd4BmiMZ5ZNrPRWc qMiDYOadi3u4Jmg9ZPLehj2Yt55k1OpyQekXegr63CEMIzrg9TDVStLyKq0wgzxmvmbH lQBw== 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=1ZFaL/tBEiGUgBljBvstAJrPr1DQcDPzv1CfU3zzA3U=; b=aVVDVaCL68Jbvgrg61Qd+9OiqM09goZx4yY0Rs9EKmQiXzdgPbkGKnO132j1+6Vk3T hmWSkJhfJYvnLDjph1tNmAkmxvNmJo59gEZTMOhNJxoZLuxiOxm7citIxXciC6iIk2in ofgNUfkKBF8VtaEdNadasFOo2k1pljRy0sCDYAFZDiF6L2xKycIJr3DYp2X05Ma3w0HT nrEXZY6NGDOUDF4rxtPps+GFtGtMVTQHvk+nU+G+SNU5hl1yc47Jzbk2DFdgzeX51eyV Qgv240FQAG48bcz6bVFpWJCEcYuDqTcFd71Q/FwQTPbXvdtMX1gtUI4vc4VJY0WMZzVF BC/A== X-Gm-Message-State: AOAM531JSttR/NxW3aCx2Bl1wcR3o1HJ/l6VwctKV93o4WH1tFvFz6Ac i9kibx/eKSr7MPU+CTudzx8= X-Google-Smtp-Source: ABdhPJznecIwQf+mD9QbnIsTg9+RTIanmA+7CvjuP8M0wP+S1oaPeFBDb7/5J46W56e1Q2rKFoYqZg== X-Received: by 2002:adf:c64f:: with SMTP id u15mr66510159wrg.270.1609542763971; Fri, 01 Jan 2021 15:12:43 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jiaxun Yang , Aurelien Jarno , Cleber Rosa , Aleksandar Rikalo , Mark Cave-Ayland , qemu-block@nongnu.org, Artyom Tarasenko , Wainer dos Santos Moschetta , John Snow , Huacai Chen , Peter Maydell , Guenter Roeck Subject: [RFC PATCH 5/5] tests/integration: Test Fuloong2E IDE drive, run userspace commands Date: Sat, 2 Jan 2021 00:12:15 +0100 Message-Id: <20210101231215.1870611-6-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210101231215.1870611-1-f4bug@amsat.org> References: <20210101231215.1870611-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) Boot rootfs build by Guenter Roeck [*]. Full test output: $ avocado --show=3Dapp,console run -t machine:fuloong2e tests/acceptance/ Fetching asset from tests/acceptance/boot_linux_console.py:BootLinuxConso= le.test_mips64el_fuloong2e Fetching asset from tests/acceptance/boot_linux_console.py:BootLinuxConso= le.test_mips64el_fuloong2e JOB ID : 4a89d17bd6fa596220113ea9b974412c37c6cf9a JOB LOG : /home/phil/avocado/job-results/job-2021-01-01T23.54-4a89d17/= job.log (1/1) tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_mips6= 4el_fuloong2e: console: [ 0.000000] Initializing cgroup subsys cpuset console: [ 0.000000] Initializing cgroup subsys cpu console: [ 0.000000] Initializing cgroup subsys cpuacct console: [ 0.000000] Linux version 3.16.0-6-loongson-2e (debian-kernel= @lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.56-= 1+deb8u1 (2018-05-08) console: [ 0.000000] memsize=3D256, highmemsize=3D0 console: [ 0.000000] CpuClock =3D 100000000 console: [ 0.000000] bootconsole [early0] enabled console: [ 0.000000] CPU0 revision is: 00006302 (ICT Loongson-2) console: [ 0.000000] FPU revision is: 00000501 console: [ 0.000000] Checking for the multiply/shift bug... no. console: [ 0.000000] Checking for the daddiu bug... no. console: [ 0.000000] Determined physical RAM map: console: [ 0.000000] memory: 0000000010000000 @ 0000000000000000 (usa= ble) console: [ 0.000000] memory: 0000000004000000 @ 0000000010000000 (res= erved) console: [ 0.000000] memory: 0000000003ffffff @ 000000001c000001 (res= erved) console: [ 0.000000] Initrd not found or empty - disabling initrd console: [ 0.000000] Zone ranges: console: [ 0.000000] DMA [mem 0x00000000-0x00ffffff] console: [ 0.000000] Normal [mem 0x01000000-0x0fffffff] console: [ 0.000000] Movable zone start for each node console: [ 0.000000] Early memory node ranges console: [ 0.000000] node 0: [mem 0x00000000-0x0fffffff] console: [ 0.000000] Reserving 0MB of memory at 0MB for crashkernel console: [ 0.000000] Primary instruction cache 64kB, VIPT, direct mapp= ed, linesize 32 bytes. console: [ 0.000000] Primary data cache 64kB, 4-way, VIPT, no aliases,= linesize 32 bytes console: [ 0.000000] Unified secondary cache 512kB 4-way, linesize 32 = bytes. console: [ 0.000000] Built 1 zonelists in Zone order, mobility groupin= g on. Total pages: 16327 console: [ 0.000000] Kernel command line: printk.time=3D0 console=3Dtt= yS0 root=3D/dev/sda ro panic=3D-1 noreboot console: PID hash table entries: 1024 (order: -1, 8192 bytes) console: Dentry cache hash table entries: 32768 (order: 4, 262144 bytes) console: Inode-cache hash table entries: 16384 (order: 3, 131072 bytes) console: Memory: 250752K/262144K available (5597K kernel code, 716K rwdat= a, 1548K rodata, 480K init, 581K bss, 11392K reserved) console: NR_IRQS:128 console: Console: colour dummy device 80x25 console: Calibrating delay loop... 118.60 BogoMIPS (lpj=3D237216) console: pid_max: default: 32768 minimum: 301 console: Security Framework initialized console: AppArmor: AppArmor disabled by boot time parameter console: Yama: disabled by default; enable with sysctl kernel.yama.* console: Mount-cache hash table entries: 2048 (order: 0, 16384 bytes) console: Mountpoint-cache hash table entries: 2048 (order: 0, 16384 bytes) console: Initializing cgroup subsys memory console: Initializing cgroup subsys devices console: Initializing cgroup subsys freezer console: Initializing cgroup subsys net_cls console: Initializing cgroup subsys blkio console: Initializing cgroup subsys perf_event console: Initializing cgroup subsys net_prio console: Checking for the daddi bug... no. console: ftrace: allocating 17617 entries in 18 pages console: devtmpfs: initialized console: futex hash table entries: 256 (order: -2, 6144 bytes) console: NET: Registered protocol family 16 console: vgaarb: loaded console: SCSI subsystem initialized console: PCI host bridge to bus 0000:00 console: pci_bus 0000:00: root bus resource [mem 0x14000000-0x1c000000] console: pci_bus 0000:00: root bus resource [io 0x4000-0xffff] console: pci_bus 0000:00: No busn resource found for root bus, will use [= bus 00-ff] console: via686b fix: ISA bridge console: via686b fix: ISA bridge done console: pci 0000:00:05.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7] console: pci 0000:00:05.1: legacy IDE quirk: reg 0x14: [io 0x03f6] console: pci 0000:00:05.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177] console: pci 0000:00:05.1: legacy IDE quirk: reg 0x1c: [io 0x0376] console: via686b fix: IDE console: via686b fix: IDE done console: pci 0000:00:05.4: quirk: [io 0xeee0-0xeeef] claimed by vt82c686= SMB console: pci 0000:00:07.0: BAR 6: assigned [mem 0x14000000-0x1403ffff pre= f] console: pci 0000:00:07.0: BAR 0: assigned [io 0x4000-0x40ff] console: pci 0000:00:07.0: BAR 1: assigned [mem 0x14040000-0x140400ff] console: pci 0000:00:05.2: BAR 4: assigned [io 0x4400-0x441f] console: pci 0000:00:05.3: BAR 4: assigned [io 0x4420-0x443f] console: Switched to clocksource MIPS console: NET: Registered protocol family 2 console: TCP established hash table entries: 2048 (order: 0, 16384 bytes) console: TCP bind hash table entries: 2048 (order: 0, 16384 bytes) console: TCP: Hash tables configured (established 2048 bind 2048) console: TCP: reno registered console: UDP hash table entries: 512 (order: 0, 16384 bytes) console: UDP-Lite hash table entries: 512 (order: 0, 16384 bytes) console: NET: Registered protocol family 1 console: PCI: Enabling device 0000:00:05.2 (0000 -> 0001) console: PCI: Enabling device 0000:00:05.3 (0000 -> 0001) console: audit: initializing netlink subsys (disabled) console: audit: type=3D2000 audit(1609541667.424:1): initialized console: HugeTLB registered 32 MB page size, pre-allocated 0 pages console: zbud: loaded console: VFS: Disk quotas dquot_6.5.2 console: Dquot-cache hash table entries: 2048 (order 0, 16384 bytes) console: msgmni has been set to 489 console: alg: No test for stdrng (krng) console: Block layer SCSI generic (bsg) driver version 0.4 loaded (major = 252) console: io scheduler noop registered console: io scheduler deadline registered console: io scheduler cfq registered (default) console: Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled console: console [ttyS0] disabled console: serial8250.0: ttyS0 at I/O 0x3f8 (irq =3D 4, base_baud =3D 11520= 0) is a 16550A console: console [ttyS0] enabled console: console [ttyS0] enabled console: bootconsole [early0] disabled console: bootconsole [early0] disabled console: pata_via 0000:00:05.1: BMDMA: BAR4 is zero, falling back to PIO console: scsi0 : pata_via console: scsi1 : pata_via console: ata1: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14 console: ata2: PATA max PIO4 cmd 0x170 ctl 0x376 irq 15 console: serio: i8042 KBD port at 0x60,0x64 irq 1 console: serio: i8042 AUX port at 0x60,0x64 irq 12 console: mousedev: PS/2 mouse device common for all mice console: rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 console: rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram console: ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100 console: ata1.00: 15320 sectors, multi 16: LBA48 console: ledtrig-cpu: registered to indicate activity on CPUs console: TCP: cubic registered console: NET: Registered protocol family 10 console: input: AT Raw Set 2 keyboard as /devices/platform/i8042/serio0/i= nput/input0 console: ata1.00: configured for PIO4 console: mip6: Mobile IPv6 console: NET: Registered protocol family 17 console: mpls_gso: MPLS GSO support console: registered taskstats version 1 console: rtc_cmos rtc_cmos: setting system clock to 2021-01-01 22:54:20 U= TC (1609541660) console: scsi 0:0:0:0: Direct-Access ATA QEMU HARDDISK 2.5+ P= Q: 0 ANSI: 5 console: input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i804= 2/serio1/input/input2 console: sd 0:0:0:0: [sda] 15320 512-byte logical blocks: (7.84 MB/7.48 M= iB) console: sd 0:0:0:0: [sda] Write Protect is off console: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doe= sn't support DPO or FUA console: sda: unknown partition table console: sd 0:0:0:0: [sda] Attached SCSI disk console: EXT4-fs (sda): mounting ext3 file system using the ext4 subsystem console: EXT4-fs (sda): mounted filesystem with ordered data mode. Opts: = (null) console: VFS: Mounted root (ext3 filesystem) readonly on device 8:0. console: Freeing unused kernel memory: 480K (ffffffff808b8000 - ffffffff8= 0930000) console: random: nonblocking pool is initialized console: EXT4-fs (sda): re-mounted. Opts: errors=3Dremount-ro,data=3Dorde= red console: Boot successful. console: cat /proc/cpuinfo console: / # cat /proc/cpuinfo console: system type : lemote-fuloong-2e-box console: machine : Unknown console: processor : 0 console: cpu model : ICT Loongson-2 V0.2 FPU V0.1 console: BogoMIPS : 118.60 console: wait instruction : nouname -a console: microsecond timers : yes console: tlb_entries : 64 console: extra interrupt vector : no console: hardware watchpoint : yes, count: 0, address/irw mask: [] console: isa : mips1 mips2 mips3 console: ASEs implemented : console: shadow register sets : 1 console: kscratch registers : 0 console: package : 0 console: core : 0 console: VCED exceptions : not available console: VCEI exceptions : not available console: / # uname -a console: Linux (none) 3.16.0-6-loongson-2e #1 Debian 3.16.56-1+deb8u1 (20= 18-05-08) mips64 GNU/Linux console: reboot console: / # reboot console: / # umount: devtmpfs busy - remounted read-only console: EXT4-fs (sda): re-mounted. Opts: (null) console: The system is going down NOW! console: Sent SIGTERM to all processes console: Sent SIGKILL to all processes console: Requesting system reboot console: sd 0:0:0:0: [sda] Synchronizing SCSI cache console: reboot: Restarting system PASS (8.44 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | = CANCEL 0 JOB TIME : 8.85 s [*] https://github.com/groeck/linux-build-test/ Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Willian Rampazzo --- Cc: Guenter Roeck --- tests/acceptance/boot_linux_console.py | 30 ++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index fb41bb7144b..91fdd3c4cb2 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -183,13 +183,39 @@ def test_mips64el_fuloong2e(self): kernel_path =3D self.extract_from_deb(deb_path, '/boot/vmlinux-3.16.0-6-loongs= on-2e') =20 + rootfs_url =3D ('https://github.com/groeck/linux-build-test/' + 'raw/8584a59ed9e5eb5ee7ca91f6d74bbb06619205b8/' + 'rootfs/mipsel64/rootfs.mipsel.ext3.gz') + rootfs_hash =3D '4316abb84b3b8384e124ada7fc72ef8cd5577dac' + rootfs_path_gz =3D self.fetch_asset(rootfs_url, asset_hash=3Drootf= s_hash) + rootfs_path =3D os.path.join(self.workdir, 'rootfs.mipsel.ext3') + archive.gzip_uncompress(rootfs_path_gz, rootfs_path) + self.vm.set_console() - kernel_command_line =3D self.KERNEL_COMMON_COMMAND_LINE + 'console= =3DttyS0' + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + 'console=3DttyS0 ' + + 'root=3D/dev/sda ro ' + + 'panic=3D-1 noreboot') self.vm.add_args('-kernel', kernel_path, - '-append', kernel_command_line) + '-drive', 'if=3Dnone,format=3Draw,id=3Ddisk0,file= =3D' + + rootfs_path, + '-device', 'ide-hd,bus=3Dide.0,drive=3Ddisk0', + '-append', kernel_command_line, + '-no-reboot') self.vm.launch() + console_pattern =3D 'Kernel command line: %s' % kernel_command_line self.wait_for_console_pattern(console_pattern) + self.wait_for_console_pattern('Boot successful.') + + exec_command_and_wait_for_pattern(self, 'cat /proc/cpuinfo', + 'BogoMIPS') + exec_command_and_wait_for_pattern(self, 'uname -a', + 'Debian') + exec_command_and_wait_for_pattern(self, 'reboot', + 'reboot: Restarting system= ') + # Wait for VM to shut down gracefully + self.vm.wait() =20 def test_mips_malta_cpio(self): """ --=20 2.26.2