Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2227526/?format=api
{ "id": 2227526, "url": "http://patchwork.ozlabs.org/api/patches/2227526/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260423212316.3431746-10-dmatlack@google.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": "<20260423212316.3431746-10-dmatlack@google.com>", "list_archive_url": null, "date": "2026-04-23T21:23:13", "name": "[v4,09/11] PCI: liveupdate: Inherit ARI Forwarding Enable on preserved bridges", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "913aa91e7a503dae4843d07aaeb87441e7bb689f", "submitter": { "id": 69449, "url": "http://patchwork.ozlabs.org/api/people/69449/?format=api", "name": "David Matlack", "email": "dmatlack@google.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260423212316.3431746-10-dmatlack@google.com/mbox/", "series": [ { "id": 501248, "url": "http://patchwork.ozlabs.org/api/series/501248/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=501248", "date": "2026-04-23T21:23:04", "name": "PCI: liveupdate: PCI core support for Live Update", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/501248/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2227526/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2227526/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-53076-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=google.com header.i=@google.com header.a=rsa-sha256\n header.s=20251104 header.b=WftHepeb;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-53076-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=google.com header.i=@google.com\n header.b=\"WftHepeb\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.214.202", "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=google.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::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 4g1q1G4Trhz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 07:27:14 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 562813060DB7\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 21:24:57 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 5282C3BFE26;\n\tThu, 23 Apr 2026 21:23:45 +0000 (UTC)", "from mail-pl1-f202.google.com (mail-pl1-f202.google.com\n [209.85.214.202])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A1783C343E\n\tfor <linux-pci@vger.kernel.org>; Thu, 23 Apr 2026 21:23:38 +0000 (UTC)", "by mail-pl1-f202.google.com with SMTP id\n d9443c01a7336-2b24af7ca99so96472715ad.1\n for <linux-pci@vger.kernel.org>; Thu, 23 Apr 2026 14:23:38 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776979422; cv=none;\n b=aDdj8pmzMB2jisu5NejAwHtbgn7bLCKhnvTqyrLfw0CvvlxL0y/H0fLKmfJKaE0LJqWnC59cA3B25M4EI6omA5c8r/4g05EN/4X2wnlwjGasBPU/TsbSZXzPckiME/BXaUuE/tteAAYM2evN/WCOzE13bperyToVFCKqfjKL8DM=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776979422; c=relaxed/simple;\n\tbh=85D2Ac3hBoG1dFzFVA37bHIGBGx9gipkQcKVvZXkhV0=;\n\th=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From:\n\t To:Cc:Content-Type;\n b=ct60PuO+0J5ONqdCGYIjTB4+thrctGLo3A1MB3jdvKSeuhb+C/xL39rhUiVDldIv4lp9RfyDSyGbloStYFInAbAHc5d3zWZA8b74HaHIlM44KvKnMZQk0I7TKg7I+pm5fTtNWb2nyjygrA1pVCBoiENHV+3NFQLWdXBV8khHvjY=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=google.com;\n spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com;\n dkim=pass (2048-bit key) header.d=google.com header.i=@google.com\n header.b=WftHepeb; arc=none smtp.client-ip=209.85.214.202", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=google.com; s=20251104; t=1776979416; x=1777584216;\n darn=vger.kernel.org;\n h=cc:to:from:subject:message-id:references:mime-version:in-reply-to\n :date:from:to:cc:subject:date:message-id:reply-to;\n bh=E/PZfm0ILlaeTWExhdrHJ+nS/9VkLe0d8hpRsDexX1A=;\n b=WftHepebeGrtlnGFv1eTN7gbQTxf65Be0pW2b6TIYxRpTxGkTQ+I0XcccEZXLPTcyz\n DPxyUxv8OsvX2MyW2vlljWc+Q3/fQFKhHAZqUjHvI0LPoTmYcLvLflgzq1ogKS6aaWf9\n g8v4Bm29KZf7+IUzwodjsRaNecxSXBmQMf4qJ7GD9n+cqkTn9j0Hw4AkHMdhwXcKK6Iv\n PmlVxQX3oD+GuMJG26POAs9yNa2X/P8LlaDwNz1B65ZOknndB0rUaG8iUpPWWyGRoJlY\n 47amll8l/Exvo+UHTiy8s7J1NOO0PvD+aY7jz+eJacalsrMkWtE5XeQ5xJwTZp64Hv56\n XqsA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776979416; x=1777584216;\n h=cc:to:from:subject:message-id:references:mime-version:in-reply-to\n :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;\n bh=E/PZfm0ILlaeTWExhdrHJ+nS/9VkLe0d8hpRsDexX1A=;\n b=oKBpY0D2A2NTPYHbbcz8P+0f4xYNd92s2NyVR9r+XdhMIh73/0yba2UbhyvnGO0SDU\n mHYby3qR1Z2tybMXL80av+jcyOWnG3raiPHamGZVC8CiPx8nrB/LvX6SWMMNFHWDCepL\n ia7y1lM98j1wtQhdepp/7Zl/jlpATtuVtflja8EXNFdTGYmqNFKN/42fukxeExvcnja6\n oslWGp684mhE7LoowsCP5GCoKTQewuTGFKKnHrcmk+1B+9Gx6iSuqrhTS6YOXAll55Ri\n Y+JbCxh4irEkhmuEd9tPlzusvOwqYk3KmcmXgSC4mHT0fkqVOhJGWdg/2lR1gqOPWRZg\n Nmcg==", "X-Forwarded-Encrypted": "i=1;\n AFNElJ+EZugTvBtFyigMcxQrAVTmbqS6wSM1OvsDHgnmxjMm4rsriSh2dXQDbQU9ZLtUtoihmC0kwmkoMwY=@vger.kernel.org", "X-Gm-Message-State": "AOJu0YxMrLLxQkFNOko7RPvfYx/lG55cXPJcP30+uEJ6Sf/CGya/l/J9\n\tdbuBOFDh7W3TzQDXc6+fru2tGaoYXJJ8yDPYPnhbRPrkZPjl5ghm8nxf+FU5f93ofaS88FluzJp\n\tu7rL+Vbgut8vhMA==", "X-Received": "from plav22.prod.google.com ([2002:a17:902:f0d6:b0:2b0:5380:49f1])\n (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by\n 2002:a17:903:1a88:b0:2b2:5ec6:dcf6 with SMTP id\n d9443c01a7336-2b5f9e85f20mr294713095ad.8.1776979415642;\n Thu, 23 Apr 2026 14:23:35 -0700 (PDT)", "Date": "Thu, 23 Apr 2026 21:23:13 +0000", "In-Reply-To": "<20260423212316.3431746-1-dmatlack@google.com>", "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", "References": "<20260423212316.3431746-1-dmatlack@google.com>", "X-Mailer": "git-send-email 2.54.0.rc2.544.gc7ae2d5bb8-goog", "Message-ID": "<20260423212316.3431746-10-dmatlack@google.com>", "Subject": "[PATCH v4 09/11] PCI: liveupdate: Inherit ARI Forwarding Enable on\n preserved bridges", "From": "David Matlack <dmatlack@google.com>", "To": "iommu@lists.linux.dev, kexec@lists.infradead.org,\n\tlinux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org,\n\tlinux-pci@vger.kernel.org", "Cc": "Adithya Jayachandran <ajayachandra@nvidia.com>,\n Alexander Graf <graf@amazon.com>,\n\tAlex Williamson <alex@shazbot.org>, Bjorn Helgaas <bhelgaas@google.com>,\n Chris Li <chrisl@kernel.org>,\n\tDavid Matlack <dmatlack@google.com>, David Rientjes <rientjes@google.com>,\n\tJacob Pan <jacob.pan@linux.microsoft.com>, Jason Gunthorpe <jgg@nvidia.com>,\n\tJoerg Roedel <joro@8bytes.org>, Jonathan Corbet <corbet@lwn.net>,\n Josh Hilke <jrhilke@google.com>,\n\tLeon Romanovsky <leonro@nvidia.com>, Lukas Wunner <lukas@wunner.de>,\n Mike Rapoport <rppt@kernel.org>,\n\tParav Pandit <parav@nvidia.com>, Pasha Tatashin <pasha.tatashin@soleen.com>,\n\tPranjal Shrivastava <praan@google.com>, Pratyush Yadav <pratyush@kernel.org>,\n\tRobin Murphy <robin.murphy@arm.com>, Saeed Mahameed <saeedm@nvidia.com>,\n\tSamiullah Khawaja <skhawaja@google.com>,\n Shuah Khan <skhan@linuxfoundation.org>,\n\tWill Deacon <will@kernel.org>, William Tu <witu@nvidia.com>,\n Yi Liu <yi.l.liu@intel.com>", "Content-Type": "text/plain; charset=\"UTF-8\"" }, "content": "Inherit the ARI Forwarding Enable on preserved bridges and update\npci_dev->ari_enabled accordingly during a Live Update. This ensures that\nthe preserved devices on the bridge's secondary bus can be identified\nwith the same expanded 8-bit function number after a Live Update.\n\nSigned-off-by: David Matlack <dmatlack@google.com>\n---\n drivers/pci/liveupdate.c | 4 ++++\n drivers/pci/pci.c | 12 +++++++++++-\n 2 files changed, 15 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/pci/liveupdate.c b/drivers/pci/liveupdate.c\nindex 54a90ff02bdd..25c86cd4c173 100644\n--- a/drivers/pci/liveupdate.c\n+++ b/drivers/pci/liveupdate.c\n@@ -128,6 +128,10 @@\n * * The PCI core inherits all ACS flags enabled on incoming preserved devices\n * rather than assigning new ones. This ensures that TLPs are routed the same\n * way after Live Update and ensures that IOMMU groups do not change.\n+ *\n+ * * The PCI core inherits ARI Forwarding Enable on all bridges with downstream\n+ * preserved devices to ensure that all preserved devices on the bridge's\n+ * secondary bus are addressable after the Live Update.\n */\n \n #define pr_fmt(fmt) \"PCI: liveupdate: \" fmt\ndiff --git a/drivers/pci/pci.c b/drivers/pci/pci.c\nindex e615b7c3e430..b45539c55c7d 100644\n--- a/drivers/pci/pci.c\n+++ b/drivers/pci/pci.c\n@@ -3498,8 +3498,9 @@ void pci_configure_ari(struct pci_dev *dev)\n {\n \tu32 cap;\n \tstruct pci_dev *bridge;\n+\tu16 val = 0;\n \n-\tif (pcie_ari_disabled || !pci_is_pcie(dev) || dev->devfn)\n+\tif (!pci_is_pcie(dev) || dev->devfn)\n \t\treturn;\n \n \tbridge = dev->bus->self;\n@@ -3510,6 +3511,15 @@ void pci_configure_ari(struct pci_dev *dev)\n \tif (!(cap & PCI_EXP_DEVCAP2_ARI))\n \t\treturn;\n \n+\tif (pci_liveupdate_incoming(bridge)) {\n+\t\tpcie_capability_read_word(bridge, PCI_EXP_DEVCTL2, &val);\n+\t\tbridge->ari_enabled = !!(val & PCI_EXP_DEVCTL2_ARI);\n+\t\treturn;\n+\t}\n+\n+\tif (pcie_ari_disabled)\n+\t\treturn;\n+\n \tif (pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ARI)) {\n \t\tpcie_capability_set_word(bridge, PCI_EXP_DEVCTL2,\n \t\t\t\t\t PCI_EXP_DEVCTL2_ARI);\n", "prefixes": [ "v4", "09/11" ] }