Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2197402/?format=api
{ "id": 2197402, "url": "http://patchwork.ozlabs.org/api/patches/2197402/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260217212707.2450423-14-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-14-cassel@kernel.org>", "list_archive_url": null, "date": "2026-02-17T21:27:09", "name": "[3/9] PCI: dw-rockchip: Describe RK3588 BAR4 DMA ctrl window", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "f1c67d56482771bd848d75e0ef7cdc797787fc52", "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-14-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/2197402/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2197402/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-47510-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=r4vEbJfh;\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-47510-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=\"r4vEbJfh\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fFt6f4sPyz1xpl\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 08:28:26 +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 EB0F8303AB6B\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 21:27:52 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 847032F5308;\n\tTue, 17 Feb 2026 21:27:52 +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 627522E5B19\n\tfor <linux-pci@vger.kernel.org>; Tue, 17 Feb 2026 21:27:52 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 5C804C4CEF7;\n\tTue, 17 Feb 2026 21:27:49 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771363672; cv=none;\n b=VXx6j+DuQwgzVD+ILhgQBfEpW3l+1rDLCAoe5z2bJlGz0eAg9sZfXk6gkqnHUi31sbeW39t1NK8/J8etoNiQ0S6epGMT0lStSDT/ylrU3Nvm4ZX8fg2sJtrl02/aNxW3IDfpvyrvscdhHb+kd/5/5TbIEU7nKZZuVeoYpuaNsuM=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771363672; c=relaxed/simple;\n\tbh=mw3yNaEjiLtrT+L0HuG+D9JSTgzEPCjD3Q6jq3Ta/zA=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=lwECaTr3Gyc87ysbTHDfpFC8Vu6muFk7j+JL+180UNjZ++1Fgud4zyCUscKgp6DRVK4wP87sAbFh2K3dUXwnzR6h4vIhQEF/AlaMjxollih319JQqjgJsthq1LrqOPsn6+PCZ4KiNE3CyiA1IEWk2bbWYNRF135VJWVxXxFtHBE=", "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=r4vEbJfh; 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=1771363672;\n\tbh=mw3yNaEjiLtrT+L0HuG+D9JSTgzEPCjD3Q6jq3Ta/zA=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=r4vEbJfhBZh5Mu3Ukf4bStCjxqIVZpMwCP7i0eZkWAzdWbqIsn6wYCvusyCv42TIV\n\t h9iiPyBaByjSiQd43Ga0Q2o5UFzA6FLrEJe8yw2Z7FDP2G3kjT1o+l7R1E6LMNZIT4\n\t /zQAO8RmY4cTpxTpgNbnxN0kgg/pZwYCQXhDrq4X+1PJfSHqcJJ8j2xzuqUPsCQnwh\n\t Uaee65Ze6NVs0BiV4lD0duu+33y2DQfQBVPJ7BpHwOv4kojktIj9CGC3z9xf/cBOJZ\n\t TM9dHNCVg8cLoToJFw84Bu+epqrOETGYok5ISrP665nWUg9+d8T0CvHRi0GzYMMqjO\n\t pGP6C1XMfuufg==", "From": "Niklas Cassel <cassel@kernel.org>", "To": "Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy?=\n\t=?utf-8?q?=C5=84ski?= <kwilczynski@kernel.org>,\n Manivannan Sadhasivam <mani@kernel.org>, Rob Herring <robh@kernel.org>,\n Bjorn Helgaas <bhelgaas@google.com>, Heiko Stuebner <heiko@sntech.de>", "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-arm-kernel@lists.infradead.org,\n\tlinux-rockchip@lists.infradead.org", "Subject": "[PATCH 3/9] PCI: dw-rockchip: Describe RK3588 BAR4 DMA ctrl window", "Date": "Tue, 17 Feb 2026 22:27:09 +0100", "Message-ID": "<20260217212707.2450423-14-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=2007; i=cassel@kernel.org;\n h=from:subject; bh=gHLF5xu0z81u0rODJeorxHOpp/bwOtW5+Ab5x6tbCsE=;\n b=owGbwMvMwCV2MsVw8cxjvkWMp9WSGDKn3NWV3P3moBvTzTueX4qLl5jpnjBblfdB2tfkTrMZ8\n 8+N0zg1O0pZGMS4GGTFFFl8f7jsL+52n3Jc8Y4NzBxWJpAhDFycAjAROXWG/3WRvxnVWf+/aPj9\n sZAjVPkIa6hfbJSHzvE59r7JCdNSPjMyXIv7fshYQLayZpv97OknDmz9Y/+uuWb58/p1QXkV16b\n oMAEA", "X-Developer-Key": "i=cassel@kernel.org; a=openpgp;\n fpr=5ADE635C0E631CBBD5BE065A352FE6582ED9B5DA", "Content-Transfer-Encoding": "8bit" }, "content": "From: Koichiro Den <den@valinux.co.jp>\n\nOn RK3588 PCIe3_4L in EP mode, the integrated DMA controller registers\nare permanently mapped to BAR4 and must not be repurposed by EPF\ndrivers.\n\nWhen the remote peer needs to access these registers, it must use the\nfixed BAR4 window instead of creating another inbound mapping in a\ndifferent BAR. Mixing the fixed window with an additional mapping can\nlead to incorrect behavior.\n\nAdvertise the DMA controller MMIO window as a reserved BAR subregion so\nEPF drivers can reuse it safely.\n\nSigned-off-by: Koichiro Den <den@valinux.co.jp>\nSigned-off-by: Niklas Cassel <cassel@kernel.org>\n---\n drivers/pci/controller/dwc/pcie-dw-rockchip.c | 15 ++++++++++++++-\n 1 file changed, 14 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/pci/controller/dwc/pcie-dw-rockchip.c b/drivers/pci/controller/dwc/pcie-dw-rockchip.c\nindex 5b17da63151d..ecc28093c589 100644\n--- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c\n+++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c\n@@ -403,6 +403,15 @@ static const struct pci_epc_features rockchip_pcie_epc_features_rk3568 = {\n \t.bar[BAR_5] = { .type = BAR_RESIZABLE, },\n };\n \n+static const struct pci_epc_bar_rsvd_region rk3588_bar4_rsvd[] = {\n+\t{\n+\t\t/* DMA_CAP (BAR4: DMA Port Logic Structure) */\n+\t\t.type = PCI_EPC_BAR_RSVD_DMA_CTRL_MMIO,\n+\t\t.offset = 0x0,\n+\t\t.size = 0x2000,\n+\t},\n+};\n+\n /*\n * BAR4 on rk3588 exposes the ATU Port Logic Structure to the host regardless of\n * iATU settings for BAR4. This means that BAR4 cannot be used by an EPF driver,\n@@ -420,7 +429,11 @@ static const struct pci_epc_features rockchip_pcie_epc_features_rk3588 = {\n \t.bar[BAR_1] = { .type = BAR_RESIZABLE, },\n \t.bar[BAR_2] = { .type = BAR_RESIZABLE, },\n \t.bar[BAR_3] = { .type = BAR_RESIZABLE, },\n-\t.bar[BAR_4] = { .type = BAR_RESERVED, },\n+\t.bar[BAR_4] = {\n+\t\t.type = BAR_RESERVED,\n+\t\t.nr_rsvd_regions = ARRAY_SIZE(rk3588_bar4_rsvd),\n+\t\t.rsvd_regions = rk3588_bar4_rsvd,\n+\t},\n \t.bar[BAR_5] = { .type = BAR_RESIZABLE, },\n };\n \n", "prefixes": [ "3/9" ] }