get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221930,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2221930/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260410-sdxi-base-v1-10-1d184cb5c60a@amd.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260410-sdxi-base-v1-10-1d184cb5c60a@amd.com>",
    "date": "2026-04-10T13:07:20",
    "name": "[10/23] dmaengine: sdxi: Complete administrative context jump start",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "8992c4093aae311feecd919eea36b32a5a5d1a3b",
    "submitter": {
        "id": 91626,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/91626/?format=api",
        "name": "Nathan Lynch via B4 Relay",
        "email": "devnull+nathan.lynch.amd.com@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260410-sdxi-base-v1-10-1d184cb5c60a@amd.com/mbox/",
    "series": [
        {
            "id": 499458,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499458/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=499458",
            "date": "2026-04-10T13:07:10",
            "name": "dmaengine: Smart Data Accelerator Interface (SDXI) basic support",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499458/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2221930/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221930/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-52321-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=tZoK3NPj;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-pci+bounces-52321-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=\"tZoK3NPj\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4fscYG6M9sz20HT\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 23:08:02 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 9C5803012857\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 13:07:57 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 93BB03A7F5E;\n\tFri, 10 Apr 2026 13:07:50 +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 47FEB395D85;\n\tFri, 10 Apr 2026 13:07:50 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPS id 24574C2BC9E;\n\tFri, 10 Apr 2026 13:07:50 +0000 (UTC)",
            "from aws-us-west-2-korg-lkml-1.web.codeaurora.org\n (localhost.localdomain [127.0.0.1])\n\tby smtp.lore.kernel.org (Postfix) with ESMTP id 1DF1CF4485E;\n\tFri, 10 Apr 2026 13:07:50 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775826470; cv=none;\n b=OiPQfbh7XIoBWVmWRqROrJHcwFxdFB0lA0wKRiIjXZ+hEAqoDtH6WtFu2Xaf/cixgN+4809zecNqeS6cnFZfWQKmi8rJ5zTasveOG0PbsygMdlZY/glQLDxCYUi538q83ruCU01V98qMW571gMcEYDG54Qf0pLmslxiLRSkIibY=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775826470; c=relaxed/simple;\n\tbh=Wxk7H4obpIFjzAES9jna1gaVL0e16DOiq/fj8eJzij4=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=Yax2uLfJX8FaftS5xg2z/d0W0JKhQsQxTwp4dSRfX+xrWhHV5fPDmrG9dzdB9cTzu37LymXIhwvwKhZasHDujfvgQckbHeD837vhl/EtM+u8lCOBuS73nGjtDiiF8Vog1Qm27ylM30T2odEEArlec1AUgRccX5VLkhbtVrpiPj8=",
        "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=tZoK3NPj; 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=1775826470;\n\tbh=Wxk7H4obpIFjzAES9jna1gaVL0e16DOiq/fj8eJzij4=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From;\n\tb=tZoK3NPjxycGFBwbM9yBB9NrqGRsJGLDwKXtzOALvy5X8rUtqZH1zoRmraqR71zYt\n\t vp+PJ3L2J22YeVrSk5kL99RJWyH6eZjkd6YmMM/CYsSIXC02qYFsQy6RpJu1OqkW/Q\n\t 3qzKGCzxWlOm3VlHWszJojD/ndJYosCyVE9VkQ3weJpcU9OnQ/nEhHTS2GVt06cLfk\n\t JV2m0IfHfavx0A2QM+QqEa2vc08K9kRTAYe5C1lenqF/7doG05AzeVzKVixWORafTa\n\t 60P9To/FZw7e9sT598SXbqL8XPcQ0dtp/Px2CoJXIhK6ynBxa3vcR5LCSh9OthllTQ\n\t v2u59zXgiA0sA==",
        "From": "Nathan Lynch via B4 Relay <devnull+nathan.lynch.amd.com@kernel.org>",
        "Date": "Fri, 10 Apr 2026 08:07:20 -0500",
        "Subject": "[PATCH 10/23] dmaengine: sdxi: Complete administrative context\n jump start",
        "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",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260410-sdxi-base-v1-10-1d184cb5c60a@amd.com>",
        "References": "<20260410-sdxi-base-v1-0-1d184cb5c60a@amd.com>",
        "In-Reply-To": "<20260410-sdxi-base-v1-0-1d184cb5c60a@amd.com>",
        "To": "Vinod Koul <vkoul@kernel.org>",
        "Cc": "Wei Huang <wei.huang2@amd.com>,\n Mario Limonciello <mario.limonciello@amd.com>,\n Bjorn Helgaas <bhelgaas@google.com>,\n Jonathan Cameron <jonathan.cameron@huawei.com>,\n Stephen Bates <Stephen.Bates@amd.com>, PradeepVineshReddy.Kodamati@amd.com,\n John.Kariuki@amd.com, linux-pci@vger.kernel.org,\n linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org,\n Nathan Lynch <nathan.lynch@amd.com>",
        "X-Mailer": "b4 0.15.2",
        "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1775826467; l=2661;\n i=nathan.lynch@amd.com; s=20260410; h=from:subject:message-id;\n bh=kubAcpoNvMH0mX/GJJdrwMYFQK1FnJy4kZUeWUFVoLw=;\n b=7pj9RgnhwKsDbTwFx6YSm1hoIlRSARyL8X3IESnCY+LyM8dxaxYEWK1wLINHf77w93JiWP2AD\n 2nopQyUJRXTCKSmk2UdY9lvB6Jz4ldpN5EmC8pDiHFBqka38tBGG5B4",
        "X-Developer-Key": "i=nathan.lynch@amd.com; a=ed25519;\n pk=PK4ozhq+/z9/2Jl5rgDmvHa9raVomv79qM8p1RAFpEw=",
        "X-Endpoint-Received": "by B4 Relay for nathan.lynch@amd.com/20260410 with\n auth_id=728",
        "X-Original-From": "Nathan Lynch <nathan.lynch@amd.com>",
        "Reply-To": "nathan.lynch@amd.com"
    },
    "content": "From: Nathan Lynch <nathan.lynch@amd.com>\n\nNow that the SDXI function has been placed in active state, the admin\ncontext can finally be started by writing its doorbell. Introduce\nsdxi_cxt_push_doorbell() to pair the necessary barrier with the\ndoorbell update.\n\nCo-developed-by: Wei Huang <wei.huang2@amd.com>\nSigned-off-by: Wei Huang <wei.huang2@amd.com>\nSigned-off-by: Nathan Lynch <nathan.lynch@amd.com>\n---\n drivers/dma/sdxi/context.c |  8 ++++++++\n drivers/dma/sdxi/context.h |  2 ++\n drivers/dma/sdxi/device.c  | 15 ++++++++++++++-\n 3 files changed, 24 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/dma/sdxi/context.c b/drivers/dma/sdxi/context.c\nindex 097d871e530f..934c487b4774 100644\n--- a/drivers/dma/sdxi/context.c\n+++ b/drivers/dma/sdxi/context.c\n@@ -16,6 +16,7 @@\n #include <linux/dmapool.h>\n #include <linux/errno.h>\n #include <linux/iommu.h>\n+#include <linux/io-64-nonatomic-lo-hi.h>\n #include <linux/slab.h>\n #include <linux/types.h>\n #include <asm/barrier.h>\n@@ -258,6 +259,13 @@ static int sdxi_publish_cxt(const struct sdxi_cxt *cxt)\n \t/* todo: need to send DSC_CXT_UPD to admin */\n }\n \n+void sdxi_cxt_push_doorbell(struct sdxi_cxt *cxt, u64 index)\n+{\n+\t/* Ensure preceding write index increment is visible. */\n+\tdma_wmb();\n+\tiowrite64(index, cxt->db);\n+}\n+\n static void free_admin_cxt(void *ptr)\n {\n \tstruct sdxi_dev *sdxi = ptr;\ndiff --git a/drivers/dma/sdxi/context.h b/drivers/dma/sdxi/context.h\nindex bbde1fd49af3..c34acd730acb 100644\n--- a/drivers/dma/sdxi/context.h\n+++ b/drivers/dma/sdxi/context.h\n@@ -58,4 +58,6 @@ struct sdxi_cxt {\n \n int sdxi_admin_cxt_init(struct sdxi_dev *sdxi);\n \n+void sdxi_cxt_push_doorbell(struct sdxi_cxt *cxt, u64 index);\n+\n #endif /* DMA_SDXI_CONTEXT_H */\ndiff --git a/drivers/dma/sdxi/device.c b/drivers/dma/sdxi/device.c\nindex 145aa098c269..15f61d1ce490 100644\n--- a/drivers/dma/sdxi/device.c\n+++ b/drivers/dma/sdxi/device.c\n@@ -244,7 +244,20 @@ static int sdxi_fn_activate(struct sdxi_dev *sdxi)\n \t * SDXI 1.0 4.1.8.9: Set MMIO_CTL0.fn_gsr to GSRV_ACTIVE and\n \t * wait for MMIO_STS0.fn_gsv to reach GSV_ACTIVE or GSV_ERROR.\n \t */\n-\treturn sdxi_dev_start(sdxi);\n+\terr = sdxi_dev_start(sdxi);\n+\tif (err)\n+\t\treturn err;\n+\n+\t/*\n+\t * SDXI 1.0 4.1.8.10.b: Start the admin context using method\n+\t * #3 (\"Jump Start 1\") from 4.3.4 Starting A Context and\n+\t * Context Signaling. We haven't queued any descriptors to the\n+\t * admin context at this point, so the appropriate value for\n+\t * the doorbell is 0.\n+\t */\n+\tsdxi_cxt_push_doorbell(sdxi->admin_cxt, 0);\n+\n+\treturn 0;\n }\n \n static int sdxi_create_dma_pool(struct sdxi_dev *sdxi, struct dma_pool **pool,\n",
    "prefixes": [
        "10/23"
    ]
}