Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2220978/?format=api
{ "id": 2220978, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220978/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/patch/8982e3412563cf91e106d59228dfb6115024c75e.1775659257.git.robin.murphy@arm.com/", "project": { "id": 21, "url": "http://patchwork.ozlabs.org/api/1.1/projects/21/?format=api", "name": "Linux Tegra Development", "link_name": "linux-tegra", "list_id": "linux-tegra.vger.kernel.org", "list_email": "linux-tegra@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<8982e3412563cf91e106d59228dfb6115024c75e.1775659257.git.robin.murphy@arm.com>", "date": "2026-04-08T14:40:57", "name": "iommu: Ensure .iotlb_sync is called correctly", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "50f1a429d10d4e556d71e0421d967ec2281086b0", "submitter": { "id": 65641, "url": "http://patchwork.ozlabs.org/api/1.1/people/65641/?format=api", "name": "Robin Murphy", "email": "robin.murphy@arm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-tegra/patch/8982e3412563cf91e106d59228dfb6115024c75e.1775659257.git.robin.murphy@arm.com/mbox/", "series": [ { "id": 499151, "url": "http://patchwork.ozlabs.org/api/1.1/series/499151/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/list/?series=499151", "date": "2026-04-08T14:40:57", "name": "iommu: Ensure .iotlb_sync is called correctly", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499151/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220978/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2220978/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-tegra+bounces-13612-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-tegra@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=arm.com header.i=@arm.com header.a=rsa-sha256\n header.s=foss header.b=IC4CxZIR;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-tegra+bounces-13612-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com\n header.b=\"IC4CxZIR\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=217.140.110.172", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=arm.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=arm.com" ], "Received": [ "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::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 4frQjp4PS8z1xv0\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 00:41:18 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 496003004683\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 8 Apr 2026 14:41:15 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 361BE3876CA;\n\tWed, 8 Apr 2026 14:41:14 +0000 (UTC)", "from foss.arm.com (foss.arm.com [217.140.110.172])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1E5303D34A8\n\tfor <linux-tegra@vger.kernel.org>; Wed, 8 Apr 2026 14:41:11 +0000 (UTC)", "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 82768288E;\n\tWed, 8 Apr 2026 07:41:05 -0700 (PDT)", "from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com\n [10.1.196.85])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DD8B03F632;\n\tWed, 8 Apr 2026 07:41:09 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775659274; cv=none;\n b=NEh6EiaeK4RTG4Kv4CW1KRl2I6tGogbBMPzX5tKPu+vwqBQoy8uSaP6ldMvgeh0R2ZsKUhtyI+IVm14vrOzErhMVE0Yqwq1LZMAxJscyVMCZakgd06sB6TKq6pNWKW9uz/y8k5KtaiX34g6MQeMwemmB/Wf03yl6CLYzqA4LbLQ=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775659274; c=relaxed/simple;\n\tbh=y05l+7axM5lCe8iitjpmvxxTZNxo3J5J7EUoq+IaEg8=;\n\th=From:To:Cc:Subject:Date:Message-Id:MIME-Version;\n b=SPCLEAR0CSepBFW9MD2cyOyv3ZWmAg+o4P14u6YMDc+Q5WSOGXykzWT3fphrnsePxnXl1b/5p3vtZP6HrKdUq1CKiBZuBs9r99go8ikIG1qRJ/ZE/jCfcf6OE8gbDHs+guK7LiWS3uL2RovD/H3iDFV5lpxCZ+dlYeqm70ZAU2I=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=arm.com;\n spf=pass smtp.mailfrom=arm.com;\n dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com\n header.b=IC4CxZIR; arc=none smtp.client-ip=217.140.110.172", "DKIM-Signature": "v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss;\n\tt=1775659271; bh=y05l+7axM5lCe8iitjpmvxxTZNxo3J5J7EUoq+IaEg8=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=IC4CxZIRyZWtlUKqlotiuifBR1pcqv6qRTnrwVIyVNt3PqcPG0zZnCcji9G1Ermvt\n\t OmfN+3/TvkBsOb2d302p7sZxTMAc43FuEuC8aMAR4PqibA0yetDjSfxY61hAJmuX+z\n\t UtqyQbArhyVxC9ec/h/04T4lGkBbU+6F5FM79oY4=", "From": "Robin Murphy <robin.murphy@arm.com>", "To": "joro@8bytes.org,\n\twill@kernel.org", "Cc": "jgg@nvidia.com,\n\tlinux@armlinux.org.uk,\n\tiommu@lists.linux.dev,\n\tlinux-tegra@vger.kernel.org,\n\tJon Hunter <jonathanh@nvidia.com>", "Subject": "[PATCH] iommu: Ensure .iotlb_sync is called correctly", "Date": "Wed, 8 Apr 2026 15:40:57 +0100", "Message-Id": "\n <8982e3412563cf91e106d59228dfb6115024c75e.1775659257.git.robin.murphy@arm.com>", "X-Mailer": "git-send-email 2.39.2.101.g768bb238c484.dirty", "Precedence": "bulk", "X-Mailing-List": "linux-tegra@vger.kernel.org", "List-Id": "<linux-tegra.vger.kernel.org>", "List-Subscribe": "<mailto:linux-tegra+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-tegra+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "Many drivers have no reason to use the iotlb_gather mechanism, but do\nstill depend on .iotlb_sync being called to properly complete an unmap.\nSince the core code is now relying on the gather to detect when there\nis legitimately something to sync, it should also take care of encoding\na successful unmap when the driver does not touch the gather itself.\n\nFixes: 90c5def10bea (\"iommu: Do not call drivers for empty gathers\")\nReported-by: Jon Hunter <jonathanh@nvidia.com>\nCloses: https://lore.kernel.org/r/8800a38b-8515-4bbe-af15-0dae81274bf7@nvidia.com\nSigned-off-by: Robin Murphy <robin.murphy@arm.com>\n---\n drivers/iommu/iommu.c | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c\nindex 50718ab810a4..ee83850c7060 100644\n--- a/drivers/iommu/iommu.c\n+++ b/drivers/iommu/iommu.c\n@@ -2717,6 +2717,12 @@ static size_t __iommu_unmap(struct iommu_domain *domain,\n \n \t\tpr_debug(\"unmapped: iova 0x%lx size 0x%zx\\n\",\n \t\t\t iova, unmapped_page);\n+\t\t/*\n+\t\t * If the driver itself isn't using the gather, make sure\n+\t\t * it looks non-empty so iotlb_sync will still be called.\n+\t\t */\n+\t\tif (iotlb_gather->start >= iotlb_gather->end)\n+\t\t\tiommu_iotlb_gather_add_range(iotlb_gather, iova, size);\n \n \t\tiova += unmapped_page;\n \t\tunmapped += unmapped_page;\n", "prefixes": [] }