Re: [PATCH] remove fullflush and nofullflush in IOMMU generic option

From: Joerg Roedel
Date: Mon Sep 22 2008 - 15:02:24 EST


On Mon, Sep 22, 2008 at 08:48:22PM +0200, Ingo Molnar wrote:
> applied Fujita's patch below to tip/x86/iommu that reverts those
> options, thanks guys!
>
> i'm wondering how we should proceed. For debug, iommu=off is certainly
> good enough - all kernels are supposed to work out of box on all hw, and
> every other result is a regression that must be fixed.
>
> For performance tuning, it probably makes sense for developers to tune
> IOMMU details (so that the bootup defaults can be improved - this is not
> really something that should be done on a workload basis), but for that
> IMO a /debug interface is a lot more useful than rather intrusive (and
> inflexible) boot options.
>
> What do you think about a debugfs based tuning of various IOMMU details?
> Maybe even the active driver could be changed - say from AMD-IOMMU to
> GART, or to off.

Yes, for the IO/TLB flushing policy a /debug interface is usefull and
certainly for a number of other parameters we have today at the
commandline.
But I am not sure if we can change the IOMMU implementation on-the-fly
at runtime. We have to wait until all drivers have released their dma
memory before we can switch it off. For coherent allocations this may
take a long time.
So for selecting the type of IOMMU active in the system the command line
parameters are needed, I think. I prefer the iommu=$type parameter for
selecting the default (better: to select a default different from what
the kernel had chosen itself). We can have the IOMMU specific options to
switch it off in addition if we like to.

Joerg

--
| AMD Saxony Limited Liability Company & Co. KG
Operating | Wilschdorfer Landstr. 101, 01109 Dresden, Germany
System | Register Court Dresden: HRA 4896
Research | General Partner authorized to represent:
Center | AMD Saxony LLC (Wilmington, Delaware, US)
| General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/