Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2222612/?format=api
{ "id": 2222612, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2222612/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260413073737.986219-16-gaurav.sharma_7@nxp.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260413073737.986219-16-gaurav.sharma_7@nxp.com>", "date": "2026-04-13T07:37:37", "name": "[PATCHv5,15/15] hw/arm/fsl-imx8mm: Adding functional testing of iMX8MM emulation", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "2b014145d2e6944ac6a89ee4e5d96fc86a8fe048", "submitter": { "id": 92057, "url": "http://patchwork.ozlabs.org/api/1.1/people/92057/?format=api", "name": "Gaurav Sharma", "email": "gaurav.sharma_7@nxp.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260413073737.986219-16-gaurav.sharma_7@nxp.com/mbox/", "series": [ { "id": 499658, "url": "http://patchwork.ozlabs.org/api/1.1/series/499658/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499658", "date": "2026-04-13T07:37:27", "name": "Adding comprehensive support for i.MX8MM EVK board", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499658/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2222612/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2222612/checks/", "tags": {}, "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)", "Received": [ "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvK5t1xhtz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 17:38:42 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wCBsB-00071s-Hv; Mon, 13 Apr 2026 03:38:19 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <gaurav.sharma_7@nxp.com>)\n id 1wCBrz-0006xd-Lw\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 03:38:08 -0400", "from inva020.nxp.com ([92.121.34.13])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <gaurav.sharma_7@nxp.com>)\n id 1wCBrx-0005eK-4h\n for qemu-devel@nongnu.org; Mon, 13 Apr 2026 03:38:06 -0400", "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E0F9B1A3EDF;\n Mon, 13 Apr 2026 09:37:46 +0200 (CEST)", "from aprdc01srsp001v.ap-rdc01.nxp.com\n (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id AB9E11A3F15;\n Mon, 13 Apr 2026 09:37:46 +0200 (CEST)", "from lsv031015.swis.in-blr01.nxp.com\n (lsv031015.swis.in-blr01.nxp.com [10.12.177.77])\n by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 2ED14180222A;\n Mon, 13 Apr 2026 15:37:46 +0800 (+08)" ], "From": "Gaurav Sharma <gaurav.sharma_7@nxp.com>", "To": "qemu-devel@nongnu.org", "Cc": "pbonzini@redhat.com, peter.maydell@linaro.org,\n Gaurav Sharma <gaurav.sharma_7@nxp.com>", "Subject": "[PATCHv5 15/15] hw/arm/fsl-imx8mm: Adding functional testing of\n iMX8MM emulation", "Date": "Mon, 13 Apr 2026 13:07:37 +0530", "Message-Id": "<20260413073737.986219-16-gaurav.sharma_7@nxp.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260413073737.986219-1-gaurav.sharma_7@nxp.com>", "References": "<20260413073737.986219-1-gaurav.sharma_7@nxp.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Received-SPF": "pass client-ip=92.121.34.13;\n envelope-from=gaurav.sharma_7@nxp.com; helo=inva020.nxp.com", "X-Spam_score_int": "-41", "X-Spam_score": "-4.2", "X-Spam_bar": "----", "X-Spam_report": "(-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n 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 <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "Added script that would validate the iMX8MM emulation by checking the\nlinux console log. If it succeeds, it will return:-\n\nok 1 test_imx8mm_evk.Imx8mmEvkMachine.test_aarch64_imx8mm_evk_usdhc\n\nSigned-off-by: Gaurav Sharma <gaurav.sharma_7@nxp.com>\n---\n tests/functional/aarch64/meson.build | 2 +\n tests/functional/aarch64/test_imx8mm_evk.py | 67 +++++++++++++++++++++\n 2 files changed, 69 insertions(+)\n create mode 100755 tests/functional/aarch64/test_imx8mm_evk.py", "diff": "diff --git a/tests/functional/aarch64/meson.build b/tests/functional/aarch64/meson.build\nindex 5ad52f93e1..c0e5be1b58 100644\n--- a/tests/functional/aarch64/meson.build\n+++ b/tests/functional/aarch64/meson.build\n@@ -4,6 +4,7 @@ test_aarch64_timeouts = {\n 'aspeed_ast2700' : 600,\n 'aspeed_ast2700fc' : 600,\n 'device_passthrough' : 720,\n+ 'imx8mm_evk' : 240,\n 'imx8mp_evk' : 240,\n 'raspi4' : 480,\n 'reverse_debug' : 180,\n@@ -27,6 +28,7 @@ tests_aarch64_system_thorough = [\n 'aspeed_ast2700fc',\n 'device_passthrough',\n 'hotplug_pci',\n+ 'imx8mm_evk',\n 'imx8mp_evk',\n 'kvm',\n 'multiprocess',\ndiff --git a/tests/functional/aarch64/test_imx8mm_evk.py b/tests/functional/aarch64/test_imx8mm_evk.py\nnew file mode 100755\nindex 0000000000..224fe4669e\n--- /dev/null\n+++ b/tests/functional/aarch64/test_imx8mm_evk.py\n@@ -0,0 +1,67 @@\n+#!/usr/bin/env python3\n+#\n+# Functional test that boots a Linux kernel and checks the console\n+#\n+# SPDX-License-Identifier: GPL-2.0-or-later\n+\n+from qemu_test import LinuxKernelTest, Asset\n+\n+class Imx8mmEvkMachine(LinuxKernelTest):\n+\n+ ASSET_IMAGE = Asset(\n+ ('https://cloud.debian.org/images/cloud/bookworm/20231210-1590/'\n+ 'debian-12-generic-arm64-20231210-1590.tar.xz'),\n+ '7ebf1577b32d5af6204df74b54ca2e4675de9b5a9fa14f3ff70b88eeb7b3b359')\n+\n+ KERNEL_OFFSET = 0x51000000\n+ KERNEL_SIZE = 32622528\n+ INITRD_OFFSET = 0x76000000\n+ INITRD_SIZE = 30987766\n+ DTB_OFFSET = 0x64DB5000\n+ DTB_SIZE = 36812\n+\n+ def extract(self, in_path, out_path, offset, size):\n+ try:\n+ with open(in_path, \"rb\") as source:\n+ source.seek(offset)\n+ data = source.read(size)\n+ with open(out_path, \"wb\") as target:\n+ target.write(data)\n+ except (IOError, ValueError) as e:\n+ self.log.error(f\"Failed to extract {out_path}: {e}\")\n+ raise\n+\n+ def setUp(self):\n+ super().setUp()\n+\n+ self.image_path = self.scratch_file(\"disk.raw\")\n+ self.kernel_path = self.scratch_file(\"linux\")\n+ self.initrd_path = self.scratch_file(\"initrd.zstd\")\n+ self.dtb_path = self.scratch_file(\"imx8mm-evk.dtb\")\n+\n+ self.archive_extract(self.ASSET_IMAGE)\n+ self.extract(self.image_path, self.kernel_path,\n+ self.KERNEL_OFFSET, self.KERNEL_SIZE)\n+ self.extract(self.image_path, self.initrd_path,\n+ self.INITRD_OFFSET, self.INITRD_SIZE)\n+ self.extract(self.image_path, self.dtb_path,\n+ self.DTB_OFFSET, self.DTB_SIZE)\n+\n+ def test_aarch64_imx8mm_evk_usdhc(self):\n+ self.require_accelerator(\"tcg\")\n+ self.set_machine('imx8mm-evk')\n+ self.vm.set_console(console_index=1)\n+ self.vm.add_args('-m', '2G',\n+ '-smp', '4',\n+ '-kernel', self.kernel_path,\n+ '-initrd', self.initrd_path,\n+ '-dtb', self.dtb_path,\n+ '-append', 'root=/dev/mmcblk2p1',\n+ '-drive', f'file={self.image_path},if=sd,bus=2,'\n+ 'format=raw,id=mmcblk2,snapshot=on')\n+\n+ self.vm.launch()\n+ self.wait_for_console_pattern('Welcome to ')\n+\n+if __name__ == '__main__':\n+ LinuxKernelTest.main()\n", "prefixes": [ "PATCHv5", "15/15" ] }