Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34121
b: refs/heads/master
c: cb5b562
h: refs/heads/master
i:
  34119: 5f5d45f
v: v3
  • Loading branch information
Linas Vepstas authored and Paul Mackerras committed Sep 21, 2006
1 parent 602b59e commit 96e65b1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 12 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: af525592187951a595c73de11b48969a13b5d5a3
refs/heads/master: cb5b562444c27cf53f5d297bd7a89807ea614cf3
19 changes: 14 additions & 5 deletions trunk/arch/powerpc/platforms/pseries/eeh.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,11 @@ EXPORT_SYMBOL(eeh_check_failure);
/* ------------------------------------------------------------- */
/* The code below deals with error recovery */

/** Return negative value if a permanent error, else return
/**
* eeh_slot_availability - returns error status of slot
* @pdn pci device node
*
* Return negative value if a permanent error, else return
* a number of milliseconds to wait until the PCI slot is
* ready to be used.
*/
Expand Down Expand Up @@ -477,8 +481,10 @@ eeh_slot_availability(struct pci_dn *pdn)
return -1;
}

/** rtas_pci_slot_reset raises/lowers the pci #RST line
* state: 1/0 to raise/lower the #RST
/**
* rtas_pci_slot_reset - raises/lowers the pci #RST line
* @pdn pci device node
* @state: 1/0 to raise/lower the #RST
*
* Clear the EEH-frozen condition on a slot. This routine
* asserts the PCI #RST line if the 'state' argument is '1',
Expand Down Expand Up @@ -518,8 +524,9 @@ rtas_pci_slot_reset(struct pci_dn *pdn, int state)
}
}

/** rtas_set_slot_reset -- assert the pci #RST line for 1/4 second
* dn -- device node to be reset.
/**
* rtas_set_slot_reset -- assert the pci #RST line for 1/4 second
* @pdn: pci device node to be reset.
*
* Return 0 if success, else a non-zero value.
*/
Expand Down Expand Up @@ -582,6 +589,8 @@ rtas_set_slot_reset(struct pci_dn *pdn)

/**
* __restore_bars - Restore the Base Address Registers
* @pdn: pci device node
*
* Loads the PCI configuration space base address registers,
* the expansion ROM base address, the latency timer, and etc.
* from the saved values in the device node.
Expand Down
27 changes: 21 additions & 6 deletions trunk/arch/powerpc/platforms/pseries/eeh_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ static int irq_in_use(unsigned int irq)
}

/* ------------------------------------------------------- */
/** eeh_report_error - report an EEH error to each device,
* collect up and merge the device responses.
/**
* eeh_report_error - report pci error to each device driver
*
* Report an EEH error to each device driver, collect up and
* merge the device driver responses. Cumulative response
* passed back in "userdata".
*/

static void eeh_report_error(struct pci_dev *dev, void *userdata)
Expand Down Expand Up @@ -108,8 +112,8 @@ static void eeh_report_error(struct pci_dev *dev, void *userdata)
rc == PCI_ERS_RESULT_NEED_RESET) *res = rc;
}

/** eeh_report_reset -- tell this device that the pci slot
* has been reset.
/**
* eeh_report_reset - tell device that slot has been reset
*/

static void eeh_report_reset(struct pci_dev *dev, void *userdata)
Expand All @@ -132,6 +136,10 @@ static void eeh_report_reset(struct pci_dev *dev, void *userdata)
driver->err_handler->slot_reset(dev);
}

/**
* eeh_report_resume - tell device to resume normal operations
*/

static void eeh_report_resume(struct pci_dev *dev, void *userdata)
{
struct pci_driver *driver = dev->driver;
Expand All @@ -148,6 +156,13 @@ static void eeh_report_resume(struct pci_dev *dev, void *userdata)
driver->err_handler->resume(dev);
}

/**
* eeh_report_failure - tell device driver that device is dead.
*
* This informs the device driver that the device is permanently
* dead, and that no further recovery attempts will be made on it.
*/

static void eeh_report_failure(struct pci_dev *dev, void *userdata)
{
struct pci_driver *driver = dev->driver;
Expand Down Expand Up @@ -190,11 +205,11 @@ static void eeh_report_failure(struct pci_dev *dev, void *userdata)

/**
* eeh_reset_device() -- perform actual reset of a pci slot
* Args: bus: pointer to the pci bus structure corresponding
* @bus: pointer to the pci bus structure corresponding
* to the isolated slot. A non-null value will
* cause all devices under the bus to be removed
* and then re-added.
* pe_dn: pointer to a "Partionable Endpoint" device node.
* @pe_dn: pointer to a "Partionable Endpoint" device node.
* This is the top-level structure on which pci
* bus resets can be performed.
*/
Expand Down

0 comments on commit 96e65b1

Please sign in to comment.