Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'next/misc' into for-next

+63 -42
+12
arch/riscv/boot/Makefile
··· 24 24 $(obj)/Image.gz: $(obj)/Image FORCE 25 25 $(call if_changed,gzip) 26 26 27 + $(obj)/Image.bz2: $(obj)/Image FORCE 28 + $(call if_changed,bzip2) 29 + 30 + $(obj)/Image.lz4: $(obj)/Image FORCE 31 + $(call if_changed,lz4) 32 + 33 + $(obj)/Image.lzma: $(obj)/Image FORCE 34 + $(call if_changed,lzma) 35 + 36 + $(obj)/Image.lzo: $(obj)/Image FORCE 37 + $(call if_changed,lzo) 38 + 27 39 install: 28 40 $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ 29 41 $(obj)/Image System.map "$(INSTALL_PATH)"
+7
arch/riscv/boot/dts/sifive/fu540-c000.dtsi
··· 162 162 clocks = <&prci PRCI_CLK_TLCLK>; 163 163 status = "disabled"; 164 164 }; 165 + dma: dma@3000000 { 166 + compatible = "sifive,fu540-c000-pdma"; 167 + reg = <0x0 0x3000000 0x0 0x8000>; 168 + interrupt-parent = <&plic0>; 169 + interrupts = <23 24 25 26 27 28 29 30>; 170 + #dma-cells = <1>; 171 + }; 165 172 uart1: serial@10011000 { 166 173 compatible = "sifive,fu540-c000-uart", "sifive,uart0"; 167 174 reg = <0x0 0x10011000 0x0 0x1000>;
+1
arch/riscv/include/asm/asm-prototypes.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #ifndef _ASM_RISCV_PROTOTYPES_H 3 + #define _ASM_RISCV_PROTOTYPES_H 3 4 4 5 #include <linux/ftrace.h> 5 6 #include <asm-generic/asm-prototypes.h>
+3 -3
arch/riscv/include/asm/current.h
··· 7 7 */ 8 8 9 9 10 - #ifndef __ASM_CURRENT_H 11 - #define __ASM_CURRENT_H 10 + #ifndef _ASM_RISCV_CURRENT_H 11 + #define _ASM_RISCV_CURRENT_H 12 12 13 13 #include <linux/bug.h> 14 14 #include <linux/compiler.h> ··· 34 34 35 35 #endif /* __ASSEMBLY__ */ 36 36 37 - #endif /* __ASM_CURRENT_H */ 37 + #endif /* _ASM_RISCV_CURRENT_H */
+5
arch/riscv/include/asm/ftrace.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 /* Copyright (C) 2017 Andes Technology Corporation */ 3 3 4 + #ifndef _ASM_RISCV_FTRACE_H 5 + #define _ASM_RISCV_FTRACE_H 6 + 4 7 /* 5 8 * The graph frame test is not possible if CONFIG_FRAME_POINTER is not enabled. 6 9 * Check arch/riscv/kernel/mcount.S for detail. ··· 67 64 */ 68 65 #define MCOUNT_INSN_SIZE 8 69 66 #endif 67 + 68 + #endif /* _ASM_RISCV_FTRACE_H */
+3 -3
arch/riscv/include/asm/futex.h
··· 4 4 * Copyright (c) 2018 Jim Wilson (jimw@sifive.com) 5 5 */ 6 6 7 - #ifndef _ASM_FUTEX_H 8 - #define _ASM_FUTEX_H 7 + #ifndef _ASM_RISCV_FUTEX_H 8 + #define _ASM_RISCV_FUTEX_H 9 9 10 10 #include <linux/futex.h> 11 11 #include <linux/uaccess.h> ··· 112 112 return ret; 113 113 } 114 114 115 - #endif /* _ASM_FUTEX_H */ 115 + #endif /* _ASM_RISCV_FUTEX_H */
+4 -3
arch/riscv/include/asm/hwcap.h
··· 5 5 * Copyright (C) 2012 ARM Ltd. 6 6 * Copyright (C) 2017 SiFive 7 7 */ 8 - #ifndef __ASM_HWCAP_H 9 - #define __ASM_HWCAP_H 8 + #ifndef _ASM_RISCV_HWCAP_H 9 + #define _ASM_RISCV_HWCAP_H 10 10 11 11 #include <uapi/asm/hwcap.h> 12 12 ··· 23 23 24 24 extern unsigned long elf_hwcap; 25 25 #endif 26 - #endif 26 + 27 + #endif /* _ASM_RISCV_HWCAP_H */
+3 -3
arch/riscv/include/asm/image.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 - #ifndef __ASM_IMAGE_H 4 - #define __ASM_IMAGE_H 3 + #ifndef _ASM_RISCV_IMAGE_H 4 + #define _ASM_RISCV_IMAGE_H 5 5 6 6 #define RISCV_IMAGE_MAGIC "RISCV\0\0\0" 7 7 #define RISCV_IMAGE_MAGIC2 "RSC\x05" ··· 62 62 u32 res4; 63 63 }; 64 64 #endif /* __ASSEMBLY__ */ 65 - #endif /* __ASM_IMAGE_H */ 65 + #endif /* _ASM_RISCV_IMAGE_H */
+3 -3
arch/riscv/include/asm/kprobes.h
··· 6 6 * Copyright (C) 2017 SiFive 7 7 */ 8 8 9 - #ifndef _RISCV_KPROBES_H 10 - #define _RISCV_KPROBES_H 9 + #ifndef _ASM_RISCV_KPROBES_H 10 + #define _ASM_RISCV_KPROBES_H 11 11 12 12 #include <asm-generic/kprobes.h> 13 13 14 - #endif /* _RISCV_KPROBES_H */ 14 + #endif /* _ASM_RISCV_KPROBES_H */
+1 -1
arch/riscv/include/asm/mmiowb.h
··· 11 11 12 12 #include <asm-generic/mmiowb.h> 13 13 14 - #endif /* ASM_RISCV_MMIOWB_H */ 14 + #endif /* _ASM_RISCV_MMIOWB_H */
+3 -3
arch/riscv/include/asm/pci.h
··· 3 3 * Copyright (C) 2016 SiFive 4 4 */ 5 5 6 - #ifndef __ASM_RISCV_PCI_H 7 - #define __ASM_RISCV_PCI_H 6 + #ifndef _ASM_RISCV_PCI_H 7 + #define _ASM_RISCV_PCI_H 8 8 9 9 #include <linux/types.h> 10 10 #include <linux/slab.h> ··· 34 34 } 35 35 #endif /* CONFIG_PCI */ 36 36 37 - #endif /* __ASM_PCI_H */ 37 + #endif /* _ASM_RISCV_PCI_H */
+1 -1
arch/riscv/include/asm/sbi.h
··· 94 94 SBI_CALL_4(SBI_REMOTE_SFENCE_VMA_ASID, hart_mask, start, size, asid); 95 95 } 96 96 97 - #endif 97 + #endif /* _ASM_RISCV_SBI_H */
+3 -3
arch/riscv/include/asm/sparsemem.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 - #ifndef __ASM_SPARSEMEM_H 4 - #define __ASM_SPARSEMEM_H 3 + #ifndef _ASM_RISCV_SPARSEMEM_H 4 + #define _ASM_RISCV_SPARSEMEM_H 5 5 6 6 #ifdef CONFIG_SPARSEMEM 7 7 #define MAX_PHYSMEM_BITS CONFIG_PA_BITS 8 8 #define SECTION_SIZE_BITS 27 9 9 #endif /* CONFIG_SPARSEMEM */ 10 10 11 - #endif /* __ASM_SPARSEMEM_H */ 11 + #endif /* _ASM_RISCV_SPARSEMEM_H */
+1 -1
arch/riscv/include/asm/spinlock_types.h
··· 22 22 23 23 #define __ARCH_RW_LOCK_UNLOCKED { 0 } 24 24 25 - #endif 25 + #endif /* _ASM_RISCV_SPINLOCK_TYPES_H */
+3 -3
arch/riscv/include/uapi/asm/elf.h
··· 9 9 * (at your option) any later version. 10 10 */ 11 11 12 - #ifndef _UAPI_ASM_ELF_H 13 - #define _UAPI_ASM_ELF_H 12 + #ifndef _UAPI_ASM_RISCV_ELF_H 13 + #define _UAPI_ASM_RISCV_ELF_H 14 14 15 15 #include <asm/ptrace.h> 16 16 ··· 95 95 #define R_RISCV_32_PCREL 57 96 96 97 97 98 - #endif /* _UAPI_ASM_ELF_H */ 98 + #endif /* _UAPI_ASM_RISCV_ELF_H */
+3 -3
arch/riscv/include/uapi/asm/hwcap.h
··· 5 5 * Copyright (C) 2012 ARM Ltd. 6 6 * Copyright (C) 2017 SiFive 7 7 */ 8 - #ifndef __UAPI_ASM_HWCAP_H 9 - #define __UAPI_ASM_HWCAP_H 8 + #ifndef _UAPI_ASM_RISCV_HWCAP_H 9 + #define _UAPI_ASM_RISCV_HWCAP_H 10 10 11 11 /* 12 12 * Linux saves the floating-point registers according to the ISA Linux is ··· 22 22 #define COMPAT_HWCAP_ISA_D (1 << ('D' - 'A')) 23 23 #define COMPAT_HWCAP_ISA_C (1 << ('C' - 'A')) 24 24 25 - #endif 25 + #endif /* _UAPI_ASM_RISCV_HWCAP_H */
+3 -3
arch/riscv/include/uapi/asm/ucontext.h
··· 5 5 * 6 6 * This file was copied from arch/arm64/include/uapi/asm/ucontext.h 7 7 */ 8 - #ifndef _UAPI__ASM_UCONTEXT_H 9 - #define _UAPI__ASM_UCONTEXT_H 8 + #ifndef _UAPI_ASM_RISCV_UCONTEXT_H 9 + #define _UAPI_ASM_RISCV_UCONTEXT_H 10 10 11 11 #include <linux/types.h> 12 12 ··· 31 31 struct sigcontext uc_mcontext; 32 32 }; 33 33 34 - #endif /* _UAPI__ASM_UCONTEXT_H */ 34 + #endif /* _UAPI_ASM_RISCV_UCONTEXT_H */
+4 -9
arch/riscv/mm/init.c
··· 273 273 #define get_pgd_next_virt(__pa) get_pmd_virt(__pa) 274 274 #define create_pgd_next_mapping(__nextp, __va, __pa, __sz, __prot) \ 275 275 create_pmd_mapping(__nextp, __va, __pa, __sz, __prot) 276 - #define PTE_PARENT_SIZE PMD_SIZE 277 276 #define fixmap_pgd_next fixmap_pmd 278 277 #else 279 278 #define pgd_next_t pte_t ··· 280 281 #define get_pgd_next_virt(__pa) get_pte_virt(__pa) 281 282 #define create_pgd_next_mapping(__nextp, __va, __pa, __sz, __prot) \ 282 283 create_pte_mapping(__nextp, __va, __pa, __sz, __prot) 283 - #define PTE_PARENT_SIZE PGDIR_SIZE 284 284 #define fixmap_pgd_next fixmap_pte 285 285 #endif 286 286 ··· 312 314 313 315 static uintptr_t __init best_map_size(phys_addr_t base, phys_addr_t size) 314 316 { 315 - uintptr_t map_size = PAGE_SIZE; 317 + /* Upgrade to PMD_SIZE mappings whenever possible */ 318 + if ((base & (PMD_SIZE - 1)) || (size & (PMD_SIZE - 1))) 319 + return PAGE_SIZE; 316 320 317 - /* Upgrade to PMD/PGDIR mappings whenever possible */ 318 - if (!(base & (PTE_PARENT_SIZE - 1)) && 319 - !(size & (PTE_PARENT_SIZE - 1))) 320 - map_size = PTE_PARENT_SIZE; 321 - 322 - return map_size; 321 + return PMD_SIZE; 323 322 } 324 323 325 324 /*