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
e4327605
Commit
e4327605
authored
Aug 27, 2010
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i7300_edac: Add a code to cleanup error registers
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
57021918
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
drivers/edac/i7300_edac.c
drivers/edac/i7300_edac.c
+27
-2
No files found.
drivers/edac/i7300_edac.c
View file @
e4327605
...
...
@@ -470,9 +470,34 @@ static void i7300_process_error_info(struct mem_ctl_info *mci,
*/
static
void
i7300_clear_error
(
struct
mem_ctl_info
*
mci
)
{
struct
i7300_error_info
info
;
struct
i7300_pvt
*
pvt
=
mci
->
pvt_info
;
u32
value
;
/*
* All error values are RWC - we need to read and write 1 to the
* bit that we want to cleanup
*/
i7300_get_error_info
(
mci
,
&
info
);
/* Clear global error registers */
pci_read_config_dword
(
pvt
->
pci_dev_16_2_fsb_err_regs
,
FERR_GLOBAL_HI
,
&
value
);
pci_write_config_dword
(
pvt
->
pci_dev_16_2_fsb_err_regs
,
FERR_GLOBAL_HI
,
value
);
pci_read_config_dword
(
pvt
->
pci_dev_16_2_fsb_err_regs
,
FERR_GLOBAL_LO
,
&
value
);
pci_write_config_dword
(
pvt
->
pci_dev_16_2_fsb_err_regs
,
FERR_GLOBAL_LO
,
value
);
/* Clear FBD error registers */
pci_read_config_dword
(
pvt
->
pci_dev_16_1_fsb_addr_map
,
FERR_FAT_FBD
,
&
value
);
pci_write_config_dword
(
pvt
->
pci_dev_16_1_fsb_addr_map
,
FERR_FAT_FBD
,
value
);
pci_read_config_dword
(
pvt
->
pci_dev_16_1_fsb_addr_map
,
FERR_NF_FBD
,
&
value
);
pci_write_config_dword
(
pvt
->
pci_dev_16_1_fsb_addr_map
,
FERR_NF_FBD
,
value
);
}
/*
...
...
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