-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'riscv-for-linus-5.10-mw0' of git://git.kernel.org/pub/scm/…
…linux/kernel/git/riscv/linux Pull RISC-V updates from Palmer Dabbelt: "A handful of cleanups and new features: - A handful of cleanups for our page fault handling - Improvements to how we fill out cacheinfo - Support for EFI-based systems" * tag 'riscv-for-linus-5.10-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (22 commits) RISC-V: Add page table dump support for uefi RISC-V: Add EFI runtime services RISC-V: Add EFI stub support. RISC-V: Add PE/COFF header for EFI stub RISC-V: Implement late mapping page table allocation functions RISC-V: Add early ioremap support RISC-V: Move DT mapping outof fixmap RISC-V: Fix duplicate included thread_info.h riscv/mm/fault: Set FAULT_FLAG_INSTRUCTION flag in do_page_fault() riscv/mm/fault: Fix inline placement in vmalloc_fault() declaration riscv: Add cache information in AUX vector riscv: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO riscv: Set more data to cacheinfo riscv/mm/fault: Move access error check to function riscv/mm/fault: Move FAULT_FLAG_WRITE handling in do_page_fault() riscv/mm/fault: Simplify mm_fault_error() riscv/mm/fault: Move fault error handling to mm_fault_error() riscv/mm/fault: Simplify fault error handling riscv/mm/fault: Move vmalloc fault handling to vmalloc_fault() riscv/mm/fault: Move bad area handling to bad_area() ...
- Loading branch information
Showing
31 changed files
with
1,212 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* | ||
* Copyright (C) 2020 Western Digital Corporation or its affiliates. | ||
*/ | ||
#ifndef _ASM_EFI_H | ||
#define _ASM_EFI_H | ||
|
||
#include <asm/csr.h> | ||
#include <asm/io.h> | ||
#include <asm/mmu_context.h> | ||
#include <asm/ptrace.h> | ||
#include <asm/tlbflush.h> | ||
|
||
#ifdef CONFIG_EFI | ||
extern void efi_init(void); | ||
#else | ||
#define efi_init() | ||
#endif | ||
|
||
int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md); | ||
int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md); | ||
|
||
#define arch_efi_call_virt_setup() efi_virtmap_load() | ||
#define arch_efi_call_virt_teardown() efi_virtmap_unload() | ||
|
||
#define arch_efi_call_virt(p, f, args...) p->f(args) | ||
|
||
#define ARCH_EFI_IRQ_FLAGS_MASK (SR_IE | SR_SPIE) | ||
|
||
/* on RISC-V, the FDT may be located anywhere in system RAM */ | ||
static inline unsigned long efi_get_max_fdt_addr(unsigned long image_addr) | ||
{ | ||
return ULONG_MAX; | ||
} | ||
|
||
/* Load initrd at enough distance from DRAM start */ | ||
static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr) | ||
{ | ||
return image_addr + SZ_256M; | ||
} | ||
|
||
#define alloc_screen_info(x...) (&screen_info) | ||
|
||
static inline void free_screen_info(struct screen_info *si) | ||
{ | ||
} | ||
|
||
static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt) | ||
{ | ||
} | ||
|
||
void efi_virtmap_load(void); | ||
void efi_virtmap_unload(void); | ||
|
||
#endif /* _ASM_EFI_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-only */ | ||
/* | ||
* Copyright (C) 2020 Western Digital Corporation or its affiliates. | ||
*/ | ||
#ifndef __ASM_SECTIONS_H | ||
#define __ASM_SECTIONS_H | ||
|
||
#include <asm-generic/sections.h> | ||
|
||
extern char _start[]; | ||
extern char _start_kernel[]; | ||
|
||
#endif /* __ASM_SECTIONS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,4 +55,6 @@ obj-$(CONFIG_KGDB) += kgdb.o | |
|
||
obj-$(CONFIG_JUMP_LABEL) += jump_label.o | ||
|
||
obj-$(CONFIG_EFI) += efi.o | ||
|
||
clean: |
Oops, something went wrong.