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
8199d8cc
Commit
8199d8cc
authored
Aug 27, 2010
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i7300_edac: enrich FBD error info for fatal errors
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
85580ea4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
4 deletions
+39
-4
drivers/edac/i7300_edac.c
drivers/edac/i7300_edac.c
+39
-4
No files found.
drivers/edac/i7300_edac.c
View file @
8199d8cc
...
...
@@ -268,6 +268,16 @@ static const char *ferr_global_lo_name[] = {
};
#define ferr_global_lo_is_fatal(errno) ((errno < 16) ? 0 : 1)
#define NRECMEMA 0xbe
#define NRECMEMA_BANK(v) (((v) >> 12) & 7)
#define NRECMEMA_RANK(v) (((v) >> 8) & 15)
#define NRECMEMB 0xc0
#define NRECMEMB_IS_WR(v) ((v) & (1 << 31))
#define NRECMEMB_CAS(v) (((v) >> 16) & 0x1fff)
#define NRECMEMB_RAS(v) ((v) & 0xffff)
/* Device name and register DID (Device ID) */
struct
i7300_dev_info
{
const
char
*
ctl_name
;
/* name for this device */
...
...
@@ -392,10 +402,11 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci)
{
struct
i7300_pvt
*
pvt
;
u32
errnum
,
value
;
int
branch
;
u16
val16
;
int
branch
,
bank
,
rank
,
cas
,
ras
;
unsigned
long
errors
;
const
char
*
specific
;
bool
is_fatal
;
bool
is_fatal
,
is_wr
;
pvt
=
mci
->
pvt_info
;
...
...
@@ -410,8 +421,31 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci)
is_fatal
=
1
;
branch
=
(
GET_FBD_FAT_IDX
(
value
)
==
2
)
?
1
:
0
;
goto
error_fbd
;
pci_read_config_word
(
pvt
->
pci_dev_16_1_fsb_addr_map
,
NRECMEMA
,
&
val16
);
bank
=
NRECMEMA_BANK
(
val16
);
rank
=
NRECMEMA_RANK
(
val16
);
pci_read_config_dword
(
pvt
->
pci_dev_16_1_fsb_addr_map
,
NRECMEMB
,
&
value
);
is_wr
=
NRECMEMB_IS_WR
(
value
);
cas
=
NRECMEMB_CAS
(
value
);
ras
=
NRECMEMB_RAS
(
value
);
snprintf
(
pvt
->
tmp_prt_buffer
,
PAGE_SIZE
,
"FATAL (Branch=%d DRAM-Bank=%d %s "
"RAS=%d CAS=%d Err=0x%lx (%s))"
,
branch
>>
1
,
bank
,
is_wr
?
"RDWR"
:
"RD"
,
ras
,
cas
,
errors
,
specific
);
/* Call the helper to output message */
edac_mc_handle_fbd_ue
(
mci
,
rank
,
branch
<<
1
,
(
branch
<<
1
)
+
1
,
pvt
->
tmp_prt_buffer
);
return
;
}
/* read in the 1st NON-FATAL error register */
...
...
@@ -433,6 +467,7 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci)
return
;
error_fbd:
i7300_mc_printk
(
mci
,
KERN_EMERG
,
"%s FBD error on branch %d: %s
\n
"
,
is_fatal
?
"Fatal"
:
"NOT fatal"
,
branch
,
specific
);
}
...
...
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