Skip to contentSkip to conversation

powerpc: Make 256k pages depend on PPC32=n

PATCH In review Pranith Kumar 2 participants 4 messages Aug 19, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Make 256k pages depend on PPC32=n

256k pages are not tested on PPC32. On a randconfig I got the following error:

arch/powerpc/kernel/misc_32.S:1171: Error: operand out of range (0x0000000000010000 is not between 0xffffffffffff8000 and 0x0000000000007fff)

Disable 256K pages if PPC32=y

---
 arch/powerpc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/Kconfig +1 -1
index da16ffe..6cc518f 100644
@@ -556,7 +556,7 @@ config PPC_64K_PAGES
 
 config PPC_256K_PAGES
 	bool "256k page size" if 44x
-	depends on !STDBINUTILS
+	depends on !PPC32 && !STDBINUTILS
 	help
 	  Make the page size 256k.
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 16 lines · Pranith Kumar

256k pages are not tested on PPC32. On a randconfig I got the following error:

arch/powerpc/kernel/misc_32.S:1171: Error: operand out of range (0x0000000000010000 is not between 0xffffffffffff8000 and 0x0000000000007fff)

Disable 256K pages if PPC32=y

---
 arch/powerpc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/Kconfig +0 -0
index da16ffe..6cc518f 100644

arch/powerpc/Kconfig config PPC_64K_PAGES · line 562

Quoted 8 lines
arch/powerpc/Kconfig +1 -1
@@ -556,7 +556,7 @@ config PPC_64K_PAGES
 
 config PPC_256K_PAGES
 	bool "256k page size" if 44x
-	depends on !STDBINUTILS
+	depends on !PPC32 && !STDBINUTILS
 	help
 	  Make the page size 256k.
 

How will this ever be selected then? 44x is 32-bit only.

-Scott

#2 lore raw
Quoted 9 lines · Scott Wood

arch/powerpc/Kconfig config PPC_64K_PAGES · line 561

Quoted 7 lines

config PPC_256K_PAGES
bool "256k page size" if 44x

arch/powerpc/Kconfig +1 -1
-     depends on !STDBINUTILS
+     depends on !PPC32 && !STDBINUTILS
      help
        Make the page size 256k.

How will this ever be selected then? 44x is 32-bit only.

Indeed. I am actually confused about the error which is being thrown here. The operand (65536) is actually within the range. Any suggestions on how to fix this?

Signature · 1 line
Pranith
#3 lore raw
Quoted 10 lines · Pranith Kumar
Quoted 8 lines · Scott Wood
Quoted 7 lines

config PPC_256K_PAGES
bool "256k page size" if 44x

arch/powerpc/Kconfig +1 -1
-     depends on !STDBINUTILS
+     depends on !PPC32 && !STDBINUTILS
      help
        Make the page size 256k.
Quoted 5 lines
Quoted 1 line

How will this ever be selected then? 44x is 32-bit only.

Indeed. I am actually confused about the error which is being thrown here. The operand (65536) is actually within the range. Any suggestions on how to fix this?

It's not within range of "li". I wonder if whatever non-"STD" binutils this is supposed to be used with is rewriting it into an lis instruction. This sort of external dependency is a poor fit for the randconfig concept (plus, shouldn't the symbol be indicating what binutils you're supposed to have rather than anything that isn't "standard"?).

In any case, you could use something like LOAD_REG_IMMEDIATE().

-Scott