Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215973
b: refs/heads/master
c: e432760
h: refs/heads/master
i:
  215971: 2d33b5a
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Aug 30, 2010
1 parent 8812ac3 commit c69a20c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57021918aa9c310524d7e9754506e4e8272b4c0e
refs/heads/master: e43276050927c7dfc45b1e2f090b94f72f87c052
29 changes: 27 additions & 2 deletions trunk/drivers/edac/i7300_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit c69a20c

Please sign in to comment.