login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
16
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Alex Chiang <achiang@...>
Cc: <pbadari@...>, <linux-kernel@...>, <linas@...>
Subject:
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
Date: Tuesday, April 15, 2008 - 8:36 pm
On Mon, 7 Apr 2008 17:42:55 -0600 Alex Chiang <achiang@hp.com> wrote:
quoted text
> Hi Badari, > > > > > pci_hotplug: PCI Hot Plug PCI Core version: 0.5 > > > > rpaphp: RPA HOT Plug PCI Controller Driver version: 0.1 > > > > rpaphp_register_slot registering slot:path[/pci@800000020000003/pci@2,4] index[22010003], name[U787E.001.AAA3015-P2-C1] pdomain[22010003] type[16] > > > > Unable to handle kernel paging request for data at address 0x00000070 > > > > > > Hrm, this is a little more information, but still not quite > > > enough. I'm going to take a stab in the dark and say I'm probably > > > doing something wrong on this line, maybe dereferencing a pointer > > > incorrectly: > > > > > > retval = pci_hp_register(php_slot, slot->bus, > > > PCI_SLOT(PCI_DN(slot->dn->child)->devfn)); > > > > Sorry. I thought you knew this already. Disassembly clearly showed > > that slot->dn->child is NULL. > > > > I confirmed it by adding printk also. > > This patch is a complete guess on my part (since I've not been > able to understand pseries architecture) but I think it should > fix your issue. > > Can you give it a try and let me know? It applies on top of the > -mm tree that includes my physical pci_slot series. > > Also, I'm hoping Linas will speak up and let me know what the > real answer might be. ;) > > Thanks. > > /ac > > From: Alex Chiang <achiang@hp.com> > Subject: rpaphp: correctly call pci_hp_register for empty PCI slots > > Unpopulated device_node slots do not have children, and > attempting to dereference them will result in a panic. > > Instead, attempt to derive the PCI slot number from the bus > itself, and failing that, default to 0. > > Signed-off-by: Alex Chiang <achiang@hp.com> > --- > diff --git a/drivers/pci/hotplug/rpaphp_slot.c b/drivers/pci/hotplug/rpaphp_slot.c > index 0d4cfc7..91ce6a6 100644 > --- a/drivers/pci/hotplug/rpaphp_slot.c > +++ b/drivers/pci/hotplug/rpaphp_slot.c > @@ -121,6 +121,7 @@ int rpaphp_register_slot(struct slot *slot) > { > struct hotplug_slot *php_slot = slot->hotplug_slot; > int retval; > + int slot_nr; > > dbg("%s registering slot:path[%s] index[%x], name[%s] pdomain[%x] type[%d]\n", > __FUNCTION__, slot->dn->full_name, slot->index, slot->name, > @@ -132,8 +133,11 @@ int rpaphp_register_slot(struct slot *slot) > return -EAGAIN; > } > > - retval = pci_hp_register(php_slot, slot->bus, > - PCI_SLOT(PCI_DN(slot->dn->child)->devfn)); > + if (slot->bus->self) > + slot_nr = PCI_SLOT(slot->bus->self->devfn); > + else > + slot_nr = 0; > + retval = pci_hp_register(php_slot, slot->bus, slot_nr); > if (retval) { > err("pci_hp_register failed with error %d\n", retval); > return retval;
Did we hear back from Badari on this? Thanks. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Badari Pulavarty
, (Fri Apr 4, 1:53 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Alex Chiang
, (Fri Apr 4, 2:05 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Badari Pulavarty
, (Fri Apr 4, 4:19 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Alex Chiang
, (Fri Apr 4, 6:42 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Badari Pulavarty
, (Fri Apr 4, 7:35 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Alex Chiang
, (Mon Apr 7, 7:42 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Alex Chiang
, (Tue Apr 15, 11:17 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Benjamin Herrenschmidt
, (Wed Apr 16, 3:45 am)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Alex Chiang
, (Wed Apr 16, 1:11 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Benjamin Herrenschmidt
, (Wed Apr 16, 6:15 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Andrew Morton
, (Wed Apr 16, 4:03 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Benjamin Herrenschmidt
, (Wed Apr 16, 6:16 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Alex Chiang
, (Sat Apr 19, 2:38 am)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Benjamin Herrenschmidt
, (Sat Apr 19, 3:03 am)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Alex Chiang
, (Tue Apr 22, 12:05 am)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Benjamin Herrenschmidt
, (Tue Apr 22, 1:07 am)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Andrew Morton
, (Tue Apr 15, 8:36 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Badari Pulavarty
, (Tue Apr 15, 11:08 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Alex Chiang
, (Tue Apr 15, 11:18 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Badari Pulavarty
, (Wed Apr 16, 3:32 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Alex Chiang
, (Wed Apr 16, 3:59 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Badari Pulavarty
, (Tue Apr 15, 11:20 pm)
Re: 2.6.25-rc8-mm1 panic in rpaphp_register_slot()
, Alex Chiang
, (Tue Apr 15, 10:13 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Andrew Morton
2.6.23-rc6-mm1
jjohansen
[AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Linus Torvalds
Re: [GIT]: Networking
Mark Lord
Re: 2.6.25-rc8: FTP transfer errors
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
640 guests
online.
Syndicate