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 A48AACA5FFF for ; Wed, 7 Oct 2026 08:15:45 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEMlx-0002cG-Al; Wed, 07 Oct 2026 04:13:28 -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 1xEGfz-0005pN-1O for qemu-arm@nongnu.org; Tue, 06 Oct 2026 21:42:42 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xEGfc-0000jn-Oy for qemu-arm@nongnu.org; Tue, 06 Oct 2026 21:42:20 -0400 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-6ae305e3bd9so2024938a12.0 for ; Tue, 06 Oct 2026 18:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791337062; x=1791941862; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=e06GNJ4kvQuBbpZar3XCy1iXf5bv9F7GR7YSfB4psk0=; b=jvihFVA8GiQZfQtDiSWVXihKQUCsAdhByqimTsCmiJv+HhozArcA0xQ1+BZN6ONHgH aVIAjoSqWFHEwDzOgfEC7wxY84mO9eh0t0glhA9pf6v6fiNFdlzYO7u8zD7UpDt4eOCI ZJpSnCc2KFJ029mLw0tAyIX+9tSGOoB7l4fEEhvnx4ahCd1V9+G6Em7e/W+ITUNPDuJl FuJdlO5zzTHoXr2KGTQjYeDpdoT/Pd7/pELbaM6psGaheuweCGzIB9yWV7a80em6UnX3 Jml3ocOz1HkkTwEQ2b60FQoex15UoDMum8h+2kRa8YGKsxYgL5VcOpq9rgcv5TAWz2EG ewYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791337062; x=1791941862; h=content-transfer-encoding:content-type:mime-version: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=e06GNJ4kvQuBbpZar3XCy1iXf5bv9F7GR7YSfB4psk0=; b=rXsz9GlnJBbMl7ZaEbaSfkQbF9mhWEcLGNkWlYHgp5mnvWwLbSJ1j4Ov5VkEvI5l06 UqSq0pBYdIP6RXJA3EVYRxxMCw6ohm5K9y/VN/SIpJp1TFJ3GDuRxTLXNf8UCnaKStaU L3GjAE7iDfsTxN4YTw/pj03AI7at8F+m4cd6i/HWM5qUUigqUT7JDCtt27pEJEQjS8Rz fWbSVIUYNOmFNLD8WDdqg0GiMc8ewYqUreBAdsdSKJt63Ba6hxS4HpMISJEfN8xTSKla o2S/3Y7xdcseI+l6tp6pzfSyBDUnh/9qMO3xxNMlauqjcsJwiMcU0Wf+Ygv0cjl/FyYz Mm7A== X-Forwarded-Encrypted: i=1; AKwUvBy48s+LcmA1ImnsQN1eWsXEFhl55b6wCWyFQ8zo/rQgOtluiBYyUWwVbIDgdHq/9gP5lASMKZimzw==@nongnu.org X-Gm-Message-State: AFq9FYJJd30yw5Ohtc3S3oyp37xvOZnjajPYdd45LhMVI7gpVICL61LQ o+oUa8/3QTWDfCKdMOxRweHgiM0wjYoGFHp5C0J/g45HF6o5v/8FcCeV06/21w== X-Gm-Gg: AYBFou1xKI245ThhOe4LNlf9keS0LOikZ455plD+tnagsBobbgRAc8YC6NDQc5DgWNx 7u3F6yVtL2I+qB1Y0sNOz8UYc2Jd450Vjm+zNvxiMSrFe69PX/a6JZuzp6V0P7qq62066eHBhZK lzjwegKr55N8huRILof3T1GQpw7mA/c6CnzN0gEbj6aCo/DcXUINh8kSBEeI1rsBjKkK1Y0tKh3 od4jaxs1XqS+hwTlIDKy//XcVIbUiqNG8sVSARIaoeiRM/fV0tMcaz2HCvOF93lKUmiKbm5acnJ yInfHeeGQVwm5P3DyVLT5hrXyf/6qvDfDENEtmcVw2ZoW+j38jY84BQrRH77DdQnuTW4m4BlBRC 74t0XfYHMDLn1PJK0qB2BG4ZWcxdvyP9tfCFX7v3wuGtlVgtErCwRRs8Xp1+ksKIA+DZzzApEcv t6varQWtyulR86ONN07z9JttaivqoHkT6u7O/Su4YBnMX3BZYQnLTop6dyNX9YYHM0voyQCCWvz sZ8WjSNy/Wu2ZcuRf84xWYujiORaWueAk3BjA== X-Received: by 2002:a05:6000:4b04:b0:486:f6dc:52c8 with SMTP id ffacd0b85a97d-48c6d1981ffmr1216536f8f.37.1791275720335; Tue, 06 Oct 2026 01:35:20 -0700 (PDT) Received: from archlinux (pd95eda80.dip0.t-ipconnect.de. [217.94.218.128]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48c6cdb281csm1566764f8f.55.2026.10.06.01.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 01:35:19 -0700 (PDT) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Peter Maydell , Bin Meng , Jean-Christophe Dubois , Gaurav Sharma , Bernhard Beschow , qemu-arm@nongnu.org, Jason Wang , Alistair Francis Subject: [PATCH v4 00/31] i.MX fixes and cleanup Date: Tue, 6 Oct 2026 10:34:12 +0200 Message-ID: <20261006083445.30362-1-shentey@gmail.com> X-Mailer: git-send-email 2.56.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=shentey@gmail.com; helo=mail-ed1-x52c.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=ham autolearn_force=no X-Spam_action: no action 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 This series fixes various issues in i.MX device emulation, cleans up i.MX=0D Kconfig handling, and improves some code. Functional console tests for the= =0D remaining i.MX boards are added where images are publicly available, except= for=0D imx6ul which is taken care of in a different series [1]. Fixes which appear= safe=0D for backporting are cc'd to qemu-stable.=0D =0D The series is structured as follows: Patches 1-5 fix some issues and are=0D mostly marked for backporting. Patch 4 is a follow-up on patches 1-3 and=0D should not be backported since it breaks migration.=0D =0D Patches 6-11 add and improve functional tests for i.MX devices. While at it= ,=0D saner defaults for the amount of RAM and number of CPUs are established.=0D =0D Patches 12-16 turn the remaining i.MX SoC device models into SySBus devices= =0D which fixes their reset behavior.=0D =0D Patches 17-30 are Kconfig cleanups where CONFIG_IMX gets split into dedicat= ed=0D config items.=0D =0D The last commit just fixes some typos in the code.=0D =0D Changes in v4:=0D * Fix triggering of watchdog_perform_action() (Bin)=0D * Pick up R-b tags=0D =0D Testing done:=0D * `make check-functional-aarch64`=0D * `make check-functional-arm`=0D =0D Changes in v3:=0D * Add dedicated patch fixing write one once WCR bits, cc'd to qemu-stable (= Bin)=0D Done as yet another patch to tell the issues apart.=0D * Add and fix some commit messages (Bin)=0D * Add functional tests to 'tests_arm_system_thorough' (Bin)=0D * Fix typo in functional tests for mcimx7d-sabre machine (Bin)=0D * Use sysbus_realize() rather than sysbus_realize_and_unref() in case of=0D embedded SoC struct (Bin)=0D * Pick up R-b tags=0D =0D Changes in v2:=0D * Remove patch adding `mc->ignore_memory_transaction_failures =3D true;` (P= eter)=0D * Rework wdt_imx2 patches (Peter)=0D * Remove all but "hw/misc/Kconfig: Remove redundant USB_EHCI_SYSBUS from co= nfig=0D IMX" already queued by Phil. The preserved patch is required to remove all= =0D dependencies from CONFIG_IMX such that it can be removed.=0D * Pick up R-b tags=0D * Rebase onto latest master=0D =0D [1]=0D https://lore.kernel.org/qemu-devel/20261004090500.3082641-1-bin.=0D meng@processmission.com/=0D =0D base-commit: d7a65d1793d691d356a56833620f7d1e6f5d653b=0D =0D Bernhard Beschow (31):=0D hw/watchdog/wdt_imx2: Preserve own locked bits in WCR=0D hw/watchdog/wdt_imx2: Fix handling of write one once WCR bits=0D hw/watchdog/wdt_imx2: Clear WDT lock on reset=0D hw/watchdog/wdt_imx2: Remove redundant attributes=0D hw/arm/imx8mm-evk: Fix reference count of SoC object=0D docs, tests/functional: Drop redundant CLI arguments in imx8m*-evk=0D invocations=0D hw/arm/sabrelite: Have 4 CPUs and 1 GiB of RAM by default=0D tests/functional/arm: Add console test for `sabrelite` machine=0D hw/arm/mcimx6ul-evk: Have 512 MiB of RAM by default=0D hw/arm/mcimx7d-sabre: Have 2 CPUs and 2 GiB of RAM by default=0D tests/functional/arm: Add console test for `mcimx7d-sabre` machine=0D hw/arm/fsl-imx25: Derive from TYPE_SYS_BUS_DEVICE=0D hw/arm/fsl-imx31: Derive from TYPE_SYS_BUS_DEVICE=0D hw/arm/fsl-imx6: Derive from TYPE_SYS_BUS_DEVICE=0D hw/arm/fsl-imx6ul: Derive from TYPE_SYS_BUS_DEVICE=0D hw/arm/fsl-imx7: Derive from TYPE_SYS_BUS_DEVICE=0D hw/misc/Kconfig: Remove redundant USB_EHCI_SYSBUS from config IMX=0D Kconfig: Extract config IMX_AVIC from config IMX=0D Kconfig: Extract config IMX_GPCV2 from config IMX=0D Kconfig: Extract config IMX_RNG from config IMX=0D Kconfig: Extract config FSL_IMX7_GPR from config IMX=0D Kconfig: Extract config FSL_IMX{6, 7}_SRC from config IMX=0D Kconfig: Extract config FSL_IMX7_SNVS from config IMX=0D Kconfig: Extract dedicated config FSL_IMXx_CCM from config IMX=0D Kconfig: Extract config IMX_GPT from config IMX=0D Kconfig: Extract config IMX_EPIT from config IMX=0D Kconfig: Extract config GPIO_IMX from config IMX=0D Kconfig: Extract config IMX_SPI from config IMX=0D Kconfig: Extract config IMX_SERIAL from config IMX=0D Kconfig: Remove config IMX=0D hw/arm/fsl-imx8m: Fix typo=0D =0D MAINTAINERS | 2 +=0D docs/system/arm/imx8m.rst | 2 +-=0D docs/system/arm/sabrelite.rst | 4 +-=0D include/hw/arm/fsl-imx25.h | 5 +-=0D include/hw/arm/fsl-imx31.h | 5 +-=0D include/hw/arm/fsl-imx6.h | 5 +-=0D include/hw/arm/fsl-imx6ul.h | 5 +-=0D include/hw/arm/fsl-imx7.h | 5 +-=0D include/hw/arm/fsl-imx8mm.h | 4 +-=0D include/hw/arm/fsl-imx8mp.h | 4 +-=0D include/hw/watchdog/wdt_imx2.h | 2 -=0D hw/arm/fsl-imx25.c | 7 +--=0D hw/arm/fsl-imx31.c | 7 +--=0D hw/arm/fsl-imx6.c | 4 +-=0D hw/arm/fsl-imx6ul.c | 4 +-=0D hw/arm/fsl-imx7.c | 5 +-=0D hw/arm/fsl-imx8mm.c | 2 +-=0D hw/arm/fsl-imx8mp.c | 2 +-=0D hw/arm/imx25_pdk.c | 2 +-=0D hw/arm/imx8mm-evk.c | 4 +-=0D hw/arm/kzm.c | 2 +-=0D hw/arm/mcimx6ul-evk.c | 3 +-=0D hw/arm/mcimx7d-sabre.c | 4 +-=0D hw/arm/sabrelite.c | 5 +-=0D hw/watchdog/wdt_imx2.c | 21 ++------=0D hw/arm/Kconfig | 56 ++++++++++++++++++---=0D hw/char/Kconfig | 3 ++=0D hw/char/meson.build | 2 +-=0D hw/gpio/Kconfig | 3 ++=0D hw/gpio/meson.build | 2 +-=0D hw/intc/Kconfig | 6 +++=0D hw/intc/meson.build | 3 +-=0D hw/misc/Kconfig | 41 +++++++++++++--=0D hw/misc/meson.build | 24 ++++-----=0D hw/net/Kconfig | 2 +-=0D hw/ssi/Kconfig | 4 ++=0D hw/ssi/meson.build | 2 +-=0D hw/timer/Kconfig | 10 ++++=0D hw/timer/meson.build | 4 +-=0D tests/functional/aarch64/test_imx8mm_evk.py | 4 +-=0D tests/functional/aarch64/test_imx8mp_evk.py | 4 +-=0D tests/functional/arm/meson.build | 4 ++=0D tests/functional/arm/test_mcimx7d_sabre.py | 46 +++++++++++++++++=0D tests/functional/arm/test_sabrelite.py | 46 +++++++++++++++++=0D 44 files changed, 273 insertions(+), 108 deletions(-)=0D create mode 100755 tests/functional/arm/test_mcimx7d_sabre.py=0D create mode 100755 tests/functional/arm/test_sabrelite.py=0D =0D -- =0D 2.56.0=0D =0D