Skip to contentSkip to conversation

tree-wide: move CONFIG_PHYS_64BIT to Kconfig

PATCH New Masahiro Yamada 3 participants 4 messages Jul 24, 2016 – Jul 25, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tree-wide: move CONFIG_PHYS_64BIT to Kconfig

I tried my best to use "select" where possible (for example, ARMv8 architecture) because I think this kind of option is generally user- unconfigurable. However, I see some of PowerPC boards have 36BIT defconfigs as well as 32BIT ones. I moved CONFIG_PHYS_64BIT to the defconfigs for such boards.

---

 Kconfig                                               |  6 ++++++
 arch/arm/Kconfig                                      |  1 +
 arch/arm/cpu/armv7/omap5/Kconfig                      |  1 +
 arch/arm/include/asm/config.h                         |  1 -
 arch/powerpc/cpu/mpc85xx/Kconfig                      | 18 ++++++++++++++++++
 arch/powerpc/cpu/ppc4xx/Kconfig                       |  1 +
 configs/MPC8536DS_36BIT_defconfig                     |  1 +
 configs/MPC8548CDS_36BIT_defconfig                    |  1 +
 configs/MPC8572DS_36BIT_defconfig                     |  1 +
 configs/MPC8641HPCN_36BIT_defconfig                   |  1 +
 configs/P1010RDB-PA_36BIT_NAND_SECBOOT_defconfig      |  3 ++-
 configs/P1010RDB-PA_36BIT_NAND_defconfig              |  1 +
 configs/P1010RDB-PA_36BIT_NOR_SECBOOT_defconfig       |  3 ++-
 configs/P1010RDB-PA_36BIT_NOR_defconfig               |  1 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig            |  1 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_SECBOOT_defconfig  |  3 ++-
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig          |  1 +
 configs/P1010RDB-PB_36BIT_NAND_SECBOOT_defconfig      |  3 ++-
 configs/P1010RDB-PB_36BIT_NAND_defconfig              |  1 +
 configs/P1010RDB-PB_36BIT_NOR_SECBOOT_defconfig       |  3 ++-
 configs/P1010RDB-PB_36BIT_NOR_defconfig               |  1 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig            |  1 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_SECBOOT_defconfig  |  3 ++-
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig          |  1 +
 configs/P1020MBG-PC_36BIT_SDCARD_defconfig            |  1 +
 configs/P1020MBG-PC_36BIT_defconfig                   |  1 +
 configs/P1020RDB-PC_36BIT_NAND_defconfig              |  1 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig            |  1 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig          |  1 +
 configs/P1020RDB-PC_36BIT_defconfig                   |  1 +
 configs/P1020UTM-PC_36BIT_SDCARD_defconfig            |  1 +
 configs/P1020UTM-PC_36BIT_defconfig                   |  1 +
 configs/P1021RDB-PC_36BIT_NAND_defconfig              |  1 +
 configs/P1021RDB-PC_36BIT_SDCARD_defconfig            |  1 +
 configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig          |  1 +
 configs/P1021RDB-PC_36BIT_defconfig                   |  1 +
 configs/P1022DS_36BIT_NAND_defconfig                  |  1 +
 configs/P1022DS_36BIT_SDCARD_defconfig                |  1 +
 configs/P1022DS_36BIT_SPIFLASH_defconfig              |  1 +
 configs/P1022DS_36BIT_defconfig                       |  1 +
 configs/P1024RDB_36BIT_defconfig                      |  1 +
 configs/P1025RDB_36BIT_defconfig                      |  1 +
 configs/P2020RDB-PC_36BIT_NAND_defconfig              |  1 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig            |  1 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig          |  1 +
 configs/P2020RDB-PC_36BIT_defconfig                   |  1 +
 configs/controlcenterd_36BIT_SDCARD_DEVELOP_defconfig |  1 +
 configs/controlcenterd_36BIT_SDCARD_defconfig         |  1 +
 include/configs/B4860QDS.h                            |  1 -
 include/configs/C29XPCIE.h                            |  1 -
 include/configs/MPC8536DS.h                           |  4 ----
 include/configs/MPC8548CDS.h                          |  4 ----
 include/configs/MPC8572DS.h                           |  4 ----
 include/configs/MPC8641HPCN.h                         |  1 -
 include/configs/P1010RDB.h                            |  3 ---
 include/configs/P1022DS.h                             |  4 ----
 include/configs/P2041RDB.h                            |  1 -
 include/configs/P3041DS.h                             |  1 -
 include/configs/P4080DS.h                             |  1 -
 include/configs/P5020DS.h                             |  1 -
 include/configs/P5040DS.h                             |  1 -
 include/configs/T102xQDS.h                            |  1 -
 include/configs/T102xRDB.h                            |  1 -
 include/configs/T1040QDS.h                            |  1 -
 include/configs/T104xRDB.h                            |  1 -
 include/configs/T208xQDS.h                            |  1 -
 include/configs/T208xRDB.h                            |  1 -
 include/configs/T4240QDS.h                            |  1 -
 include/configs/T4240RDB.h                            |  1 -
 include/configs/controlcenterd.h                      |  4 ----
 include/configs/cyrus.h                               |  2 --
 include/configs/dra7xx_evm.h                          |  1 -
 include/configs/katmai.h                              |  1 -
 include/configs/km/kmp204x-common.h                   |  1 -
 include/configs/p1_p2_rdb_pc.h                        |  4 ----
 include/configs/qemu-ppce500.h                        |  2 --
 76 files changed, 75 insertions(+), 57 deletions(-)
Kconfig +6 -0
index ef12f9f..d7eda49 100644
@@ -124,6 +124,12 @@ config TOOLS_DEBUG
 	  debug through the source code, etc.
 
 endif
+
+config PHYS_64BIT
+       bool "64bit physical address support"
+       help
+         Say Y here to support 64bit physical memory address.
+
 endmenu		# General setup
 
 menu "Boot images"
arch/arm/Kconfig +1 -0
index 397981a..fba96cd 100644
@@ -6,6 +6,7 @@ config SYS_ARCH
 
 config ARM64
 	bool
+	select PHYS_64BIT
 
 config DMA_ADDR_T_64BIT
 	bool
arch/arm/cpu/armv7/omap5/Kconfig +1 -0
index 4fb5ef9..a8600b1 100644
@@ -13,6 +13,7 @@ config TARGET_OMAP5_UEVM
 config TARGET_DRA7XX_EVM
 	bool "TI DRA7XX"
 	select TI_I2C_BOARD_DETECT
+	select PHYS_64BIT
 
 config TARGET_AM57XX_EVM
 	bool "AM57XX"
arch/arm/include/asm/config.h +0 -1
index 435fc45..1ad221a 100644
@@ -11,7 +11,6 @@
 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
 
 #ifdef CONFIG_ARM64
-#define CONFIG_PHYS_64BIT
 #define CONFIG_STATIC_RELA
 #endif
 
arch/powerpc/cpu/mpc85xx/Kconfig +18 -0
index 0b89157..9bcbda0 100644
@@ -17,6 +17,7 @@ config TARGET_SOCRATES
 config TARGET_B4860QDS
 	bool "Support B4860QDS"
 	select SUPPORT_SPL
+	select PHYS_64BIT
 
 config TARGET_BSC9131RDB
 	bool "Support BSC9131RDB"
@@ -30,18 +31,23 @@ config TARGET_C29XPCIE
 	bool "Support C29XPCIE"
 	select SUPPORT_SPL
 	select SUPPORT_TPL
+	select PHYS_64BIT
 
 config TARGET_P3041DS
 	bool "Support P3041DS"
+	select PHYS_64BIT
 
 config TARGET_P4080DS
 	bool "Support P4080DS"
+	select PHYS_64BIT
 
 config TARGET_P5020DS
 	bool "Support P5020DS"
+	select PHYS_64BIT
 
 config TARGET_P5040DS
 	bool "Support P5040DS"
+	select PHYS_64BIT
 
 config TARGET_MPC8536DS
 	bool "Support MPC8536DS"
@@ -96,46 +102,57 @@ config TARGET_P1_TWR
 
 config TARGET_P2041RDB
 	bool "Support P2041RDB"
+	select PHYS_64BIT
 
 config TARGET_QEMU_PPCE500
 	bool "Support qemu-ppce500"
+	select PHYS_64BIT
 
 config TARGET_T102XQDS
 	bool "Support T102xQDS"
 	select SUPPORT_SPL
+	select PHYS_64BIT
 
 config TARGET_T102XRDB
 	bool "Support T102xRDB"
 	select SUPPORT_SPL
+	select PHYS_64BIT
 
 config TARGET_T1040QDS
 	bool "Support T1040QDS"
+	select PHYS_64BIT
 
 config TARGET_T104XRDB
 	bool "Support T104xRDB"
 	select SUPPORT_SPL
+	select PHYS_64BIT
 
 config TARGET_T208XQDS
 	bool "Support T208xQDS"
 	select SUPPORT_SPL
+	select PHYS_64BIT
 
 config TARGET_T208XRDB
 	bool "Support T208xRDB"
 	select SUPPORT_SPL
+	select PHYS_64BIT
 
 config TARGET_T4240QDS
 	bool "Support T4240QDS"
 	select SUPPORT_SPL
+	select PHYS_64BIT
 
 config TARGET_T4240RDB
 	bool "Support T4240RDB"
 	select SUPPORT_SPL
+	select PHYS_64BIT
 
 config TARGET_CONTROLCENTERD
 	bool "Support controlcenterd"
 
 config TARGET_KMP204X
 	bool "Support kmp204x"
+	select PHYS_64BIT
 
 config TARGET_XPEDITE520X
 	bool "Support xpedite520x"
@@ -151,6 +168,7 @@ config TARGET_UCP1020
 
 config TARGET_CYRUS
 	bool "Support Varisys Cyrus"
+	select PHYS_64BIT
 
 endchoice
 
arch/powerpc/cpu/ppc4xx/Kconfig +1 -0
index 36af1b9..92a330d 100644
@@ -30,6 +30,7 @@ config TARGET_CANYONLANDS
 
 config TARGET_KATMAI
 	bool "Support katmai"
+	select PHYS_64BIT
 
 config TARGET_KILAUEA
 	bool "Support kilauea"
configs/MPC8536DS_36BIT_defconfig +1 -0
index 2ffc647..02cd9c7 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_MPC8536DS=y
+CONFIG_PHYS_64BIT=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="36BIT"
configs/MPC8548CDS_36BIT_defconfig +1 -0
index 066eaf2..5f9d3cb 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_MPC8548CDS=y
+CONFIG_PHYS_64BIT=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="36BIT"
configs/MPC8572DS_36BIT_defconfig +1 -0
index 8218ef6..206c8d3 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_MPC8572DS=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/MPC8641HPCN_36BIT_defconfig +1 -0
index b90e6ea..8c1dab0 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC86xx=y
 CONFIG_TARGET_MPC8641HPCN=y
+CONFIG_PHYS_64BIT=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="PHYS_64BIT"
configs/P1010RDB-PA_36BIT_NAND_SECBOOT_defconfig +2 -1
index 5e05795..fadee7b 100644
@@ -1,7 +1,8 @@
 CONFIG_PPC=y
-# CONFIG_SYS_MALLOC_F is not set
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+# CONFIG_SYS_MALLOC_F is not set
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PA_36BIT_NAND_defconfig +1 -0
index 5e12add..303b808 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_TPL=y
 CONFIG_FIT=y
configs/P1010RDB-PA_36BIT_NOR_SECBOOT_defconfig +2 -1
index b63475c..1fb02f3 100644
@@ -1,7 +1,8 @@
 CONFIG_PPC=y
-# CONFIG_SYS_MALLOC_F is not set
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+# CONFIG_SYS_MALLOC_F is not set
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PA_36BIT_NOR_defconfig +1 -0
index 74168da..06b11a4 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PA_36BIT_SDCARD_defconfig +1 -0
index 2e34a10..7318f41 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PA_36BIT_SPIFLASH_SECBOOT_defconfig +2 -1
index d5bf946..75e67e9 100644
@@ -1,7 +1,8 @@
 CONFIG_PPC=y
-# CONFIG_SYS_MALLOC_F is not set
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+# CONFIG_SYS_MALLOC_F is not set
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig +1 -0
index aa08a59..40a38d7 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PB_36BIT_NAND_SECBOOT_defconfig +2 -1
index e8564f9..7b83889 100644
@@ -1,7 +1,8 @@
 CONFIG_PPC=y
-# CONFIG_SYS_MALLOC_F is not set
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+# CONFIG_SYS_MALLOC_F is not set
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PB_36BIT_NAND_defconfig +1 -0
index 425344b..cda441b 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_TPL=y
 CONFIG_FIT=y
configs/P1010RDB-PB_36BIT_NOR_SECBOOT_defconfig +2 -1
index dce2a1a..de2af86 100644
@@ -1,7 +1,8 @@
 CONFIG_PPC=y
-# CONFIG_SYS_MALLOC_F is not set
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+# CONFIG_SYS_MALLOC_F is not set
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PB_36BIT_NOR_defconfig +1 -0
index 883de6f..aa9f93b 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PB_36BIT_SDCARD_defconfig +1 -0
index 381caad..29eea26 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1010RDB-PB_36BIT_SPIFLASH_SECBOOT_defconfig +2 -1
index 293a945..1abfc39 100644
@@ -1,7 +1,8 @@
 CONFIG_PPC=y
-# CONFIG_SYS_MALLOC_F is not set
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+# CONFIG_SYS_MALLOC_F is not set
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig +1 -0
index 0c8ae44..9f8f044 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1010RDB=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020MBG-PC_36BIT_SDCARD_defconfig +1 -0
index bb27831..aef9abe 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020MBG-PC_36BIT_defconfig +1 -0
index 79a4282..8b49810 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1020RDB-PC_36BIT_NAND_defconfig +1 -0
index 1c98b55..28fdd3e 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_TPL=y
 CONFIG_FIT=y
configs/P1020RDB-PC_36BIT_SDCARD_defconfig +1 -0
index e5bff61..7fb8cbf 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig +1 -0
index dda50fb..14c0692 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020RDB-PC_36BIT_defconfig +1 -0
index b693705..227f12e 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1020UTM-PC_36BIT_SDCARD_defconfig +1 -0
index 6dfe195..79f253d 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1020UTM-PC_36BIT_defconfig +1 -0
index 98f9285..909f63d 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1021RDB-PC_36BIT_NAND_defconfig +1 -0
index eeb232d..19294e4 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_TPL=y
 CONFIG_FIT=y
configs/P1021RDB-PC_36BIT_SDCARD_defconfig +1 -0
index d2f83fa..39362f9 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig +1 -0
index 09ba6ea..f10a2f9 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1021RDB-PC_36BIT_defconfig +1 -0
index 7652d29..9ae14ce 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1022DS_36BIT_NAND_defconfig +1 -0
index 352305d..fce05a8 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1022DS=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_TPL=y
 CONFIG_FIT=y
configs/P1022DS_36BIT_SDCARD_defconfig +1 -0
index 68a6c11..a703adf 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1022DS=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1022DS_36BIT_SPIFLASH_defconfig +1 -0
index 21300da..6ad0464 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1022DS=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P1022DS_36BIT_defconfig +1 -0
index c63abc3..1cd2e7f 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1022DS=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1024RDB_36BIT_defconfig +1 -0
index d3731a8..056e769 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P1025RDB_36BIT_defconfig +1 -0
index 9864486..f106262 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/P2020RDB-PC_36BIT_NAND_defconfig +1 -0
index 2421a73..51c8012 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_TPL=y
 CONFIG_FIT=y
configs/P2020RDB-PC_36BIT_SDCARD_defconfig +1 -0
index fce023b..ce48440 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig +1 -0
index a316264..e19b688 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_SPL=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
configs/P2020RDB-PC_36BIT_defconfig +1 -0
index 0bc2d1a..c8b260b 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_P1_P2_RDB_PC=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/controlcenterd_36BIT_SDCARD_DEVELOP_defconfig +1 -0
index aff6328..fd0f94c 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_CONTROLCENTERD=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
configs/controlcenterd_36BIT_SDCARD_defconfig +1 -0
index 74b67f7..94592f3 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_CONTROLCENTERD=y
+CONFIG_PHYS_64BIT=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_OF_BOARD_SETUP=y
include/configs/B4860QDS.h +0 -1
index 5de9bb7..7d9619e 100644
@@ -13,7 +13,6 @@
  * B4860 QDS board configuration file
  */
 #define CONFIG_B4860QDS
-#define CONFIG_PHYS_64BIT
 
 #ifdef CONFIG_RAMBOOT_PBL
 #define CONFIG_SYS_FSL_PBL_PBI	$(SRCTREE)/board/freescale/b4860qds/b4_pbi.cfg
include/configs/C29XPCIE.h +0 -1
index cc5359f..f75919d 100644
@@ -11,7 +11,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_PHYS_64BIT
 #define CONFIG_DISPLAY_BOARDINFO
 
 #ifdef CONFIG_C29XPCIE
include/configs/MPC8536DS.h +0 -4
index 874261a..b536f67 100644
@@ -14,10 +14,6 @@
 #define CONFIG_DISPLAY_BOARDINFO
 #include "../board/freescale/common/ics307_clk.h"
 
-#ifdef CONFIG_36BIT
-#define CONFIG_PHYS_64BIT	1
-#endif
-
 #ifdef CONFIG_SDCARD
 #define CONFIG_RAMBOOT_SDCARD		1
 #define CONFIG_SYS_TEXT_BASE	0xf8f40000
include/configs/MPC8548CDS.h +0 -4
index b81a4ed..789c62b 100644
@@ -15,10 +15,6 @@
 
 #define CONFIG_DISPLAY_BOARDINFO
 
-#ifdef CONFIG_36BIT
-#define CONFIG_PHYS_64BIT
-#endif
-
 /* High Level Configuration Options */
 #define CONFIG_BOOKE		1	/* BOOKE */
 #define CONFIG_E500		1	/* BOOKE e500 family */
include/configs/MPC8572DS.h +0 -4
index 390b1ef..26cf8d6 100644
@@ -15,10 +15,6 @@
 
 #include "../board/freescale/common/ics307_clk.h"
 
-#ifdef CONFIG_36BIT
-#define CONFIG_PHYS_64BIT
-#endif
-
 #ifndef CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_TEXT_BASE	0xeff40000
 #endif
include/configs/MPC8641HPCN.h +0 -1
index f90f7f2..efac12c 100644
@@ -23,7 +23,6 @@
 #define CONFIG_MPC8641HPCN	1	/* MPC8641HPCN board specific */
 #define CONFIG_MP		1	/* support multiple processors */
 #define CONFIG_LINUX_RESET_VEC	0x100	/* Reset vector used by Linux */
-/*#define CONFIG_PHYS_64BIT	1*/	/* Place devices in 36-bit space */
 #define CONFIG_ADDR_MAP		1	/* Use addr map */
 
 /*
include/configs/P1010RDB.h +0 -3
index 5b6b4bd..5ab6602 100644
@@ -11,9 +11,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#ifdef CONFIG_36BIT
-#define CONFIG_PHYS_64BIT
-#endif
 #define	CONFIG_DISPLAY_BOARDINFO
 
 #define CONFIG_P1010
include/configs/P1022DS.h +0 -4
index fe19957..5d572b4 100644
@@ -13,10 +13,6 @@
 
 #define CONFIG_DISPLAY_BOARDINFO
 
-#ifdef CONFIG_36BIT
-#define CONFIG_PHYS_64BIT
-#endif
-
 #ifdef CONFIG_SDCARD
 #define CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT
 #define CONFIG_SPL_ENV_SUPPORT
include/configs/P2041RDB.h +0 -1
index 8479410..e6057f9 100644
@@ -12,7 +12,6 @@
 #define __CONFIG_H
 
 #define CONFIG_P2041RDB
-#define CONFIG_PHYS_64BIT
 #define CONFIG_DISPLAY_BOARDINFO
 #define CONFIG_PPC_P2041
 
include/configs/P3041DS.h +0 -1
index e05dd75..c901fe2 100644
@@ -9,7 +9,6 @@
  *
  */
 #define CONFIG_P3041DS
-#define CONFIG_PHYS_64BIT
 #define CONFIG_PPC_P3041
 
 #define CONFIG_FSL_NGPIXIS		/* use common ngPIXIS code */
include/configs/P4080DS.h +0 -1
index 2f89008..0d44c00 100644
@@ -9,7 +9,6 @@
  * Also supports P4040 DS
  */
 #define CONFIG_P4080DS
-#define CONFIG_PHYS_64BIT
 #define CONFIG_PPC_P4080
 
 #define CONFIG_FSL_NGPIXIS		/* use common ngPIXIS code */
include/configs/P5020DS.h +0 -1
index 588df80..d2cedfe 100644
@@ -9,7 +9,6 @@
  * Also supports P5010 DS
  */
 #define CONFIG_P5020DS
-#define CONFIG_PHYS_64BIT
 #define CONFIG_PPC_P5020
 
 #define CONFIG_FSL_NGPIXIS		/* use common ngPIXIS code */
include/configs/P5040DS.h +0 -1
index e4a031a..dc82721 100644
@@ -9,7 +9,6 @@
  *
  */
 #define CONFIG_P5040DS
-#define CONFIG_PHYS_64BIT
 #define CONFIG_PPC_P5040
 
 #define CONFIG_FSL_NGPIXIS		/* use common ngPIXIS code */
include/configs/T102xQDS.h +0 -1
index b151963..2f18f52 100644
@@ -18,7 +18,6 @@
 #define CONFIG_E500MC			/* BOOKE e500mc family */
 #define CONFIG_SYS_BOOK3E_HV		/* Category E.HV supported */
 #define CONFIG_MP			/* support multiple processors */
-#define CONFIG_PHYS_64BIT
 #define CONFIG_ENABLE_36BIT_PHYS
 
 #ifdef CONFIG_PHYS_64BIT
include/configs/T102xRDB.h +0 -1
index 25a0652..8029ca8 100644
@@ -18,7 +18,6 @@
 #define CONFIG_E500MC			/* BOOKE e500mc family */
 #define CONFIG_SYS_BOOK3E_HV		/* Category E.HV supported */
 #define CONFIG_MP			/* support multiple processors */
-#define CONFIG_PHYS_64BIT
 #define CONFIG_ENABLE_36BIT_PHYS
 
 #ifdef CONFIG_PHYS_64BIT
include/configs/T1040QDS.h +0 -1
index 7ce6420..b8c6e89 100644
@@ -27,7 +27,6 @@
  * T1040 QDS board configuration file
  */
 #define CONFIG_T1040QDS
-#define CONFIG_PHYS_64BIT
 #define CONFIG_DISPLAY_BOARDINFO
 
 #ifdef CONFIG_RAMBOOT_PBL
include/configs/T104xRDB.h +0 -1
index ae1acbd..e583def 100644
@@ -11,7 +11,6 @@
  * T104x RDB board configuration file
  */
 #define CONFIG_T104xRDB
-#define CONFIG_PHYS_64BIT
 #define CONFIG_DISPLAY_BOARDINFO
 
 #define CONFIG_E500			/* BOOKE e500 family */
include/configs/T208xQDS.h +0 -1
index 6217555..3f28549 100644
@@ -26,7 +26,6 @@
 #endif
 
 /* High Level Configuration Options */
-#define CONFIG_PHYS_64BIT
 #define CONFIG_BOOKE
 #define CONFIG_E500		/* BOOKE e500 family */
 #define CONFIG_E500MC		/* BOOKE e500mc family */
include/configs/T208xRDB.h +0 -1
index 7a7de97..37d16ae 100644
@@ -19,7 +19,6 @@
 #define CONFIG_FSL_SATA_V2
 
 /* High Level Configuration Options */
-#define CONFIG_PHYS_64BIT
 #define CONFIG_BOOKE
 #define CONFIG_E500		/* BOOKE e500 family */
 #define CONFIG_E500MC		/* BOOKE e500mc family */
include/configs/T4240QDS.h +0 -1
index 85aab18..8fffffe 100644
@@ -11,7 +11,6 @@
 #define __CONFIG_H
 
 #define CONFIG_T4240QDS
-#define CONFIG_PHYS_64BIT
 
 #define CONFIG_FSL_SATA_V2
 #define CONFIG_PCIE4
include/configs/T4240RDB.h +0 -1
index 4133165..15b8219 100644
@@ -11,7 +11,6 @@
 #define __CONFIG_H
 
 #define CONFIG_T4240RDB
-#define CONFIG_PHYS_64BIT
 #define CONFIG_DISPLAY_BOARDINFO
 
 #define CONFIG_FSL_SATA_V2
include/configs/controlcenterd.h +0 -4
index 44e115d..1a63d03 100644
@@ -26,10 +26,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#ifdef CONFIG_36BIT
-#define CONFIG_PHYS_64BIT
-#endif
-
 #ifdef CONFIG_SDCARD
 #define CONFIG_RAMBOOT_SDCARD
 #endif
include/configs/cyrus.h +0 -2
index da38709..8e0ed06 100644
@@ -11,8 +11,6 @@
 
 #define CONFIG_CYRUS
 
-#define CONFIG_PHYS_64BIT
-
 #if !defined(CONFIG_PPC_P5020) && !defined(CONFIG_PPC_P5040)
 #error Must call Cyrus CONFIG with a specific CPU enabled.
 #endif
include/configs/dra7xx_evm.h +0 -1
index 0d51aeb..a11b692 100644
@@ -20,7 +20,6 @@
 #endif
 
 #define CONFIG_VERY_BIG_RAM
-#define CONFIG_PHYS_64BIT
 #define CONFIG_NR_DRAM_BANKS		2
 #define CONFIG_MAX_MEM_MAPPED		0x80000000
 
include/configs/katmai.h +0 -1
index 9513c6d..e3fede5 100644
@@ -29,7 +29,6 @@
 /*
  * Enable this board for more than 2GB of SDRAM
  */
-#define CONFIG_PHYS_64BIT
 #define	CONFIG_VERY_BIG_RAM
 
 /*
include/configs/km/kmp204x-common.h +0 -1
index 5bdda22..8166c86 100644
@@ -8,7 +8,6 @@
 #ifndef _CONFIG_KMP204X_H
 #define _CONFIG_KMP204X_H
 
-#define CONFIG_PHYS_64BIT
 #define CONFIG_PPC_P2041
 
 #define CONFIG_SYS_TEXT_BASE	0xfff40000
include/configs/p1_p2_rdb_pc.h +0 -4
index 3d33421..5d0a570 100644
@@ -12,10 +12,6 @@
 
 #define CONFIG_DISPLAY_BOARDINFO
 
-#ifdef CONFIG_36BIT
-#define CONFIG_PHYS_64BIT
-#endif
-
 #if defined(CONFIG_P1020MBG)
 #define CONFIG_BOARDNAME "P1020MBG-PC"
 #define CONFIG_P1020
include/configs/qemu-ppce500.h +0 -2
index 0b86402..072859e 100644
@@ -56,8 +56,6 @@ extern unsigned long long get_phys_ccsrbar_addr_early(void);
 #define CONFIG_SYS_CCSRBAR_PHYS_LOW CONFIG_SYS_CCSRBAR
 #endif
 
-#define CONFIG_PHYS_64BIT
-
 /* Virtual address range for PCI region maps */
 #define CONFIG_SYS_PCI_MAP_START	0x80000000
 #define CONFIG_SYS_PCI_MAP_END		0xe8000000
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 tree-wide: move CONFIG_PHYS_64BIT to Kconfig

Quoted 7 lines · Masahiro Yamada

I tried my best to use "select" where possible (for example, ARMv8 architecture) because I think this kind of option is generally user- unconfigurable. However, I see some of PowerPC boards have 36BIT defconfigs as well as 32BIT ones. I moved CONFIG_PHYS_64BIT to the defconfigs for such boards.

Thanks for doing this, I'm sure it's going to fix a few other "hidden" bugs, aside from the USB one that we've already found. Can you please add in, roughtly:

We need to ensure that CONFIG_PHYS_64BIT is configured via Kconfig so that it is always available to the build system. Otherwise we can run into cases where we have inconsistent sizes of certain attributes.

Fixes 95ebc25 (types.h: move and redefine resource_size_t)

Also:

Kconfig config TOOLS_DEBUG · line 131

Quoted 13 lines
Kconfig +5 -0
index ef12f9f..d7eda49 100644
@@ -124,6 +124,12 @@ config TOOLS_DEBUG
 	  debug through the source code, etc.
 
 endif
+
+config PHYS_64BIT
+       bool "64bit physical address support"
+       help
+         Say Y here to support 64bit physical memory address.

Aside from the case of a 64bit CPU this is also needed on 32bit systems that offer a larger than 32bit address space.

configs/MPC8536DS_36BIT_defconfig line 7

Quoted 12 lines
configs/MPC8536DS_36BIT_defconfig +1 -0
index 2ffc647..02cd9c7 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_MPC8536DS=y
+CONFIG_PHYS_64BIT=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="36BIT"

Then on these 32bit CPU + 36bit address space boards we can now remove 36BIT from CONFIG_SYS_EXTRA_OPTIONS as this is all that's triggered by CONFIG_36BIT now. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160724/1f10d2ad/attachment.sig>
#2 lore raw

PATCH 1/1 tree-wide: move CONFIG_PHYS_64BIT to Kconfig

Hi Tom,

2016-07-25 1:55 GMT+09:00 Tom Rini <[email protected]>:

Quoted 14 lines · Masahiro Yamada
Quoted 8 lines

I tried my best to use "select" where possible (for example, ARMv8 architecture) because I think this kind of option is generally user- unconfigurable. However, I see some of PowerPC boards have 36BIT defconfigs as well as 32BIT ones. I moved CONFIG_PHYS_64BIT to the defconfigs for such boards.

Thanks for doing this, I'm sure it's going to fix a few other "hidden" bugs, aside from the USB one that we've already found. Can you please add in, roughtly:

Quoted 5 lines

We need to ensure that CONFIG_PHYS_64BIT is configured via Kconfig so that it is always available to the build system. Otherwise we can run into cases where we have inconsistent sizes of certain attributes.

Fixes 95ebc25 (types.h: move and redefine resource_size_t)

I did so in v2.

Quoted 9 lines

Also:

Quoted 7 lines
Kconfig +0 -0
index ef12f9f..d7eda49 100644
@@ -124,6 +124,12 @@ config TOOLS_DEBUG
        debug through the source code, etc.
 
Quoted 9 lines

Kconfig config TOOLS_DEBUG · line 131

Quoted 6 lines
Kconfig +5 -0
 endif
+
+config PHYS_64BIT
+       bool "64bit physical address support"
+       help
+         Say Y here to support 64bit physical memory address.

Aside from the case of a 64bit CPU this is also needed on 32bit systems that offer a larger than 32bit address space.

Right. Like ARM LPAE.

I noted this in the Kconfig help.

Quoted 8 lines
Quoted 8 lines
configs/MPC8536DS_36BIT_defconfig +0 -0
index 2ffc647..02cd9c7 100644
@@ -1,6 +1,7 @@
 CONFIG_PPC=y
 CONFIG_MPC85xx=y
 CONFIG_TARGET_MPC8536DS=y
Quoted 8 lines

configs/MPC8536DS_36BIT_defconfig line 7

Quoted 4 lines
configs/MPC8536DS_36BIT_defconfig +1 -0
+CONFIG_PHYS_64BIT=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_STDOUT_VIA_ALIAS=y
 CONFIG_SYS_EXTRA_OPTIONS="36BIT"

Then on these 32bit CPU + 36bit address space boards we can now remove 36BIT from CONFIG_SYS_EXTRA_OPTIONS as this is all that's triggered by CONFIG_36BIT now. Thanks!

Good catch.

I do not like fiddling with sed again and again,
I wrote this patch:
http://patchwork.ozlabs.org/patch/652215/

I hope you will like it.

Signature · 2 lines
Best Regards
Masahiro Yamada
#3 lore raw

PATCH 1/1 tree-wide: move CONFIG_PHYS_64BIT to Kconfig

In reply to Masahiro Yamada
Quoted 7 lines · Masahiro Yamada

I tried my best to use "select" where possible (for example, ARMv8 architecture) because I think this kind of option is generally user- unconfigurable. However, I see some of PowerPC boards have 36BIT defconfigs as well as 32BIT ones. I moved CONFIG_PHYS_64BIT to the defconfigs for such boards.

For the ppc4xx related stuff:

Thanks,
Stefan