get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2228253/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2228253,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228253/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260424173151.371134-9-harsimransingh.tungal@arm.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/18/?format=api",
        "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": "<20260424173151.371134-9-harsimransingh.tungal@arm.com>",
    "date": "2026-04-24T17:31:47",
    "name": "[08/12] test: dm: add sandbox FF-A runtime transport tests",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "aceaf4a517d232a7b3acd2578c180188327438d9",
    "submitter": {
        "id": 88701,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/88701/?format=api",
        "name": "Harsimran Singh Tungal",
        "email": "harsimransingh.tungal@arm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260424173151.371134-9-harsimransingh.tungal@arm.com/mbox/",
    "series": [
        {
            "id": 501471,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501471/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501471",
            "date": "2026-04-24T17:31:50",
            "name": "arm64: FF-A runtime transport for EFI variables",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501471/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2228253/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2228253/checks/",
    "tags": {},
    "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=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256\n header.s=foss header.b=oe4R9f/b;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=fail (p=none dis=none) header.from=arm.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=arm.com header.i=@arm.com header.b=\"oe4R9f/b\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=arm.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=harsimransingh.tungal@arm.com"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g2yQY1yk3z1yHS\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 04:04:37 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id D77A0844C1;\n\tSat, 25 Apr 2026 20:02:47 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id E5AD5842BF; Sat, 25 Apr 2026 19:01:51 +0200 (CEST)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by phobos.denx.de (Postfix) with ESMTP id A70C384394\n for <u-boot@lists.denx.de>; Sat, 25 Apr 2026 19:01:46 +0200 (CEST)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3D42435A8;\n Fri, 24 Apr 2026 10:32:45 -0700 (PDT)",
            "from e132995.arm.com (unknown [10.57.64.144])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 45B413F7B4;\n Fri, 24 Apr 2026 10:32:49 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss;\n t=1777051970; bh=0biRjWPtYnfTV7eWpIXIzANLRhwUOI+ST0UERPiKYy4=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=oe4R9f/b9hEhA97psgGXHY88d/TmaOmoSDqxWqJ+fe57yFEo3+q6kTrpe17WQpTMM\n /lgU3MgyHmxVdveXfkb3p+0tQljV5W4hSWPP66vwV9Uijz1HEZDBeJ2uhOnjeO/gjy\n Gmwxb/MzWgp6oKD6SYJPR/RWduoHNQAD1jlNE8Po=",
        "From": "Harsimran Singh Tungal <harsimransingh.tungal@arm.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>,\n Tom Rini <trini@konsulko.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Hugues Kamba Mpiana <hugues.kambampiana@arm.com>,\n Simon Glass <sjg@chromium.org>,\n Harsimran Singh Tungal <harsimransingh.tungal@arm.com>",
        "Subject": "[PATCH 08/12] test: dm: add sandbox FF-A runtime transport tests",
        "Date": "Fri, 24 Apr 2026 18:31:47 +0100",
        "Message-Id": "<20260424173151.371134-9-harsimransingh.tungal@arm.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260424173151.371134-1-harsimransingh.tungal@arm.com>",
        "References": "<20260424173151.371134-1-harsimransingh.tungal@arm.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Sat, 25 Apr 2026 20:02:44 +0200",
        "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": "Exercise FF-A runtime helpers via sandbox DM tests\n\nAdd driver-model unit tests that exercise the FF-A runtime helpers on\nsandbox. The new tests reuse the sandbox emulator to validate both the\npositive direct-request flow and failure handling, priming the emulator\nstate so the runtime path can be executed.\n\nSigned-off-by: Harsimran Singh Tungal <harsimransingh.tungal@arm.com>\n---\n arch/sandbox/include/asm/sandbox_arm_ffa.h | 16 ++++-\n test/dm/Makefile                           |  3 +-\n test/dm/ffa_runtime.c                      | 82 ++++++++++++++++++++++\n 3 files changed, 99 insertions(+), 2 deletions(-)\n create mode 100644 test/dm/ffa_runtime.c",
    "diff": "diff --git a/arch/sandbox/include/asm/sandbox_arm_ffa.h b/arch/sandbox/include/asm/sandbox_arm_ffa.h\nindex be2790f4960..a20eb159b73 100644\n--- a/arch/sandbox/include/asm/sandbox_arm_ffa.h\n+++ b/arch/sandbox/include/asm/sandbox_arm_ffa.h\n@@ -1,6 +1,6 @@\n /* SPDX-License-Identifier: GPL-2.0+ */\n /*\n- * Copyright 2022-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>\n+ * Copyright 2022-2023, 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>\n  *\n  * Authors:\n  *   Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>\n@@ -26,6 +26,20 @@\n #define SANDBOX_SP3_ID 0x6452\n #define SANDBOX_SP4_ID 0x7814\n \n+/*\n+ * The sandbox FF-A emulator uses fixed, synthetic execution-context counts and\n+ * property bitfields for each partition.\n+ */\n+#define SANDBOX_SP1_EXEC_CTXT 0x5687\n+#define SANDBOX_SP2_EXEC_CTXT 0x9587\n+#define SANDBOX_SP3_EXEC_CTXT 0x7687\n+#define SANDBOX_SP4_EXEC_CTXT 0x1487\n+\n+#define SANDBOX_SP1_PROPERTIES 0x89325621\n+#define SANDBOX_SP2_PROPERTIES 0x45325621\n+#define SANDBOX_SP3_PROPERTIES 0x23325621\n+#define SANDBOX_SP4_PROPERTIES 0x70325621\n+\n /* Invalid service UUID (no matching SP) */\n #define SANDBOX_SERVICE3_UUID\t\"55d532ed-0942-e699-722d-c09ca798d9cd\"\n \ndiff --git a/test/dm/Makefile b/test/dm/Makefile\nindex 771b703b737..ee1298ba572 100644\n--- a/test/dm/Makefile\n+++ b/test/dm/Makefile\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: GPL-2.0+\n #\n # Copyright (c) 2013 Google, Inc\n-# Copyright 2022-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>\n+# Copyright 2022-2023, 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>\n \n # Tests for particular subsystems - when enabling driver model for a new\n # subsystem you must add sandbox tests here.\n@@ -96,6 +96,7 @@ obj-$(CONFIG_ACPI_PMC) += pmc.o\n obj-$(CONFIG_DM_PMIC) += pmic.o\n obj-$(CONFIG_DM_PWM) += pwm.o\n obj-$(CONFIG_ARM_FFA_TRANSPORT) += ffa.o\n+obj-$(CONFIG_ARM_FFA_TRANSPORT) += ffa_runtime.o\n obj-$(CONFIG_QFW) += qfw.o\n obj-$(CONFIG_RAM) += ram.o\n obj-y += regmap.o\ndiff --git a/test/dm/ffa_runtime.c b/test/dm/ffa_runtime.c\nnew file mode 100644\nindex 00000000000..4ba859fa314\n--- /dev/null\n+++ b/test/dm/ffa_runtime.c\n@@ -0,0 +1,82 @@\n+// SPDX-License-Identifier: GPL-2.0+\n+/*\n+ * Functional tests for FF-A runtime helpers\n+ *\n+ * Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>\n+ *\n+ * Authors:\n+ *      Harsimran Singh Tungal <harsimransingh.tungal@arm.com>\n+ */\n+\n+#include <dm.h>\n+#include <dm/test.h>\n+#include <asm/sandbox_arm_ffa.h>\n+#include <asm/sandbox_arm_ffa_priv.h>\n+#include <arm_ffa_runtime.h>\n+#include <test/ut.h>\n+\n+static int ffa_runtime_get_sp_id(struct unit_test_state *uts, u16 *sp_id)\n+{\n+\tstruct ffa_partition_desc *descs;\n+\tu32 count;\n+\tstruct udevice *dev;\n+\tconst char *svc_uuid = SANDBOX_SERVICE1_UUID;\n+\n+\tut_assertok(uclass_first_device_err(UCLASS_FFA, &dev));\n+\tut_assertok(ffa_partition_info_get(dev, svc_uuid, &count, &descs));\n+\tut_assert(count > 0);\n+\n+\t*sp_id = descs[0].info.id;\n+\treturn 0;\n+}\n+\n+static int dm_test_ffa_runtime_ack(struct unit_test_state *uts)\n+{\n+\tstruct ffa_send_direct_data msg = {0};\n+\tu16 sp_id;\n+\tu8 cnt;\n+\n+\tut_assertok(ffa_runtime_get_sp_id(uts, &sp_id));\n+\n+\tffa_copy_runtime_priv(&(struct ffa_priv_runtime){\n+\t\t.id = NS_PHYS_ENDPOINT_ID,\n+\t});\n+\tffa_enable_runtime_context();\n+\n+\t/* Ensure runtime context is available before attempting runtime-only paths */\n+\tut_assert(ffa_get_status_runtime_context());\n+\n+\t/* Runtime messaging should reuse the sandbox emulator and return 0xff pattern */\n+\tut_assertok(ffa_sync_send_receive_runtime(sp_id, &msg, true));\n+\tfor (cnt = 0; cnt < sizeof(struct ffa_send_direct_data) / sizeof(u64); cnt++)\n+\t\tut_asserteq_64(-1UL, ((u64 *)&msg)[cnt]);\n+\n+\t/* Validate FF-A error to errno translation helpers */\n+\tut_asserteq(-EINVAL, ffa_to_std_errno(-INVALID_PARAMETERS));\n+\tut_asserteq(-EOPNOTSUPP, ffa_to_std_errno(-NOT_SUPPORTED));\n+\n+\treturn 0;\n+}\n+DM_TEST(dm_test_ffa_runtime_ack, UTF_SCAN_FDT | UTF_CONSOLE);\n+\n+static int dm_test_ffa_runtime_nack(struct unit_test_state *uts)\n+{\n+\tstruct ffa_send_direct_data msg = {0};\n+\tu16 sp_id;\n+\n+\tut_assertok(ffa_runtime_get_sp_id(uts, &sp_id));\n+\n+\tffa_copy_runtime_priv(&(struct ffa_priv_runtime){\n+\t\t.id = NS_PHYS_ENDPOINT_ID,\n+\t});\n+\tffa_enable_runtime_context();\n+\n+\t/* Ensure runtime context is available before attempting runtime-only paths */\n+\tut_assert(ffa_get_status_runtime_context());\n+\n+\t/* Invalid partition IDs must be rejected and mapped to -EINVAL */\n+\tut_asserteq(-EINVAL, ffa_sync_send_receive_runtime(0, &msg, true));\n+\n+\treturn 0;\n+}\n+DM_TEST(dm_test_ffa_runtime_nack, UTF_SCAN_FDT | UTF_CONSOLE);\n",
    "prefixes": [
        "08/12"
    ]
}