Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2222363/?format=api
{ "id": 2222363, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2222363/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260411080148.471335-22-kwilczynski@kernel.org/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/1.2/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20260411080148.471335-22-kwilczynski@kernel.org>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260411080148.471335-22-kwilczynski@kernel.org/", "date": "2026-04-11T08:01:45", "name": "[v4,21/24] alpha/PCI: Compute legacy size in pci_mmap_legacy_page_range()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "9170f6b1d8df1df2635af4ccb7b913e1919c4d6b", "submitter": { "id": 86709, "url": "http://patchwork.ozlabs.org/api/1.2/people/86709/?format=api", "name": "Krzysztof Wilczyński", "email": "kwilczynski@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260411080148.471335-22-kwilczynski@kernel.org/mbox/", "series": [ { "id": 499538, "url": "http://patchwork.ozlabs.org/api/1.2/series/499538/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=499538", "date": "2026-04-11T08:01:24", "name": "PCI: Convert all dynamic sysfs attributes to static", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/499538/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2222363/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2222363/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-19641-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linuxppc-dev@lists.ozlabs.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=f8NEYhhq;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19641-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2600:3c04:e001:324:0:1991:8:25\"", "lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org", "lists.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=f8NEYhhq;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org\n (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org;\n envelope-from=kwilczynski@kernel.org; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\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 4ft5ml32Zjz1yCx\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 18:04:39 +1000 (AEST)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4ft5l30wnDz2yr9;\n\tSat, 11 Apr 2026 18:03:11 +1000 (AEST)", "from tor.source.kernel.org (tor.source.kernel.org\n [IPv6:2600:3c04:e001:324:0:1991:8:25])\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 lists.ozlabs.org (Postfix) with ESMTPS id 4ft5l235pZz2yk6\n\tfor <linuxppc-dev@lists.ozlabs.org>; Sat, 11 Apr 2026 18:03:10 +1000 (AEST)", "from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n\tby tor.source.kernel.org (Postfix) with ESMTP id 3090160142;\n\tSat, 11 Apr 2026 08:03:08 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id C4C61C19425;\n\tSat, 11 Apr 2026 08:03:04 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775894591;\n\tcv=none;\n b=Ogh3S4l/YtpJrH8m3MmBoCh/WQTNJUVuR3iZnD3W6w2CL7JrRmgPe2UI36dfYWHYnkNQLcpQ2xcgPSFY31D7XMK0lbcXhPu1Biv67Q230Ttk+wmRiOIFabwyjiGkwv/IotTZq/nOwqDnd7dTavOOzwgs68g0Rde2beUetouYe6e6aaL7FjXX8+Mbap8Iz0vT8TttR5QJSNo7rsQOI2c6w3i0s7JFZRGwhmJqMuIOLaHpxZiKV/AVnVqlJJa3qE8dhwmwh6XuHrVXfEDlITOw2lh5BRe2i9uFseyg8s+Lpr6Dlrcfag3t6kogpLw7o7uNzAlyo9iFSxqiYVp8y5KIEQ==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775894591; c=relaxed/relaxed;\n\tbh=roku7nry9hr3kb8D2tlI5HZwGM5sF/zi2mzoneIm+D4=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=FGvx6hSLwUb3Zr6k6zbNQLqhVSyAxdMt6gD9uuxSid3vU2mNe9wzTWNWfMOiAtbHRuS/GIj4+3ULNV29wtB44udmiqw3I74z4FTN/nakCVwDj5x2ubJqODWVg2xJHRn6XaJSOpwwTaw95NWb6vxoApaFY9S3Y38/DWQLmXlaFHYOe8mmvwKy7fjuYyWyS/CpCZziXhsjeNVChQ1N53FVXPV+ZBPxDyX+fDbFUY0cPsy4VcsICCkpaI/LNWVutV0m+lR32vTwaR3jyp+QwwVh+i8qnj304g+M2bKhLXJWPVIKJVerHDxG/ngc5Tq8Hwr1CQaWHMWQhust8Rrh4R5ErQ==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=f8NEYhhq; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c04:e001:324:0:1991:8:25;\n helo=tor.source.kernel.org; envelope-from=kwilczynski@kernel.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1775894587;\n\tbh=zSxumLDhzl/GXuL/vxCq5TbNSO065j7mWpkMfmgLc8Y=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=f8NEYhhq6D8W6aFmYfs/BzPuBeHU9YkT8aICazqPgenLqFEffyJIXEsTcGBwRGffm\n\t ZOCGP1llYQkF7hIklBiiS9wz+9Wl4stAdeqDdQ1EPoRT2S8Z2quciSpc3VfYsu37Wa\n\t gSuR1wTJ1DmzMUPVTfR7MzVvhoxxHg+JG7zQxHoJBFfWhhDu4O44SzkUqHKyTFo00a\n\t AIaVxOLERCJcltbMq67MdL9AYOE8zLzR7EbujGs/KsYD4OmqCd/KNFq9D8xBerMF6H\n\t iRUqVmdN1Ic3XqqXtWQ8eymzyF0zG9saApjbGnAvhzqBJFmDy8U6Dh3Amkykvkb6Bs\n\t qVDfTdOLUlsSg==", "From": "=?utf-8?q?Krzysztof_Wilczy=C5=84ski?= <kwilczynski@kernel.org>", "To": "Bjorn Helgaas <bhelgaas@google.com>", "Cc": "Bjorn Helgaas <helgaas@kernel.org>,\n Manivannan Sadhasivam <mani@kernel.org>,\n Lorenzo Pieralisi <lpieralisi@kernel.org>,\n Magnus Lindholm <linmag7@gmail.com>, Matt Turner <mattst88@gmail.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Christophe Leroy <chleroy@kernel.org>,\n Madhavan Srinivasan <maddy@linux.ibm.com>,\n Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>,\n Dexuan Cui <decui@microsoft.com>,\n =?utf-8?q?Krzysztof_Ha=C5=82asa?= <khalasa@piap.pl>,\n Lukas Wunner <lukas@wunner.de>, \"Oliver O'Halloran\" <oohall@gmail.com>,\n Saurabh Singh Sengar <ssengar@microsoft.com>,\n Shuan He <heshuan@bytedance.com>, Srivatsa Bhat <srivatsabhat@microsoft.com>,\n\t=?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>,\n linux-pci@vger.kernel.org, linux-alpha@vger.kernel.org,\n linuxppc-dev@lists.ozlabs.org", "Subject": "[PATCH v4 21/24] alpha/PCI: Compute legacy size in\n pci_mmap_legacy_page_range()", "Date": "Sat, 11 Apr 2026 08:01:45 +0000", "Message-ID": "<20260411080148.471335-22-kwilczynski@kernel.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260411080148.471335-1-kwilczynski@kernel.org>", "References": "<20260411080148.471335-1-kwilczynski@kernel.org>", "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org", "List-Id": "<linuxppc-dev.lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>", "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n <https://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "Currently, pci_mmap_legacy_page_range() reads the legacy resource\nsize from bus->legacy_mem->size or bus->legacy_io->size. This\ncouples the mmap bounds check to the struct pci_bus fields that\nwill be removed when legacy attributes are converted to static\ndefinitions.\n\nCompute the size directly using PCI_LEGACY_MEM_SIZE (0x100000) and\nPCI_LEGACY_IO_SIZE (0xffff) macros, and shift by 5 bits for sparse\nsystems.\n\nSigned-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>\n---\n arch/alpha/kernel/pci-sysfs.c | 7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)", "diff": "diff --git a/arch/alpha/kernel/pci-sysfs.c b/arch/alpha/kernel/pci-sysfs.c\nindex 2e9693e5abe1..a9dea147528d 100644\n--- a/arch/alpha/kernel/pci-sysfs.c\n+++ b/arch/alpha/kernel/pci-sysfs.c\n@@ -180,8 +180,11 @@ int pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma,\n \tint sparse = has_sparse(hose, mmap_type);\n \tunsigned long res_size;\n \n-\tres_size = (mmap_type == pci_mmap_mem) ? bus->legacy_mem->size :\n-\t\t\t\t\t\t bus->legacy_io->size;\n+\tres_size = (mmap_type == pci_mmap_mem) ? PCI_LEGACY_MEM_SIZE : \\\n+\t\t\t\t\t\t PCI_LEGACY_IO_SIZE;\n+\tif (sparse)\n+\t\tres_size <<= 5;\n+\n \tif (!__legacy_mmap_fits(hose, vma, res_size, sparse))\n \t\treturn -EINVAL;\n \n", "prefixes": [ "v4", "21/24" ] }