* [PATCH] iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY
@ 2026-04-08 18:44 Alex Williamson
2026-04-08 23:49 ` Jason Gunthorpe
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Alex Williamson @ 2026-04-08 18:44 UTC (permalink / raw)
To: jgg, joro
Cc: Alex Williamson, baolu.lu, kevin.tian, robin.murphy, will, iommu
In removing IOMMU_CAP_DEFERRED_FLUSH, the below referenced commit
was over-eager in removing the return, resulting in the test for
IOMMU_CAP_CACHE_COHERENCY falling through to an irrelevant option.
Restore dropped return.
Fixes: 1c18a1212c77 ("iommu/dma: Always allow DMA-FQ when iommupt provides the iommu_domain")
Signed-off-by: Alex Williamson <alex.williamson@nvidia.com>
---
drivers/iommu/intel/iommu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
index 63cee27d6a5c..c3d18cd77d2f 100644
--- a/drivers/iommu/intel/iommu.c
+++ b/drivers/iommu/intel/iommu.c
@@ -3212,6 +3212,7 @@ static bool intel_iommu_capable(struct device *dev, enum iommu_cap cap)
switch (cap) {
case IOMMU_CAP_CACHE_COHERENCY:
+ return true;
case IOMMU_CAP_PRE_BOOT_PROTECTION:
return dmar_platform_optin();
case IOMMU_CAP_ENFORCE_CACHE_COHERENCY:
--
2.51.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY
2026-04-08 18:44 [PATCH] iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY Alex Williamson
@ 2026-04-08 23:49 ` Jason Gunthorpe
2026-04-09 1:46 ` Tian, Kevin
2026-04-09 3:19 ` Baolu Lu
2026-04-09 13:01 ` Will Deacon
2 siblings, 1 reply; 5+ messages in thread
From: Jason Gunthorpe @ 2026-04-08 23:49 UTC (permalink / raw)
To: Alex Williamson, joro; +Cc: baolu.lu, kevin.tian, robin.murphy, will, iommu
On Wed, Apr 08, 2026 at 12:44:42PM -0600, Alex Williamson wrote:
> In removing IOMMU_CAP_DEFERRED_FLUSH, the below referenced commit
> was over-eager in removing the return, resulting in the test for
> IOMMU_CAP_CACHE_COHERENCY falling through to an irrelevant option.
>
> Restore dropped return.
>
> Fixes: 1c18a1212c77 ("iommu/dma: Always allow DMA-FQ when iommupt provides the iommu_domain")
> Signed-off-by: Alex Williamson <alex.williamson@nvidia.com>
I didn't think this was merged - I didn't get an email about it? Joerg
I've noticed alot of silent merges from you lately is that deliberate
or is something wrong?
But yes this is right:
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Kevin and I both missed it!!
Thanks,
Jason
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY
2026-04-08 23:49 ` Jason Gunthorpe
@ 2026-04-09 1:46 ` Tian, Kevin
0 siblings, 0 replies; 5+ messages in thread
From: Tian, Kevin @ 2026-04-09 1:46 UTC (permalink / raw)
To: Jason Gunthorpe, Alex Williamson, joro@8bytes.org
Cc: baolu.lu@linux.intel.com, robin.murphy@arm.com, will@kernel.org,
iommu@lists.linux.dev
> From: Jason Gunthorpe <jgg@nvidia.com>
> Sent: Thursday, April 9, 2026 7:50 AM
>
> On Wed, Apr 08, 2026 at 12:44:42PM -0600, Alex Williamson wrote:
> > In removing IOMMU_CAP_DEFERRED_FLUSH, the below referenced commit
> > was over-eager in removing the return, resulting in the test for
> > IOMMU_CAP_CACHE_COHERENCY falling through to an irrelevant option.
> >
> > Restore dropped return.
> >
> > Fixes: 1c18a1212c77 ("iommu/dma: Always allow DMA-FQ when iommupt
> provides the iommu_domain")
> > Signed-off-by: Alex Williamson <alex.williamson@nvidia.com>
>
> I didn't think this was merged - I didn't get an email about it? Joerg
> I've noticed alot of silent merges from you lately is that deliberate
> or is something wrong?
>
> But yes this is right:
>
> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
>
> Kevin and I both missed it!!
>
yes it's missed.
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY
2026-04-08 18:44 [PATCH] iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY Alex Williamson
2026-04-08 23:49 ` Jason Gunthorpe
@ 2026-04-09 3:19 ` Baolu Lu
2026-04-09 13:01 ` Will Deacon
2 siblings, 0 replies; 5+ messages in thread
From: Baolu Lu @ 2026-04-09 3:19 UTC (permalink / raw)
To: Alex Williamson, jgg, joro; +Cc: kevin.tian, robin.murphy, will, iommu
On 4/9/26 02:44, Alex Williamson wrote:
> In removing IOMMU_CAP_DEFERRED_FLUSH, the below referenced commit
> was over-eager in removing the return, resulting in the test for
> IOMMU_CAP_CACHE_COHERENCY falling through to an irrelevant option.
>
> Restore dropped return.
>
> Fixes: 1c18a1212c77 ("iommu/dma: Always allow DMA-FQ when iommupt provides the iommu_domain")
> Signed-off-by: Alex Williamson<alex.williamson@nvidia.com>
> ---
> drivers/iommu/intel/iommu.c | 1 +
> 1 file changed, 1 insertion(+)
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY
2026-04-08 18:44 [PATCH] iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY Alex Williamson
2026-04-08 23:49 ` Jason Gunthorpe
2026-04-09 3:19 ` Baolu Lu
@ 2026-04-09 13:01 ` Will Deacon
2 siblings, 0 replies; 5+ messages in thread
From: Will Deacon @ 2026-04-09 13:01 UTC (permalink / raw)
To: joro, Jason Gunthorpe, Alex Williamson
Cc: catalin.marinas, kernel-team, Will Deacon, baolu.lu, kevin.tian,
robin.murphy, iommu
On Wed, 08 Apr 2026 12:44:42 -0600, Alex Williamson wrote:
> In removing IOMMU_CAP_DEFERRED_FLUSH, the below referenced commit
> was over-eager in removing the return, resulting in the test for
> IOMMU_CAP_CACHE_COHERENCY falling through to an irrelevant option.
>
> Restore dropped return.
>
>
> [...]
Applied to iommu (core), thanks!
[1/1] iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY
https://git.kernel.org/iommu/c/ebfaf2bcc190
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-04-09 13:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-08 18:44 [PATCH] iommu/vt-d: Restore IOMMU_CAP_CACHE_COHERENCY Alex Williamson
2026-04-08 23:49 ` Jason Gunthorpe
2026-04-09 1:46 ` Tian, Kevin
2026-04-09 3:19 ` Baolu Lu
2026-04-09 13:01 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox