Re: [PATCH -mm] x86 calgary: fix handling of devces that aren't behind the Calgary

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: FUJITA Tomonori
Date: Thursday, June 12, 2008 - 12:29 am

On Wed, 11 Jun 2008 18:25:06 -0700
Alexis Bruemmer <alexisb@us.ibm.com> wrote:


Thanks, now I see what's wrong in my patch.



Looks good though I have one minor comment.



You're welcome! I just want to improve IOMMUs and dma mapping code.





for_each_pci_dev would simplify the code a bit?

dev = NULL;

for_each_pci_dev(dev) {
	struct iommu_table *tbl;

	tbl = find_iommu_table(&dev->dev);

	if(translation_enabled(tbl))
		dev->dev.archdata.dma_ops = &calgary_dma_ops;
}
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH -mm] x86 calgary: fix handling of devces that a ..., FUJITA Tomonori, (Thu Jun 12, 12:29 am)