Re: [PATCH 3/3] x86/iommu: use __GFP_ZERO instead of memset for GART

From: Joerg Roedel
Date: Thu Sep 25 2008 - 06:42:46 EST


On Thu, Sep 25, 2008 at 12:20:12PM +0200, Ingo Molnar wrote:
>
> * Joerg Roedel <joerg.roedel@xxxxxxx> wrote:
>
> > #ifdef CONFIG_IOMMU_LEAK
> > if (leak_trace) {
> > - iommu_leak_tab = (void *)__get_free_pages(GFP_KERNEL,
> > + iommu_leak_tab = (void *)__get_free_pages(GFP_KERNEL|__GFP_ZERO,
> > get_order(iommu_pages*sizeof(void *)));
> > - if (iommu_leak_tab)
> > - memset(iommu_leak_tab, 0, iommu_pages * 8);
> > else
> > printk(KERN_DEBUG
> > "PCI-DMA: Cannot allocate leak trace area\n");
>
> hm, that looks broken.

Argh, yes. Please try this one:

=