Re: [PATCH 2/2] iommu: dmar -- reserve mmio space used by IOMMU
From: Chris Wright
Date: Wed Jun 06 2012 - 19:56:34 EST
* David Woodhouse (dwmw2@xxxxxxxxxxxxx) wrote:
> On Wed, 2012-06-06 at 10:29 +0200, Ingo Molnar wrote:
> > So for all practical purposes we get 99% of the warning power
> > without going into chicken-and-egg problems like how do we
> > determine that there's an IOMMU area there if there's no IOMMU
> > aware code in the kernel, right?
>
> That's not a chicken-and-egg problem. It's hardly difficult to see the
> DMAR ACPI table and take a *basic* look at the DRHD entries. You don't
> even need to fully parse it.
I had the same impression as Ingo. Patch is basically good as is (fixing
most of the problem), and could be augmented later to close the final gap
(when no IOMMU code). While parsing the DMAR table is trivial, what are
you recommending to use to inform if the region is not properly reserved?
thanks,
-chris
--
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/