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 38C1ECA5FE6 for ; Sun, 4 Oct 2026 12:28:14 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xDLJc-0006Nz-Ih; Sun, 04 Oct 2026 08:27:40 -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 1xDLJZ-0006Mu-04 for qemu-devel@nongnu.org; Sun, 04 Oct 2026 08:27:37 -0400 Received: from mail-wm2-x11.google.com ([2a00:1450:4864:31::11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xDLJW-00075D-ES for qemu-devel@nongnu.org; Sun, 04 Oct 2026 08:27:36 -0400 Received: by mail-wm2-x11.google.com with SMTP id 5b1f17b1804b1-49fe8bf173aso5527035e9.3 for ; Sun, 04 Oct 2026 05:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791116853; x=1791721653; 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=7sakvyes7NT4OfipHDWVNzjXnqZB1BRxnrGq5lE8L+0=; b=e5sDrAoXQxM+rp2bX7NmZdkXs5o8vcMWhTDPir8g2FBG5r6SUalzareW9VYnZD58oi AiYpd2Q6EWwORUH7a9d2eeVkEl/RPqkyhlnV0xLMObKZ+8ycFgMv2NI2mjJXsNFc5Klx smL1jUxNy1Ilv78RoIQqPQVHdlb8x9UD8ZPt0AeeAXbKzCcy9wJzDkoRlwoECzgur44R 8BvBF0PgQ6vVP5XpcI72HJLIKZiSJxPKZfTazIc8LOEa90NujswPRZPN6FHSnGYxKfBp /mJsWgwT1ATESvPmhwWJhqVyUUwHQfk1ZaseJhoO2h2Ffo12CgTE3m0uyOnXO10Qn5md LVZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791116853; x=1791721653; 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=7sakvyes7NT4OfipHDWVNzjXnqZB1BRxnrGq5lE8L+0=; b=mWEQVrpsoPumo0lFPtr/IGtwgGIwlfXIjLeUQ8Aqxe+y2GNI5TqpR/1/LmXUAAoYGA zIXhIckUte1scAeqo1lkvLdQG4I+wPipyIq4OBtZ3GGA1ofsIHLw9jB6qx0sGmyfOsg5 GoDJf45fcjVR+PeJAJgv4TjtVIb6hGD2Oa0UbANWSuZM0qVGLi/mSH3fXBqSXBFOWSRV Z6FqiKrecKS4cT/sWgan2bgO+gpVJS7I1gr5eDt48+A5ojblsoTZ+NSKbCcKK9eBmtsD gyv/sAtyQC9DnDgdOhJQyzgDJBoUAF+ZvsJCkoLdbB2GBp6G9vhzmQktdxuvHlmmeg2H /NGQ== X-Gm-Message-State: AFuF++lqJg9Sa9zZf8RWL7E2nhjQvez6W6TMHBYjaOaLtsF7k+/g6RYo SGw8ebcNhUAmB2ATd033cF8g+oy6NI80DufOBOOBvri+g9nE9Wu8oBaiGhEzMQ== X-Gm-Gg: AYBFou3hF0I3a1muGxlMYAfkV00xbwCebjZqhrdqvILHn+ssYbFI3egJPwG+G+FUYKN M1sl1YS5ab3K1gdZ3wW1m/vAepXhnWvjAK3zhg6QJCGJ7D1AiUXEHVHlpMPW8pun/wazSMDLMJW Fwo/ofKWyr/J8/c0+W+utqISSscQHnpi6GGMV9W5H+2o1Vgx2+8u3rIa9JeEygSzBGf5zvlQmrH 4/FKe5S2eblJDF2ZhKBGKHrr+oFFYnPPuf3b72l1pyfmtnDdeyCn6R7KyiXVj5u/Oj+3o9Vga9N QiXoiMWVhmOFiZONW6o8dPaW7u6rM8fM0rauL70KGrBndtJGrURxEK7nW6yDeX9LZbVNHL2TZzo R+LSJJESgA5ZsHh7VJK7CE0YaJVkVl3Y+H4bQpBRJlXnd1+fol9X0ICTEOffNAtOjti+cIZL55a XGVOwHeRl7KDG6WfvIDir2ItsmVKUKLfnzsyjz+h3DkemfUCJucEEoCrVNoKSoGjbNpdI0lWQL4 z4RcKK7r3qfA7v+cJSrWYnB9v/cJisG3pdbbw== X-Received: by 2002:a05:600c:6992:b0:4a0:1a7f:2abf with SMTP id 5b1f17b1804b1-4a02755fd98mr133380725e9.7.1791116852552; Sun, 04 Oct 2026 05:27:32 -0700 (PDT) Received: from archlinux (pd95eda80.dip0.t-ipconnect.de. [217.94.218.128]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a027698f13sm242319975e9.1.2026.10.04.05.27.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Oct 2026 05:27:31 -0700 (PDT) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Peter Maydell , Gaurav Sharma , Alistair Francis , Bernhard Beschow , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jason Wang , Paolo Bonzini , Bin Meng , Jean-Christophe Dubois , Pierrick Bouvier Subject: [PATCH v2 00/30] i.MX fixes and cleanup Date: Sun, 4 Oct 2026 14:26:16 +0200 Message-ID: <20261004122647.3913-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:31::11; envelope-from=shentey@gmail.com; helo=mail-wm2-x11.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This series fixes various issues in i.MX device emulation, cleans up i.MX=0D Kconfig handling, improves tracing, and improves some code. Functional cons= ole=0D tests for the remaining i.MX boards are added where images are publicly=0D available, except for imx6ul which is taken care of in a different series [= 1].=0D Fixes which appear safe for backporting are cc'd to qemu-stable.=0D =0D The series is structured as follows: Patches 1-4 fix some issues and are=0D mostly marked for backporting. Patch 3 is a follow-up on patches 1 and 2=0D and should not be backported since it breaks migration.=0D =0D Patches 5-10 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 11-15 turn the remaining i.MX SoC device models into SySBus devices= =0D which fixes their reset behavior.=0D =0D Patches 16-29 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 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 Testing done:=0D * Run functional tests for sabrelite, imx8mp-evk, imx8mm-evk, mcimx7d-sabre= .=0D =0D [1] https://lore.kernel.org/qemu-devel/20261004090500.3082641-1-bin.meng@pr= ocessmission.com/=0D =0D base-commit: d7a65d1793d691d356a56833620f7d1e6f5d653b=0D =0D Bernhard Beschow (30):=0D hw/watchdog/wdt_imx2: Fix handling of write-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 | 22 ++------=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 | 2 +=0D tests/functional/arm/test_mcimx7d_sabre.py | 46 +++++++++++++++++=0D tests/functional/arm/test_sabrelite.py | 46 +++++++++++++++++=0D 44 files changed, 271 insertions(+), 109 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