[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1321976497.6971.6.camel@i7.infradead.org>
Date: Tue, 22 Nov 2011 15:41:37 +0000
From: David Woodhouse <dwmw2@...radead.org>
To: cody <mail.kai.huang@...il.com>
Cc: Alex Williamson <alex.williamson@...hat.com>,
rajesh.sankaran@...el.com, iommu@...ts.linux-foundation.org,
linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
chrisw@...s-sol.org, ddutile@...hat.com
Subject: Re: [PATCH] intel-iommu: Manage iommu_coherency globally
On Tue, 2011-11-22 at 23:30 -0800, cody wrote:
> I have a question, Intel VT-d manual says the coherency bit is "RO", how
> can it be configurable by the BIOS? Or there's another way to configure
> the IOMMU to be coherent or non-coherent? (I didn't find such info in
> the manual. I missed it?)
It's not in the manual. We hide it so that only the BIOS can set it.
It's only read-only to *you*, the operating system that's supposed to
have control of the hardware.
You might think that we should expose it to the OS so that it can be set
according to the *usage* — so perhaps you'd set it non-coherent for VM
use (where you rarely modify the page tables) and coherent for
host-based DMA protection (where the constant clflushes in the fast path
cause a 10% performance hit on network bandwidth testing).
However, that would not be consistent with our goal of ensuring that the
BIOS can *always* screw you over as much as possible.
--
dwmw2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists