get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216818,
    "url": "http://patchwork.ozlabs.org/api/patches/2216818/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260327073659.6160-1-lingshan.zhu@amd.com/",
    "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": "<20260327073659.6160-1-lingshan.zhu@amd.com>",
    "list_archive_url": null,
    "date": "2026-03-27T07:36:59",
    "name": "PCI: Skip devices with RRS Vendor ID(0x0001) on root bus",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c095acc78bd42bd77db339426becc88b56c5bba8",
    "submitter": {
        "id": 90613,
        "url": "http://patchwork.ozlabs.org/api/people/90613/?format=api",
        "name": "Zhu Lingshan",
        "email": "lingshan.zhu@amd.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260327073659.6160-1-lingshan.zhu@amd.com/mbox/",
    "series": [
        {
            "id": 497727,
            "url": "http://patchwork.ozlabs.org/api/series/497727/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=497727",
            "date": "2026-03-27T07:36:59",
            "name": "PCI: Skip devices with RRS Vendor ID(0x0001) on root bus",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497727/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216818/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216818/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-51255-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 (1024-bit key;\n unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256\n header.s=selector1 header.b=D4GwhPrM;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-pci+bounces-51255-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com\n header.b=\"D4GwhPrM\"",
            "smtp.subspace.kernel.org;\n arc=fail smtp.client-ip=40.107.200.61",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=amd.com",
            "smtp.subspace.kernel.org;\n spf=fail smtp.mailfrom=amd.com"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\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 4fhstM0RKGz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 18:37:30 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 2C583300879C\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 07:37:28 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 059523C6A25;\n\tFri, 27 Mar 2026 07:37:27 +0000 (UTC)",
            "from CH5PR02CU005.outbound.protection.outlook.com\n (mail-northcentralusazon11012061.outbound.protection.outlook.com\n [40.107.200.61])\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 A7AE33BED26\n\tfor <linux-pci@vger.kernel.org>; Fri, 27 Mar 2026 07:37:20 +0000 (UTC)",
            "from DM6PR02CA0068.namprd02.prod.outlook.com (2603:10b6:5:177::45)\n by DM4PR12MB6012.namprd12.prod.outlook.com (2603:10b6:8:6c::5) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9769.10; Fri, 27 Mar 2026 07:37:14 +0000",
            "from DM2PEPF00003FC7.namprd04.prod.outlook.com\n (2603:10b6:5:177:cafe::80) by DM6PR02CA0068.outlook.office365.com\n (2603:10b6:5:177::45) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9745.23 via Frontend Transport; Fri,\n 27 Mar 2026 07:37:14 +0000",
            "from satlexmb07.amd.com (165.204.84.17) by\n DM2PEPF00003FC7.mail.protection.outlook.com (10.167.23.24) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9745.21 via Frontend Transport; Fri, 27 Mar 2026 07:37:14 +0000",
            "from fedora.amd.com (10.180.168.240) by satlexmb07.amd.com\n (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Fri, 27 Mar\n 2026 02:37:13 -0500"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774597045; cv=fail;\n b=GXS9jP/h0Kek0UCEBP2JotT9/126Z957B2SeLUU3HzuQ2iK8z8OJU14WXIKnP9tLsGUSOskj72/xUBoKTcJ03hLd1oz59V5w6kYPG+xdhwTmaQbd0VnWJHKuljuuMWcY39h7UzASErq5vGpeeEOofnEb7kZ79YEGwM8ZLL3t1K8=",
            "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=qFUXIlBlCIb6X9XKQi1rxR92hyU1HdfG4ZHIDORks7lSXx9nfJ0cWIovU1IrMrGfZ+Hhak7bB0Ev7/YKnCl6L6fZagxXeprisUrRMkU++yxW3ulu70e9CbGSDuJ09wuZV9arYoqjJggDrU7JxcdzVkAT1OQCJi04kHMG2T2ZbNBdpap4L60sKrDnISS/FEAWr7N+qgFfvtbTUxRen+5+7Bka6Wc1ZF9Kvt7lHTi2mZ/6nPdGuEjM3Loa0S40GHiuGOzLgrOH5qxk+FdUMjJ8h+1i2M9CsJlgrX6U7JXh9eUJd0nNAaOQBDrEIRZEwSrTuDCN7Y/1oUY9UUTaPHzQ4g=="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774597045; c=relaxed/simple;\n\tbh=6BPp6HxN3Kqj167eOlEiKeuEkOlwaAJ6d1ivvJIIcog=;\n\th=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type;\n b=HrU0V2oqXvXFPeQD9GpnPJZU7eZOBMFbQ4ppaczSV4uGhBXOL6uFYouJ5DkXMZdPW6jizapYLO5GpoUp10KkSQU9hZmwxlTq2Y0bBqbaI/BqnO2Kxv2ZXjCo1qNIx6vAk/m91JaIrtnA8eB239F6gphCy+I8Oi6XMURrz0Vyg90=",
            "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=wYM9Ycz1bOS6zSa0Hz0ctO1Whbbo9SEifOTsETwTMvc=;\n b=SaGq0CW7xKN2FfvSQqAHI3pD2+zSGMl1JA15u9DgIyXg4a9i0rf3n78jQ9puVLn5DCpRoLKdWPzEV8sT3Jr0M7TeKL4eg6w9twMyO8BbWmodhCb2CagrDiLnsISW+IjbKJSLFBLVhoYGZkUFU+wa01mxhIuU4zlNIUT/XfpWj98UCsbwFESXTjdbHxHmZlehvkAPYuwJDMpTLtnRV8x2AKwrVy071Pu0YAAoj5hIsmWLWjpBJeihREYtt2QFm1iYpqVkjr32hrLYRnOrtlF/e7PCDML4VNdirZ+Xe8ZBRGUinN6z5p+guP37I/7VwxZJ1Tj1/z0FGSJDLotZM0GPrQ=="
        ],
        "ARC-Authentication-Results": [
            "i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=amd.com;\n spf=fail smtp.mailfrom=amd.com;\n dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com\n header.b=D4GwhPrM; arc=fail smtp.client-ip=40.107.200.61",
            "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 165.204.84.17) smtp.rcpttodomain=google.com smtp.mailfrom=amd.com; dmarc=pass\n (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com;\n dkim=none (message not signed); arc=none (0)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=wYM9Ycz1bOS6zSa0Hz0ctO1Whbbo9SEifOTsETwTMvc=;\n b=D4GwhPrM/CIo1YNDJxlAkvM6jb4wlzzVoEXSqI/LizTOuQiUcOrhxdJ7sd9tqP+FZigJAnocEmahe+ChQo8hmbhAaCUVPUOF/WKRdoIswjKpD84Fk2QCXqwoYGtsmpoEoPsbA89h3NoYeWbD5MhHTkaI7wgu0oRZwgEYUrXg0o8=",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 165.204.84.17)\n smtp.mailfrom=amd.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=amd.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of amd.com designates\n 165.204.84.17 as permitted sender) receiver=protection.outlook.com;\n client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C",
        "From": "Zhu Lingshan <lingshan.zhu@amd.com>",
        "To": "<bhelgaas@google.com>",
        "CC": "<linux-pci@vger.kernel.org>, Zhu Lingshan <lingshan.zhu@amd.com>",
        "Subject": "[PATCH] PCI: Skip devices with RRS Vendor ID(0x0001) on root bus",
        "Date": "Fri, 27 Mar 2026 15:36:59 +0800",
        "Message-ID": "<20260327073659.6160-1-lingshan.zhu@amd.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "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-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-ClientProxiedBy": "satlexmb07.amd.com (10.181.42.216) To satlexmb07.amd.com\n (10.181.42.216)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "DM2PEPF00003FC7:EE_|DM4PR12MB6012:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "bc5d4aa4-42a6-4187-f7a8-08de8bd3aa70",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "\n\tBCL:0;ARA:13230040|82310400026|1800799024|36860700016|376014|18002099003|56012099003;",
        "X-Microsoft-Antispam-Message-Info": "\n\tbKhGQY/jE2i8HcsCNR34yayNL+nRHGP3u2vTBav652vgPu8offPMg9CS04BNuTSrIrPnZZtdUy+8DkQXROsrMC3RiBr3ayRNiw5xip+LAWV2FaM+uAmYMvMxC93f/X2fg5cFO0Dsm4LK2B3KxjnYwRZZ1u/TO3yweFFZAVD61/LQ2zbgmbVMJzWmv4JvV8ISO4J0uRVKDdLQLwhkaAGrloQX8wvNcHqMp4MG0+ilBapnzN/a3R75OoPxZc/aL2kKN3WkuiToNNZ5z1r7JuQ6XBtjBgN+FVTjmu6gp2eYtp/Ygb4XHjy0FVSmu+i/mmhU4HtPdTTX0NNFC/iWkkxhcVIIEFNmp2B+sr2LWUBybLKhmjoUDnV7yX604ZVobQQNA+YKtiTZLknSnjBqaPSHs5KzVa141RzAZwQ6gYIpsBCjPBHjuwrRGTkmGcvTf+5nYW/8VdvOCbWr+ArQ9v9IyGn1vv3fSyH7q9scNpNDxijecrA9njcLTCU5J88CswCprAEfWqscwabNOxKy/xD8+7k/icCckFYCqFG9IjOPhZFzhxjYqjQXrkKPshNnlQMoa5TYxjl7ERiZWJotbpAaUghU85A7cqmgHMeC2wpEfJ45HlMNfxrQWkezoQaHQ81m6QeV4WjNM68E8nQ4XCRIKJJN+hBPbbhhJEKYZ/UpBBzlXg2vKb3Dp+uur7+7Xf6PKdEdoXg3+HVO7NQhLv7p9yCs+hcJ2c2nq76b/rrIiSVccR9k7g86UDo7pEw/rq/rHS463b8B4O9IuxPpldfeOQ==",
        "X-Forefront-Antispam-Report": "\n\tCIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(1800799024)(36860700016)(376014)(18002099003)(56012099003);DIR:OUT;SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n\txpFmIZtwYDcVNExmJLMf3VptwioSmRHgyfypA/11HyhX180XnCEjalggeiRdQbLIOdTVPkN3QDoUhtq6f7snm0eIIHFkdA16EMB6KC7FL+36dH+qYrAOKTlKne1J6MQoEj3EouWvTyaFUn3PoWUidL/Bya6SDKk+9L66Pz/OIBoE7/S+1IktjqLx5UOIF85kF5qk0o4vKpFzLgi5JPuzIi916dt+B3S6LsE/Dn8d2f2Ldw2QSeJOZSSv6aoDsF2bNEHrzRfZX942jgHlUcVR5JCuVGYS216xItRtD3miF8fkSGMA6fI43Iz2Y+yZ2iO2lCXUIj/v3I89tT/+3S8fT1dMOYVko59oDaeBpduz/KSKcSNdXlyHhSqcLdBUzHv3D3ZPxIjSq16a85DnF+1SMDvXX2lcfShpQkUiolE6q2c7t/5DPAy2H2VXEAQ62N/L",
        "X-OriginatorOrg": "amd.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "27 Mar 2026 07:37:14.6321\n (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n bc5d4aa4-42a6-4187-f7a8-08de8bd3aa70",
        "X-MS-Exchange-CrossTenant-Id": "3dd8961f-e488-4e60-8e11-a82d994e183d",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n\tDM2PEPF00003FC7.namprd04.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DM4PR12MB6012"
    },
    "content": "PCIe Request Retry Status (RRS) is a link-layer mechanism where a\ndownstream device responds with RRS to indicate it is not ready.\n\nWith RRS Software Visibility enabled, the Root Port translates\nRRS into Vendor ID 0x0001 (reserved by PCI SIG) for the driver.\n\nDevices on the root bus, for example the root port itself,\nhave no upstream PCIe link and can never legitimately return RRS.\n\nThis patch skips any devices with RRS Vendor ID 0x0001\non the root bus instead of entering the RRS retry loop.\n\nSigned-off-by: Zhu Lingshan <lingshan.zhu@amd.com>\n---\n drivers/pci/probe.c | 21 ++++++++++++++++++++-\n 1 file changed, 20 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c\nindex bccc7a4bdd79..2fad89ca594c 100644\n--- a/drivers/pci/probe.c\n+++ b/drivers/pci/probe.c\n@@ -2578,8 +2578,27 @@ bool pci_bus_generic_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l,\n \t    *l == 0x0000ffff || *l == 0xffff0000)\n \t\treturn false;\n \n-\tif (pci_bus_rrs_vendor_id(*l))\n+\tif (pci_bus_rrs_vendor_id(*l)) {\n+\t\t/*\n+\t\t * RRS (Request Retry Status) is a PCIe link-layer mechanism\n+\t\t * where a downstream device sends a RRS completion status, and the\n+\t\t * Root Port (with RRS Software Visibility enabled) translates\n+\t\t * it to Vendor ID 0x0001 for the driver, indicating the\n+\t\t * device is not ready.\n+\t\t *\n+\t\t * Therefore, RRS is a root port feature, and devices on the root bus,\n+\t\t * for example the root port itself have no upstream PCIe link,\n+\t\t * so they can never legitimately return RRS.\n+\t\t */\n+\t\tif (pci_is_root_bus(bus)) {\n+\t\t\tpr_err(\"pci %04x:%02x:%02x.%d: invalid Vendor ID %04x (RRS, reserved by PCI SIG) on root bus, buggy device\\n\",\n+\t\t\t\tpci_domain_nr(bus), bus->number,\n+\t\t\t\tPCI_SLOT(devfn), PCI_FUNC(devfn),\n+\t\t\t\t*l & 0xffff);\n+\t\t\treturn false;\n+\t\t}\n \t\treturn pci_bus_wait_rrs(bus, devfn, l, timeout);\n+\t}\n \n \treturn true;\n }\n",
    "prefixes": []
}