Re: Calgary and bad_dma_address

From: David Miller
Date: Tue Sep 09 2008 - 23:37:52 EST


From: Pete Zaitcev <zaitcev@xxxxxxxxxx>
Date: Tue, 9 Sep 2008 21:19:41 -0600

> I was reading arch/x86/kernel/pci-calgary_64.c today, and noticed that
> apparently nothing prevents iommu_area_alloc from returning a zero.
> But bad_dma_address is zero too. Doesn't it concern anyone?
> If the first allocation asks for a page-aligned buffer to be mapped,
> a spurious bad address will result, if I understand this right.

Won't the device range reserves done by calls of calgary_reserve_mem_region()
take care of this?
--
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/