RE: [PATCH 2/2]Add Variable Page Size and IA64 Support in IntelIOMMU: IA64 Specific Part

From: Yu, Fenghua
Date: Sat Oct 04 2008 - 10:18:35 EST


>> VT-d hardware supports both non cache coherency and cache coherency by
>> bit Coherency in Extended Capabilities Register.
>
>But is the version without the cache coherency actually going to be
>_seen_ on IA64?
>
Currently there is only one IA64 platform CraterLake supporting VT-d. Its BIOS sets cache coherency bit. But since there is no architecture spec saying cache coherency is required for all ia64 platforms, non cache coherency could be seen in future platforms having VT-d. And one VT-d architect explicitly tell me that ia64 Linux IOMMU needs to deal with non cache coherency case and flush cache line for non cache coherency case (just like x86-64 is doing).

>> Could you please point me to the doc that explicitly says that
>> architecturally ia64 doesn't need cache flush?
>
>For safety, we can always make the driver just refuse to initialise on
>IA64 if the cache coherency bit isn't set.

The current patch set works just fine for both cache coherency and non cache coherency. We don't need to abandon non cache coherency support on ia64 unless there is explicit spec claiming that non cache coherency is a requirement on all ia64 platforms.

Thanks.

-Fenghua
--
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/