get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196083,
    "url": "http://patchwork.ozlabs.org/api/patches/2196083/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260212204511.619392-8-javierm@redhat.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/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,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260212204511.619392-8-javierm@redhat.com>",
    "list_archive_url": null,
    "date": "2026-02-12T20:45:01",
    "name": "[v2,7/7] efi_selftest: Enhance MBR test for PARTITION_INFO_PROTOCOL",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d53770f023297d68d25d21d73a31f4e400b40170",
    "submitter": {
        "id": 72132,
        "url": "http://patchwork.ozlabs.org/api/people/72132/?format=api",
        "name": "Javier Martinez Canillas",
        "email": "javierm@redhat.com"
    },
    "delegate": {
        "id": 68728,
        "url": "http://patchwork.ozlabs.org/api/users/68728/?format=api",
        "username": "xypron",
        "first_name": "Heinrich",
        "last_name": "Schuchardt",
        "email": "xypron.glpk@gmx.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260212204511.619392-8-javierm@redhat.com/mbox/",
    "series": [
        {
            "id": 492022,
            "url": "http://patchwork.ozlabs.org/api/series/492022/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=492022",
            "date": "2026-02-12T20:44:54",
            "name": "efi_loader: disk: Add EFI_PARTITION_INFO_PROTOCOL support for MBR",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/492022/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196083/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196083/checks/",
    "tags": {},
    "related": [],
    "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=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=K6JFFWCC;\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=pass (p=quarantine dis=none) header.from=redhat.com",
            "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=redhat.com header.i=@redhat.com header.b=\"K6JFFWCC\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=javierm@redhat.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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fBnQW1B8dz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 07:46:27 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 231CA83DCA;\n\tThu, 12 Feb 2026 21:45:40 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 3141883CB5; Thu, 12 Feb 2026 21:45:38 +0100 (CET)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 1B34B83DCA\n for <u-boot@lists.denx.de>; Thu, 12 Feb 2026 21:45:35 +0100 (CET)",
            "from mail-wm1-f71.google.com (mail-wm1-f71.google.com\n [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-575-DyRrz8U1Nc2Dhf_C2-u59Q-1; Thu, 12 Feb 2026 15:45:33 -0500",
            "by mail-wm1-f71.google.com with SMTP id\n 5b1f17b1804b1-4836fbfa35cso1540525e9.1\n for <u-boot@lists.denx.de>; Thu, 12 Feb 2026 12:45:33 -0800 (PST)",
            "from localhost (62-151-111-63.jazzfree.ya.com. [62.151.111.63])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48370ac3564sm6753225e9.5.2026.02.12.12.45.29\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 12 Feb 2026 12:45:29 -0800 (PST)"
        ],
        "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,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1770929134;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=Uzth/JYhZQo4r4//T8emgWZVZm/bXIkkXnaaipOOtQA=;\n b=K6JFFWCCuKeI1ZKoYJUObvYuFU3fFf5MA5CmbK8sWJhpN9YSoNda1XGpaGgAgsBw0bdAjH\n MnCxyKn4ZABnQsOIdMa0q6s6/gnN96vs75++V36hOfoyRStRE8T9+asbRMxveYPdRMyvQs\n 1o6W+E+jS3HIy6G8ypSoFXaERQubEQE=",
        "X-MC-Unique": "DyRrz8U1Nc2Dhf_C2-u59Q-1",
        "X-Mimecast-MFC-AGG-ID": "DyRrz8U1Nc2Dhf_C2-u59Q_1770929132",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770929132; x=1771533932;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=Uzth/JYhZQo4r4//T8emgWZVZm/bXIkkXnaaipOOtQA=;\n b=cgBeHneczx+FwIfm03Jo06/xJatukg23+ShOHMzh2/LvMzSQ1oMpQ9enwH1ThJg/xH\n 2FztTNsExFJTliM9no2oKUdotF8MRbQzN73VD7/aZT4wGTSXAZjIhB3MTzPbabfdTxl+\n B+uh2qbe9xmpWa4lSzVQUAPwqqNzRAfpeKeA7z48ZbJN/oBKJCs2k5QJfWbMM6ZRRtvl\n 2sIraDTmA2s6dNy67qh8HQspWYcnLDUT1/uwGkOKUwPAa7m6uaVMoUiT8/AB+38YlXWK\n ophRGI1c+eJIDtVDWiLVZ/NrOCMnBaxO5W3NBL/0tyiqoMyFx+WrAPgR1yRI0SjvHycH\n A6iQ==",
        "X-Gm-Message-State": "AOJu0Yx3jZd3LowLsdIjs3w22rew9I2MKfW9uETZbGjphhXvPP415xL1\n OKn0EUOXxKpEGejTnHi5Lnx6AOlAYjXNQdUn716on/PFBp8FloBE8q2+IwnLmaJhATcWNiCG0MZ\n bk4fFcWVoBUAGyQNkxUVtu5n7K3lleJ5QfzDAyTRBLT/iPtnDTjwHTyqQfQDpkmAHMn32gPH7jX\n Wz7jMMjBrdUEEkcx0nCyOl3n5hbVVoxpmKPrtRzA==",
        "X-Gm-Gg": "AZuq6aLWggZDCdxC2AaYYJlCzv3JCZKWEeh+i/o7hZ4xIdVs90toqoqf/b9kIsmXmwk\n RZPFZSOHMb3nvGTWF8uQmNzVbhWbBtW2g1n5b7nlZ5l7zsWoslgmbAmLz0Bb++pf2giKVCUW+jE\n 6+c3KKt4mseNjUVfSJj2tj1ZVn7o7tsGe8sL9bP5WhPyPRN7TLjLvvfTwCY8ZMJWZWeP0OX0zYG\n 5nIqyd/2X0ECtdfmC73HQ42BeE7xkvyiLyg15/3t/2cyIkYC4wjeeYKaCSzLc+ytAyxgpW7trXx\n Va0O+YRFnMhZem5b8/hVwGMK/48AdIhtb06vUWa0OLJQ1RrDzNlyr5iM6Mm8VzmJlZqjLYPK45E\n 9NcemVchEtGiXKLKXgzW7mqUsTGnzqNq8GD6ESrhlJ0l6i68=",
        "X-Received": [
            "by 2002:a05:600c:8119:b0:480:4d39:84b3 with SMTP id\n 5b1f17b1804b1-48370e175c2mr5638335e9.6.1770929131799;\n Thu, 12 Feb 2026 12:45:31 -0800 (PST)",
            "by 2002:a05:600c:8119:b0:480:4d39:84b3 with SMTP id\n 5b1f17b1804b1-48370e175c2mr5638055e9.6.1770929131312;\n Thu, 12 Feb 2026 12:45:31 -0800 (PST)"
        ],
        "From": "Javier Martinez Canillas <javierm@redhat.com>",
        "To": "u-boot@lists.denx.de",
        "Cc": "Heinrich Schuchardt <xypron.glpk@gmx.de>, eballetb@redhat.com,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Tom Rini <trini@konsulko.com>,\n Javier Martinez Canillas <javierm@redhat.com>",
        "Subject": "[PATCH v2 7/7] efi_selftest: Enhance MBR test for\n PARTITION_INFO_PROTOCOL",
        "Date": "Thu, 12 Feb 2026 21:45:01 +0100",
        "Message-ID": "<20260212204511.619392-8-javierm@redhat.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260212204511.619392-1-javierm@redhat.com>",
        "References": "<20260212204511.619392-1-javierm@redhat.com>",
        "MIME-Version": "1.0",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "yunYq1YIsh16Z4DQJL5hOi7pdkGhTA9a43HFld0F1eg_1770929132",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "content-type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "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": "The EFI_PARTITION_INFO_PROTOCOL test was added before the protocol fully\nsupported MBR partitions. As a result, it lacked specific checks for the\ncontent of the raw MBR partition record.\n\nNow that MBR support has been implemented, enhance the selftest to provide\ncoverage for the MBR entries too.\n\nThis verifies that the protocol correctly reads and exposes MBR partition\nrecords and prevents this functionality to regress due future changes.\n\nSigned-off-by: Javier Martinez Canillas <javierm@redhat.com>\n---\n\n(no changes since v1)\n\n lib/efi_selftest/efi_selftest_block_device.c | 26 ++++++++++++++++++++\n 1 file changed, 26 insertions(+)",
    "diff": "diff --git a/lib/efi_selftest/efi_selftest_block_device.c b/lib/efi_selftest/efi_selftest_block_device.c\nindex f145e58a267a..9c4be834eebb 100644\n--- a/lib/efi_selftest/efi_selftest_block_device.c\n+++ b/lib/efi_selftest/efi_selftest_block_device.c\n@@ -19,6 +19,7 @@\n #include \"efi_selftest_disk_image.h\"\n #include <asm/cache.h>\n #include <part_efi.h>\n+#include <part.h>\n \n /* Block size of compressed disk image */\n #define COMPRESSED_DISK_IMAGE_BLOCK_SIZE 8\n@@ -319,6 +320,25 @@ static int execute(void)\n \tu64 pos;\n \tchar block_io_aligned[1 << LB_BLOCK_SIZE] __aligned(1 << LB_BLOCK_SIZE);\n \n+\t/*\n+\t * The test disk image is defined in efi_selftest_disk_image.h,\n+\t * it contains a single FAT12 partition of 127 sectors size.\n+\t */\n+\tstatic const dos_partition_t mbr_expected = {\n+\t\t.boot_ind = 0x00,\n+\t\t.head = 0x00,\n+\t\t.sector = 0x02,\n+\t\t.cyl = 0x00,\n+\t\t.sys_ind = 0x01, /* FAT12 */\n+\t\t.end_head = 0x02,\n+\t\t.end_sector = 0x02,\n+\t\t.end_cyl = 0x00,\n+\t\t/* LBA 1 */\n+\t\t.start_sect = cpu_to_le32(1),\n+\t\t/* Size 127 sectors (0x7f) */\n+\t\t.nr_sects = cpu_to_le32(127),\n+\t};\n+\n \t/* Connect controller to virtual disk */\n \tret = boottime->connect_controller(disk_handle, NULL, NULL, 1);\n \tif (ret != EFI_SUCCESS) {\n@@ -405,6 +425,12 @@ static int execute(void)\n \t\treturn EFI_ST_FAILURE;\n \t}\n \n+\t/* Compare the obtained MBR with the expected one for the test partition */\n+\tif (memcmp(&part_info->info.mbr, &mbr_expected, sizeof(mbr_expected))) {\n+\t\tefi_st_error(\"MBR partition record mismatch\\n\");\n+\t\treturn EFI_ST_FAILURE;\n+\t}\n+\n \t/* Open the simple file system protocol */\n \tret = boottime->open_protocol(handle_partition,\n \t\t\t\t      &guid_simple_file_system_protocol,\n",
    "prefixes": [
        "v2",
        "7/7"
    ]
}