* PG_DMA
@ 1999-12-14 0:01 Kanoj Sarcar
1999-12-14 0:05 ` PG_DMA Linus Torvalds
0 siblings, 1 reply; 2+ messages in thread
From: Kanoj Sarcar @ 1999-12-14 0:01 UTC (permalink / raw)
To: linux-mm; +Cc: linux-kernel, torvalds
In 2.3.32-pre, I see that the PageDMA(page) macro has been changed to
#define PageDMA(page) (contig_page_data.node_zones + ZONE_DMA == (page)->zone)
Why was this done? I would still prefer to see the PG_DMA bit, because
for discontig platforms, there is not a "contig_page_data". In short,
this will break any platform that does use the CONFIG_DISCONTIGMEM code.
Thanks.
Kanoj
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PG_DMA
1999-12-14 0:01 PG_DMA Kanoj Sarcar
@ 1999-12-14 0:05 ` Linus Torvalds
0 siblings, 0 replies; 2+ messages in thread
From: Linus Torvalds @ 1999-12-14 0:05 UTC (permalink / raw)
To: Kanoj Sarcar; +Cc: linux-mm, linux-kernel
On Mon, 13 Dec 1999, Kanoj Sarcar wrote:
>
> In 2.3.32-pre, I see that the PageDMA(page) macro has been changed to
>
> #define PageDMA(page) (contig_page_data.node_zones + ZONE_DMA == (page)->zone)
>
> Why was this done? I would still prefer to see the PG_DMA bit, because
> for discontig platforms, there is not a "contig_page_data". In short,
> this will break any platform that does use the CONFIG_DISCONTIGMEM code.
Actually, the REAL reason this was done is that PageDMA should just go
away completely.
If you grep for where it is actually used, you'll see that it's only used
in the page freeing code to see if this is a page we're interested in
freeing. And that needs to be eithe rremoved or revamped anyway - whether
it's going to be per-zone or global or whatever, the current test is just
noth worth it (what KIND of DMA? Is it the 20-bit ISA DMA or the 31-bit
broken PCI dma or the 32-bit real PCI dma or what?)
The DMA'ness of the page should be encoded as just the kind of zone it is
part of.
Linus
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-12-14 0:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-14 0:01 PG_DMA Kanoj Sarcar
1999-12-14 0:05 ` PG_DMA Linus Torvalds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox