login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
5
Re: [PATCH 22/54] kset: convert /sys/devices/system to use kset_create
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Greg KH <gregkh@...>
To: Cornelia Huck <cornelia.huck@...>
Cc: <linux-kernel@...>, Kay Sievers <kay.sievers@...>
Subject:
Re: [PATCH 22/54] kset: convert /sys/devices/system to use kset_create
Date: Monday, November 5, 2007 - 2:58 pm
On Mon, Nov 05, 2007 at 07:11:09PM +0100, Cornelia Huck wrote:
quoted text
> On Fri, 2 Nov 2007 16:59:00 -0700, > Greg Kroah-Hartman <gregkh@suse.de> wrote: > > > Dynamically create the kset instead of declaring it statically. > > > > Cc: Kay Sievers <kay.sievers@vrfy.org> > > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> > > --- > > drivers/base/sys.c | 28 ++++++++++++---------------- > > 1 files changed, 12 insertions(+), 16 deletions(-) > > Unfortunately, at that point in the patch series reipl breaks for me :( > > I used the following silly debug patch:
What does reipl have to do with shutdown?
quoted text
> --- > drivers/base/power/shutdown.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > Index: linux-2.6/drivers/base/power/shutdown.c > =================================================================== > --- linux-2.6.orig/drivers/base/power/shutdown.c 2007-11-05 18:51:51.000000000 +0100 > +++ linux-2.6/drivers/base/power/shutdown.c 2007-11-05 18:52:50.000000000 +0100 > @@ -37,10 +37,11 @@ void device_shutdown(void) > list_for_each_entry_safe_reverse(dev, devn, &devices_kset->list, > kobj.entry) { > if (dev->bus && dev->bus->shutdown) { > - dev_dbg(dev, "shutdown\n"); > + dev_dbg(dev, "shutdown (bus %s)\n", dev->bus->name); > dev->bus->shutdown(dev); > } else if (dev->driver && dev->driver->shutdown) { > - dev_dbg(dev, "shutdown\n"); > + dev_dbg(dev, "shutdown (driver %s)\n", > + dev->driver->name); > dev->driver->shutdown(dev); > } > } > > and get as the kernel's last words: > > <loads of sane shutdowns for the ccw and css busses> > <7>io_subchannel 0.0.095c: shutdown (bus css) > <7>io_subchannel 0.0.095b: shutdown (bus css) > <7>io_subchannel 0.0.095a: shutdown (bus css) > <7> : shutdown (bus ) > <1>Unable to handle kernel pointer dereference at virtual kernel address 0000000500000000 > <4>Oops: 003b [#1] > <4>Modules linked in: dm_multipath sunrpc qeth ccwgroup dm_mod > <4>CPU: 2 Not tainted > <4>Process reboot (pid: 2892, task: 0000000002cae048, ksp: 00000000045c39b8) > <4>Krnl PSW : 0704000180000000 0000000500000006 (0x500000006) > <4> R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:0 PM:0 EA:3 > <4>Krnl GPRS: 0000000000019e75 0000000500000006 0000000002c42810 0000000002c429b0 > <4> 00000000002a36ec 0000000000000000 000003ffffb76d48 0000000000000160 > <4> 00000000001423a4 000002000015e390 00000000006e06b8 0000000000634638 > <4> 0000000002c42810 000000000041f670 00000000002a36fe 00000000045c3d00 > <4>Krnl Code: Bad PSW. > <4>Call Trace: > <4>([<00000000002a36ec>] device_shutdown+0x78/0x144) > <4> [<000000000013f18c>] kernel_restart_prepare+0x44/0x50 > <4> [<000000000013f1be>] kernel_restart+0x26/0x6c > <4> [<0000000000142548>] sys_reboot+0x1a4/0x1f4 > <4> [<0000000000111038>] sysc_noemu+0x10/0x16 > <4> [<00000200001048e0>] 0x200001048e0 > <4> > <4> > > Huh? We want to shutdown an unknown device on a bus that wishes to stay > anonymous? > > Any hints would be appreciated...
I'll look into this, I wonder if we are walking off the end of an unterminated list... thanks, greg k-h -
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:
[RFC] kobject and kset core changes and cleanups
, Greg KH
, (Fri Nov 2, 7:57 pm)
Re: [RFC] kobject and kset core changes and cleanups
, Andrew Morton
, (Tue Nov 6, 4:04 am)
Re: [RFC] kobject and kset core changes and cleanups
, Andrew Morton
, (Tue Nov 6, 3:11 am)
Re: [RFC] kobject and kset core changes and cleanups
, Stephane Eranian
, (Tue Nov 6, 4:14 am)
Re: [RFC] kobject and kset core changes and cleanups
, Greg KH
, (Tue Nov 6, 5:15 pm)
Re: [RFC] kobject and kset core changes and cleanups
, Stephane Eranian
, (Tue Nov 6, 5:33 pm)
Re: [RFC] kobject and kset core changes and cleanups
, Andrew Morton
, (Tue Nov 6, 2:25 am)
[PATCH 54/54] kset: remove decl_subsys macro
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 53/54] kset: convert ocfs2 to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 47/54] kobject: convert parisc/pdc_stable to kobj_att...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 52/54] firmware: remove firmware_(un)register()
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 51/54] kset: convert acpi to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 50/54] kset: convert edd to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 48/54] kset: convert parisc/pdc_stable.c to use kset_...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 49/54] Driver Core: kill subsys_attribute and default...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 46/54] kset: convert s390 ipl.c to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
Re: [PATCH 46/54] kset: convert s390 ipl.c to use kset_create
, Cornelia Huck
, (Mon Nov 5, 6:27 am)
Re: [PATCH 46/54] kset: convert s390 ipl.c to use kset_create
, Greg KH
, (Mon Nov 5, 1:05 pm)
[PATCH 45/54] kobject: convert s390 ipl.c to kobj_attr inter...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 42/54] kset: convert efivars to use kset_create for t...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 44/54] kobject: convert pseries/power.c to kobj_attr ...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 38/54] efivars: remove new_var and del_var files from...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
Re: [PATCH 38/54] efivars: remove new_var and del_var files ...
, Matt Domsch
, (Fri Nov 16, 11:01 am)
Re: [PATCH 38/54] efivars: remove new_var and del_var files ...
, Greg KH
, (Tue Nov 27, 1:47 am)
[PATCH 43/54] kobject: convert arm/mach-omap1/pm.c to kobj_a...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 40/54] firmware: export firmware_kset so that people ...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 41/54] kset: convert efivars to use kset_create for t...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 39/54] kobject: convert efivars to kobj_attr interface
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 37/54] ecryptfs: remove version_str file from sysfs
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 33/54] driver core: remove fields from struct bus_type
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
Re: [PATCH 33/54] driver core: remove fields from struct bus...
, Cornelia Huck
, (Mon Nov 5, 6:33 am)
Re: [PATCH 33/54] driver core: remove fields from struct bus...
, Greg KH
, (Mon Nov 5, 1:00 pm)
[PATCH 35/54] Driver Core: switch all dynamic ksets to kobj_...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 36/54] fix struct user_info export's sysfs interaction
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 34/54] Driver Core: add kobj_attribute handling
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Cornelia Huck
, (Mon Nov 5, 8:42 am)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Kay Sievers
, (Mon Nov 5, 12:23 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Greg KH
, (Mon Nov 5, 1:11 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Kay Sievers
, (Mon Nov 5, 1:25 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Cornelia Huck
, (Mon Nov 5, 1:43 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Kay Sievers
, (Mon Nov 5, 2:07 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Cornelia Huck
, (Mon Nov 5, 2:17 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Kay Sievers
, (Mon Nov 5, 2:39 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Cornelia Huck
, (Mon Nov 5, 2:59 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Greg KH
, (Mon Nov 5, 4:01 pm)
Re: [PATCH 34/54] Driver Core: add kobj_attribute handling
, Greg KH
, (Mon Nov 5, 2:46 pm)
[PATCH 31/54] driver core: add way to get to bus kset
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 32/54] driver core: add way to get to bus device klist
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 30/54] driver core: remove owner field from struct bu...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 28/54] kset: convert struct bus_device->devices to...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 29/54] kset: convert struct bus_device->drivers to...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 27/54] kset: convert s390 hypervisor kset to use kset...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
Re: [PATCH 27/54] kset: convert s390 hypervisor kset to use ...
, Cornelia Huck
, (Mon Nov 5, 9:18 am)
Re: [PATCH 27/54] kset: convert s390 hypervisor kset to use ...
, Greg KH
, (Mon Nov 5, 1:06 pm)
[PATCH 26/54] kset: convert /sys/power to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 25/54] kset: convert /sys/module to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 22/54] kset: convert /sys/devices/system to use kset_...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use k...
, Cornelia Huck
, (Mon Nov 5, 2:11 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use k...
, Greg KH
, (Mon Nov 5, 2:58 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use k...
, Cornelia Huck
, (Mon Nov 5, 3:11 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use k...
, Greg KH
, (Mon Nov 5, 4:03 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use k...
, Andrew Morton
, (Tue Nov 13, 7:14 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use k...
, Andrew Morton
, (Tue Nov 13, 8:01 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use k...
, Greg KH
, (Tue Nov 13, 8:35 pm)
Re: [PATCH 22/54] kset: convert /sys/devices/system to use k...
, Andrew Morton
, (Wed Nov 14, 3:35 am)
[PATCH 24/54] kset: move /sys/slab to /sys/kernel/slab
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 23/54] kset: convert slub to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:59 pm)
[PATCH 16/54] kset: convert kernel_subsys to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 20/54] kset: convert /sys/devices to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 21/54] kset: convert /sys/hypervisor to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 19/54] kset: convert drivers/base/firmware.c kset_cre...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 17/54] kset: convert drivers/base/bus.c kset_create_a...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 18/54] kset: convert drivers/base/class.c kset_create...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 15/54] kset: remove decl_subsys_name
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 13/54] kset: convert dlm to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 14/54] kset: convert pci hotplug to use kset_create_a...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 12/54] kset: convert gfs2 dlm to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 11/54] kset: convert gfs2 to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 10/54] kset: convert main fs kset to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 09/54] kset: convert ecryptfs to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 06/54] kset: convert securityfs to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 08/54] kset: convert configfs to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 07/54] kset: convert debugfs to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 05/54] kset: convert fuse to use kset_create
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 04/54] kset: add kset_create_and_register function
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 03/54] KOBJECT: remove kobj_set_kset_s as no one is u...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 02/54] KOBJECT: remove struct kobj_type from struct k...
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
[PATCH 01/54] ecryptfs: clean up attribute mess
, Greg Kroah-Hartman
, (Fri Nov 2, 7:58 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Amit K. Arora
[RFC] Heads up on sys_fallocate()
Chuck Ebbert
Why do so many machines need "noapic"?
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
426 guests
online.
Syndicate