{"id":2220151,"url":"http://patchwork.ozlabs.org/api/1.1/covers/2220151/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/cover/20260406142411.2992618-1-daniel@thingy.jp/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.1/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260406142411.2992618-1-daniel@thingy.jp>","date":"2026-04-06T14:24:06","name":"[v2,0/5] Add virtio-mmio support to m68k virt machine","submitter":{"id":85408,"url":"http://patchwork.ozlabs.org/api/1.1/people/85408/?format=json","name":"Daniel Palmer","email":"daniel@thingy.jp"},"mbox":"http://patchwork.ozlabs.org/project/uboot/cover/20260406142411.2992618-1-daniel@thingy.jp/mbox/","series":[{"id":498861,"url":"http://patchwork.ozlabs.org/api/1.1/series/498861/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=498861","date":"2026-04-06T14:24:06","name":"Add virtio-mmio support to m68k virt machine","version":2,"mbox":"http://patchwork.ozlabs.org/series/498861/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2220151/comments/","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=thingy.jp header.i=@thingy.jp header.a=rsa-sha256\n header.s=google header.b=ZarTimqn;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=thingy.jp","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=thingy.jp header.i=@thingy.jp header.b=\"ZarTimqn\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=thingy.jp","phobos.denx.de; spf=pass smtp.mailfrom=daniel@0x0f.com"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqBRV2kMbz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 00:24:38 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 2F0DA83936;\n\tMon,  6 Apr 2026 16:24:33 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 0712483EC6; Mon,  6 Apr 2026 16:24:32 +0200 (CEST)","from mail-pl1-x630.google.com (mail-pl1-x630.google.com\n [IPv6:2607:f8b0:4864:20::630])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 77D568341A\n for <u-boot@lists.denx.de>; Mon,  6 Apr 2026 16:24:28 +0200 (CEST)","by mail-pl1-x630.google.com with SMTP id\n d9443c01a7336-2b2503753efso32330975ad.0\n for <u-boot@lists.denx.de>; Mon, 06 Apr 2026 07:24:28 -0700 (PDT)","from kinako.work.home.arpa\n (p1866070-ipxg00f01sizuokaden.shizuoka.ocn.ne.jp. [180.1.30.70])\n by smtp.googlemail.com with ESMTPSA id\n d9443c01a7336-2b27478cb4fsm156885295ad.29.2026.04.06.07.24.24\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 Apr 2026 07:24:25 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=thingy.jp; s=google; t=1775485466; x=1776090266; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=O07v3UUWA5+kYZqsXRX6xkndXVP6XU8diDA9Uwx9Peo=;\n b=ZarTimqnCDmR4Cu7mm5RtfoqjoGAKdWfeRU50MLBEMkotiIhZllb5QXRo4O85N0xJ1\n k+vex3GgggeB9B5bTuBHd7xZ5ViDhPyus9MXXOs281+ZQ/IqFwHwHCVVruJT8aP7bYUD\n djHcEyMjKKiNglC76Y3QifUxoZAbBcqh4fsOc=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775485466; x=1776090266;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=O07v3UUWA5+kYZqsXRX6xkndXVP6XU8diDA9Uwx9Peo=;\n b=qYfH89AazWAiPljFTVLm0V4MHjqNsxFntF2Twf7YPYveswQB2clni8jtN4d9/OYJjA\n Kj/27pEd8SU7xLctsz8Jd7K0PZW9n2hgMG66YJGevhU+UA7JgftTvB5+r3msfddAo36g\n uKeFtilQqIk3QugKZ7qM8FVtZaL2ykDu+zRCdCsiUaMxWfF2ZhmzMeSUK77Rlz1bX27d\n /ELkStimhDD6aQGybQPigSaU5n3cION6Bbm7e16L2gRbuRTo9I+Rif1MzvVtsirOTxXs\n PXHYg7XoKYal2sBBFKP0YDy4+dAHBJfi1YPPk1HOR8EvUYRjtFcv0NILr2pljTKtSMZf\n o5/Q==","X-Gm-Message-State":"AOJu0YwZ7yBLFLe7Z1Fj8KRIWaHHmG2XaAZhpfv4W83/zdW3IweZ0hyU\n m2DP7YyouyWY5U7+yVoKRtniKfRctB4807m4Ww8/oXzP7McHZBCVtZ4zcNF1S7Ium28=","X-Gm-Gg":"AeBDieuDLD5OL7XKUVaxvUVrjP5BDC7NIV/ZxCt/bkqxl86MXMf4IUSiPAhl64cNqJn\n 0BQYcRL8MdAlzrse28j8Ytsij7WQWxRbjRyi8poYAGKATI+BhBMELsbzS3jGP1cx/MArOIZByuK\n OiZxCdGN+7Bse0kBBiI6BEG9+JuNcF4xUmPhEpqCCcjFCekueABsdWXf20R9geQxdHaIo6fmzCF\n 0VYxkTqig/Z6UjAiMiHCrk05b3EDpWvjowEdvJWgrczoUdt7vd7WrPRcKD6nzI+1Gy/ahldzLh4\n D3nQpq1uZmxSK/2LcL/yUidB4JZnpkQzh6lJpqoahu8+HbLZDJPbq+LZWXF8MOe/Uzc1jIxMgej\n +qtiorAu7qIfu09kZ77/tNeHRx/SiR+k1tneQrooUMluTunypI4QDI1AHbuSlBmCIZ6xXHt3fF/\n L7OaWJwZ//s7winmdvG8jtGXD7Bc/+98D65ZIEmQJltW670TQJtVvIr9Bb9awllcVcPyW+nJXE+\n 7ffSgsG0KPov4ympGnkvQ==","X-Received":"by 2002:a17:903:3586:b0:2b2:6b58:9317 with SMTP id\n d9443c01a7336-2b28194ec0fmr131379005ad.39.1775485466589;\n Mon, 06 Apr 2026 07:24:26 -0700 (PDT)","From":"Daniel Palmer <daniel@thingy.jp>","To":"visitorckw@gmail.com,\n\tangelo@kernel-space.org,\n\tbmeng.cn@gmail.com","Cc":"u-boot@lists.denx.de,\n\tDaniel Palmer <daniel@thingy.jp>","Subject":"[PATCH v2 0/5] Add virtio-mmio support to m68k virt machine","Date":"Mon,  6 Apr 2026 23:24:06 +0900","Message-ID":"<20260406142411.2992618-1-daniel@thingy.jp>","X-Mailer":"git-send-email 2.51.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"Lets start making the m68k virt machine support useful.\n\nFirst we need to fix some m68k endian issues.\n\nThen allow virtio mmio driver instances to be created with\nplatform data and fix a minor endian issue.\n\nFinally, add the code for the board to create the instances.\n\nv2:\n  - Added patch to fix readl() etc on m68k, hopefully this\n    doesn't break everything. This should match Linux now.\n  - Added patch to fix sys reset which is broken by the above\n  - Hacks to virtio-mmio are gone because they aren't needed\n    anymore, just one minor endian fix now.\n  - Removed RFC because it looks good to me*.\n\n\n* I wouldn' trust me. :)\n\nDaniel Palmer (5):\n  sysreset: qemu virt: Use __raw_writel()\n  m68k: Fix writew(), writel(), readw(), readl() endianness\n  virtio: mmio: Keep vendor id little endian\n  virtio: mmio: Allow instantiation via platform data\n  board: qemu: m68k: Create virtio mmio instances\n\n arch/m68k/Kconfig                          | 14 ++++---\n arch/m68k/include/asm/io.h                 | 17 +++-----\n board/emulation/qemu-m68k/qemu-m68k.c      | 47 ++++++++++++++++++++++\n drivers/sysreset/sysreset_qemu_virt_ctrl.c |  2 +-\n drivers/virtio/virtio_mmio.c               | 29 ++++++++-----\n include/virtio_mmio.h                      | 12 ++++++\n 6 files changed, 92 insertions(+), 29 deletions(-)\n create mode 100644 include/virtio_mmio.h"}