* [PATH] rpaphp_add_slot.patch
@ 2004-07-02 22:45 Linda Xie
2004-07-14 22:53 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Linda Xie @ 2004-07-02 22:45 UTC (permalink / raw)
To: Greg KH, Hotplug List
Cc: John Rose, Mike Wortman, External List, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 318 bytes --]
Hi Greg,
I found a bug in rpaphp code during DLPAR I/O testing. When DLPAR ADD
a non-empty I/O slot to a partition, an adapter in the slot didn't
get configured. The attached patch fixes that. Please review and apply
if there are no objections.
Signed-off-by: Linda Xie <lxie@us.ibm.com>
Thanks,
Linda
[-- Attachment #2: rpaphp_add_slot.patch --]
[-- Type: text/plain, Size: 1227 bytes --]
diff -Nru a/drivers/pci/hotplug/rpaphp_pci.c b/drivers/pci/hotplug/rpaphp_pci.c
--- a/drivers/pci/hotplug/rpaphp_pci.c Fri Jul 2 15:59:36 2004
+++ b/drivers/pci/hotplug/rpaphp_pci.c Fri Jul 2 15:59:36 2004
@@ -340,7 +340,6 @@
return rc;
}
-
static void rpaphp_eeh_remove_bus_device(struct pci_dev *dev)
{
eeh_remove_device(dev);
@@ -429,10 +428,26 @@
__FUNCTION__, slot->name);
goto exit_rc;
}
- if (init_slot_pci_funcs(slot)) {
- err("%s: init_slot_pci_funcs failed\n", __FUNCTION__);
+
+ if (slot->hotplug_slot->info->adapter_status == NOT_CONFIGURED) {
+ dbg("%s CONFIGURING pci adapter in slot[%s]\n",
+ __FUNCTION__, slot->name);
+ if (rpaphp_config_pci_adapter(slot)) {
+ err("%s: CONFIG pci adapter failed\n", __FUNCTION__);
+ goto exit_rc;
+ }
+ } else if (slot->hotplug_slot->info->adapter_status == CONFIGURED) {
+ if (init_slot_pci_funcs(slot)) {
+ err("%s: init_slot_pci_funcs failed\n", __FUNCTION__);
+ goto exit_rc;
+ }
+
+ } else {
+ err("%s: slot[%s]'s adapter_status is NOT_VALID.\n",
+ __FUNCTION__, slot->name);
goto exit_rc;
}
+
print_slot_pci_funcs(slot);
if (!list_empty(&slot->dev.pci_funcs)) {
slot->state = CONFIGURED;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATH] rpaphp_add_slot.patch
2004-07-02 22:45 [PATH] rpaphp_add_slot.patch Linda Xie
@ 2004-07-14 22:53 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-07-14 22:53 UTC (permalink / raw)
To: Linda Xie
Cc: Hotplug List, John Rose, Mike Wortman, External List,
linux-kernel
On Fri, Jul 02, 2004 at 05:45:53PM -0500, Linda Xie wrote:
> Hi Greg,
>
> I found a bug in rpaphp code during DLPAR I/O testing. When DLPAR ADD
> a non-empty I/O slot to a partition, an adapter in the slot didn't
> get configured. The attached patch fixes that. Please review and apply
> if there are no objections.
>
> Signed-off-by: Linda Xie <lxie@us.ibm.com>
Applied, thanks.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-14 23:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-02 22:45 [PATH] rpaphp_add_slot.patch Linda Xie
2004-07-14 22:53 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox