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
af3d8831
Commit
af3d8831
authored
Aug 26, 2010
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i7300_edac: display info if ECC is enabled or not
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
fcaf780b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
drivers/edac/i7300_edac.c
drivers/edac/i7300_edac.c
+20
-8
No files found.
drivers/edac/i7300_edac.c
View file @
af3d8831
...
...
@@ -80,17 +80,19 @@
*/
/* OFFSETS for Function 0 */
#define
AMBASE 0x48
/* AMB Mem Mapped Reg Region Base */
#define
MAXCH 0x56
/* Max Channel Number */
#define
MAXDIMMPERCH 0x57
/* Max DIMM PER Channel Number */
#define
AMBASE 0x48
/* AMB Mem Mapped Reg Region Base */
#define
MAXCH 0x56
/* Max Channel Number */
#define
MAXDIMMPERCH 0x57
/* Max DIMM PER Channel Number */
/* OFFSETS for Function 1 */
#define TOLM 0x6C
#define REDMEMB 0x7C
#define MC_SETTINGS 0x40
#define MIR0 0x80
#define MIR1 0x84
#define MIR2 0x88
#define TOLM 0x6C
#define REDMEMB 0x7C
#define MIR0 0x80
#define MIR1 0x84
#define MIR2 0x88
#if 0
#define AMIR0 0x8c
...
...
@@ -393,6 +395,7 @@ struct i7300_pvt {
u16
tolm
;
/* top of low memory */
u64
ambase
;
/* AMB BAR */
u32
mc_settings
;
u16
mir
[
MAX_MIR
];
...
...
@@ -1020,6 +1023,15 @@ static int i7300_get_mc_regs(struct mem_ctl_info *mci)
debugf2
(
"Actual TOLM byte addr=%u.%03u GB (0x%x)
\n
"
,
actual_tolm
/
1000
,
actual_tolm
%
1000
,
pvt
->
tolm
<<
28
);
/* Get memory controller settings */
pci_read_config_dword
(
pvt
->
branchmap_werrors
,
MC_SETTINGS
,
&
pvt
->
mc_settings
);
debugf0
(
"Memory controller operating on %s mode
\n
"
,
pvt
->
mc_settings
&
(
1
<<
16
)
?
"mirrored"
:
"non-mirrored"
);
debugf0
(
"Error detection is %s
\n
"
,
pvt
->
mc_settings
&
(
1
<<
5
)
?
"enabled"
:
"disabled"
);
/* Get Memory Interleave Range registers */
pci_read_config_word
(
pvt
->
branchmap_werrors
,
MIR0
,
&
pvt
->
mir
[
0
]);
pci_read_config_word
(
pvt
->
branchmap_werrors
,
MIR1
,
&
pvt
->
mir
[
1
]);
pci_read_config_word
(
pvt
->
branchmap_werrors
,
MIR2
,
&
pvt
->
mir
[
2
]);
...
...
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