Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
e254e3fa
Commit
e254e3fa
authored
Jul 15, 2016
by
danh-arm
Committed by
GitHub
Jul 15, 2016
Browse files
Merge pull request #655 from Xilinx/report_merr
bl31: Add error reporting registers
parents
32bc641d
84629f2f
Changes
8
Show whitespace changes
Inline
Side-by-side
include/lib/cpus/aarch64/cortex_a53.h
View file @
e254e3fa
...
@@ -56,6 +56,11 @@
...
@@ -56,6 +56,11 @@
#define CPUECTLR_FPU_RET_CTRL_SHIFT 3
#define CPUECTLR_FPU_RET_CTRL_SHIFT 3
#define CPUECTLR_FPU_RET_CTRL_MASK (0x7 << CPUECTLR_FPU_RET_CTRL_SHIFT)
#define CPUECTLR_FPU_RET_CTRL_MASK (0x7 << CPUECTLR_FPU_RET_CTRL_SHIFT)
/*******************************************************************************
* CPU Memory Error Syndrome register specific definitions.
******************************************************************************/
#define CPUMERRSR_EL1 S3_1_C15_C2_2
/* Instruction def. */
/*******************************************************************************
/*******************************************************************************
* CPU Auxiliary Control register specific definitions.
* CPU Auxiliary Control register specific definitions.
******************************************************************************/
******************************************************************************/
...
@@ -79,4 +84,9 @@
...
@@ -79,4 +84,9 @@
#define L2ECTLR_RET_CTRL_SHIFT 0
#define L2ECTLR_RET_CTRL_SHIFT 0
#define L2ECTLR_RET_CTRL_MASK (0x7 << L2ECTLR_RET_CTRL_SHIFT)
#define L2ECTLR_RET_CTRL_MASK (0x7 << L2ECTLR_RET_CTRL_SHIFT)
/*******************************************************************************
* L2 Memory Error Syndrome register specific definitions.
******************************************************************************/
#define L2MERRSR_EL1 S3_1_C15_C2_3
/* Instruction def. */
#endif
/* __CORTEX_A53_H__ */
#endif
/* __CORTEX_A53_H__ */
include/lib/cpus/aarch64/cortex_a57.h
View file @
e254e3fa
...
@@ -56,6 +56,11 @@
...
@@ -56,6 +56,11 @@
#define CPUECTLR_CPU_RET_CTRL_SHIFT 0
#define CPUECTLR_CPU_RET_CTRL_SHIFT 0
#define CPUECTLR_CPU_RET_CTRL_MASK (0x7 << CPUECTLR_CPU_RET_CTRL_SHIFT)
#define CPUECTLR_CPU_RET_CTRL_MASK (0x7 << CPUECTLR_CPU_RET_CTRL_SHIFT)
/*******************************************************************************
* CPU Memory Error Syndrome register specific definitions.
******************************************************************************/
#define CPUMERRSR_EL1 S3_1_C15_C2_2
/* Instruction def. */
/*******************************************************************************
/*******************************************************************************
* CPU Auxiliary Control register specific definitions.
* CPU Auxiliary Control register specific definitions.
******************************************************************************/
******************************************************************************/
...
@@ -90,4 +95,9 @@
...
@@ -90,4 +95,9 @@
#define L2ECTLR_RET_CTRL_SHIFT 0
#define L2ECTLR_RET_CTRL_SHIFT 0
#define L2ECTLR_RET_CTRL_MASK (0x7 << L2ECTLR_RET_CTRL_SHIFT)
#define L2ECTLR_RET_CTRL_MASK (0x7 << L2ECTLR_RET_CTRL_SHIFT)
/*******************************************************************************
* L2 Memory Error Syndrome register specific definitions.
******************************************************************************/
#define L2MERRSR_EL1 S3_1_C15_C2_3
/* Instruction def. */
#endif
/* __CORTEX_A57_H__ */
#endif
/* __CORTEX_A57_H__ */
include/lib/cpus/aarch64/cortex_a72.h
View file @
e254e3fa
...
@@ -44,6 +44,11 @@
...
@@ -44,6 +44,11 @@
#define CPUECTLR_L2_IPFTCH_DIST_MASK (0x3 << 35)
#define CPUECTLR_L2_IPFTCH_DIST_MASK (0x3 << 35)
#define CPUECTLR_L2_DPFTCH_DIST_MASK (0x3 << 32)
#define CPUECTLR_L2_DPFTCH_DIST_MASK (0x3 << 32)
/*******************************************************************************
* CPU Memory Error Syndrome register specific definitions.
******************************************************************************/
#define CPUMERRSR_EL1 S3_1_C15_C2_2
/* Instruction def. */
/*******************************************************************************
/*******************************************************************************
* CPU Auxiliary Control register specific definitions.
* CPU Auxiliary Control register specific definitions.
******************************************************************************/
******************************************************************************/
...
@@ -65,4 +70,9 @@
...
@@ -65,4 +70,9 @@
#define L2_TAG_RAM_LATENCY_2_CYCLES 0x1
#define L2_TAG_RAM_LATENCY_2_CYCLES 0x1
#define L2_TAG_RAM_LATENCY_3_CYCLES 0x2
#define L2_TAG_RAM_LATENCY_3_CYCLES 0x2
/*******************************************************************************
* L2 Memory Error Syndrome register specific definitions.
******************************************************************************/
#define L2MERRSR_EL1 S3_1_C15_C2_3
/* Instruction def. */
#endif
/* __CORTEX_A72_H__ */
#endif
/* __CORTEX_A72_H__ */
include/lib/cpus/aarch64/cortex_a73.h
View file @
e254e3fa
...
@@ -41,4 +41,9 @@
...
@@ -41,4 +41,9 @@
#define CORTEX_A73_CPUECTLR_SMP_BIT (1 << 6)
#define CORTEX_A73_CPUECTLR_SMP_BIT (1 << 6)
/*******************************************************************************
* L2 Memory Error Syndrome register specific definitions.
******************************************************************************/
#define CORTEX_A73_L2MERRSR_EL1 S3_1_C15_C2_3
/* Instruction def. */
#endif
/* __CORTEX_A73_H__ */
#endif
/* __CORTEX_A73_H__ */
lib/cpus/aarch64/cortex_a53.S
View file @
e254e3fa
...
@@ -234,11 +234,13 @@ endfunc cortex_a53_cluster_pwr_dwn
...
@@ -234,11 +234,13 @@ endfunc cortex_a53_cluster_pwr_dwn
*/
*/
.
section
.
rodata.
cortex_a53_regs
,
"aS"
.
section
.
rodata.
cortex_a53_regs
,
"aS"
cortex_a53_regs
:
/
*
The
ascii
list
of
register
names
to
be
reported
*/
cortex_a53_regs
:
/
*
The
ascii
list
of
register
names
to
be
reported
*/
.
asciz
"cpuectlr_el1"
,
""
.
asciz
"cpuectlr_el1"
,
"cpumerrsr_el1"
,
"l2merrsr_el1"
,
""
func
cortex_a53_cpu_reg_dump
func
cortex_a53_cpu_reg_dump
adr
x6
,
cortex_a53_regs
adr
x6
,
cortex_a53_regs
mrs
x8
,
CPUECTLR_EL1
mrs
x8
,
CPUECTLR_EL1
mrs
x9
,
CPUMERRSR_EL1
mrs
x10
,
L2MERRSR_EL1
ret
ret
endfunc
cortex_a53_cpu_reg_dump
endfunc
cortex_a53_cpu_reg_dump
...
...
lib/cpus/aarch64/cortex_a57.S
View file @
e254e3fa
...
@@ -477,11 +477,13 @@ endfunc cortex_a57_cluster_pwr_dwn
...
@@ -477,11 +477,13 @@ endfunc cortex_a57_cluster_pwr_dwn
*/
*/
.
section
.
rodata.
cortex_a57_regs
,
"aS"
.
section
.
rodata.
cortex_a57_regs
,
"aS"
cortex_a57_regs
:
/
*
The
ascii
list
of
register
names
to
be
reported
*/
cortex_a57_regs
:
/
*
The
ascii
list
of
register
names
to
be
reported
*/
.
asciz
"cpuectlr_el1"
,
""
.
asciz
"cpuectlr_el1"
,
"cpumerrsr_el1"
,
"l2merrsr_el1"
,
""
func
cortex_a57_cpu_reg_dump
func
cortex_a57_cpu_reg_dump
adr
x6
,
cortex_a57_regs
adr
x6
,
cortex_a57_regs
mrs
x8
,
CPUECTLR_EL1
mrs
x8
,
CPUECTLR_EL1
mrs
x9
,
CPUMERRSR_EL1
mrs
x10
,
L2MERRSR_EL1
ret
ret
endfunc
cortex_a57_cpu_reg_dump
endfunc
cortex_a57_cpu_reg_dump
...
...
lib/cpus/aarch64/cortex_a72.S
View file @
e254e3fa
...
@@ -231,11 +231,13 @@ endfunc cortex_a72_cluster_pwr_dwn
...
@@ -231,11 +231,13 @@ endfunc cortex_a72_cluster_pwr_dwn
*/
*/
.
section
.
rodata.
cortex_a72_regs
,
"aS"
.
section
.
rodata.
cortex_a72_regs
,
"aS"
cortex_a72_regs
:
/
*
The
ascii
list
of
register
names
to
be
reported
*/
cortex_a72_regs
:
/
*
The
ascii
list
of
register
names
to
be
reported
*/
.
asciz
"cpuectlr_el1"
,
""
.
asciz
"cpuectlr_el1"
,
"cpumerrsr_el1"
,
"l2merrsr_el1"
,
""
func
cortex_a72_cpu_reg_dump
func
cortex_a72_cpu_reg_dump
adr
x6
,
cortex_a72_regs
adr
x6
,
cortex_a72_regs
mrs
x8
,
CPUECTLR_EL1
mrs
x8
,
CPUECTLR_EL1
mrs
x9
,
CPUMERRSR_EL1
mrs
x10
,
L2MERRSR_EL1
ret
ret
endfunc
cortex_a72_cpu_reg_dump
endfunc
cortex_a72_cpu_reg_dump
...
...
lib/cpus/aarch64/cortex_a73.S
View file @
e254e3fa
...
@@ -144,11 +144,12 @@ endfunc cortex_a73_cluster_pwr_dwn
...
@@ -144,11 +144,12 @@ endfunc cortex_a73_cluster_pwr_dwn
*/
*/
.
section
.
rodata.
cortex_a73_regs
,
"aS"
.
section
.
rodata.
cortex_a73_regs
,
"aS"
cortex_a73_regs
:
/
*
The
ascii
list
of
register
names
to
be
reported
*/
cortex_a73_regs
:
/
*
The
ascii
list
of
register
names
to
be
reported
*/
.
asciz
"cpuectlr_el1"
,
""
.
asciz
"cpuectlr_el1"
,
"l2merrsr_el1"
,
""
func
cortex_a73_cpu_reg_dump
func
cortex_a73_cpu_reg_dump
adr
x6
,
cortex_a73_regs
adr
x6
,
cortex_a73_regs
mrs
x8
,
CORTEX_A73_CPUECTLR_EL1
mrs
x8
,
CORTEX_A73_CPUECTLR_EL1
mrs
x9
,
CORTEX_A73_L2MERRSR_EL1
ret
ret
endfunc
cortex_a73_cpu_reg_dump
endfunc
cortex_a73_cpu_reg_dump
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment