Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
27a528fb
Commit
27a528fb
authored
17 years ago
by
Stefan Roese
Browse files
Options
Downloads
Patches
Plain Diff
ppc4xx: Only print ECC related info when the error bis are set
Signed-off-by:
Stefan Roese
<
sr@denx.de
>
parent
e36220a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/ppc4xx/traps.c
+24
-14
24 additions, 14 deletions
cpu/ppc4xx/traps.c
with
24 additions
and
14 deletions
cpu/ppc4xx/traps.c
+
24
−
14
View file @
27a528fb
...
@@ -147,6 +147,8 @@ MachineCheckException(struct pt_regs *regs)
...
@@ -147,6 +147,8 @@ MachineCheckException(struct pt_regs *regs)
unsigned
long
fixup
,
val
;
unsigned
long
fixup
,
val
;
#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
u32
value2
;
u32
value2
;
int
corr_ecc
=
0
;
int
uncorr_ecc
=
0
;
#endif
#endif
/* Probing PCI using config cycles cause this exception
/* Probing PCI using config cycles cause this exception
...
@@ -214,14 +216,22 @@ MachineCheckException(struct pt_regs *regs)
...
@@ -214,14 +216,22 @@ MachineCheckException(struct pt_regs *regs)
printf
(
"DDR0: At least one interrupt active
\n
"
);
printf
(
"DDR0: At least one interrupt active
\n
"
);
if
(
val
&
0x40
)
if
(
val
&
0x40
)
printf
(
"DDR0: DRAM initialization complete.
\n
"
);
printf
(
"DDR0: DRAM initialization complete.
\n
"
);
if
(
val
&
0x20
)
if
(
val
&
0x20
)
{
printf
(
"DDR0: Multiple uncorrectable ECC events.
\n
"
);
printf
(
"DDR0: Multiple uncorrectable ECC events.
\n
"
);
if
(
val
&
0x10
)
uncorr_ecc
=
1
;
}
if
(
val
&
0x10
)
{
printf
(
"DDR0: Single uncorrectable ECC event.
\n
"
);
printf
(
"DDR0: Single uncorrectable ECC event.
\n
"
);
if
(
val
&
0x08
)
uncorr_ecc
=
1
;
}
if
(
val
&
0x08
)
{
printf
(
"DDR0: Multiple correctable ECC events.
\n
"
);
printf
(
"DDR0: Multiple correctable ECC events.
\n
"
);
if
(
val
&
0x04
)
corr_ecc
=
1
;
}
if
(
val
&
0x04
)
{
printf
(
"DDR0: Single correctable ECC event.
\n
"
);
printf
(
"DDR0: Single correctable ECC event.
\n
"
);
corr_ecc
=
1
;
}
if
(
val
&
0x02
)
if
(
val
&
0x02
)
printf
(
"Multiple accesses outside the defined"
printf
(
"Multiple accesses outside the defined"
" physical memory space detected
\n
"
);
" physical memory space detected
\n
"
);
...
@@ -252,11 +262,11 @@ MachineCheckException(struct pt_regs *regs)
...
@@ -252,11 +262,11 @@ MachineCheckException(struct pt_regs *regs)
printf
(
"DDR0: No DDR0 error know 0x%x %p
\n
"
,
val
,
value2
);
printf
(
"DDR0: No DDR0 error know 0x%x %p
\n
"
,
val
,
value2
);
}
}
mfsdram
(
DDR0_23
,
val
);
mfsdram
(
DDR0_23
,
val
);
if
(
(
val
>>
16
)
&
0xff
)
if
(
(
(
val
>>
16
)
&
0xff
)
&&
corr_ecc
)
printf
(
"DDR0: Syndrome for correctable ECC event 0x%x
\n
"
,
printf
(
"DDR0: Syndrome for correctable ECC event 0x%x
\n
"
,
(
val
>>
16
)
&
0xff
);
(
val
>>
16
)
&
0xff
);
mfsdram
(
DDR0_23
,
val
);
mfsdram
(
DDR0_23
,
val
);
if
(
(
val
>>
8
)
&
0xff
)
if
(
(
(
val
>>
8
)
&
0xff
)
&&
uncorr_ecc
)
printf
(
"DDR0: Syndrome for uncorrectable ECC event 0x%x
\n
"
,
printf
(
"DDR0: Syndrome for uncorrectable ECC event 0x%x
\n
"
,
(
val
>>
8
)
&
0xff
);
(
val
>>
8
)
&
0xff
);
mfsdram
(
DDR0_33
,
val
);
mfsdram
(
DDR0_33
,
val
);
...
@@ -264,28 +274,28 @@ MachineCheckException(struct pt_regs *regs)
...
@@ -264,28 +274,28 @@ MachineCheckException(struct pt_regs *regs)
printf
(
"DDR0: Address of command that caused an "
printf
(
"DDR0: Address of command that caused an "
"Out-of-Range interrupt %p
\n
"
,
val
);
"Out-of-Range interrupt %p
\n
"
,
val
);
mfsdram
(
DDR0_34
,
val
);
mfsdram
(
DDR0_34
,
val
);
if
(
val
)
if
(
val
&&
uncorr_ecc
)
printf
(
"DDR0: Address of uncorrectable ECC event %p
\n
"
,
val
);
printf
(
"DDR0: Address of uncorrectable ECC event %p
\n
"
,
val
);
mfsdram
(
DDR0_35
,
val
);
mfsdram
(
DDR0_35
,
val
);
if
(
val
)
if
(
val
&&
uncorr_ecc
)
printf
(
"DDR0: Address of uncorrectable ECC event %p
\n
"
,
val
);
printf
(
"DDR0: Address of uncorrectable ECC event %p
\n
"
,
val
);
mfsdram
(
DDR0_36
,
val
);
mfsdram
(
DDR0_36
,
val
);
if
(
val
)
if
(
val
&&
uncorr_ecc
)
printf
(
"DDR0: Data of uncorrectable ECC event 0x%08x
\n
"
,
val
);
printf
(
"DDR0: Data of uncorrectable ECC event 0x%08x
\n
"
,
val
);
mfsdram
(
DDR0_37
,
val
);
mfsdram
(
DDR0_37
,
val
);
if
(
val
)
if
(
val
&&
uncorr_ecc
)
printf
(
"DDR0: Data of uncorrectable ECC event 0x%08x
\n
"
,
val
);
printf
(
"DDR0: Data of uncorrectable ECC event 0x%08x
\n
"
,
val
);
mfsdram
(
DDR0_38
,
val
);
mfsdram
(
DDR0_38
,
val
);
if
(
val
)
if
(
val
&&
corr_ecc
)
printf
(
"DDR0: Address of correctable ECC event %p
\n
"
,
val
);
printf
(
"DDR0: Address of correctable ECC event %p
\n
"
,
val
);
mfsdram
(
DDR0_39
,
val
);
mfsdram
(
DDR0_39
,
val
);
if
(
val
)
if
(
val
&&
corr_ecc
)
printf
(
"DDR0: Address of correctable ECC event %p
\n
"
,
val
);
printf
(
"DDR0: Address of correctable ECC event %p
\n
"
,
val
);
mfsdram
(
DDR0_40
,
val
);
mfsdram
(
DDR0_40
,
val
);
if
(
val
)
if
(
val
&&
corr_ecc
)
printf
(
"DDR0: Data of correctable ECC event 0x%08x
\n
"
,
val
);
printf
(
"DDR0: Data of correctable ECC event 0x%08x
\n
"
,
val
);
mfsdram
(
DDR0_41
,
val
);
mfsdram
(
DDR0_41
,
val
);
if
(
val
)
if
(
val
&&
corr_ecc
)
printf
(
"DDR0: Data of correctable ECC event 0x%08x
\n
"
,
val
);
printf
(
"DDR0: Data of correctable ECC event 0x%08x
\n
"
,
val
);
#endif
/* CONFIG_440EPX */
#endif
/* CONFIG_440EPX */
#endif
/* CONFIG_440 */
#endif
/* CONFIG_440 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment