get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2197401,
    "url": "http://patchwork.ozlabs.org/api/patches/2197401/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260217212707.2450423-20-cassel@kernel.org/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260217212707.2450423-20-cassel@kernel.org>",
    "list_archive_url": null,
    "date": "2026-02-17T21:27:15",
    "name": "[9/9] selftests: pci_endpoint: Skip reserved BARs",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "506f3b91407261a389d4f08a65737e554e7c3087",
    "submitter": {
        "id": 87751,
        "url": "http://patchwork.ozlabs.org/api/people/87751/?format=api",
        "name": "Niklas Cassel",
        "email": "cassel@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260217212707.2450423-20-cassel@kernel.org/mbox/",
    "series": [
        {
            "id": 492482,
            "url": "http://patchwork.ozlabs.org/api/series/492482/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=492482",
            "date": "2026-02-17T21:27:06",
            "name": "PCI: endpoint differentiate between disabled and reserved BARs",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492482/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2197401/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2197401/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-47516-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=UgSDje2O;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-pci+bounces-47516-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"UgSDje2O\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\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 4fFt6c2rZ0z1xpl\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 08:28:24 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 84A453007ADB\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 21:28:22 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A84012F618F;\n\tTue, 17 Feb 2026 21:28:19 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 85EB128C006;\n\tTue, 17 Feb 2026 21:28:19 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 4F0DAC19421;\n\tTue, 17 Feb 2026 21:28:17 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771363699; cv=none;\n b=CuYuI1Viq6d1A3bGoogQZBYW7uETAZxQDQirY4f/RU3FO8HgyQ+24IW2I3pTKyJB795lMH7ZFRRjnqlBbhX6wj4A9sVY160rQG5Bgq2IpyabN6STcBXM4euWwridZdC+uWDEXGG1EsTtPyDx4wmgLUmXypFENn1DlYwLP1WPelc=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771363699; c=relaxed/simple;\n\tbh=nnaSOXUhEMnoiT7VMBqeLHc/VodZYBzE9r2yIRwoPEg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=Jqci3hGIKur3TMLeWoHW4vJDcqCQWpKLRLOyPb08vCeMYNSrs1Mo4OLX6Tx8ph7Xv3fxOyY6epdiWBKqyF5FOQHoQ968R12Oi9x9o0+u+/ct23YlR/j1iBd5y3nZNbyZa+9GrITtTnd4XXTMTMnh9FVBhdAW9eX0TgCpSVGkg9k=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=UgSDje2O; arc=none smtp.client-ip=10.30.226.201",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1771363699;\n\tbh=nnaSOXUhEMnoiT7VMBqeLHc/VodZYBzE9r2yIRwoPEg=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=UgSDje2ODtZk0cjpIuHkE3g1tB1fzYyR8MUkNHIpRWXSn4wW+y7JPOISjGdtYDrPi\n\t 8qXqMghFK0t1UD6QBwZQfADUE4iaTiQ5Dx965l1u3kBkQ9lZw+K5LC1byJwGPupyWC\n\t d6A1P65CiBmAlFydN8NacN/uVIQWBNwo2/uJ3tarU7nkK7jhGsNfzXy04F2D8tXw2f\n\t kGy0lR2BzCc8k6a9hRfaZWLKDGZzeK3qg9w7K0ob+fu/zTYiG/hFmQsKWQjYZU4Jes\n\t sd7ydaC4fXRGoyPmmH+9emxyDkQR5liTiygyZOBo5Ll/t62ljPdzHW6yNnNrDv/jGO\n\t g63s0pHW7TyPg==",
        "From": "Niklas Cassel <cassel@kernel.org>",
        "To": "Manivannan Sadhasivam <mani@kernel.org>, =?utf-8?q?Krzysztof_Wilczy?=\n\t=?utf-8?q?=C5=84ski?= <kwilczynski@kernel.org>,\n Kishon Vijay Abraham I <kishon@kernel.org>, Shuah Khan <shuah@kernel.org>",
        "Cc": "Manikanta Maddireddy <mmaddireddy@nvidia.com>,\n\tKoichiro Den <den@valinux.co.jp>,\n\tDamien Le Moal <dlemoal@kernel.org>,\n\tNiklas Cassel <cassel@kernel.org>,\n\tlinux-pci@vger.kernel.org,\n\tlinux-kselftest@vger.kernel.org",
        "Subject": "[PATCH 9/9] selftests: pci_endpoint: Skip reserved BARs",
        "Date": "Tue, 17 Feb 2026 22:27:15 +0100",
        "Message-ID": "<20260217212707.2450423-20-cassel@kernel.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260217212707.2450423-11-cassel@kernel.org>",
        "References": "<20260217212707.2450423-11-cassel@kernel.org>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=1302; i=cassel@kernel.org;\n h=from:subject; bh=nnaSOXUhEMnoiT7VMBqeLHc/VodZYBzE9r2yIRwoPEg=;\n b=owGbwMvMwCV2MsVw8cxjvkWMp9WSGDKn3DU8vL7nWBpn5fnzMnZmbg391Q6XJ4rmtgnb2Xsmq\n tVXuD7uKGVhEONikBVTZPH94bK/uNt9ynHFOzYwc1iZQIYwcHEKwES2TWJk2PZvuv+sh6kfjh7r\n yt4p9vPRkaa2+rk87+TuPJXRquHmZGJkmHfzG3eM+QP2hcu83m/dYudhIDV1o//tZukkI13ngGu\n 3+AA=",
        "X-Developer-Key": "i=cassel@kernel.org; a=openpgp;\n fpr=5ADE635C0E631CBBD5BE065A352FE6582ED9B5DA",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "Running a test against a reserved BAR will result in the pci-epf-test\ndriver returning -ENOBUFS.\n\nMake sure that the pci_endpoint_test selftest will return skip instead of\nfailure or success for reserved BARs.\n\nSigned-off-by: Niklas Cassel <cassel@kernel.org>\n---\n tools/testing/selftests/pci_endpoint/pci_endpoint_test.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/tools/testing/selftests/pci_endpoint/pci_endpoint_test.c b/tools/testing/selftests/pci_endpoint/pci_endpoint_test.c\nindex eecb776c33af..e506359cdded 100644\n--- a/tools/testing/selftests/pci_endpoint/pci_endpoint_test.c\n+++ b/tools/testing/selftests/pci_endpoint/pci_endpoint_test.c\n@@ -67,6 +67,8 @@ TEST_F(pci_ep_bar, BAR_TEST)\n \tpci_ep_ioctl(PCITEST_BAR, variant->barno);\n \tif (ret == -ENODATA)\n \t\tSKIP(return, \"BAR is disabled\");\n+\tif (ret == -ENOBUFS)\n+\t\tSKIP(return, \"BAR is reserved\");\n \tEXPECT_FALSE(ret) TH_LOG(\"Test failed for BAR%d\", variant->barno);\n }\n \n@@ -84,6 +86,8 @@ TEST_F(pci_ep_bar, BAR_SUBRANGE_TEST)\n \t\tSKIP(return, \"BAR is test register space\");\n \tif (ret == -EOPNOTSUPP)\n \t\tSKIP(return, \"Subrange map is not supported\");\n+\tif (ret == -ENOBUFS)\n+\t\tSKIP(return, \"BAR is reserved\");\n \tEXPECT_FALSE(ret) TH_LOG(\"Test failed for BAR%d\", variant->barno);\n }\n \n",
    "prefixes": [
        "9/9"
    ]
}