* swiotlb=force fix
@ 2006-07-27 10:15 Muli Ben-Yehuda
0 siblings, 0 replies; only message in thread
From: Muli Ben-Yehuda @ 2006-07-27 10:15 UTC (permalink / raw)
To: Andi Kleen; +Cc: Jon Mason, linux-kernel, discuss
Hi Andi,
I was looking at your swiotlb=force fix at
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.18-rc2/2.6.18-rc2-mm1/broken-out/x86_64-mm-fix-swiotlb-force.patch.
In general I agree with the patch (and thanks for fixing it).
> - if (!iommu_detected && !no_iommu &&
> - (end_pfn > MAX_DMA32_PFN || force_iommu))
> + if (!iommu_detected && !no_iommu && end_pfn > MAX_DMA32_PFN)
> swiotlb = 1;
what is the expected outcome if the user specifies 'iommu=force' with
no HW IOMMU in the machine and swiotlb compiled in? we thought the
path of least surprise is to enable swiotlb unconditionally in this
case. You removed the check for force_iommu here so now this set of
command line options will *not* turn on swiotlb unless there's more
than 4G in the machine, which can be surprising.
> +extern int swiotlb_force;
> +
> #ifdef CONFIG_SWIOTLB
> extern int swiotlb;
> #else
> #define swiotlb 0
> #endif
Any reason not to move this into the CONFIG_SWIOTLB bit the same way
'extern int swiotlb' is declared?
Cheers,
Muli
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-27 10:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-27 10:15 swiotlb=force fix Muli Ben-Yehuda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®