From nobody Mon Feb 9 08:36:15 2026 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 ARC-Seal: i=1; a=rsa-sha256; t=1577704295; cv=none; d=zohomail.com; s=zohoarc; b=luv8fNP7h++4Duv8fNBRAepwENsQBq0JJmPXZErSr/Zv6B/ftdGJFzfcacgQHblQvZOEi2F/YJX/P5wP5r9lGUFkQYjyLKt1ZastHexIucNTETTnlKJpL90Y26GE6A18At4e/k6Ht+FU8khWv/Dt5SfcAFr3naacBBez3iHKMtU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577704295; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=0VHBWRhd3KqP211ZzR+SgyokvYmniIT+KSexWzYW+s8=; b=g9cS6rJmI2mdtNojLfq8FZOHwWq1iuFAbFr0ZuOtFk1ypKAANP0F5LggvVtqmOnGzVpsnHYXcU3+2UJIKoQxa9inxtODpvmtATHRXgV1oHsbGsVO8FlTG/bHkQUWEpaxQBhJLAexIji7EYDTyBCD6f3enREGQQrlts16HWhJOyw= ARC-Authentication-Results: i=1; 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 157770429557157.553330026342906; Mon, 30 Dec 2019 03:11:35 -0800 (PST) Received: from localhost ([::1]:60458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsxR-0007JX-Rv for importer@patchew.org; Mon, 30 Dec 2019 06:11:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35286) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsvv-0005SI-Ci for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilsvu-000376-0p for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:09:59 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:43680) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilsvt-00036q-RC; Mon, 30 Dec 2019 06:09:57 -0500 Received: by mail-wr1-x441.google.com with SMTP id d16so32323473wre.10; Mon, 30 Dec 2019 03:09:57 -0800 (PST) Received: from x1w.redhat.com ([2a01:cb18:8372:6b00:691b:aac5:8837:d4da]) by smtp.gmail.com with ESMTPSA id p15sm20442738wma.40.2019.12.30.03.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 03:09:56 -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=0VHBWRhd3KqP211ZzR+SgyokvYmniIT+KSexWzYW+s8=; b=PpvCtBNsAsOshF6Mh6IJ76rG1Vk1YFBPmaasDrb0/9508RJjWDIS6nlPBmLwchlMLI kX37HKxWQUMyB5sfJBjGjfsC8peWdOrHk8r+zPjHFTXGoF7zrPzjOWO2LAM8q1bxB5Gr sxCJa/d/5rfJGQsc7kMtn8MsjZoBZcs71BiG2OSlJ1GvHoDUNf8gF1edoklnSceV29D8 yx7HEif7sb9DVs/jgmLMR09GXog7r2NQpuJoh2YBpj+z61ig+k9/rtwiHsSWe5p9aJNg oZmO+tkKDwNn9sPeIi1BjhF5NfMx5mdqpQIqWAevyOfhZ5J1q1kbUJRZU8tqs+j987XI 5Gug== 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=0VHBWRhd3KqP211ZzR+SgyokvYmniIT+KSexWzYW+s8=; b=dnxvAUf55+95WFfpKPeVn7EdwjyYzDC7GHux5RjtwqY11QjoFj3yV3aSM8HeaI28Vx xOyafUt530/y0ham7VLPyQuVS60NSAqgFEjHqLfJzrFERIG1Bx+KrMsIQcEAK08VB3eL OV30u1oIJmd2yPwP+X4dJXhQ3W+grap2tvNgBD0iXk34Sv9/M4Wa1o3vcCQuK55lW8Jq F6OHaL8fEuQqXLqvp+UMtp1FO2ZvN1/oAoUgiK2UoFDka9Dkl1AUTAcBjfWK+6gEQp6f KT8Im2hPmLqUQ/MCXjURZ3wlXX66mFUIR2HVzNdFSsYsbAYcT1jKsUWZ+N+s2wV0hBpr KmJg== X-Gm-Message-State: APjAAAVSMyFLLNZmVNZOxLOTVdPN5It1LL8pJV9rulWip7MD6nGhnTGP bRmRuB5Jnz1Q0NL82OKfZwAChRVJvm4= X-Google-Smtp-Source: APXvYqyQiyZqj0JWubnyplhi7MmFgi2PRddKeEy1ba6GkWj40ZHpNhdJiqq/MK7VsB1Wc5S8Ky2Ccg== X-Received: by 2002:a5d:5452:: with SMTP id w18mr51941433wrv.333.1577704196590; Mon, 30 Dec 2019 03:09:56 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/6] tests/boot_linux_console: Add initrd test for the CubieBoard Date: Mon, 30 Dec 2019 12:09:48 +0100 Message-Id: <20191230110953.25496-2-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191230110953.25496-1-f4bug@amsat.org> References: <20191230110953.25496-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::441 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?= , Wainer dos Santos Moschetta , Beniamino Galvani , Niek Linnenbank , qemu-arm@nongnu.org, Willian Rampazzo , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This test boots a Linux kernel on a CubieBoard and verify the serial output is working. The kernel image and DeviceTree blob are built by the Armbian project (based on Debian): https://docs.armbian.com/Developer-Guide_Build-Preparation/ The cpio image used comes from the linux-build-test project: https://github.com/groeck/linux-build-test If ARM is a target being built, "make check-acceptance" will automatically include this test by the use of the "arch:arm" tags. Alternatively, this test can be run using: $ avocado --show=3Dconsole run -t machine:cubieboard tests/acceptance/boo= t_linux_console.py console: Uncompressing Linux... done, booting the kernel. console: Booting Linux on physical CPU 0x0 console: Linux version 4.20.7-sunxi (root@armbian.com) (gcc version 7.2.1= 20171011 (Linaro GCC 7.2-2017.11)) #5.75 SMP Fri Feb 8 09:02:10 CET 2019 console: CPU: ARMv7 Processor [410fc080] revision 0 (ARMv7), cr=3D50c5387d console: CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instru= ction cache console: OF: fdt: Machine model: Cubietech Cubieboard [...] console: Boot successful. console: cat /proc/cpuinfo console: / # cat /proc/cpuinfo console: processor : 0 console: model name : ARMv7 Processor rev 0 (v7l) console: BogoMIPS : 832.51 [...] console: Hardware : Allwinner sun4i/sun5i Families console: Revision : 0000 console: Serial : 0000000000000000 console: cat /proc/iomem console: / # cat /proc/iomem console: 01c00000-01c0002f : system-control@1c00000 console: 01c02000-01c02fff : dma-controller@1c02000 console: 01c05000-01c05fff : spi@1c05000 console: 01c0b080-01c0b093 : mdio@1c0b080 console: 01c0c000-01c0cfff : lcd-controller@1c0c000 console: 01c0d000-01c0dfff : lcd-controller@1c0d000 console: 01c0f000-01c0ffff : mmc@1c0f000 [...] PASS (54.35 s) Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Wainer dos Santos Moschetta Tested-by: Wainer dos Santos Moschetta --- tests/acceptance/boot_linux_console.py | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index 9c6aa2040a..4643f60e37 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -400,6 +400,47 @@ class BootLinuxConsole(Test): self.wait_for_console_pattern('Boot successful.') # TODO user command, for now the uart is stuck =20 + def test_arm_cubieboard_initrd(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:cubieboard + """ + deb_url =3D ('https://apt.armbian.com/pool/main/l/' + 'linux-4.20.7-sunxi/linux-image-dev-sunxi_5.75_armhf.de= b') + deb_hash =3D '1334c29c44d984ffa05ed10de8c3361f33d78315' + deb_path =3D self.fetch_asset(deb_url, asset_hash=3Ddeb_hash) + kernel_path =3D self.extract_from_deb(deb_path, + '/boot/vmlinuz-4.20.7-sunxi') + dtb_path =3D '/usr/lib/linux-image-dev-sunxi/sun4i-a10-cubieboard.= dtb' + dtb_path =3D self.extract_from_deb(deb_path, dtb_path) + initrd_url =3D ('https://github.com/groeck/linux-build-test/raw/' + '2eb0a73b5d5a28df3170c546ddaaa9757e1e0848/rootfs/' + 'arm/rootfs-armv5.cpio.gz') + initrd_hash =3D '2b50f1873e113523967806f4da2afe385462ff9b' + initrd_path_gz =3D self.fetch_asset(initrd_url, asset_hash=3Dinitr= d_hash) + initrd_path =3D os.path.join(self.workdir, 'rootfs.cpio') + archive.gzip_uncompress(initrd_path_gz, initrd_path) + + self.vm.set_console() + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + 'console=3DttyS0,115200 ' + 'usbcore.nousb ' + 'panic=3D-1 noreboot') + self.vm.add_args('-kernel', kernel_path, + '-dtb', dtb_path, + '-initrd', initrd_path, + '-append', kernel_command_line, + '-no-reboot') + self.vm.launch() + self.wait_for_console_pattern('Boot successful.') + + exec_command_and_wait_for_pattern(self, 'cat /proc/cpuinfo', + 'Allwinner sun4i/sun5i') + exec_command_and_wait_for_pattern(self, 'cat /proc/iomem', + 'system-control@1c00000') + exec_command_and_wait_for_pattern(self, 'reboot', + 'reboot: Restarting system= ') + def test_s390x_s390_ccw_virtio(self): """ :avocado: tags=3Darch:s390x --=20 2.21.0 From nobody Mon Feb 9 08:36:15 2026 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 ARC-Seal: i=1; a=rsa-sha256; t=1577704296; cv=none; d=zohomail.com; s=zohoarc; b=XbJXgUyI0DE3Gfo99mgkzgSAyGKGof6wvvliMv5n/mYfAg3cgyirDfMo1S4Woy2llNEL5cPF0NPmd2r5Rnb55gmm12hO3RER19dCoFRj54VNtzFIFvMMhdZ0ViY7056GN1xgXnCucbXrJjCFZetSFPWrNSDc3uFSprUnaFIAT2U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577704296; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=lDvl9OWYCQ+LaIr8sH3FxUkOS9yo66/i86UY7kFYO98=; b=RvEEuHhdAr9yLrOUN7VNRW1gDSpLG38XtEKvU8SnaqVb3Lnomd4VCfaa+teaqcD7wiQhr/8B4DW829HW6Na5gbPIXfgaf9/DEQcT4CYdQYR737nXZaxk65H2UK8yDFUH1j0JAKF+sePZnO+jEB5d++0JpdI8RnZkEPanT6MEaAk= ARC-Authentication-Results: i=1; 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 15777042966321007.0187509682852; Mon, 30 Dec 2019 03:11:36 -0800 (PST) Received: from localhost ([::1]:60460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsxT-0007Lu-A0 for importer@patchew.org; Mon, 30 Dec 2019 06:11:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35306) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsvw-0005TC-R5 for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilsvv-00037U-Ai for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:00 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:33679) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilsvv-00037F-4d; Mon, 30 Dec 2019 06:09:59 -0500 Received: by mail-wr1-x443.google.com with SMTP id b6so32383486wrq.0; Mon, 30 Dec 2019 03:09:59 -0800 (PST) Received: from x1w.redhat.com ([2a01:cb18:8372:6b00:691b:aac5:8837:d4da]) by smtp.gmail.com with ESMTPSA id p15sm20442738wma.40.2019.12.30.03.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 03:09:57 -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=lDvl9OWYCQ+LaIr8sH3FxUkOS9yo66/i86UY7kFYO98=; b=MFV8HTDgPYP4dOq+ORH7gOSXdEnuV93fMKiChRUMlv0CJ+RJOZzI2WfapcMkUFwyvm 96jf64uNwdfCoArtuhFJBb3KCKrUfvJ2VQ2LRxnIbgUIGbp4wLMksbtr+jNOVqMShUpX haaghnbORtrIaQweP5wD7Azardn2xduDvuvtk2dP+ZQpBSQ7DR3GM1qUZoA6EQqjw6/y sT8/NCc93PZ/OPbYRtovWDdWc9CdtawXui7v9CNwRPG/MVFwE6zT3YzqvPLex2DN4i27 TEyxruwg6jkQwrHWcf70ShKxajl8/29SVlKLrpqa/VZg21gO60MSDgSoqljVlimCYr+/ CMYw== 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=lDvl9OWYCQ+LaIr8sH3FxUkOS9yo66/i86UY7kFYO98=; b=kHgfr+GwODoJy//Xd2LZC/Qf3ao+LAIR2+kZODqDthAWp01NSBg404+1Yv1DmAnc03 DtTbaveO+kU2+BNd5G+kSMRvfPL2w1jvoLQ6+RQranInWs/+KzTT6rqcvPjrtj4lvEpt 0RBBA46mbesbwx24S3ceUr/3AqTXJcfAhDI+/KVzFtdhv0j5+lqdNy3bKt7rJNcBUQOQ fNAXyuqChXe+IZGrLqLe3lrZtUGbKQBgwEM1zcxS0Caw1mxMepgZD/bNs6g7zVd6XFLj lxW/cJ6WlCIBXJSPu2P21pZzj5DxwHi4erwYLT4599So0BvSyZveSv3QVUper+OYc5U0 STng== X-Gm-Message-State: APjAAAWgzb9m8k+ISFMyyfcKSZ5N8VvooN6C2EGHkwt4Z0FbJWdNo3eU +5iHXONvEZythU3KN+IkL2+Q5ylYxl0= X-Google-Smtp-Source: APXvYqzVxi8rRQLiB8oWvny3QTy1St40R7j78PvKI0GFN7i82av/g1vd7X6bRaC3Rcj0/82Qu32hAA== X-Received: by 2002:a5d:4cc9:: with SMTP id c9mr64528295wrt.70.1577704197905; Mon, 30 Dec 2019 03:09:57 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 2/6] tests/boot_linux_console: Add a SD card test for the CubieBoard Date: Mon, 30 Dec 2019 12:09:49 +0100 Message-Id: <20191230110953.25496-3-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191230110953.25496-1-f4bug@amsat.org> References: <20191230110953.25496-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::443 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?= , Wainer dos Santos Moschetta , Beniamino Galvani , Niek Linnenbank , qemu-arm@nongnu.org, Willian Rampazzo , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) The kernel image and DeviceTree blob are built by the Armbian project (based on Debian): https://docs.armbian.com/Developer-Guide_Build-Preparation/ The cpio image used comes from the linux-build-test project: https://github.com/groeck/linux-build-test If ARM is a target being built, "make check-acceptance" will automatically include this test by the use of the "arch:arm" tags. Alternatively, this test can be run using: $ avocado --show=3Dconsole run -t machine:cubieboard tests/acceptance/boo= t_linux_console.py console: Uncompressing Linux... done, booting the kernel. console: Booting Linux on physical CPU 0x0 console: Linux version 4.20.7-sunxi (root@armbian.com) (gcc version 7.2.1= 20171011 (Linaro GCC 7.2-2017.11)) #5.75 SMP Fri Feb 8 09:02:10 CET 2019 [...] console: ahci-sunxi 1c18000.sata: Linked as a consumer to regulator.4 console: ahci-sunxi 1c18000.sata: controller can't do 64bit DMA, forcing = 32bit console: ahci-sunxi 1c18000.sata: AHCI 0001.0000 32 slots 1 ports 1.5 Gbp= s 0x1 impl platform mode console: ahci-sunxi 1c18000.sata: flags: ncq only console: scsi host0: ahci-sunxi console: ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x= 100 irq 27 console: of_cfs_init console: of_cfs_init: OK console: vcc3v0: disabling console: vcc5v0: disabling console: usb1-vbus: disabling console: usb2-vbus: disabling console: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) console: ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100 console: ata1.00: 40960 sectors, multi 16: LBA48 NCQ (depth 32) console: ata1.00: applying bridge limits console: ata1.00: configured for UDMA/100 console: scsi 0:0:0:0: Direct-Access ATA QEMU HARDDISK 2.5+ P= Q: 0 ANSI: 5 console: sd 0:0:0:0: Attached scsi generic sg0 type 0 console: sd 0:0:0:0: [sda] 40960 512-byte logical blocks: (21.0 MB/20.0 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: sd 0:0:0:0: [sda] Attached SCSI disk console: EXT4-fs (sda): mounting ext2 file system using the ext4 subsystem console: EXT4-fs (sda): mounted filesystem without journal. Opts: (null) console: VFS: Mounted root (ext2 filesystem) readonly on device 8:0. [...] console: cat /proc/partitions console: / # cat /proc/partitions console: major minor #blocks name console: 1 0 4096 ram0 console: 1 1 4096 ram1 console: 1 2 4096 ram2 console: 1 3 4096 ram3 console: 8 0 20480 sda console: reboot console: / # reboot [...] console: sd 0:0:0:0: [sda] Synchronizing SCSI cache console: reboot: Restarting system PASS (48.39 s) Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/boot_linux_console.py | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index 4643f60e37..e40b84651b 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -441,6 +441,50 @@ class BootLinuxConsole(Test): exec_command_and_wait_for_pattern(self, 'reboot', 'reboot: Restarting system= ') =20 + def test_arm_cubieboard_sata(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:cubieboard + """ + deb_url =3D ('https://apt.armbian.com/pool/main/l/' + 'linux-4.20.7-sunxi/linux-image-dev-sunxi_5.75_armhf.de= b') + deb_hash =3D '1334c29c44d984ffa05ed10de8c3361f33d78315' + deb_path =3D self.fetch_asset(deb_url, asset_hash=3Ddeb_hash) + kernel_path =3D self.extract_from_deb(deb_path, + '/boot/vmlinuz-4.20.7-sunxi') + dtb_path =3D '/usr/lib/linux-image-dev-sunxi/sun4i-a10-cubieboard.= dtb' + dtb_path =3D self.extract_from_deb(deb_path, dtb_path) + rootfs_url =3D ('https://github.com/groeck/linux-build-test/raw/' + '2eb0a73b5d5a28df3170c546ddaaa9757e1e0848/rootfs/' + 'arm/rootfs-armv5.ext2.gz') + rootfs_hash =3D '093e89d2b4d982234bf528bc9fb2f2f17a9d1f93' + rootfs_path_gz =3D self.fetch_asset(rootfs_url, asset_hash=3Drootf= s_hash) + rootfs_path =3D os.path.join(self.workdir, 'rootfs.cpio') + archive.gzip_uncompress(rootfs_path_gz, rootfs_path) + + self.vm.set_console() + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + 'console=3DttyS0,115200 ' + 'usbcore.nousb ' + 'root=3D/dev/sda ro ' + 'panic=3D-1 noreboot') + self.vm.add_args('-kernel', kernel_path, + '-dtb', dtb_path, + '-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() + self.wait_for_console_pattern('Boot successful.') + + exec_command_and_wait_for_pattern(self, 'cat /proc/cpuinfo', + 'Allwinner sun4i/sun5i') + exec_command_and_wait_for_pattern(self, 'cat /proc/partitions', + 'sda') + exec_command_and_wait_for_pattern(self, 'reboot', + 'reboot: Restarting system= ') + def test_s390x_s390_ccw_virtio(self): """ :avocado: tags=3Darch:s390x --=20 2.21.0 From nobody Mon Feb 9 08:36:15 2026 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 ARC-Seal: i=1; a=rsa-sha256; t=1577704308; cv=none; d=zohomail.com; s=zohoarc; b=naGjAEmC2+qlq9yv54TrfAnmsy73m0zojaTIKapI5aSpT0bUridFjZvQlclDBUlmWddSf4jsx2xAbvBUTRlmZ14UqUMt8hgIxpVioN/v6kPKv/WO1LNMn24tzjoUDm5BTd+h3/PqMj310FK7Y67+/0C+XwIaUIJdmtwuzNiaf4Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577704308; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=+HcL6RtbH65y2vmENayC1ied30BzD+pn5ZQNQGLUrBQ=; b=NHOWjTmBiYBVh6vGF2jOGmm3VwdC0nkm7koy+INSo3v6qYcWXsOM2F22J10XP+TQt2u6sngkcdSboltLp195s7F8I8Qlmp5igIHMgryMv9wfonYPek931OjTtcPGQHYe3LU2Es7AM37DKfZE/7H9TPkFUHpZgTY1jy3LZ1drPBc= ARC-Authentication-Results: i=1; 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 157770430850396.1080674838696; Mon, 30 Dec 2019 03:11:48 -0800 (PST) Received: from localhost ([::1]:60462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsxf-0007hV-3a for importer@patchew.org; Mon, 30 Dec 2019 06:11:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35313) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsvx-0005U3-I7 for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilsvw-00037v-HL for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:01 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:54521) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilsvw-00037l-BH; Mon, 30 Dec 2019 06:10:00 -0500 Received: by mail-wm1-x343.google.com with SMTP id b19so13627679wmj.4; Mon, 30 Dec 2019 03:10:00 -0800 (PST) Received: from x1w.redhat.com ([2a01:cb18:8372:6b00:691b:aac5:8837:d4da]) by smtp.gmail.com with ESMTPSA id p15sm20442738wma.40.2019.12.30.03.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 03:09:58 -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=+HcL6RtbH65y2vmENayC1ied30BzD+pn5ZQNQGLUrBQ=; b=hQPvj1OaisvygzpRuEp32g/qa0ZCf5LboT4oqXYdZ223T58Ji8kTSxBSy9rXFpl2Ss NgnO0ruPpOCdXexFf2Bc4Xe83kPnCkhaeCwxM8BJu7AkioUZ/YmMuHni6zIQfFPnsDX2 kvOc0zoa7XxvlJpLUKN+VqOce5TGb0LlVkw5Lr+vq+FGQvqX1QAJmTOYa1SWlF4xRa3i QDAmYMuLtzB2RvC3f7+Ztnb/TiqJ7DtO4q9iMKxeuC1mdOK4eMS8EGSuFNtOHiEUVFRJ r/iE6P3g+Kl6K/vE1ltzq1TyRR2UqJKF7ki7MHtZz7FZepg9OznOPFXJ4QRz8YBsO/nm wcZA== 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=+HcL6RtbH65y2vmENayC1ied30BzD+pn5ZQNQGLUrBQ=; b=gYuiXuHFtjRIyo4q9Lz5OMbx9rOOICGATpaKAACHicujsFOSpE2/lkixBkFFB5sfw2 aw5BAe11GChXM6NVCfWCy6F3LnUUzSPN47wWT3PVi5FHVLFQAmX/w1X4QbQX02UIRb3k B+zc7P0q8SeV0TT3PsU7lKObiiXyQdJM3Z7ksw767gjtRdCU/DlDLja1RRtpJGTt9eEV bXOydnvdNT01gcOAUrbM3KLYx2XHwdHlBHgVdBc3VAP0jCjUQ/ErJAHKksegWmxkrSOw R93JN2JvrBwEpseEg3wEwKYj31HjiKaGoBCOm6cwddCwV/A1D6Ei/1xojor8wpap8KE0 YjAQ== X-Gm-Message-State: APjAAAVVtk2EG5cU5wPDg0ekdFeJeN5ACPDM3J6+qX3NWttn8ZkNA8Jn yDgfVMfjwIcF+Fn0yuCt7DOvN+8dWUQ= X-Google-Smtp-Source: APXvYqxsmqQkY1HPJM7aueqp5klPFsLd8r9fDd5mZ4/txGE0UhDGbxiQx0jGeQMBm/sgQKMnoYok9Q== X-Received: by 2002:a7b:c151:: with SMTP id z17mr33970422wmi.137.1577704199196; Mon, 30 Dec 2019 03:09:59 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 3/6] hw/arm/allwinner-a10: Move SoC definitions out of header Date: Mon, 30 Dec 2019 12:09:50 +0100 Message-Id: <20191230110953.25496-4-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191230110953.25496-1-f4bug@amsat.org> References: <20191230110953.25496-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::343 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?= , Wainer dos Santos Moschetta , Beniamino Galvani , Niek Linnenbank , qemu-arm@nongnu.org, Willian Rampazzo , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) These definitions are specific to the A10 SoC and don't need to be exported to the different Allwinner peripherals. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Peter Maydell --- include/hw/arm/allwinner-a10.h | 6 ------ hw/arm/allwinner-a10.c | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/hw/arm/allwinner-a10.h b/include/hw/arm/allwinner-a10.h index 7d2d215630..941c61e533 100644 --- a/include/hw/arm/allwinner-a10.h +++ b/include/hw/arm/allwinner-a10.h @@ -12,12 +12,6 @@ #include "target/arm/cpu.h" =20 =20 -#define AW_A10_PIC_REG_BASE 0x01c20400 -#define AW_A10_PIT_REG_BASE 0x01c20c00 -#define AW_A10_UART0_REG_BASE 0x01c28000 -#define AW_A10_EMAC_BASE 0x01c0b000 -#define AW_A10_SATA_BASE 0x01c18000 - #define AW_A10_SDRAM_BASE 0x40000000 =20 #define TYPE_AW_A10 "allwinner-a10" diff --git a/hw/arm/allwinner-a10.c b/hw/arm/allwinner-a10.c index 118032c8c7..0f1af5a880 100644 --- a/hw/arm/allwinner-a10.c +++ b/hw/arm/allwinner-a10.c @@ -25,6 +25,12 @@ #include "hw/misc/unimp.h" #include "sysemu/sysemu.h" =20 +#define AW_A10_PIC_REG_BASE 0x01c20400 +#define AW_A10_PIT_REG_BASE 0x01c20c00 +#define AW_A10_UART0_REG_BASE 0x01c28000 +#define AW_A10_EMAC_BASE 0x01c0b000 +#define AW_A10_SATA_BASE 0x01c18000 + static void aw_a10_init(Object *obj) { AwA10State *s =3D AW_A10(obj); --=20 2.21.0 From nobody Mon Feb 9 08:36:15 2026 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 ARC-Seal: i=1; a=rsa-sha256; t=1577704394; cv=none; d=zohomail.com; s=zohoarc; b=ffKywU97w7XUl78I9RvCBfnlrpuLhhcItmVqptRVHeSLXWIXtxlmr1Rtd3CS2w0yqNxjvQNmQhfIDPi4OXHCASmXIyr3aaSxRnJbtwqpsx3pf6QcgZuJKX6dEiEGi4ArwEkHKaMgad6n3newqEg831eGeuVZ1SK0fjAklNpjs0U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577704394; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=N8YaSe87ak8uhHmiFp5CcDUPJZv1Grr3iIYPennz/Fg=; b=e7djU5/YNd+qoMhcar1Kw2y1PZAhGO7jZEXMRDJLhwQzWJw52HN2Fp0ebY9QXTDzXutTwY3eUECkP8Yuf3Mvwy1g+F3Ak+HmPMl64IcVYthv5EdKr0UZGcOVO0kUXZ/Zr4cQEmRPbB4elTCAU2fQe8g7PqzN4sBLMrmWRblU5FM= ARC-Authentication-Results: i=1; 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 1577704394453616.6701753681376; Mon, 30 Dec 2019 03:13:14 -0800 (PST) Received: from localhost ([::1]:60484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsz3-0001mM-6Y for importer@patchew.org; Mon, 30 Dec 2019 06:13:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35344) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsvz-0005Wo-AT for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilsvy-00038a-0T for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:03 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:41477) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilsvx-00038J-QE; Mon, 30 Dec 2019 06:10:01 -0500 Received: by mail-wr1-x442.google.com with SMTP id c9so32333596wrw.8; Mon, 30 Dec 2019 03:10:01 -0800 (PST) Received: from x1w.redhat.com ([2a01:cb18:8372:6b00:691b:aac5:8837:d4da]) by smtp.gmail.com with ESMTPSA id p15sm20442738wma.40.2019.12.30.03.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 03:10:00 -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=N8YaSe87ak8uhHmiFp5CcDUPJZv1Grr3iIYPennz/Fg=; b=pqAWoWpJK71sx/Jygy1TAsWw9WBir7sjma/NtvScrYwW4w/zun0VShlyr7KPOj5l1Y CdXaYT0yumPDS6/JYQE8DXzDHmQUqBb+HP3gVBKsB7as1SRH8kdnX+8HblR1byQg4UdD K5F2a8Zt45M/AfVo5DsHFRsM5Pi6cvyREax74Wp5hDSlriecEWZJT8D4wF4rWsWgBwtY HbST8dO7yrUfJ+YipMt1Y66DTm2gXV1GMTd2BqhcJVik2n33FXpc7mn1aft5xuCaCeug uyi+1A9VkOx2GTtqdp+Im3A7cVHtVKu2K5SgQ3L2GE5BTw5mZ86DSPV2tPd/M2/njnMW 0ALg== 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=N8YaSe87ak8uhHmiFp5CcDUPJZv1Grr3iIYPennz/Fg=; b=He3GvTrGmuugk1xtnljsgEhkXWhb3tXm0OtrW36ydsWfZo6MjMQ7jdnFQPK+oAv2OB GZo/N9cy6xtKaNH+QikWTqG0S3ZysJHtBQSbPHANJqJajswHNjBKIPdCIJNOjEm4CW4Z eQUePTdJlhkC9p1GlREi3U1j2ZKQX+zWv/IhD1GcgIoYOauO29ysajX0JYOeRGD2sFiq 5gYxPgaaru3o5a0obJSCGslQLy16rRCwjcZrtQ6HW6gUlDz7FAUZNheeAFVNwkjfhAY0 x4fsz8tIVyXAscgFBqAVArKnb/f0Ze4O+kzxwGqBs/5J7B8u2523Pv67SCMO+eaqTsGn 0yBw== X-Gm-Message-State: APjAAAX1CghQrOxKwLh7iqFI9Cn/YSZazqVtKN2rQl+TMD780j2T7356 jUXeCOtb5Bvjqaz1ccl1OS9xGXjEBQw= X-Google-Smtp-Source: APXvYqyzaM+xC09z7CU/Fu5tXjFqT9yeosSG2EHnEfpAuGzSfexIxtXgQ2RRt2IpyTeN9BIw0fj1nw== X-Received: by 2002:a5d:488c:: with SMTP id g12mr65591723wrq.67.1577704200633; Mon, 30 Dec 2019 03:10:00 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 4/6] hw/arm/allwinner-a10: Simplify by passing IRQs with qdev_pass_gpios() Date: Mon, 30 Dec 2019 12:09:51 +0100 Message-Id: <20191230110953.25496-5-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191230110953.25496-1-f4bug@amsat.org> References: <20191230110953.25496-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::442 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?= , Wainer dos Santos Moschetta , Beniamino Galvani , Niek Linnenbank , qemu-arm@nongnu.org, Willian Rampazzo , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) By calling qdev_pass_gpios() we don't need to hold a copy of the IRQs from the INTC into the SoC state. Instead of filling an array of qemu_irq and passing it around, we can now directly call qdev_get_gpio_in() on the SoC. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Peter Maydell --- include/hw/arm/allwinner-a10.h | 1 - hw/arm/allwinner-a10.c | 24 +++++++++++------------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/include/hw/arm/allwinner-a10.h b/include/hw/arm/allwinner-a10.h index 941c61e533..40d0b1d9c0 100644 --- a/include/hw/arm/allwinner-a10.h +++ b/include/hw/arm/allwinner-a10.h @@ -23,7 +23,6 @@ typedef struct AwA10State { /*< public >*/ =20 ARMCPU cpu; - qemu_irq irq[AW_A10_PIC_INT_NR]; AwA10PITState timer; AwA10PICState intc; AwEmacState emac; diff --git a/hw/arm/allwinner-a10.c b/hw/arm/allwinner-a10.c index 0f1af5a880..966fbd4a6e 100644 --- a/hw/arm/allwinner-a10.c +++ b/hw/arm/allwinner-a10.c @@ -55,7 +55,6 @@ static void aw_a10_realize(DeviceState *dev, Error **errp) { AwA10State *s =3D AW_A10(dev); SysBusDevice *sysbusdev; - uint8_t i; qemu_irq fiq, irq; Error *err =3D NULL; =20 @@ -76,9 +75,7 @@ static void aw_a10_realize(DeviceState *dev, Error **errp) sysbus_mmio_map(sysbusdev, 0, AW_A10_PIC_REG_BASE); sysbus_connect_irq(sysbusdev, 0, irq); sysbus_connect_irq(sysbusdev, 1, fiq); - for (i =3D 0; i < AW_A10_PIC_INT_NR; i++) { - s->irq[i] =3D qdev_get_gpio_in(DEVICE(&s->intc), i); - } + qdev_pass_gpios(DEVICE(&s->intc), dev, NULL); =20 object_property_set_bool(OBJECT(&s->timer), true, "realized", &err); if (err !=3D NULL) { @@ -87,12 +84,12 @@ static void aw_a10_realize(DeviceState *dev, Error **er= rp) } sysbusdev =3D SYS_BUS_DEVICE(&s->timer); sysbus_mmio_map(sysbusdev, 0, AW_A10_PIT_REG_BASE); - sysbus_connect_irq(sysbusdev, 0, s->irq[22]); - sysbus_connect_irq(sysbusdev, 1, s->irq[23]); - sysbus_connect_irq(sysbusdev, 2, s->irq[24]); - sysbus_connect_irq(sysbusdev, 3, s->irq[25]); - sysbus_connect_irq(sysbusdev, 4, s->irq[67]); - sysbus_connect_irq(sysbusdev, 5, s->irq[68]); + sysbus_connect_irq(sysbusdev, 0, qdev_get_gpio_in(dev, 22)); + sysbus_connect_irq(sysbusdev, 1, qdev_get_gpio_in(dev, 23)); + sysbus_connect_irq(sysbusdev, 2, qdev_get_gpio_in(dev, 24)); + sysbus_connect_irq(sysbusdev, 3, qdev_get_gpio_in(dev, 25)); + sysbus_connect_irq(sysbusdev, 4, qdev_get_gpio_in(dev, 67)); + sysbus_connect_irq(sysbusdev, 5, qdev_get_gpio_in(dev, 68)); =20 memory_region_init_ram(&s->sram_a, OBJECT(dev), "sram A", 48 * KiB, &error_fatal); @@ -111,7 +108,7 @@ static void aw_a10_realize(DeviceState *dev, Error **er= rp) } sysbusdev =3D SYS_BUS_DEVICE(&s->emac); sysbus_mmio_map(sysbusdev, 0, AW_A10_EMAC_BASE); - sysbus_connect_irq(sysbusdev, 0, s->irq[55]); + sysbus_connect_irq(sysbusdev, 0, qdev_get_gpio_in(dev, 55)); =20 object_property_set_bool(OBJECT(&s->sata), true, "realized", &err); if (err) { @@ -119,10 +116,11 @@ static void aw_a10_realize(DeviceState *dev, Error **= errp) return; } sysbus_mmio_map(SYS_BUS_DEVICE(&s->sata), 0, AW_A10_SATA_BASE); - sysbus_connect_irq(SYS_BUS_DEVICE(&s->sata), 0, s->irq[56]); + sysbus_connect_irq(SYS_BUS_DEVICE(&s->sata), 0, qdev_get_gpio_in(dev, = 56)); =20 /* FIXME use a qdev chardev prop instead of serial_hd() */ - serial_mm_init(get_system_memory(), AW_A10_UART0_REG_BASE, 2, s->irq[1= ], + serial_mm_init(get_system_memory(), AW_A10_UART0_REG_BASE, 2, + qdev_get_gpio_in(dev, 1), 115200, serial_hd(0), DEVICE_NATIVE_ENDIAN); } =20 --=20 2.21.0 From nobody Mon Feb 9 08:36:15 2026 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 ARC-Seal: i=1; a=rsa-sha256; t=1577704397; cv=none; d=zohomail.com; s=zohoarc; b=k7vCer3jgUqDlpSoP2A2GZsLnDBb3lL7gYbwyZ5XsPu3LdVK0stlFgxt6hJHLB0TfvucqWL16uC+KUd5L5wAcOJSd03BXloFGX73DaRiHfOz9wPU+iCZ+DHxtmlhuPN0zW2q/iS8e3VTR4Fc691B2xKipe/j0liiyS3wJaW/6o4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577704397; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=wn1QqcaJuZGKr4BaTRtaO2JGUDTV/7uIt6tHl4UtiBE=; b=Oz5OTWZESNnKaO4uK3uCe3sjH4QGY4hb5lAXW0ebeo1svklDCDdmp/swBsE+zg4FDtITHwDyhXwGCCTg/Q8eRu2TcMMWKfCwtGiDz+GT5znK6vYLLOycuhOaIaeVhRwzuxjyhJaz1WBqOQBJFiAAjnlsdqayu+2XXajcXdw61Q0= ARC-Authentication-Results: i=1; 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 1577704397448942.8752333234065; Mon, 30 Dec 2019 03:13:17 -0800 (PST) Received: from localhost ([::1]:60486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsz6-0001r2-9k for importer@patchew.org; Mon, 30 Dec 2019 06:13:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35371) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsw0-0005Ys-EN for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilsvz-00039p-9n for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:04 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:38122) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilsvz-00038s-3u; Mon, 30 Dec 2019 06:10:03 -0500 Received: by mail-wr1-x444.google.com with SMTP id y17so32358952wrh.5; Mon, 30 Dec 2019 03:10:02 -0800 (PST) Received: from x1w.redhat.com ([2a01:cb18:8372:6b00:691b:aac5:8837:d4da]) by smtp.gmail.com with ESMTPSA id p15sm20442738wma.40.2019.12.30.03.10.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 03:10:01 -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=wn1QqcaJuZGKr4BaTRtaO2JGUDTV/7uIt6tHl4UtiBE=; b=tDbjUcEJPfbvi+A1CdqGydruCJPOHCjcNxNvU1LE9JA3rY00iS89ycaGKL8LGT4bLv yZSbPfKfu2ZybOjJ68Lptu6ezVmviW9f2JMB1PrfCLdkG2puzTtT6SQXru8tsTIZavl2 Tp4pnc9LOlEsrs+p60d7P0EGdinFc16Y+Zs6R34cb809v1fWiSrr0LaCSN4bs3e5P9uV I3mytTUGaEymioEyAACN15hX5BYUtDHZRLzUnK0RaYXeDrR+RJmgNd+mQemyoE+0DdPZ E4VNrLZ47lS4BTCwpNz/RnOOXJ9nCISr35acj5ZzM1+o0H6stlYnzjFJwdY+nnm5BHmD zWJg== 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=wn1QqcaJuZGKr4BaTRtaO2JGUDTV/7uIt6tHl4UtiBE=; b=tfNRhBU8/opht3mRpGSHjdTUg2haE0SXbqq4tvxOdP9ziazyGz9qHmVwk+Y4eaIHgZ aLMQaAQhFAlVg1SYodpQMzPMDk2bHS6pB7Aa/RmW0hcweizKKXzScqnuqCV1ZI+XJ4dU ae1uBxPpqY/PwkXNWidjUoNgmthcaUnX7Ho4a1mT4Y3rOVZo4ktSUuwW8LSf5/Rkj9/B 9NaSJlqLMfY6BIX4BDrse680Rz95fGQfItGxkNIK8CNsAJLsOX+kOktLjYjX5gaSf5sa 8R5P6/F8HE7nm7mhZWCYFUWkkvDfjc6OAqyUqfaNLOvxNECUMNyw/0rItZoCbmqYryMC l2lQ== X-Gm-Message-State: APjAAAV+D0pDO3eZV7M9JvxfPscgqDqDbM9gvxrNdPYayckgy2Q8Mpix H75rc/D+SPnRwO1LsSdQjB665Bfi3Io= X-Google-Smtp-Source: APXvYqz6IsNwup8mw+UxB6BAGSXSyw/Pv0DKEDPQrSMByUaGOCiOCGt1O+IhUfRqhfZm7ePixiGuyw== X-Received: by 2002:a5d:4807:: with SMTP id l7mr67706884wrq.64.1577704201881; Mon, 30 Dec 2019 03:10:01 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 5/6] hw/arm/allwinner-a10: Remove local qemu_irq variables Date: Mon, 30 Dec 2019 12:09:52 +0100 Message-Id: <20191230110953.25496-6-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191230110953.25496-1-f4bug@amsat.org> References: <20191230110953.25496-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::444 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?= , Wainer dos Santos Moschetta , Beniamino Galvani , Niek Linnenbank , qemu-arm@nongnu.org, Willian Rampazzo , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) We won't reuse the CPU IRQ/FIQ variables. Simplify by calling qdev_get_gpio_in() in place. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Peter Maydell --- hw/arm/allwinner-a10.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hw/arm/allwinner-a10.c b/hw/arm/allwinner-a10.c index 966fbd4a6e..1cde165611 100644 --- a/hw/arm/allwinner-a10.c +++ b/hw/arm/allwinner-a10.c @@ -55,7 +55,6 @@ static void aw_a10_realize(DeviceState *dev, Error **errp) { AwA10State *s =3D AW_A10(dev); SysBusDevice *sysbusdev; - qemu_irq fiq, irq; Error *err =3D NULL; =20 object_property_set_bool(OBJECT(&s->cpu), true, "realized", &err); @@ -63,8 +62,6 @@ static void aw_a10_realize(DeviceState *dev, Error **errp) error_propagate(errp, err); return; } - irq =3D qdev_get_gpio_in(DEVICE(&s->cpu), ARM_CPU_IRQ); - fiq =3D qdev_get_gpio_in(DEVICE(&s->cpu), ARM_CPU_FIQ); =20 object_property_set_bool(OBJECT(&s->intc), true, "realized", &err); if (err !=3D NULL) { @@ -73,8 +70,10 @@ static void aw_a10_realize(DeviceState *dev, Error **err= p) } sysbusdev =3D SYS_BUS_DEVICE(&s->intc); sysbus_mmio_map(sysbusdev, 0, AW_A10_PIC_REG_BASE); - sysbus_connect_irq(sysbusdev, 0, irq); - sysbus_connect_irq(sysbusdev, 1, fiq); + sysbus_connect_irq(sysbusdev, 0, + qdev_get_gpio_in(DEVICE(&s->cpu), ARM_CPU_IRQ)); + sysbus_connect_irq(sysbusdev, 1, + qdev_get_gpio_in(DEVICE(&s->cpu), ARM_CPU_FIQ)); qdev_pass_gpios(DEVICE(&s->intc), dev, NULL); =20 object_property_set_bool(OBJECT(&s->timer), true, "realized", &err); --=20 2.21.0 From nobody Mon Feb 9 08:36:15 2026 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 ARC-Seal: i=1; a=rsa-sha256; t=1577704479; cv=none; d=zohomail.com; s=zohoarc; b=eKnm5H+LveHuuPyOhKdZxOOdZQYzZfFNlHrEeSi48HviCtJubnTRBw1bGGfxk8QECue1Ik/85kWLr9LZhQVByXO4cP+ym8lEsb2BhK1fbgPfMrlejPcKzwbM6GHlUBQtqWqkxzsEDgah2XvrOR//Pl/h8rOc8oQ/k6MbnlJDK1U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577704479; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kbgM4Ne22SluUF47X/B01KZXKLPLegc6jsc8WwYNVxA=; b=b4auxKug/3ekXvRUcR30Bf39kWaZikVUI9XrOCYSGgBMKuNwq7oIXza5SSuoyKimEBf4v2+mdRwWWawpNGwxtqtZ1xxiTBY7xeiqiSyQX5I7IqxHY9pya3p4fnFjDn0BFv5yWqoMi40fqQmfYrJjKmo0QT6eROo82ICd4flTtXs= ARC-Authentication-Results: i=1; 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 1577704479829424.6844283589048; Mon, 30 Dec 2019 03:14:39 -0800 (PST) Received: from localhost ([::1]:60504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilt0Q-0003QY-Op for importer@patchew.org; Mon, 30 Dec 2019 06:14:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35400) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilsw2-0005cF-Cx for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilsw0-0003At-PF for qemu-devel@nongnu.org; Mon, 30 Dec 2019 06:10:06 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:32841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilsw0-0003AP-Iv; Mon, 30 Dec 2019 06:10:04 -0500 Received: by mail-wm1-x344.google.com with SMTP id d139so11394629wmd.0; Mon, 30 Dec 2019 03:10:04 -0800 (PST) Received: from x1w.redhat.com ([2a01:cb18:8372:6b00:691b:aac5:8837:d4da]) by smtp.gmail.com with ESMTPSA id p15sm20442738wma.40.2019.12.30.03.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 03:10:02 -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=kbgM4Ne22SluUF47X/B01KZXKLPLegc6jsc8WwYNVxA=; b=iFxQen8GL3YPwpoJG8jfad8Pivw/ogKUMe5HS2+mXB5dOeAeA7Jcj+qq9xJamU475f tl2FmaXARsXTOrRqIPwj2kP/lIBppt8taUs1LELwMbQgfpYxDtbmCm+qD0+MQNep8V3Z xIBAZF8U6mmZir5E/sP+ACBgsvGW+H3XCJrI2YpRJbCs1nEwhVd39GvwiTi4krQBpDKL 0alsKbhXOlRJLhV+TfvqpPg22A7slxxZo5hPUUojW4IKQFmxI2mZ6x1b/ep5ynK+wmND TaETZ6pjq0H8n+v9Rs4jTgUq/cWcbQW8DN30HyQLcFtjMJIAwDRz9Bk/Bgh5Gbuh815d C9QA== 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=kbgM4Ne22SluUF47X/B01KZXKLPLegc6jsc8WwYNVxA=; b=hQyT5p/kLL7gSq9j+05tv/095JDrzYMOKgg9ml0JqkeOBFQ8HlrCuKYyKnfCkS2mIs cH4tO3ES5/yJKcsX+25PMMoelo21XgN66hDhcFtts9lmzuH7zw8H4OrS3lzqVo+3TWk2 pXTxfQnI8qDTZxS8RXJQ1mP8khr7fmMkQ6CtbDocYbOwg2WiIYhK2DLduaF87ieh2fXt zMBlyslAaWj2AF5xoKNJSWgHiyrjhCP9q4JkJz0ETr/ikD7R/kPD5EoZnVWuzrbd43/B rPrrhSebuXVdir0xfotJWIqY4e3aZu7K3ClUjr6TYX4q7UNRGi4YBimlAgspMM8aZJ92 XoIw== X-Gm-Message-State: APjAAAVdtGyvsJs60JqpwQ8oorSOEOLA9j/Tl16puaoyHYK5b04oCg/p K+8LmHcTPimMd9t3WavCsSoO6gs9xpo= X-Google-Smtp-Source: APXvYqzCNuHTV8Mx5FOu8PSXKiTUR99AG10TI0XlI3m4vR9aPUBVktuHlXH0Z6JdYP91CK/y492SFw== X-Received: by 2002:a1c:7715:: with SMTP id t21mr33497289wmi.149.1577704203142; Mon, 30 Dec 2019 03:10:03 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [RFC PATCH 6/6] hw/arm/cubieboard: Disable unsupported M-USB in device tree blob Date: Mon, 30 Dec 2019 12:09:53 +0100 Message-Id: <20191230110953.25496-7-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191230110953.25496-1-f4bug@amsat.org> References: <20191230110953.25496-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::344 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?= , Wainer dos Santos Moschetta , Beniamino Galvani , Niek Linnenbank , qemu-arm@nongnu.org, Willian Rampazzo , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) We do not model the Sunxi Multipoint USB. The Linux kernel OOPS when booting: ------------[ cut here ]------------ WARNING: CPU: 0 PID: 144 at drivers/usb/musb/sunxi.c:400 sunxi_musb_ep_of= fset+0x39/0x3c sunxi_musb_ep_offset called with non 0 offset Modules linked in: CPU: 0 PID: 144 Comm: kworker/0:2 Not tainted 4.20.7-sunxi #5.75 Hardware name: Allwinner sun4i/sun5i Families Workqueue: events deferred_probe_work_func [] (unwind_backtrace) from [] (show_stack+0x11/0x14) [] (show_stack) from [] (dump_stack+0x69/0x78) [] (dump_stack) from [] (__warn+0xa1/0xb4) [] (__warn) from [] (warn_slowpath_fmt+0x33/0x48) [] (warn_slowpath_fmt) from [] (sunxi_musb_ep_offset+= 0x39/0x3c) [] (sunxi_musb_ep_offset) from [] (ep_config_from_hw+= 0x99/0x104) [] (ep_config_from_hw) from [] (musb_probe+0x765/0xa0= c) [] (musb_probe) from [] (platform_drv_probe+0x33/0x68) [] (platform_drv_probe) from [] (really_probe+0x16f/0= x1e0) [] (really_probe) from [] (driver_probe_device+0x43/0= x11c) [] (driver_probe_device) from [] (bus_for_each_drv+0x= 37/0x70) [] (bus_for_each_drv) from [] (__device_attach+0x83/0= xc8) [] (__device_attach) from [] (bus_probe_device+0x5b/0= x60) [] (bus_probe_device) from [] (device_add+0x2f5/0x474) [] (device_add) from [] (platform_device_add+0xb7/0x1= 84) [] (platform_device_add) from [] (platform_device_reg= ister_full+0xb3/0xc4) [] (platform_device_register_full) from [] (sunxi_mus= b_probe+0x1d7/0x2f4) [] (sunxi_musb_probe) from [] (platform_drv_probe+0x3= 3/0x68) [] (platform_drv_probe) from [] (really_probe+0x16f/0= x1e0) [] (really_probe) from [] (driver_probe_device+0x43/0= x11c) [] (driver_probe_device) from [] (bus_for_each_drv+0x= 37/0x70) [] (bus_for_each_drv) from [] (__device_attach+0x83/0= xc8) [] (__device_attach) from [] (bus_probe_device+0x5b/0= x60) [] (bus_probe_device) from [] (deferred_probe_work_fu= nc+0x4b/0x6c) [] (deferred_probe_work_func) from [] (process_one_wo= rk+0x167/0x384) [] (process_one_work) from [] (worker_thread+0x251/0x= 3fc) [] (worker_thread) from [] (kthread+0xfd/0x104) [] (kthread) from [] (ret_from_fork+0x11/0x38) Exception stack(0xc6999fb0 to 0xc6999ff8) 9fa0: 00000000 00000000 00000000 0000= 0000 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0000= 0000 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ---[ end trace b309edbca98c7de2 ]--- musb-sunxi 1c13000.usb: Error unknown readb offset 128 musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -22 musb-hdrc: probe of musb-hdrc.1.auto failed with error -22 This is not critical but confusing. To avoid the Linux kernel to probe this device, mark it disabled in the device tree blob. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- I'm not sure if this is a QEMU anti-pattern or bad practice. I know we prefer to be as close to the hardware as possible, but here the hardware is not changed, the dtb is. However this makes the guest behave differently. At least we don't have to manually edit the dts. If this is only annoying for acceptance testing, we might consider manually editing the dts in the tests setup(). --- hw/arm/cubieboard.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/hw/arm/cubieboard.c b/hw/arm/cubieboard.c index 6dc2f1d6b6..dd10577696 100644 --- a/hw/arm/cubieboard.c +++ b/hw/arm/cubieboard.c @@ -22,10 +22,34 @@ #include "hw/sysbus.h" #include "hw/boards.h" #include "hw/arm/allwinner-a10.h" +#include + +static void cubieboard_modify_dtb(const struct arm_boot_info *info, void *= fdt) +{ + static const char unsupported_compat[] =3D "allwinner,sun4i-a10-musb"; + char node_path[72]; + int offset; + + offset =3D fdt_node_offset_by_compatible(fdt, -1, unsupported_compat); + while (offset >=3D 0) { + int r =3D fdt_get_path(fdt, offset, node_path, sizeof(node_path)); + assert(r >=3D 0); + r =3D fdt_setprop_string(fdt, offset, "status", "disabled"); + if (r < 0) { + error_report("%s: Couldn't disable %s: %s", __func__, + unsupported_compat, fdt_strerror(r)); + exit(1); + } + warn_report("cubieboard: disabled unsupported node %s (%s) " + "in device tree", node_path, unsupported_compat); + offset =3D fdt_node_offset_by_compatible(fdt, offset, unsupported_= compat); + } +} =20 static struct arm_boot_info cubieboard_binfo =3D { .loader_start =3D AW_A10_SDRAM_BASE, .board_id =3D 0x1008, + .modify_dtb =3D cubieboard_modify_dtb, }; =20 typedef struct CubieBoardState { --=20 2.21.0