Skip to contentSkip to conversation

Fix Kconfig of DMA32 for ia64

PATCH In review Yasunori Goto 3 participants 3 messages Dec 10, 2005 – Dec 11, 2005 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix Kconfig of DMA32 for ia64

Andew-san.

I realized ZONE_DMA32 on -mm has a trivial bug at Kconfig for ia64. In include/linux/gfp.h on 2.6.15-rc5-mm1, CONFIG is define like followings.

#ifdef CONFIG_DMA_IS_DMA32
#define __GFP_DMA32 ((__force gfp_t)0x01) /* ZONE_DMA is ZONE_DMA32
*/

       :
       :

So, CONFIG_"ZONE"_DMA_IS_DMA32 is clearly wrong.
This is patch for it.

Thanks.

arch/ia64/Kconfig +1 -1
Index: zone_reclaim/arch/ia64/Kconfig
===================================================================
@@ -58,7 +58,7 @@ config IA64_UNCACHED_ALLOCATOR
 	bool
 	select GENERIC_ALLOCATOR
 
-config ZONE_DMA_IS_DMA32
+config DMA_IS_DMA32
 	bool
 	default y
 
Signature · 8 lines
Yasunori Goto 


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#1 lore raw
Quoted 25 lines · Yasunori Goto

Andew-san.

I realized ZONE_DMA32 on -mm has a trivial bug at Kconfig for ia64. In include/linux/gfp.h on 2.6.15-rc5-mm1, CONFIG is define like followings.

#ifdef CONFIG_DMA_IS_DMA32
#define __GFP_DMA32 ((__force gfp_t)0x01) /* ZONE_DMA is ZONE_DMA32
*/

       :
       :

So, CONFIG_"ZONE"_DMA_IS_DMA32 is clearly wrong.
This is patch for it.

Thanks.

Index: zone_reclaim/arch/ia64/Kconfig
===================================================================

arch/ia64/Kconfig config IA64_UNCACHED_ALLOCATOR · line 64

Quoted 8 lines
arch/ia64/Kconfig +1 -1
@@ -58,7 +58,7 @@ config IA64_UNCACHED_ALLOCATOR
 	bool
 	select GENERIC_ALLOCATOR
 
-config ZONE_DMA_IS_DMA32
+config DMA_IS_DMA32
 	bool
 	default y
 

Thanks.

Tony, nothing in ia64 land seems to be using this, so no testing should be needed - I'll queue this up for 2.6.15.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#2 lore raw
In reply to Yasunori Goto
Quoted 6 lines · Yasunori Goto

Andew-san.

I realized ZONE_DMA32 on -mm has a trivial bug at Kconfig for ia64. In include/linux/gfp.h on 2.6.15-rc5-mm1, CONFIG is define like followings.

Quoted 8 lines

#ifdef CONFIG_DMA_IS_DMA32
#define __GFP_DMA32 ((__force gfp_t)0x01) /* ZONE_DMA is ZONE_DMA32
*/

       :
       :

So, CONFIG_"ZONE"_DMA_IS_DMA32 is clearly wrong.
This is patch for it.

Given that apparently no one cared we should just kill it and give ia64 a proper ZONE_DMA32 post 2.6.15. No one else tried to use it anyway.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>