Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
arch: define the ARCH_DMA_ADDR_T_64BIT config symbol in lib/Kconfig
Browse files Browse the repository at this point in the history
Define this symbol if the architecture either uses 64-bit pointers or the
PHYS_ADDR_T_64BIT is set.  This covers 95% of the old arch magic.  We only
need an additional select for Xen on ARM (why anyway?), and we now always
set ARCH_DMA_ADDR_T_64BIT on mips boards with 64-bit physical addressing
instead of only doing it when highmem is set.

Signed-off-by: Christoph Hellwig <[email protected]>
Acked-by: James Hogan <[email protected]>
  • Loading branch information
Christoph Hellwig committed May 9, 2018
1 parent d4a451d commit 4965a68
Show file tree
Hide file tree
Showing 19 changed files with 3 additions and 42 deletions.
3 changes: 0 additions & 3 deletions arch/alpha/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ config ZONE_DMA
bool
default y

config ARCH_DMA_ADDR_T_64BIT
def_bool y

config GENERIC_ISA_DMA
bool
default y
Expand Down
3 changes: 0 additions & 3 deletions arch/arc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,6 @@ config ARC_HAS_PAE40
Enable access to physical memory beyond 4G, only supported on
ARC cores with 40 bit Physical Addressing support

config ARCH_DMA_ADDR_T_64BIT
bool

config ARC_KVADDR_SIZE
int "Kernel Virtual Address Space size (MB)"
range 0 512
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-axxia/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
config ARCH_AXXIA
bool "LSI Axxia platforms"
depends on ARCH_MULTI_V7 && ARM_LPAE
select ARCH_DMA_ADDR_T_64BIT
select ARM_AMBA
select ARM_GIC
select ARM_TIMER_SP804
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-bcm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ config ARCH_BRCMSTB
select BRCMSTB_L2_IRQ
select BCM7120_L2_IRQ
select ARCH_HAS_HOLES_MEMORYMODEL
select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
select ZONE_DMA if ARM_LPAE
select SOC_BRCMSTB
select SOC_BUS
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-exynos/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ config SOC_EXYNOS5440
bool "SAMSUNG EXYNOS5440"
default y
depends on ARCH_EXYNOS5
select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
select HAVE_ARM_ARCH_TIMER
select AUTO_ZRELADDR
select PINCTRL_EXYNOS5440
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-highbank/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
config ARCH_HIGHBANK
bool "Calxeda ECX-1000/2000 (Highbank/Midway)"
depends on ARCH_MULTI_V7
select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
select ARCH_HAS_HOLES_MEMORYMODEL
select ARCH_SUPPORTS_BIG_ENDIAN
select ARM_AMBA
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-rockchip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ config ARCH_ROCKCHIP
depends on ARCH_MULTI_V7
select PINCTRL
select PINCTRL_ROCKCHIP
select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
select ARCH_HAS_RESET_CONTROLLER
select ARM_AMBA
select ARM_GIC
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-shmobile/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ config ARCH_RMOBILE
menuconfig ARCH_RENESAS
bool "Renesas ARM SoCs"
depends on ARCH_MULTI_V7 && MMU
select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
select ARCH_SHMOBILE
select ARM_GIC
select GPIOLIB
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-tegra/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ menuconfig ARCH_TEGRA
select RESET_CONTROLLER
select SOC_BUS
select ZONE_DMA if ARM_LPAE
select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
help
This enables support for NVIDIA Tegra based systems.
3 changes: 0 additions & 3 deletions arch/arm/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,6 @@ config ARM_PV_FIXUP
def_bool y
depends on ARM_LPAE && ARM_PATCH_PHYS_VIRT && ARCH_KEYSTONE

config ARCH_DMA_ADDR_T_64BIT
bool

config ARM_THUMB
bool "Support Thumb user binaries" if !CPU_THUMBONLY && EXPERT
depends on CPU_THUMB_CAPABLE
Expand Down
3 changes: 0 additions & 3 deletions arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,6 @@ config ZONE_DMA32
config HAVE_GENERIC_GUP
def_bool y

config ARCH_DMA_ADDR_T_64BIT
def_bool y

config SMP
def_bool y

Expand Down
3 changes: 0 additions & 3 deletions arch/ia64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ config MMU
bool
default y

config ARCH_DMA_ADDR_T_64BIT
def_bool y

config SWIOTLB
bool

Expand Down
3 changes: 0 additions & 3 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1100,9 +1100,6 @@ config GPIO_TXX9
config FW_CFE
bool

config ARCH_DMA_ADDR_T_64BIT
def_bool (HIGHMEM && PHYS_ADDR_T_64BIT) || 64BIT

config ARCH_SUPPORTS_UPROBES
bool

Expand Down
3 changes: 0 additions & 3 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ config 64BIT
bool
default y if PPC64

config ARCH_DMA_ADDR_T_64BIT
def_bool PHYS_ADDR_T_64BIT

config MMU
bool
default y
Expand Down
3 changes: 0 additions & 3 deletions arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ config ZONE_DMA32
bool
default y

config ARCH_DMA_ADDR_T_64BIT
def_bool y

config PAGE_OFFSET
hex
default 0xC0000000 if 32BIT && MAXPHYSMEM_2GB
Expand Down
3 changes: 0 additions & 3 deletions arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ config GENERIC_BUG
config GENERIC_BUG_RELATIVE_POINTERS
def_bool y

config ARCH_DMA_ADDR_T_64BIT
def_bool y

config GENERIC_LOCKBREAK
def_bool y if SMP && PREEMPT

Expand Down
4 changes: 0 additions & 4 deletions arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ config ARCH_ATU
bool
default y if SPARC64

config ARCH_DMA_ADDR_T_64BIT
bool
default y if ARCH_ATU

config STACKTRACE_SUPPORT
bool
default y if SPARC64
Expand Down
4 changes: 0 additions & 4 deletions arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1479,10 +1479,6 @@ config X86_5LEVEL

Say N if unsure.

config ARCH_DMA_ADDR_T_64BIT
def_bool y
depends on X86_64 || HIGHMEM64G

config X86_DIRECT_GBPAGES
def_bool y
depends on X86_64 && !DEBUG_PAGEALLOC
Expand Down
3 changes: 3 additions & 0 deletions lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ config NEED_SG_DMA_LENGTH
config NEED_DMA_MAP_STATE
bool

config ARCH_DMA_ADDR_T_64BIT
def_bool 64BIT || PHYS_ADDR_T_64BIT

config IOMMU_HELPER
bool

Expand Down

0 comments on commit 4965a68

Please sign in to comment.