All of lore.kernel.org
 help / color / mirror / Atom feed
* DMA32 zone unusable
@ 2005-11-16 15:22 ` Mika Penttilä
  0 siblings, 0 replies; 4+ messages in thread
From: Mika Penttilä @ 2005-11-16 15:22 UTC (permalink / raw)
  To: linux-kernel, linux-mm, Andi Kleen

The new DMA32 zone (which at least x86-64 has) is quite "interesting" :

#define __GFP_DMA32    ((__force gfp_t)0x04) <-----!!!!!  

#define GFP_ZONEMASK    0x03   <------!!!!!

#define gfp_zone(mask) ((__force int)((mask) & (__force gfp_t)GFP_ZONEMASK))

static inline struct page *alloc_pages_node(int nid, gfp_t gfp_mask,
                        unsigned int order)
{
    if (unlikely(order >= MAX_ORDER))
        return NULL;

    return __alloc_pages(gfp_mask, order,
        NODE_DATA(nid)->node_zonelists + gfp_zone(gfp_mask));
}


So with GFP_DMA32 you never get those pages (but DMA instead).

--Mika


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-16 15:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-16 15:22 DMA32 zone unusable Mika Penttilä
2005-11-16 15:22 ` Mika Penttilä
2005-11-16 15:53 ` Andi Kleen
2005-11-16 15:53   ` Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.