Skip to content

Commit 9b7fa28

Browse files
committed
Merge tag 'xtensa-20200206' of git://github.com/jcmvbkbc/linux-xtensa
Pull xtensa updates from Max Filippov: - reorganize exception vectors placement - small cleanups (drop unused functions/headers/defconfig entries, spelling fixes) * tag 'xtensa-20200206' of git://github.com/jcmvbkbc/linux-xtensa: xtensa: ISS: improve simcall assembly xtensa: reorganize vectors placement xtensa: separate SMP and XIP support xtensa: move fast exception handlers close to vectors arch/xtensa: fix Kconfig typos for HAVE_SMP xtensa: clean up optional XCHAL_* definitions xtensa: drop unused function fast_coprocessor_double xtensa: drop empty platform_* functions from platforms xtensa: clean up platform headers xtensa: drop set_except_vector declaration xtensa: configs: Cleanup old Kconfig IO scheduler options
2 parents 90568ec + c74c0fd commit 9b7fa28

23 files changed

Lines changed: 141 additions & 139 deletions

‎arch/xtensa/Kconfig‎

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ config HAVE_SMP
180180
depends on XTENSA_VARIANT_CUSTOM
181181
select XTENSA_MX
182182
help
183-
This option is use to indicate that the system-on-a-chip (SOC)
183+
This option is used to indicate that the system-on-a-chip (SOC)
184184
supports Multiprocessing. Multiprocessor support implemented above
185185
the CPU core definition and currently needs to be selected manually.
186186

187-
Multiprocessor support in implemented with external cache and
187+
Multiprocessor support is implemented with external cache and
188188
interrupt controllers.
189189

190190
The MX interrupt distributer adds Interprocessor Interrupts
@@ -572,15 +572,41 @@ config KERNEL_LOAD_ADDRESS
572572

573573
If unsure, leave the default value here.
574574

575-
config VECTORS_OFFSET
576-
hex "Kernel vectors offset"
577-
default 0x00003000
578-
depends on !XIP_KERNEL
575+
choice
576+
prompt "Relocatable vectors location"
577+
default XTENSA_VECTORS_IN_TEXT
579578
help
580-
This is the offset of the kernel image from the relocatable vectors
581-
base.
579+
Choose whether relocatable vectors are merged into the kernel .text
580+
or placed separately at runtime. This option does not affect
581+
configurations without VECBASE register where vectors are always
582+
placed at their hardware-defined locations.
582583

583-
If unsure, leave the default value here.
584+
config XTENSA_VECTORS_IN_TEXT
585+
bool "Merge relocatable vectors into kernel text"
586+
depends on !MTD_XIP
587+
help
588+
This option puts relocatable vectors into the kernel .text section
589+
with proper alignment.
590+
This is a safe choice for most configurations.
591+
592+
config XTENSA_VECTORS_SEPARATE
593+
bool "Put relocatable vectors at fixed address"
594+
help
595+
This option puts relocatable vectors at specific virtual address.
596+
Vectors are merged with the .init data in the kernel image and
597+
are copied into their designated location during kernel startup.
598+
Use it to put vectors into IRAM or out of FLASH on kernels with
599+
XIP-aware MTD support.
600+
601+
endchoice
602+
603+
config VECTORS_ADDR
604+
hex "Kernel vectors virtual address"
605+
default 0x00000000
606+
depends on XTENSA_VECTORS_SEPARATE
607+
help
608+
This is the virtual address of the (relocatable) vectors base.
609+
It must be within KSEG if MMU is used.
584610

585611
config XIP_DATA_ADDR
586612
hex "XIP kernel data virtual address"

‎arch/xtensa/configs/audio_kc705_defconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ CONFIG_PROFILING=y
2121
CONFIG_OPROFILE=y
2222
CONFIG_MODULES=y
2323
CONFIG_MODULE_UNLOAD=y
24-
# CONFIG_IOSCHED_DEADLINE is not set
25-
# CONFIG_IOSCHED_CFQ is not set
2624
CONFIG_XTENSA_VARIANT_CUSTOM=y
2725
CONFIG_XTENSA_VARIANT_CUSTOM_NAME="test_kc705_hifi"
2826
CONFIG_XTENSA_UNALIGNED_USER=y

‎arch/xtensa/configs/cadence_csp_defconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ CONFIG_MODULES=y
2727
CONFIG_MODULE_FORCE_LOAD=y
2828
CONFIG_MODULE_UNLOAD=y
2929
CONFIG_MODULE_FORCE_UNLOAD=y
30-
# CONFIG_IOSCHED_DEADLINE is not set
31-
# CONFIG_IOSCHED_CFQ is not set
3230
CONFIG_XTENSA_VARIANT_CUSTOM=y
3331
CONFIG_XTENSA_VARIANT_CUSTOM_NAME="csp"
3432
CONFIG_XTENSA_UNALIGNED_USER=y

‎arch/xtensa/configs/generic_kc705_defconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ CONFIG_PROFILING=y
2121
CONFIG_OPROFILE=y
2222
CONFIG_MODULES=y
2323
CONFIG_MODULE_UNLOAD=y
24-
# CONFIG_IOSCHED_DEADLINE is not set
25-
# CONFIG_IOSCHED_CFQ is not set
2624
CONFIG_XTENSA_VARIANT_DC233C=y
2725
CONFIG_XTENSA_UNALIGNED_USER=y
2826
CONFIG_PREEMPT=y

‎arch/xtensa/configs/iss_defconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
CONFIG_SYSVIPC=y
22
CONFIG_LOG_BUF_SHIFT=14
33
CONFIG_EXPERT=y
4-
# CONFIG_IOSCHED_DEADLINE is not set
5-
# CONFIG_IOSCHED_CFQ is not set
64
# CONFIG_PCI is not set
75
CONFIG_CMDLINE_BOOL=y
86
CONFIG_CMDLINE="console=ttyS0,38400 eth0=tuntap,,tap0 ip=192.168.168.5:192.168.168.1 root=nfs nfsroot=192.168.168.1:/opt/montavista/pro/devkit/xtensa/linux_be/target memmap=128M@0"

‎arch/xtensa/configs/nommu_kc705_defconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ CONFIG_KALLSYMS_ALL=y
2525
CONFIG_PERF_EVENTS=y
2626
CONFIG_MODULES=y
2727
CONFIG_MODULE_UNLOAD=y
28-
# CONFIG_IOSCHED_DEADLINE is not set
29-
# CONFIG_IOSCHED_CFQ is not set
3028
CONFIG_XTENSA_VARIANT_CUSTOM=y
3129
CONFIG_XTENSA_VARIANT_CUSTOM_NAME="de212"
3230
# CONFIG_XTENSA_VARIANT_MMU is not set

‎arch/xtensa/configs/smp_lx200_defconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ CONFIG_PROFILING=y
2121
CONFIG_OPROFILE=y
2222
CONFIG_MODULES=y
2323
CONFIG_MODULE_UNLOAD=y
24-
# CONFIG_IOSCHED_DEADLINE is not set
25-
# CONFIG_IOSCHED_CFQ is not set
2624
CONFIG_XTENSA_VARIANT_CUSTOM=y
2725
CONFIG_XTENSA_VARIANT_CUSTOM_NAME="test_mmuhifi_c3"
2826
CONFIG_XTENSA_UNALIGNED_USER=y
@@ -32,7 +30,6 @@ CONFIG_SMP=y
3230
CONFIG_HOTPLUG_CPU=y
3331
# CONFIG_INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX is not set
3432
# CONFIG_PCI is not set
35-
CONFIG_VECTORS_OFFSET=0x00002000
3633
CONFIG_XTENSA_PLATFORM_XTFPGA=y
3734
CONFIG_CMDLINE_BOOL=y
3835
CONFIG_CMDLINE="earlycon=uart8250,mmio32native,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug memmap=96M@0"

‎arch/xtensa/configs/virt_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ CONFIG_KALLSYMS_ALL=y
1919
CONFIG_PERF_EVENTS=y
2020
CONFIG_XTENSA_VARIANT_DC233C=y
2121
CONFIG_XTENSA_UNALIGNED_USER=y
22-
CONFIG_VECTORS_OFFSET=0x00002000
2322
CONFIG_XTENSA_KSEG_512M=y
2423
CONFIG_HIGHMEM=y
2524
CONFIG_CMDLINE_BOOL=y

‎arch/xtensa/include/asm/asmmacro.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,6 @@
237237
#error Unsupported Xtensa ABI
238238
#endif
239239

240+
#define __XTENSA_HANDLER .section ".exception.text", "ax"
241+
240242
#endif /* _XTENSA_ASMMACRO_H */

‎arch/xtensa/include/asm/core.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@
1010
#define XCHAL_HAVE_EXCLUSIVE 0
1111
#endif
1212

13+
#ifndef XCHAL_HAVE_EXTERN_REGS
14+
#define XCHAL_HAVE_EXTERN_REGS 0
15+
#endif
16+
1317
#ifndef XCHAL_HAVE_MPU
1418
#define XCHAL_HAVE_MPU 0
1519
#endif
1620

21+
#ifndef XCHAL_HAVE_VECBASE
22+
#define XCHAL_HAVE_VECBASE 0
23+
#endif
24+
1725
#ifndef XCHAL_SPANNING_WAY
1826
#define XCHAL_SPANNING_WAY 0
1927
#endif

0 commit comments

Comments
 (0)