1. Nov 21, 2018
    • Olof Johansson's avatar
      RISC-V: Silence some module warnings on 32-bit · 998246b5
      Olof Johansson authored
      
      
      Fixes:
      
      arch/riscv/kernel/module.c: In function 'apply_r_riscv_32_rela':
      ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=]
      arch/riscv/kernel/module.c:23:27: note: format string is defined here
      arch/riscv/kernel/module.c: In function 'apply_r_riscv_pcrel_hi20_rela':
      ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=]
      arch/riscv/kernel/module.c:104:23: note: format string is defined here
      arch/riscv/kernel/module.c: In function 'apply_r_riscv_hi20_rela':
      ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=]
      arch/riscv/kernel/module.c:146:23: note: format string is defined here
      arch/riscv/kernel/module.c: In function 'apply_r_riscv_got_hi20_rela':
      ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=]
      arch/riscv/kernel/module.c:190:60: note: format string is defined here
      arch/riscv/kernel/module.c: In function 'apply_r_riscv_call_plt_rela':
      ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=]
      arch/riscv/kernel/module.c:214:24: note: format string is defined here
      arch/riscv/kernel/module.c: In function 'apply_r_riscv_call_rela':
      ./include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'Elf32_Addr' {aka 'unsigned int'} [-Wformat=]
      arch/riscv/kernel/module.c:236:23: note: format string is defined here
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
      998246b5
    • Olof Johansson's avatar
      RISC-V: lib: Fix build error for 64-bit · 69f76e01
      Olof Johansson authored
      Fixes the following build error from tinyconfig:
      
      riscv64-unknown-linux-gnu-ld: kernel/sched/fair.o: in function `.L8':
      fair.c:(.text+0x70): undefined reference to `__lshrti3'
      riscv64-unknown-linux-gnu-ld: kernel/time/clocksource.o: in function `.L0 ':
      clocksource.c:(.text+0x334): undefined reference to `__lshrti3'
      
      Fixes: 7f47c73b
      
       ("RISC-V: Build tishift only on 64-bit")
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
      69f76e01
    • David Abdurachmanov's avatar
      riscv: add missing vdso_install target · 6823875a
      David Abdurachmanov authored
      
      
      Building kernel 4.20 for Fedora as RPM fails, because riscv is missing
      vdso_install target in arch/riscv/Makefile.
      
      Signed-off-by: default avatarDavid Abdurachmanov <david.abdurachmanov@gmail.com>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
      6823875a
    • David Abdurachmanov's avatar
      riscv: fix spacing in struct pt_regs · 00404917
      David Abdurachmanov authored
      
      
      Replace 8 spaces with tab to match styling.
      
      Signed-off-by: default avatarDavid Abdurachmanov <david.abdurachmanov@gmail.com>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
      00404917
    • Anup Patel's avatar
      RISC-V: defconfig: Enable printk timestamps · bbe098ce
      Anup Patel authored
      
      
      The printk timestamps are very useful information to visually see
      where kernel is spending time during boot. It also helps us see
      the timing of hotplug events at runtime.
      
      This patch enables printk timestamps in RISC-V defconfig so that
      we have it enabled by default (similar to other architectures
      such as x86_64, arm64, etc).
      
      Signed-off-by: default avatarAnup Patel <anup@brainfault.org>
      Acked-by: default avatarOlof Johansson <olof@lixom.net>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
      bbe098ce
    • Anup Patel's avatar
      RISC-V: refresh defconfig · 8e5e5a02
      Anup Patel authored
      
      
      This patch updates defconfig using savedefconfig on Linux-4.19.  It is
      intended to have no functional change.
      
      Signed-off-by: default avatarAnup Patel <anup@brainfault.org>
      Reviewed-by: default avatarPalmer Dabbelt <palmer@sifive.com>
      Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
      8e5e5a02
  2. Nov 07, 2018
  3. Oct 30, 2018
    • Palmer Dabbelt's avatar
      Merge tag 'riscv-for-linus-4.20-mw0' into riscv-linux-4.19 · 15f0d45f
      Palmer Dabbelt authored
      RISC-V Patches for the 4.20 Merge Window, Part 1
      
      This patch set contains a lot (at least, for me) of improvements to the
      RISC-V kernel port:
      
      * The removal of some cacheinfo values that were bogus.
      * On systems with F but without D the kernel will not show the F
        extension to userspace, as it isn't actually supported.
      * Support for futexes.
      * Removal of some unused code.
      * Cleanup of some menuconfig entries.
      * Support for systems without a floating-point unit, and for building
        kernels that will never use the floating-point unit.
      * More fixes to the RV32I port, which regressed again.  It's really time
        to get this into a regression test somewhere so I stop breaking it.
        Thanks to Zong for resurrecting it again!
      * Various fixes that resulted from a year old review of our original
        patch set that I finally got around to.
      * Various improvements to SMP support, largely based around having
        switched to logical hart numbering, as well as some interrupt
        improvements.  This one is in the same patch set as above, thanks to
        Atish for sheparding everything though as my patch set was a bit of a
        mess.
      
      I'm pretty sure this is our largest patch set since the original kernel
      contribution, and it's certainly the one with the most contributors.
      While I don't have anything else I know I'm going to submit for the
      merge window, I would be somewhat surprised if I didn't screw anything
      up.
      
      Thanks for the help, everyone!
      15f0d45f
  4. Oct 23, 2018