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
37b69cf9
Commit
37b69cf9
authored
Aug 27, 2010
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i7300_edac: Properly detect channel on CE errors
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
32f94726
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
drivers/edac/i7300_edac.c
drivers/edac/i7300_edac.c
+14
-5
No files found.
drivers/edac/i7300_edac.c
View file @
37b69cf9
...
@@ -101,7 +101,6 @@
...
@@ -101,7 +101,6 @@
#define IS_SINGLE_MODE(mca) ((mca) & (1 << 14))
#define IS_SINGLE_MODE(mca) ((mca) & (1 << 14))
#define TOLM 0x6C
#define TOLM 0x6C
#define REDMEMB 0x7C
#define MIR0 0x80
#define MIR0 0x80
#define MIR1 0x84
#define MIR1 0x84
...
@@ -279,6 +278,9 @@ static const char *ferr_global_lo_name[] = {
...
@@ -279,6 +278,9 @@ static const char *ferr_global_lo_name[] = {
#define REDMEMA 0xdc
#define REDMEMA 0xdc
#define REDMEMB 0x7c
#define IS_SECOND_CH(v) ((v) * (1 << 17))
#define RECMEMA 0xe0
#define RECMEMA 0xe0
#define RECMEMA_BANK(v) (((v) >> 12) & 7)
#define RECMEMA_BANK(v) (((v) >> 12) & 7)
#define RECMEMA_RANK(v) (((v) >> 8) & 15)
#define RECMEMA_RANK(v) (((v) >> 8) & 15)
...
@@ -414,7 +416,7 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci)
...
@@ -414,7 +416,7 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci)
struct
i7300_pvt
*
pvt
;
struct
i7300_pvt
*
pvt
;
u32
errnum
,
value
;
u32
errnum
,
value
;
u16
val16
;
u16
val16
;
unsigned
branch
,
bank
,
rank
,
cas
,
ras
;
unsigned
branch
,
channel
,
bank
,
rank
,
cas
,
ras
;
u32
syndrome
;
u32
syndrome
;
unsigned
long
errors
;
unsigned
long
errors
;
...
@@ -488,12 +490,19 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci)
...
@@ -488,12 +490,19 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci)
cas
=
RECMEMB_CAS
(
value
);
cas
=
RECMEMB_CAS
(
value
);
ras
=
RECMEMB_RAS
(
value
);
ras
=
RECMEMB_RAS
(
value
);
pci_read_config_dword
(
pvt
->
pci_dev_16_1_fsb_addr_map
,
REDMEMB
,
&
value
);
channel
=
(
branch
<<
1
);
if
(
IS_SECOND_CH
(
value
))
channel
++
;
/* Form out message */
/* Form out message */
snprintf
(
pvt
->
tmp_prt_buffer
,
PAGE_SIZE
,
snprintf
(
pvt
->
tmp_prt_buffer
,
PAGE_SIZE
,
"Corrected error (Branch=%d
(channel %d or
%d), "
"Corrected error (Branch=%d
, Channel
%d), "
" DRAM-Bank=%d %s "
" DRAM-Bank=%d %s "
"RAS=%d CAS=%d, CE Err=0x%lx, Syndrome=0x%08x(%s))"
,
"RAS=%d CAS=%d, CE Err=0x%lx, Syndrome=0x%08x(%s))"
,
branch
,
branch
<<
1
,
(
branch
<<
1
)
+
1
,
branch
,
channel
,
bank
,
bank
,
is_wr
?
"RDWR"
:
"RD"
,
is_wr
?
"RDWR"
:
"RD"
,
ras
,
cas
,
ras
,
cas
,
...
@@ -505,7 +514,7 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci)
...
@@ -505,7 +514,7 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci)
* Currently, we don't know how to identify the right
* Currently, we don't know how to identify the right
* channel.
* channel.
*/
*/
edac_mc_handle_fbd_ce
(
mci
,
rank
,
branch
<<
1
,
edac_mc_handle_fbd_ce
(
mci
,
rank
,
channel
,
pvt
->
tmp_prt_buffer
);
pvt
->
tmp_prt_buffer
);
}
}
return
;
return
;
...
...
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