* [PATCH] of: iommu: Silence misleading warning
@ 2015-07-22 17:47 Robin Murphy
[not found] ` <12584a8f40b08b9a12e12dbd3baa9e3d2a513d1b.1437586703.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Robin Murphy @ 2015-07-22 17:47 UTC (permalink / raw)
To: joro-zLv9SwRftAIdnm+yROfE0A,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Cc: arnd-r2nGTMty4D4, marc.zyngier-5wv7dgnIgG8,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, bhelgaas-hpIqsD4AKlfQT0dZR+AlfA,
m-karicheri2-l0cyMroinI0, grant.likely-QSEj5FYQhm4dnm+yROfE0A
Printing "IOMMU is currently not supported for PCI" for every PCI device
probed on a DT-based system proves to be both irritatingly noisy and
confusing to users who have misinterpreted it to mean they can no longer
use VFIO device assignment.
Since configuring DMA masks for PCI devices via of_dma_configure() has
not in fact changed anything with regard to IOMMUs there really is nothing
to warn about here; shut it up.
Signed-off-by: Robin Murphy <robin.murphy-5wv7dgnIgG8@public.gmane.org>
---
drivers/iommu/of_iommu.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c
index 43429ab..60ba238 100644
--- a/drivers/iommu/of_iommu.c
+++ b/drivers/iommu/of_iommu.c
@@ -141,10 +141,12 @@ struct iommu_ops *of_iommu_configure(struct device *dev,
struct iommu_ops *ops = NULL;
int idx = 0;
- if (dev_is_pci(dev)) {
- dev_err(dev, "IOMMU is currently not supported for PCI\n");
+ /*
+ * We can't do much for PCI devices without knowing how
+ * device IDs are wired up from the PCI bus to the IOMMU.
+ */
+ if (dev_is_pci(dev))
return NULL;
- }
/*
* We don't currently walk up the tree looking for a parent IOMMU.
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] of: iommu: Silence misleading warning
[not found] ` <12584a8f40b08b9a12e12dbd3baa9e3d2a513d1b.1437586703.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
@ 2015-07-22 18:03 ` Marc Zyngier
2015-08-03 14:10 ` Joerg Roedel
1 sibling, 0 replies; 3+ messages in thread
From: Marc Zyngier @ 2015-07-22 18:03 UTC (permalink / raw)
To: Robin Murphy, joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Cc: grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
bhelgaas-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org,
m-karicheri2-l0cyMroinI0@public.gmane.org,
arnd-r2nGTMty4D4@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
On 22/07/15 18:47, Robin Murphy wrote:
> Printing "IOMMU is currently not supported for PCI" for every PCI device
> probed on a DT-based system proves to be both irritatingly noisy and
> confusing to users who have misinterpreted it to mean they can no longer
> use VFIO device assignment.
>
> Since configuring DMA masks for PCI devices via of_dma_configure() has
> not in fact changed anything with regard to IOMMUs there really is nothing
> to warn about here; shut it up.
>
> Signed-off-by: Robin Murphy <robin.murphy-5wv7dgnIgG8@public.gmane.org>
Ah, I was wondering why the kernel was shouting at me while everything
was indeed working just fine.
Acked-by: Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org>
M.
--
Jazz is not dead. It just smells funny...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] of: iommu: Silence misleading warning
[not found] ` <12584a8f40b08b9a12e12dbd3baa9e3d2a513d1b.1437586703.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
2015-07-22 18:03 ` Marc Zyngier
@ 2015-08-03 14:10 ` Joerg Roedel
1 sibling, 0 replies; 3+ messages in thread
From: Joerg Roedel @ 2015-08-03 14:10 UTC (permalink / raw)
To: Robin Murphy
Cc: arnd-r2nGTMty4D4, marc.zyngier-5wv7dgnIgG8,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, bhelgaas-hpIqsD4AKlfQT0dZR+AlfA,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
m-karicheri2-l0cyMroinI0, grant.likely-QSEj5FYQhm4dnm+yROfE0A
On Wed, Jul 22, 2015 at 06:47:00PM +0100, Robin Murphy wrote:
> Printing "IOMMU is currently not supported for PCI" for every PCI device
> probed on a DT-based system proves to be both irritatingly noisy and
> confusing to users who have misinterpreted it to mean they can no longer
> use VFIO device assignment.
>
> Since configuring DMA masks for PCI devices via of_dma_configure() has
> not in fact changed anything with regard to IOMMUs there really is nothing
> to warn about here; shut it up.
>
> Signed-off-by: Robin Murphy <robin.murphy-5wv7dgnIgG8@public.gmane.org>
> ---
> drivers/iommu/of_iommu.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-03 14:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-22 17:47 [PATCH] of: iommu: Silence misleading warning Robin Murphy
[not found] ` <12584a8f40b08b9a12e12dbd3baa9e3d2a513d1b.1437586703.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
2015-07-22 18:03 ` Marc Zyngier
2015-08-03 14:10 ` Joerg Roedel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox