diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-17 11:58:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-17 11:58:04 -0400 |
commit | 57a8ec387e1441ea5e1232bc0749fb99a8cba7e7 (patch) | |
tree | b5fb03fc6bc5754de8b5b1f8b0e4f36d67c8315c /arch/arm64/include/asm/sysreg.h | |
parent | 0a8ad0ffa4d80a544f6cbff703bf6394339afcdf (diff) | |
parent | 43e11fa2d1d3b6e35629fa556eb7d571edba2010 (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge more updates from Andrew Morton:
"VM:
- z3fold fixes and enhancements by Henry Burns and Vitaly Wool
- more accurate reclaimed slab caches calculations by Yafang Shao
- fix MAP_UNINITIALIZED UAPI symbol to not depend on config, by
Christoph Hellwig
- !CONFIG_MMU fixes by Christoph Hellwig
- new novmcoredd parameter to omit device dumps from vmcore, by
Kairui Song
- new test_meminit module for testing heap and pagealloc
initialization, by Alexander Potapenko
- ioremap improvements for huge mappings, by Anshuman Khandual
- generalize kprobe page fault handling, by Anshuman Khandual
- device-dax hotplug fixes and improvements, by Pavel Tatashin
- enable synchronous DAX fault on powerpc, by Aneesh Kumar K.V
- add pte_devmap() support for arm64, by Robin Murphy
- unify locked_vm accounting with a helper, by Daniel Jordan
- several misc fixes
core/lib:
- new typeof_member() macro including some users, by Alexey Dobriyan
- make BIT() and GENMASK() available in asm, by Masahiro Yamada
- changed LIST_POISON2 on x86_64 to 0xdead000000000122 for better
code generation, by Alexey Dobriyan
- rbtree code size optimizations, by Michel Lespinasse
- convert struct pid count to refcount_t, by Joel Fernandes
get_maintainer.pl:
- add --no-moderated switch to skip moderated ML's, by Joe Perches
misc:
- ptrace PTRACE_GET_SYSCALL_INFO interface
- coda updates
- gdb scripts, various"
[ Using merge message suggestion from Vlastimil Babka, with some editing - Linus ]
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (100 commits)
fs/select.c: use struct_size() in kmalloc()
mm: add account_locked_vm utility function
arm64: mm: implement pte_devmap support
mm: introduce ARCH_HAS_PTE_DEVMAP
mm: clean up is_device_*_page() definitions
mm/mmap: move common defines to mman-common.h
mm: move MAP_SYNC to asm-generic/mman-common.h
device-dax: "Hotremove" persistent memory that is used like normal RAM
mm/hotplug: make remove_memory() interface usable
device-dax: fix memory and resource leak if hotplug fails
include/linux/lz4.h: fix spelling and copy-paste errors in documentation
ipc/mqueue.c: only perform resource calculation if user valid
include/asm-generic/bug.h: fix "cut here" for WARN_ON for __WARN_TAINT architectures
scripts/gdb: add helpers to find and list devices
scripts/gdb: add lx-genpd-summary command
drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl
kernel/pid.c: convert struct pid count to refcount_t
drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings
select: shift restore_saved_sigmask_unless() into poll_select_copy_remaining()
select: change do_poll() to return -ERESTARTNOHAND rather than -EINTR
...
Diffstat (limited to 'arch/arm64/include/asm/sysreg.h')
-rw-r--r-- | arch/arm64/include/asm/sysreg.h | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index a7522fca1105..06ebcfef73df 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #ifndef __ASM_SYSREG_H | 9 | #ifndef __ASM_SYSREG_H |
10 | #define __ASM_SYSREG_H | 10 | #define __ASM_SYSREG_H |
11 | 11 | ||
12 | #include <linux/const.h> | 12 | #include <linux/bits.h> |
13 | #include <linux/stringify.h> | 13 | #include <linux/stringify.h> |
14 | 14 | ||
15 | /* | 15 | /* |
@@ -478,31 +478,31 @@ | |||
478 | #define SYS_CNTV_CVAL_EL02 sys_reg(3, 5, 14, 3, 2) | 478 | #define SYS_CNTV_CVAL_EL02 sys_reg(3, 5, 14, 3, 2) |
479 | 479 | ||
480 | /* Common SCTLR_ELx flags. */ | 480 | /* Common SCTLR_ELx flags. */ |
481 | #define SCTLR_ELx_DSSBS (_BITUL(44)) | 481 | #define SCTLR_ELx_DSSBS (BIT(44)) |
482 | #define SCTLR_ELx_ENIA (_BITUL(31)) | 482 | #define SCTLR_ELx_ENIA (BIT(31)) |
483 | #define SCTLR_ELx_ENIB (_BITUL(30)) | 483 | #define SCTLR_ELx_ENIB (BIT(30)) |
484 | #define SCTLR_ELx_ENDA (_BITUL(27)) | 484 | #define SCTLR_ELx_ENDA (BIT(27)) |
485 | #define SCTLR_ELx_EE (_BITUL(25)) | 485 | #define SCTLR_ELx_EE (BIT(25)) |
486 | #define SCTLR_ELx_IESB (_BITUL(21)) | 486 | #define SCTLR_ELx_IESB (BIT(21)) |
487 | #define SCTLR_ELx_WXN (_BITUL(19)) | 487 | #define SCTLR_ELx_WXN (BIT(19)) |
488 | #define SCTLR_ELx_ENDB (_BITUL(13)) | 488 | #define SCTLR_ELx_ENDB (BIT(13)) |
489 | #define SCTLR_ELx_I (_BITUL(12)) | 489 | #define SCTLR_ELx_I (BIT(12)) |
490 | #define SCTLR_ELx_SA (_BITUL(3)) | 490 | #define SCTLR_ELx_SA (BIT(3)) |
491 | #define SCTLR_ELx_C (_BITUL(2)) | 491 | #define SCTLR_ELx_C (BIT(2)) |
492 | #define SCTLR_ELx_A (_BITUL(1)) | 492 | #define SCTLR_ELx_A (BIT(1)) |
493 | #define SCTLR_ELx_M (_BITUL(0)) | 493 | #define SCTLR_ELx_M (BIT(0)) |
494 | 494 | ||
495 | #define SCTLR_ELx_FLAGS (SCTLR_ELx_M | SCTLR_ELx_A | SCTLR_ELx_C | \ | 495 | #define SCTLR_ELx_FLAGS (SCTLR_ELx_M | SCTLR_ELx_A | SCTLR_ELx_C | \ |
496 | SCTLR_ELx_SA | SCTLR_ELx_I | SCTLR_ELx_IESB) | 496 | SCTLR_ELx_SA | SCTLR_ELx_I | SCTLR_ELx_IESB) |
497 | 497 | ||
498 | /* SCTLR_EL2 specific flags. */ | 498 | /* SCTLR_EL2 specific flags. */ |
499 | #define SCTLR_EL2_RES1 ((_BITUL(4)) | (_BITUL(5)) | (_BITUL(11)) | (_BITUL(16)) | \ | 499 | #define SCTLR_EL2_RES1 ((BIT(4)) | (BIT(5)) | (BIT(11)) | (BIT(16)) | \ |
500 | (_BITUL(18)) | (_BITUL(22)) | (_BITUL(23)) | (_BITUL(28)) | \ | 500 | (BIT(18)) | (BIT(22)) | (BIT(23)) | (BIT(28)) | \ |
501 | (_BITUL(29))) | 501 | (BIT(29))) |
502 | #define SCTLR_EL2_RES0 ((_BITUL(6)) | (_BITUL(7)) | (_BITUL(8)) | (_BITUL(9)) | \ | 502 | #define SCTLR_EL2_RES0 ((BIT(6)) | (BIT(7)) | (BIT(8)) | (BIT(9)) | \ |
503 | (_BITUL(10)) | (_BITUL(13)) | (_BITUL(14)) | (_BITUL(15)) | \ | 503 | (BIT(10)) | (BIT(13)) | (BIT(14)) | (BIT(15)) | \ |
504 | (_BITUL(17)) | (_BITUL(20)) | (_BITUL(24)) | (_BITUL(26)) | \ | 504 | (BIT(17)) | (BIT(20)) | (BIT(24)) | (BIT(26)) | \ |
505 | (_BITUL(27)) | (_BITUL(30)) | (_BITUL(31)) | \ | 505 | (BIT(27)) | (BIT(30)) | (BIT(31)) | \ |
506 | (0xffffefffUL << 32)) | 506 | (0xffffefffUL << 32)) |
507 | 507 | ||
508 | #ifdef CONFIG_CPU_BIG_ENDIAN | 508 | #ifdef CONFIG_CPU_BIG_ENDIAN |
@@ -524,23 +524,23 @@ | |||
524 | #endif | 524 | #endif |
525 | 525 | ||
526 | /* SCTLR_EL1 specific flags. */ | 526 | /* SCTLR_EL1 specific flags. */ |
527 | #define SCTLR_EL1_UCI (_BITUL(26)) | 527 | #define SCTLR_EL1_UCI (BIT(26)) |
528 | #define SCTLR_EL1_E0E (_BITUL(24)) | 528 | #define SCTLR_EL1_E0E (BIT(24)) |
529 | #define SCTLR_EL1_SPAN (_BITUL(23)) | 529 | #define SCTLR_EL1_SPAN (BIT(23)) |
530 | #define SCTLR_EL1_NTWE (_BITUL(18)) | 530 | #define SCTLR_EL1_NTWE (BIT(18)) |
531 | #define SCTLR_EL1_NTWI (_BITUL(16)) | 531 | #define SCTLR_EL1_NTWI (BIT(16)) |
532 | #define SCTLR_EL1_UCT (_BITUL(15)) | 532 | #define SCTLR_EL1_UCT (BIT(15)) |
533 | #define SCTLR_EL1_DZE (_BITUL(14)) | 533 | #define SCTLR_EL1_DZE (BIT(14)) |
534 | #define SCTLR_EL1_UMA (_BITUL(9)) | 534 | #define SCTLR_EL1_UMA (BIT(9)) |
535 | #define SCTLR_EL1_SED (_BITUL(8)) | 535 | #define SCTLR_EL1_SED (BIT(8)) |
536 | #define SCTLR_EL1_ITD (_BITUL(7)) | 536 | #define SCTLR_EL1_ITD (BIT(7)) |
537 | #define SCTLR_EL1_CP15BEN (_BITUL(5)) | 537 | #define SCTLR_EL1_CP15BEN (BIT(5)) |
538 | #define SCTLR_EL1_SA0 (_BITUL(4)) | 538 | #define SCTLR_EL1_SA0 (BIT(4)) |
539 | 539 | ||
540 | #define SCTLR_EL1_RES1 ((_BITUL(11)) | (_BITUL(20)) | (_BITUL(22)) | (_BITUL(28)) | \ | 540 | #define SCTLR_EL1_RES1 ((BIT(11)) | (BIT(20)) | (BIT(22)) | (BIT(28)) | \ |
541 | (_BITUL(29))) | 541 | (BIT(29))) |
542 | #define SCTLR_EL1_RES0 ((_BITUL(6)) | (_BITUL(10)) | (_BITUL(13)) | (_BITUL(17)) | \ | 542 | #define SCTLR_EL1_RES0 ((BIT(6)) | (BIT(10)) | (BIT(13)) | (BIT(17)) | \ |
543 | (_BITUL(27)) | (_BITUL(30)) | (_BITUL(31)) | \ | 543 | (BIT(27)) | (BIT(30)) | (BIT(31)) | \ |
544 | (0xffffefffUL << 32)) | 544 | (0xffffefffUL << 32)) |
545 | 545 | ||
546 | #ifdef CONFIG_CPU_BIG_ENDIAN | 546 | #ifdef CONFIG_CPU_BIG_ENDIAN |
@@ -756,13 +756,13 @@ | |||
756 | #define ZCR_ELx_LEN_SIZE 9 | 756 | #define ZCR_ELx_LEN_SIZE 9 |
757 | #define ZCR_ELx_LEN_MASK 0x1ff | 757 | #define ZCR_ELx_LEN_MASK 0x1ff |
758 | 758 | ||
759 | #define CPACR_EL1_ZEN_EL1EN (_BITUL(16)) /* enable EL1 access */ | 759 | #define CPACR_EL1_ZEN_EL1EN (BIT(16)) /* enable EL1 access */ |
760 | #define CPACR_EL1_ZEN_EL0EN (_BITUL(17)) /* enable EL0 access, if EL1EN set */ | 760 | #define CPACR_EL1_ZEN_EL0EN (BIT(17)) /* enable EL0 access, if EL1EN set */ |
761 | #define CPACR_EL1_ZEN (CPACR_EL1_ZEN_EL1EN | CPACR_EL1_ZEN_EL0EN) | 761 | #define CPACR_EL1_ZEN (CPACR_EL1_ZEN_EL1EN | CPACR_EL1_ZEN_EL0EN) |
762 | 762 | ||
763 | 763 | ||
764 | /* Safe value for MPIDR_EL1: Bit31:RES1, Bit30:U:0, Bit24:MT:0 */ | 764 | /* Safe value for MPIDR_EL1: Bit31:RES1, Bit30:U:0, Bit24:MT:0 */ |
765 | #define SYS_MPIDR_SAFE_VAL (_BITUL(31)) | 765 | #define SYS_MPIDR_SAFE_VAL (BIT(31)) |
766 | 766 | ||
767 | #ifdef __ASSEMBLY__ | 767 | #ifdef __ASSEMBLY__ |
768 | 768 | ||