Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
15154c57
Commit
15154c57
authored
Aug 27, 2010
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i7300_edac: Properly detect the type of error correction
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
bb81a216
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
drivers/edac/i7300_edac.c
drivers/edac/i7300_edac.c
+14
-4
No files found.
drivers/edac/i7300_edac.c
View file @
15154c57
...
...
@@ -450,14 +450,24 @@ static int decode_mtr(struct i7300_pvt *pvt,
p_csrow
->
mtype
=
MEM_FB_DDR2
;
/*
*
FIXME: t
he type of error detection actually depends of the
*
T
he type of error detection actually depends of the
* mode of operation. When it is just one single memory chip, at
* socket 0, channel 0, it uses
8-byte-over-32-byte SECDED+ code.
* In normal or mirrored mode, it uses
Single Device Data correction
,
* socket 0, channel 0, it uses 8-byte-over-32-byte SECDED+ code.
* In normal or mirrored mode, it uses
Lockstep mode
,
* with the possibility of using an extended algorithm for x8 memories
* See datasheet Sections 7.3.6 to 7.3.8
*/
p_csrow
->
edac_mode
=
EDAC_S8ECD8ED
;
if
(
IS_SINGLE_MODE
(
pvt
->
mc_settings_a
))
{
p_csrow
->
edac_mode
=
EDAC_SECDED
;
debugf0
(
"ECC code is 8-byte-over-32-byte SECDED+ code
\n
"
);
}
else
{
debugf0
(
"ECC code is on Lockstep mode
\n
"
);
if
(
MTR_DRAM_WIDTH
(
mtr
))
p_csrow
->
edac_mode
=
EDAC_S8ECD8ED
;
else
p_csrow
->
edac_mode
=
EDAC_S4ECD4ED
;
}
/* ask what device type on this row */
if
(
MTR_DRAM_WIDTH
(
mtr
))
{
...
...
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