0c34e79e52
This patchset allows to have a single kernel for sv39 and sv48 without being relocatable. The idea comes from Arnd Bergmann who suggested to do the same as x86, that is mapping the kernel to the end of the address space, which allows the kernel to be linked at the same address for both sv39 and sv48 and then does not require to be relocated at runtime. This implements sv48 support at runtime. The kernel will try to boot with 4-level page table and will fallback to 3-level if the HW does not support it. Folding the 4th level into a 3-level page table has almost no cost at runtime. Note that kasan region had to be moved to the end of the address space since its location must be known at compile-time and then be valid for both sv39 and sv48 (and sv57 that is coming). * riscv-sv48-v3: riscv: Explicit comment about user virtual address space size riscv: Use pgtable_l4_enabled to output mmu_type in cpuinfo riscv: Implement sv48 support asm-generic: Prepare for riscv use of pud_alloc_one and pud_free riscv: Allow to dynamically define VA_BITS riscv: Introduce functions to switch pt_ops riscv: Split early kasan mapping to prepare sv48 introduction riscv: Move KASAN mapping next to the kernel mapping riscv: Get rid of MAXPHYSMEM configs Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
89 lines
2.4 KiB
Plaintext
89 lines
2.4 KiB
Plaintext
# CONFIG_CPU_ISOLATION is not set
|
|
CONFIG_LOG_BUF_SHIFT=13
|
|
CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=12
|
|
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
|
# CONFIG_SYSFS_SYSCALL is not set
|
|
# CONFIG_FHANDLE is not set
|
|
# CONFIG_BASE_FULL is not set
|
|
# CONFIG_FUTEX is not set
|
|
# CONFIG_EPOLL is not set
|
|
# CONFIG_SIGNALFD is not set
|
|
# CONFIG_TIMERFD is not set
|
|
# CONFIG_EVENTFD is not set
|
|
# CONFIG_AIO is not set
|
|
# CONFIG_IO_URING is not set
|
|
# CONFIG_ADVISE_SYSCALLS is not set
|
|
# CONFIG_MEMBARRIER is not set
|
|
# CONFIG_KALLSYMS is not set
|
|
CONFIG_EMBEDDED=y
|
|
# CONFIG_VM_EVENT_COUNTERS is not set
|
|
# CONFIG_COMPAT_BRK is not set
|
|
CONFIG_SLOB=y
|
|
# CONFIG_MMU is not set
|
|
CONFIG_SOC_CANAAN=y
|
|
CONFIG_SMP=y
|
|
CONFIG_NR_CPUS=2
|
|
CONFIG_CMDLINE="earlycon console=ttySIF0 rootdelay=2 root=/dev/mmcblk0p1 ro"
|
|
CONFIG_CMDLINE_FORCE=y
|
|
# CONFIG_SECCOMP is not set
|
|
# CONFIG_STACKPROTECTOR is not set
|
|
# CONFIG_GCC_PLUGINS is not set
|
|
# CONFIG_MQ_IOSCHED_DEADLINE is not set
|
|
# CONFIG_MQ_IOSCHED_KYBER is not set
|
|
CONFIG_BINFMT_FLAT=y
|
|
# CONFIG_COREDUMP is not set
|
|
CONFIG_DEVTMPFS=y
|
|
CONFIG_DEVTMPFS_MOUNT=y
|
|
# CONFIG_FW_LOADER is not set
|
|
# CONFIG_ALLOW_DEV_COREDUMP is not set
|
|
# CONFIG_BLK_DEV is not set
|
|
# CONFIG_INPUT is not set
|
|
# CONFIG_SERIO is not set
|
|
# CONFIG_VT is not set
|
|
# CONFIG_LEGACY_PTYS is not set
|
|
# CONFIG_LDISC_AUTOLOAD is not set
|
|
# CONFIG_HW_RANDOM is not set
|
|
# CONFIG_DEVMEM is not set
|
|
CONFIG_I2C=y
|
|
CONFIG_I2C_CHARDEV=y
|
|
# CONFIG_I2C_HELPER_AUTO is not set
|
|
CONFIG_I2C_DESIGNWARE_PLATFORM=y
|
|
CONFIG_SPI=y
|
|
# CONFIG_SPI_MEM is not set
|
|
CONFIG_SPI_DESIGNWARE=y
|
|
CONFIG_SPI_DW_MMIO=y
|
|
# CONFIG_GPIO_CDEV_V1 is not set
|
|
CONFIG_GPIO_DWAPB=y
|
|
CONFIG_GPIO_SIFIVE=y
|
|
CONFIG_POWER_RESET=y
|
|
CONFIG_POWER_RESET_SYSCON=y
|
|
# CONFIG_HWMON is not set
|
|
# CONFIG_USB_SUPPORT is not set
|
|
CONFIG_MMC=y
|
|
# CONFIG_PWRSEQ_EMMC is not set
|
|
# CONFIG_PWRSEQ_SIMPLE is not set
|
|
CONFIG_MMC_SPI=y
|
|
CONFIG_NEW_LEDS=y
|
|
CONFIG_LEDS_CLASS=y
|
|
CONFIG_LEDS_GPIO=y
|
|
CONFIG_LEDS_USER=y
|
|
# CONFIG_VIRTIO_MENU is not set
|
|
# CONFIG_VHOST_MENU is not set
|
|
CONFIG_EXT2_FS=y
|
|
# CONFIG_FILE_LOCKING is not set
|
|
# CONFIG_DNOTIFY is not set
|
|
# CONFIG_INOTIFY_USER is not set
|
|
# CONFIG_MISC_FILESYSTEMS is not set
|
|
CONFIG_LSM="[]"
|
|
CONFIG_PRINTK_TIME=y
|
|
# CONFIG_SYMBOLIC_ERRNAME is not set
|
|
# CONFIG_DEBUG_BUGVERBOSE is not set
|
|
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set
|
|
# CONFIG_FRAME_POINTER is not set
|
|
# CONFIG_DEBUG_MISC is not set
|
|
CONFIG_PANIC_ON_OOPS=y
|
|
# CONFIG_SCHED_DEBUG is not set
|
|
# CONFIG_RCU_TRACE is not set
|
|
# CONFIG_FTRACE is not set
|
|
# CONFIG_RUNTIME_TESTING_MENU is not set
|