[GIT PULL] RISC-V Patches for 5.1-rc4

From: Palmer Dabbelt
Date: Thu Apr 04 2019 - 19:29:54 EST


The following changes since commit 8c2ffd9174779014c3fe1f96d9dc3641d9175f00:

Linux 5.1-rc2 (2019-03-24 14:02:26 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/palmer/riscv-linux.git tags/riscv-for-linus-5.1-rc4

for you to fetch changes up to da4ed37873918eeb4e8db7f0cf55e0a7e18788c3:

RISC-V: Use IS_ENABLED(CONFIG_CMODEL_MEDLOW) (2019-03-28 23:18:51 -0700)

----------------------------------------------------------------
RISC-V Patches for 5.1-rc4

I dropped the ball a bit here: these patches should all probably have
been part of rc2, but I wanted to get around to properly testing them in
the various configurations (qemu32, qeum64, unleashed) first.
Unfortunately I've been traveling and didn't have time to actually do
that, but since these fix concrete bugs and pass my old set of tests I
don't want to delay the fixes any longer.

There are four independent fixes here:

* A fix for the rv32 port that corrects the 64-bit user accesor's fixup
label address.
* A fix for a regression introduced during the merge window that broke
medlow configurations at run time. This patch also includes a fix
that disables ftrace for the same set of functions, which was found by
inspection at the same time.
* A modification of the memory map to avoid overlapping the FIXMAP and
VMALLOC regions on systems with small memory maps.
* A fix to the module handling code to use the correct syntax for
probing Kconfig entries.

These have passed my standard test flow, but I didn't have time to
expand that like I said I would.

----------------------------------------------------------------
Alan Kao (1):
riscv: fix accessing 8-byte variable from RV32

Anup Patel (2):
RISC-V: Always compile mm/init.c with cmodel=medany and notrace
RISC-V: Fix FIXMAP_TOP to avoid overlap with VMALLOC area

Joe Perches (1):
RISC-V: Use IS_ENABLED(CONFIG_CMODEL_MEDLOW)

arch/riscv/include/asm/fixmap.h | 2 +-
arch/riscv/include/asm/uaccess.h | 2 +-
arch/riscv/kernel/Makefile | 3 ---
arch/riscv/kernel/module.c | 2 +-
arch/riscv/kernel/setup.c | 8 --------
arch/riscv/mm/Makefile | 6 ++++++
arch/riscv/mm/init.c | 28 ++++++++++++++++++++++++++++
7 files changed, 37 insertions(+), 14 deletions(-)