Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2221499/?format=api
{ "id": 2221499, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221499/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260409150123.3538444-1-jmoroni@google.com/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260409150123.3538444-1-jmoroni@google.com>", "list_archive_url": null, "date": "2026-04-09T15:01:22", "name": "[1/2] PCI/P2PDMA: Allow wildcard device IDs in host bridge list", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "07a2e1ad71783744a4442e3c62692114404fa802", "submitter": { "id": 93101, "url": "http://patchwork.ozlabs.org/api/1.2/people/93101/?format=api", "name": "Jacob Moroni", "email": "jmoroni@google.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260409150123.3538444-1-jmoroni@google.com/mbox/", "series": [ { "id": 499311, "url": "http://patchwork.ozlabs.org/api/1.2/series/499311/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=499311", "date": "2026-04-09T15:01:23", "name": "[1/2] PCI/P2PDMA: Allow wildcard device IDs in host bridge list", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499311/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221499/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221499/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-52217-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=crX6Eh/L;\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-52217-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=\"crX6Eh/L\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.160.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--jmoroni.bounces.google.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 4fs3BC4G4pz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 01:04:35 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id DCD46304FFA1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 9 Apr 2026 15:01:37 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 0654135C1BC;\n\tThu, 9 Apr 2026 15:01:37 +0000 (UTC)", "from mail-qt1-f202.google.com (mail-qt1-f202.google.com\n [209.85.160.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 B82E91B7910\n\tfor <linux-pci@vger.kernel.org>; Thu, 9 Apr 2026 15:01:35 +0000 (UTC)", "by mail-qt1-f202.google.com with SMTP id\n d75a77b69052e-50d8e8c47a3so27779741cf.0\n for <linux-pci@vger.kernel.org>; Thu, 09 Apr 2026 08:01:35 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775746896; cv=none;\n b=P14DYowAQ0WsinpOR7twwSD6FLYuzYI2IoS11i06ZL5eKpyhsPaTRhVYmsKz3VFqUhlWHUN5t+KeALTFiJwTzwQfmEyPx375jfyqL+WbRnEqDja772hs49GxgCJ4U+gcJO2Btgvfe692+Awij9VXpbcq0ro/JntVsILwdfqdELg=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775746896; c=relaxed/simple;\n\tbh=0dUpKuRld0LNuKQNAGx/U+q/AkjRKZGFOUSuzM0yjyg=;\n\th=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type;\n b=VLVtwPf0YbNK9oPtTorvoUhbB20lAZyuku6dW1DHgEMNYEE+TQQxmPg3D2MMbWSqU1cm0MXVit/MCTRVsqbMKQKxi8qrfDO07YXCZemV9wjWrDGaIVw6+bVoU6+9ewwx5HWwyLepmSGPfIs/k7W9WPbS4Xt3Z01RhrfvlKHGlfo=", "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--jmoroni.bounces.google.com;\n dkim=pass (2048-bit key) header.d=google.com header.i=@google.com\n header.b=crX6Eh/L; arc=none smtp.client-ip=209.85.160.202", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=google.com; s=20251104; t=1775746895; x=1776351695;\n darn=vger.kernel.org;\n h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject\n :date:message-id:reply-to;\n bh=nO53q0xyW1duF5akyybiEZjbURbECt/Kcb+1zYaiQFk=;\n b=crX6Eh/L5Nnvo1mYJNsTHYJ/wq6eoCUO1jL3SyauDB9wprFXBF2Qwi2KzJlh5GURSK\n O99OvZK01e4xfk5LewWqm/XSSxr6uwG25l6Vuqw5tVeWGki0c7q++5fy7wUAbPgLh9GH\n vRFrIxk/RuMhqB5D1MIMAmz9wfq0xEFR3VYdMBEcQuBrBsTYQfGA9Wos35PfRmzf45TQ\n PsYilMclwc2oMjcXaIfPqM6p7okcG3IqIIuxXVAy/VyFW97PUvuJJe/Ef+sRM9h82Dv7\n xU7edbsJ4eDItzb9qEURgLuicw4N5mnbpAOSHtfWhR8xFWOQ42rwMZu/2GiAN5mHAawZ\n mCBA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775746895; x=1776351695;\n h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state\n :from:to:cc:subject:date:message-id:reply-to;\n bh=nO53q0xyW1duF5akyybiEZjbURbECt/Kcb+1zYaiQFk=;\n b=YRijJVZhQAi+/DsPkQ8ZqPUbr2FnqPWMQuvX/YClfwpoEcr1kPr/AFzYToMYJR+C08\n MplF9epjJ2RI+61Hv7HydQa1IFlVHQF6ahFpG3HrORe2sTI3CG6E0QtyjzNXQ7vHLN1p\n b15wBGfcZtl8SqoTHUNGu/ELXfuv1NtsUSQGI/v+DXdSZdLc2ktn0GkdZo53jXwt84FR\n FkHby10J8uybz3uhEcJmgdqJSaGcYQM4GnVQUoMrJ2MAaMl8icHpzdgO7kZKfqIE9RqN\n phoj+xQTVGfZvGf318naBNWqBSbSCCjarX9QsPpJ6DWdxyMZe91pMzEWH9I/jTdu87D1\n jXlQ==", "X-Gm-Message-State": "AOJu0YwOhc2Pg16S+cBP9D49/QhYBXHaAIphheW7WtxwHoKkQo5bh1Mn\n\tURbCAcu0sh2e4J0GobX2FnX3DBX5c65JBicWbRNsp5VSERbWTbbgcEKdCJxDF76PHi8KolgXAQS\n\tiCJBsdCwdRg==", "X-Received": "from qtxl14.prod.google.com ([2002:a05:622a:50e:b0:50b:85bc:e768])\n (user=jmoroni job=prod-delivery.src-stubby-dispatcher) by\n 2002:ac8:6906:0:b0:50b:3d9f:384e\n with SMTP id d75a77b69052e-50d62cbf981mr369957251cf.44.1775746893057; Thu, 09\n Apr 2026 08:01:33 -0700 (PDT)", "Date": "Thu, 9 Apr 2026 15:01:22 +0000", "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-Mailer": "git-send-email 2.53.0.1213.gd9a14994de-goog", "Message-ID": "<20260409150123.3538444-1-jmoroni@google.com>", "Subject": "[PATCH 1/2] PCI/P2PDMA: Allow wildcard device IDs in host bridge list", "From": "Jacob Moroni <jmoroni@google.com>", "To": "Bjorn Helgaas <bhelgaas@google.com>,\n Logan Gunthorpe <logang@deltatee.com>,\n\tDavid Hu <xuehaohu@google.com>", "Cc": "linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tJacob Moroni <jmoroni@google.com>", "Content-Type": "text/plain; charset=\"UTF-8\"" }, "content": "Currently, the pci_p2pdma_whitelist array requires an exact match\nfor both vendor and device ID. Some hardware vendors support cross\nbridge p2p across their entire silicon lineup, so add support for\nwildcard device IDs to avoid the need to continuously update this\narray.\n\nSigned-off-by: Jacob Moroni <jmoroni@google.com>\n---\n drivers/pci/p2pdma.c | 8 ++++++--\n 1 file changed, 6 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c\nindex e0f546166..25e9358d0 100644\n--- a/drivers/pci/p2pdma.c\n+++ b/drivers/pci/p2pdma.c\n@@ -530,7 +530,7 @@ static bool cpu_supports_p2pdma(void)\n \n static const struct pci_p2pdma_whitelist_entry {\n \tunsigned short vendor;\n-\tunsigned short device;\n+\tint device;\n \tenum {\n \t\tREQ_SAME_HOST_BRIDGE\t= 1 << 0,\n \t} flags;\n@@ -601,8 +601,12 @@ static bool __host_bridge_whitelist(struct pci_host_bridge *host,\n \tdevice = root->device;\n \n \tfor (entry = pci_p2pdma_whitelist; entry->vendor; entry++) {\n-\t\tif (vendor != entry->vendor || device != entry->device)\n+\t\tif (vendor != entry->vendor)\n \t\t\tcontinue;\n+\n+\t\tif (entry->device != PCI_ANY_ID && device != entry->device)\n+\t\t\tcontinue;\n+\n \t\tif (entry->flags & REQ_SAME_HOST_BRIDGE && !same_host_bridge)\n \t\t\treturn false;\n \n", "prefixes": [ "1/2" ] }