Re: Questions about function detect_intel_iommu(void)

From: Dave Airlie
Date: Mon Nov 26 2012 - 03:25:27 EST


On Mon, Nov 26, 2012 at 4:36 PM, Li, Zhen-Hua <lizhenhua.dev@xxxxxxxxx> wrote:
> Hi all,
> I am debugging a bug about iommu recently and got a question
> about the function detect_intel_opmmu, Could anybody kindly help me?
>
> In dmar.c, this function :
> void __init detect_intel_iommu(void)
> In 2.6.32 and redhat enterprise kernel 2.6.18, it is called by
> x86_64 system . But in kernel 3.5.2, it is only needed on IA64 system.
>
> And my question is: is this function really needed for x86_64 and
> i386 in 2.6.32?

Not sure why you think its IA64, its called from the iommu init code
in 3.x here.

via the IOMMU_INIT_POST macro
Dave.
>
>
> Thanks and Regards.
>
> Li, Zhen-Hua
> --
> 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/
--
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/