* Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer
[not found] ` <20070814001441.GN3406@bingen.suse.de>
@ 2007-08-14 19:11 ` Andy Isaacson
2007-08-14 20:23 ` Andi Kleen
2007-08-15 11:37 ` Ralf Baechle
1 sibling, 1 reply; 8+ messages in thread
From: Andy Isaacson @ 2007-08-14 19:11 UTC (permalink / raw)
To: Andi Kleen
Cc: Alan Cox, Christoph Lameter, Mel Gorman, Lee.Schermerhorn,
linux-kernel, linux-mm, linux-mips
On Tue, Aug 14, 2007 at 02:14:41AM +0200, Andi Kleen wrote:
> On Tue, Aug 14, 2007 at 12:22:23AM +0100, Alan Cox wrote:
> > > The only tricky part were skbs in a few drivers, but luckily they are only
> > > needed for bouncing which can be done without a skb too. For RX it adds
> > > one copy, but we can live with that because they're only slow devices.
> >
> > Usually found on slow hardware that can't cope with extra copies very
> > well.
>
> It's essentially only lance, meth, b44 and bcm43xx and lots of s390.
>
> meth is only used on SGI O2s which are not that slow and unlikely
> to work in tree anyways.
>
> b44 and bcm43xx run in fast enough new systems to have no trouble
> with copies.
bcm43xx hardware does show up on low-end MIPS boxes (wrt54g anybody?)
that would be sorely hurt by excess copies.
-andy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer
2007-08-14 20:23 ` Andi Kleen
@ 2007-08-14 19:43 ` Andy Isaacson
2007-08-14 21:05 ` Andi Kleen
0 siblings, 1 reply; 8+ messages in thread
From: Andy Isaacson @ 2007-08-14 19:43 UTC (permalink / raw)
To: Andi Kleen
Cc: Alan Cox, Christoph Lameter, Mel Gorman, Lee.Schermerhorn,
linux-kernel, linux-mm, linux-mips
On Tue, Aug 14, 2007 at 10:23:51PM +0200, Andi Kleen wrote:
> > bcm43xx hardware does show up on low-end MIPS boxes (wrt54g anybody?)
> > that would be sorely hurt by excess copies.
>
> Lowend boxes don't have more than 1GB of RAM. With <= 1GB you don't
> need to copy on bcm43xx.
OK, that makes sense and is reassuring, but note that some MIPS boxes
have only part of their physical memory below 1GB; IIRC the
BCM4704/BCM5836 supports up to 512MB of physical memory, with 256MB in
the first GB and the second 256MB located above the 1GB line. (But it's
been a while since I've run such a machine, so I could be misremembering
the sizes and offsets.)
Yeah, if you stick a PCI chip with a 30-bit PCI DMA mask into a machine
with memory above 1GB, then copying has to happen. Unless the memory
allocator can avoid returning memory in the un-dma-able region...
-andy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer
2007-08-14 19:11 ` [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer Andy Isaacson
@ 2007-08-14 20:23 ` Andi Kleen
2007-08-14 19:43 ` Andy Isaacson
0 siblings, 1 reply; 8+ messages in thread
From: Andi Kleen @ 2007-08-14 20:23 UTC (permalink / raw)
To: Andy Isaacson
Cc: Andi Kleen, Alan Cox, Christoph Lameter, Mel Gorman,
Lee.Schermerhorn, linux-kernel, linux-mm, linux-mips
> bcm43xx hardware does show up on low-end MIPS boxes (wrt54g anybody?)
> that would be sorely hurt by excess copies.
Lowend boxes don't have more than 1GB of RAM. With <= 1GB you don't
need to copy on bcm43xx.
-Andi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer
2007-08-14 19:43 ` Andy Isaacson
@ 2007-08-14 21:05 ` Andi Kleen
0 siblings, 0 replies; 8+ messages in thread
From: Andi Kleen @ 2007-08-14 21:05 UTC (permalink / raw)
To: Andy Isaacson
Cc: Andi Kleen, Alan Cox, Christoph Lameter, Mel Gorman,
Lee.Schermerhorn, linux-kernel, linux-mm, linux-mips
> Yeah, if you stick a PCI chip with a 30-bit PCI DMA mask into a machine
> with memory above 1GB, then copying has to happen. Unless the memory
> allocator can avoid returning memory in the un-dma-able region...
With GFP_DMA this was possible, but the capability will be gone
for x86 systems if your required DMA region is < 4GB.
Besides I'm currently not planning to change mips so it might
stay the same if Ralf prefers that.
-Andi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer
[not found] ` <20070814001441.GN3406@bingen.suse.de>
2007-08-14 19:11 ` [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer Andy Isaacson
@ 2007-08-15 11:37 ` Ralf Baechle
2007-08-15 12:59 ` Andi Kleen
1 sibling, 1 reply; 8+ messages in thread
From: Ralf Baechle @ 2007-08-15 11:37 UTC (permalink / raw)
To: Andi Kleen
Cc: Alan Cox, Christoph Lameter, Mel Gorman, Lee.Schermerhorn,
linux-kernel, linux-mm, linux-mips
On Tue, Aug 14, 2007 at 02:14:41AM +0200, Andi Kleen wrote:
> meth is only used on SGI O2s which are not that slow and unlikely
> to work in tree anyways.
O2 doesn't enable CONFIG_ZONE_DMA so there is no point in using GFP_DMA in
an O2-specific device driver. Will send out patch in separate mail.
Ralf
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer
2007-08-15 12:59 ` Andi Kleen
@ 2007-08-15 12:32 ` Ralf Baechle
2007-08-15 19:59 ` Christoph Lameter
1 sibling, 0 replies; 8+ messages in thread
From: Ralf Baechle @ 2007-08-15 12:32 UTC (permalink / raw)
To: Andi Kleen
Cc: Alan Cox, Christoph Lameter, Mel Gorman, Lee.Schermerhorn,
linux-kernel, linux-mm, linux-mips
On Wed, Aug 15, 2007 at 02:59:20PM +0200, Andi Kleen wrote:
> On Wed, Aug 15, 2007 at 12:37:49PM +0100, Ralf Baechle wrote:
> > On Tue, Aug 14, 2007 at 02:14:41AM +0200, Andi Kleen wrote:
> >
> > > meth is only used on SGI O2s which are not that slow and unlikely
> > > to work in tree anyways.
> >
> > O2 doesn't enable CONFIG_ZONE_DMA so there is no point in using GFP_DMA in
> > an O2-specific device driver. Will send out patch in separate mail.
>
> Great.
>
> BTW I suspect this is true for some other GFP_DMA usages too.
> Some driver writers seem to confuse it with the PCI DMA
> APIs or believe it is always needed for them.
In case of the O2 the full story is a little more complicated. The O2 is
not I/O coherent. That's a well know and handled configuration for the
R5000. But the R10000 which was never designed for such use will do very
stupid things such as actually performing speculative stores and scribbling
into DMA buffers left and right. There are two possible workarounds for
this; one is software only the other is using a little CPLD codenamed Juice
on the O2 R10000 board and would require a special memory region for DMA
buffers, so the ZONE_DMA was really there as some sort of future proofing.
But in the end the same arguments as for the Lance apply here.
Ralf
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer
2007-08-15 11:37 ` Ralf Baechle
@ 2007-08-15 12:59 ` Andi Kleen
2007-08-15 12:32 ` Ralf Baechle
2007-08-15 19:59 ` Christoph Lameter
0 siblings, 2 replies; 8+ messages in thread
From: Andi Kleen @ 2007-08-15 12:59 UTC (permalink / raw)
To: Ralf Baechle
Cc: Andi Kleen, Alan Cox, Christoph Lameter, Mel Gorman,
Lee.Schermerhorn, linux-kernel, linux-mm, linux-mips
On Wed, Aug 15, 2007 at 12:37:49PM +0100, Ralf Baechle wrote:
> On Tue, Aug 14, 2007 at 02:14:41AM +0200, Andi Kleen wrote:
>
> > meth is only used on SGI O2s which are not that slow and unlikely
> > to work in tree anyways.
>
> O2 doesn't enable CONFIG_ZONE_DMA so there is no point in using GFP_DMA in
> an O2-specific device driver. Will send out patch in separate mail.
Great.
BTW I suspect this is true for some other GFP_DMA usages too.
Some driver writers seem to confuse it with the PCI DMA
APIs or believe it is always needed for them.
-Andi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer
2007-08-15 12:59 ` Andi Kleen
2007-08-15 12:32 ` Ralf Baechle
@ 2007-08-15 19:59 ` Christoph Lameter
1 sibling, 0 replies; 8+ messages in thread
From: Christoph Lameter @ 2007-08-15 19:59 UTC (permalink / raw)
To: Andi Kleen
Cc: Ralf Baechle, Alan Cox, Mel Gorman, Lee.Schermerhorn,
linux-kernel, linux-mm, linux-mips
On Wed, 15 Aug 2007, Andi Kleen wrote:
> BTW I suspect this is true for some other GFP_DMA usages too.
> Some driver writers seem to confuse it with the PCI DMA
> APIs or believe it is always needed for them.
See especially ARM.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-08-15 20:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.4.64.0708131457190.28445@schroedinger.engr.sgi.com>
[not found] ` <20070813225841.GG3406@bingen.suse.de>
[not found] ` <Pine.LNX.4.64.0708131506030.28502@schroedinger.engr.sgi.com>
[not found] ` <20070813230801.GH3406@bingen.suse.de>
[not found] ` <Pine.LNX.4.64.0708131536340.29946@schroedinger.engr.sgi.com>
[not found] ` <20070813234322.GJ3406@bingen.suse.de>
[not found] ` <Pine.LNX.4.64.0708131553050.30626@schroedinger.engr.sgi.com>
[not found] ` <20070814000041.GL3406@bingen.suse.de>
[not found] ` <20070814002223.2d8d42c5@the-village.bc.nu>
[not found] ` <20070814001441.GN3406@bingen.suse.de>
2007-08-14 19:11 ` [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer Andy Isaacson
2007-08-14 20:23 ` Andi Kleen
2007-08-14 19:43 ` Andy Isaacson
2007-08-14 21:05 ` Andi Kleen
2007-08-15 11:37 ` Ralf Baechle
2007-08-15 12:59 ` Andi Kleen
2007-08-15 12:32 ` Ralf Baechle
2007-08-15 19:59 ` Christoph Lameter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox