Re: [PATCH] x86: fix gart iommu using for amd 64 bit system

From: FUJITA Tomonori
Date: Wed Nov 25 2009 - 02:57:36 EST


On Wed, 25 Nov 2009 08:25:04 +0100
Ingo Molnar <mingo@xxxxxxx> wrote:

>
> * FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> wrote:
>
> > On Tue, 24 Nov 2009 16:26:45 +0100
> > Ingo Molnar <mingo@xxxxxxx> wrote:
> >
> > >
> > > * FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> wrote:
> > >
> > > > > don't think user will like to use SWIOTLB instead of swiotlb.
> > > >
> > > > I doubt that users care about a way to fix their problems.
> > >
> > > As far as swiotlb vs. GART goes, arguably a non-bouncing hw based
> > > solution (GART) is superior to a bouncing one (swiotlb), right?
> >
> > Yeah, but GART is not a real IOMMU that always does address
> > translation. If users want performance, they need 64bit DMA capable
> > devices to skip GART. With such devices, GART and SWIOTLB are same.
> >
> > So this hacky GART workaround is useful for only people who use non
> > 64bit DMA devices and broken BIOS with GART. IMO, it's not worth
> > having the workaround.
>
> Well, what Yinghai is saying that for that (nonzero) subset of people
> this change is a regression, and his patch fixes that. We dont do
> regressions so this needs to be addressed.

OK, I guess that I have to wait until nobody cares about GART.

Anyway, my patch fixes his issue without any regression:

http://marc.info/?l=linux-kernel&m=125907069703595&w=2

I'll post the second version of it after you merge the following fix:

http://marc.info/?l=linux-kernel&m=125910650500523&w=2


Thanks,
--
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/