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
Kirill Smelkov
linux
Commits
17cb7b0c
Commit
17cb7b0c
authored
Jul 20, 2009
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i7core_edac: Some cleanups at displayed info
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
086271a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
drivers/edac/i7core_edac.c
drivers/edac/i7core_edac.c
+9
-12
No files found.
drivers/edac/i7core_edac.c
View file @
17cb7b0c
...
...
@@ -453,8 +453,8 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow, u8 socket)
pci_read_config_dword
(
pdev
,
MC_MAX_DOD
,
&
pvt
->
info
.
max_dod
);
pci_read_config_dword
(
pdev
,
MC_CHANNEL_MAPPER
,
&
pvt
->
info
.
ch_map
);
debugf0
(
"
MC
control=0x%08x status=0x%08x dod=0x%08x map=0x%08x
\n
"
,
pvt
->
info
.
mc_control
,
pvt
->
info
.
mc_status
,
debugf0
(
"
QPI %d
control=0x%08x status=0x%08x dod=0x%08x map=0x%08x
\n
"
,
socket
,
pvt
->
info
.
mc_control
,
pvt
->
info
.
mc_status
,
pvt
->
info
.
max_dod
,
pvt
->
info
.
ch_map
);
if
(
ECC_ENABLED
(
pvt
))
{
...
...
@@ -469,16 +469,14 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow, u8 socket)
}
/* FIXME: need to handle the error codes */
debugf0
(
"DOD Max limits: DIMMS: %d, %d-ranked, %d-banked
\n
"
,
debugf0
(
"DOD Max limits: DIMMS: %d, %d-ranked, %d-banked "
"x%x x 0x%x
\n
"
,
numdimms
(
pvt
->
info
.
max_dod
),
numrank
(
pvt
->
info
.
max_dod
>>
2
),
numbank
(
pvt
->
info
.
max_dod
>>
4
));
debugf0
(
"DOD Max rows x colums = 0x%x x 0x%x
\n
"
,
numrow
(
pvt
->
info
.
max_dod
>>
6
),
numcol
(
pvt
->
info
.
max_dod
>>
9
));
debugf0
(
"Memory channel configuration:
\n
"
);
for
(
i
=
0
;
i
<
NUM_CHANS
;
i
++
)
{
u32
data
,
dimm_dod
[
3
],
value
[
8
];
...
...
@@ -544,10 +542,9 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow, u8 socket)
pvt
->
channel
[
socket
][
i
].
dimms
++
;
debugf0
(
"
\t
dimm %d (0x%08x) %d Mb offset: %x, "
"numbank: %d,
\n\t\t
"
"numrank: %d, numrow: %#x, numcol: %#x
\n
"
,
j
,
dimm_dod
[
j
],
size
,
debugf0
(
"
\t
dimm %d %d Mb offset: %x, "
"bank: %d, rank: %d, row: %#x, col: %#x
\n
"
,
j
,
size
,
RANKOFFSET
(
dimm_dod
[
j
]),
banks
,
ranks
,
rows
,
cols
);
...
...
@@ -599,9 +596,9 @@ static int get_dimm_config(struct mem_ctl_info *mci, int *csrow, u8 socket)
pci_read_config_dword
(
pdev
,
MC_SAG_CH_5
,
&
value
[
5
]);
pci_read_config_dword
(
pdev
,
MC_SAG_CH_6
,
&
value
[
6
]);
pci_read_config_dword
(
pdev
,
MC_SAG_CH_7
,
&
value
[
7
]);
debugf
0
(
"
\t
[%i] DIVBY3
\t
REMOVED
\t
OFFSET
\n
"
,
i
);
debugf
1
(
"
\t
[%i] DIVBY3
\t
REMOVED
\t
OFFSET
\n
"
,
i
);
for
(
j
=
0
;
j
<
8
;
j
++
)
debugf
0
(
"
\t\t
%#x
\t
%#x
\t
%#x
\n
"
,
debugf
1
(
"
\t\t
%#x
\t
%#x
\t
%#x
\n
"
,
(
value
[
j
]
>>
27
)
&
0x1
,
(
value
[
j
]
>>
24
)
&
0x7
,
(
value
[
j
]
&&
((
1
<<
24
)
-
1
)));
...
...
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