Re: 2.6.23: no more free evdev devices - evdev leak?

2007-11-11 Thread Soeren Sonnenburg
On Tue, 2007-11-06 at 15:52 +0100, Jiri Kosina wrote:
> On Tue, 6 Nov 2007, Dmitry Torokhov wrote:
> 
> > Could you please try sticking a printk in 
> > hidinput_disconnect(drivers/hid/hid-input.c) to verify that 
> > input_unregister_device is in fact being called?
> 
> Also, is 2.6.23 the only kernel you are experiencing this with please?

So far yes. I am now on 2.6.24rc2 and although the input device numbers
steadily increase s2ram does reliably work even when done >10 times in a
row and no problems with evdev devices not being available.

However resume is slower as some ata device (I think my cdrom) is timing
out. So it could be related to a too fast resume from suspend.

So the problem may re-appear if matthew garrets fix for
[PATCH] Don't fail ata device revalidation for bad _GTF methods

will be committed.

Is there still a need to do tests with the printk's in 2.6.23?

Soeren
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: 2.6.23: no more free evdev devices - evdev leak?

2007-11-06 Thread Jiri Kosina
On Tue, 6 Nov 2007, Dmitry Torokhov wrote:

> Could you please try sticking a printk in 
> hidinput_disconnect(drivers/hid/hid-input.c) to verify that 
> input_unregister_device is in fact being called?

Also, is 2.6.23 the only kernel you are experiencing this with please?

Thanks,

-- 
Jiri Kosina
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: 2.6.23: no more free evdev devices - evdev leak?

2007-11-06 Thread Dmitry Torokhov
On Nov 5, 2007 10:13 PM, Andrew Morton <[EMAIL PROTECTED]> wrote:
> On Wed, 31 Oct 2007 16:34:44 + Soeren Sonnenburg <[EMAIL PROTECTED]> 
> wrote:
>
> > Dear all,
>
> (cc's added)
>
>
> > whenever I do a suspend resume cycle the input device's numbers are
> > increased until I finally run out of evdev devices. Is this a kernel
> > problem or some userspace program (udev/...) creating new devices all
> > the time?

evdev marks the device slot as free as soon as evdev_disconnect is
called which shoudl be called from input_unregister_device().

Could you please try sticking a printk in
hidinput_disconnect(drivers/hid/hid-input.c) to verify that
input_unregister_device is in fact being called?

-- 
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: 2.6.23: no more free evdev devices - evdev leak?

2007-11-05 Thread Andrew Morton
On Wed, 31 Oct 2007 16:34:44 + Soeren Sonnenburg <[EMAIL PROTECTED]> wrote:

> Dear all,

(cc's added)

> whenever I do a suspend resume cycle the input device's numbers are
> increased until I finally run out of evdev devices. Is this a kernel
> problem or some userspace program (udev/...) creating new devices all
> the time?
> 
> here is the dmesg:
> 
> Soeren
> 
> input: Power Button (FF) as /devices/virtual/input/input0
> input: Lid Switch as /devices/virtual/input/input1
> input: Power Button (CM) as /devices/virtual/input/input2
> input: Sleep Button (CM) as /devices/virtual/input/input3
> input: Macintosh mouse button emulation as /devices/virtual/input/input4
> input: Apple Computer Apple Internal Keyboard / Trackpad as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.0/input/input5
> input: USB HID v1.11 Keyboard [Apple Computer Apple Internal Keyboard / 
> Trackpad] on usb-:00:1d.0-2
> input: Apple Computer Apple Internal Keyboard / Trackpad as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.2/input/input6
> input: USB HID v1.11 Device [Apple Computer Apple Internal Keyboard / 
> Trackpad] on usb-:00:1d.0-2
> input: HID 05ac:1000 as 
> /devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.0/input/input7
> input: USB HID v1.11 Keyboard [HID 05ac:1000] on usb-:00:1d.3-1
> input: HID 05ac:1000 as 
> /devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.1/input/input8
> input: USB HID v1.11 Mouse [HID 05ac:1000] on usb-:00:1d.3-1
> input: appletouch as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.1/input/input9
> input: Video Bus as /devices/virtual/input/input10
> input: applesmc as /devices/platform/applesmc.768/input/input11
> input: appletouch disconnected
> input: Apple Computer Apple Internal Keyboard / Trackpad as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.0/input/input12
> input: USB HID v1.11 Keyboard [Apple Computer Apple Internal Keyboard / 
> Trackpad] on usb-:00:1d.0-2
> input: appletouch as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.1/input/input13
> input: Apple Computer Apple Internal Keyboard / Trackpad as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.2/input/input14
> input: USB HID v1.11 Device [Apple Computer Apple Internal Keyboard / 
> Trackpad] on usb-:00:1d.0-2
> input: HID 05ac:1000 as 
> /devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.0/input/input15
> input: USB HID v1.11 Keyboard [HID 05ac:1000] on usb-:00:1d.3-1
> input: HID 05ac:1000 as 
> /devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.1/input/input16
> input: USB HID v1.11 Mouse [HID 05ac:1000] on usb-:00:1d.3-1
> input: appletouch disconnected
> input: Apple Computer Apple Internal Keyboard / Trackpad as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.0/input/input17
> input: USB HID v1.11 Keyboard [Apple Computer Apple Internal Keyboard / 
> Trackpad] on usb-:00:1d.0-2
> input: appletouch as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.1/input/input18
> input: Apple Computer Apple Internal Keyboard / Trackpad as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.2/input/input19
> input: USB HID v1.11 Device [Apple Computer Apple Internal Keyboard / 
> Trackpad] on usb-:00:1d.0-2
> input: HID 05ac:1000 as 
> /devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.0/input/input20
> input: USB HID v1.11 Keyboard [HID 05ac:1000] on usb-:00:1d.3-1
> input: HID 05ac:1000 as 
> /devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.1/input/input21
> input: USB HID v1.11 Mouse [HID 05ac:1000] on usb-:00:1d.3-1
> input: appletouch disconnected
> input: Apple Computer Apple Internal Keyboard / Trackpad as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.0/input/input22
> input: USB HID v1.11 Keyboard [Apple Computer Apple Internal Keyboard / 
> Trackpad] on usb-:00:1d.0-2
> input: appletouch as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.1/input/input23
> input: Apple Computer Apple Internal Keyboard / Trackpad as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.2/input/input24
> input: USB HID v1.11 Device [Apple Computer Apple Internal Keyboard / 
> Trackpad] on usb-:00:1d.0-2
> input: HID 05ac:1000 as 
> /devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.0/input/input25
> input: USB HID v1.11 Keyboard [HID 05ac:1000] on usb-:00:1d.3-1
> input: HID 05ac:1000 as 
> /devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.1/input/input26
> input: USB HID v1.11 Mouse [HID 05ac:1000] on usb-:00:1d.3-1
> input: appletouch disconnected
> input: Apple Computer Apple Internal Keyboard / Trackpad as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.0/input/input27
> input: USB HID v1.11 Keyboard [Apple Computer Apple Internal Keyboard / 
> Trackpad] on usb-:00:1d.0-2
> input: appletouch as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.1/input/input28
> input: Apple Computer Apple Internal Keyboard / Trackpad as 
> /devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.2/input/input29
> input: USB HID v1.11 Device [Apple Computer Apple Internal Keyboar

2.6.23: no more free evdev devices - evdev leak?

2007-10-31 Thread Soeren Sonnenburg
Dear all,

whenever I do a suspend resume cycle the input device's numbers are
increased until I finally run out of evdev devices. Is this a kernel
problem or some userspace program (udev/...) creating new devices all
the time?

here is the dmesg:

Soeren

input: Power Button (FF) as /devices/virtual/input/input0
input: Lid Switch as /devices/virtual/input/input1
input: Power Button (CM) as /devices/virtual/input/input2
input: Sleep Button (CM) as /devices/virtual/input/input3
input: Macintosh mouse button emulation as /devices/virtual/input/input4
input: Apple Computer Apple Internal Keyboard / Trackpad as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.0/input/input5
input: USB HID v1.11 Keyboard [Apple Computer Apple Internal Keyboard / 
Trackpad] on usb-:00:1d.0-2
input: Apple Computer Apple Internal Keyboard / Trackpad as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.2/input/input6
input: USB HID v1.11 Device [Apple Computer Apple Internal Keyboard / Trackpad] 
on usb-:00:1d.0-2
input: HID 05ac:1000 as 
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.0/input/input7
input: USB HID v1.11 Keyboard [HID 05ac:1000] on usb-:00:1d.3-1
input: HID 05ac:1000 as 
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.1/input/input8
input: USB HID v1.11 Mouse [HID 05ac:1000] on usb-:00:1d.3-1
input: appletouch as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.1/input/input9
input: Video Bus as /devices/virtual/input/input10
input: applesmc as /devices/platform/applesmc.768/input/input11
input: appletouch disconnected
input: Apple Computer Apple Internal Keyboard / Trackpad as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.0/input/input12
input: USB HID v1.11 Keyboard [Apple Computer Apple Internal Keyboard / 
Trackpad] on usb-:00:1d.0-2
input: appletouch as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.1/input/input13
input: Apple Computer Apple Internal Keyboard / Trackpad as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.2/input/input14
input: USB HID v1.11 Device [Apple Computer Apple Internal Keyboard / Trackpad] 
on usb-:00:1d.0-2
input: HID 05ac:1000 as 
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.0/input/input15
input: USB HID v1.11 Keyboard [HID 05ac:1000] on usb-:00:1d.3-1
input: HID 05ac:1000 as 
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.1/input/input16
input: USB HID v1.11 Mouse [HID 05ac:1000] on usb-:00:1d.3-1
input: appletouch disconnected
input: Apple Computer Apple Internal Keyboard / Trackpad as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.0/input/input17
input: USB HID v1.11 Keyboard [Apple Computer Apple Internal Keyboard / 
Trackpad] on usb-:00:1d.0-2
input: appletouch as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.1/input/input18
input: Apple Computer Apple Internal Keyboard / Trackpad as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.2/input/input19
input: USB HID v1.11 Device [Apple Computer Apple Internal Keyboard / Trackpad] 
on usb-:00:1d.0-2
input: HID 05ac:1000 as 
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.0/input/input20
input: USB HID v1.11 Keyboard [HID 05ac:1000] on usb-:00:1d.3-1
input: HID 05ac:1000 as 
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.1/input/input21
input: USB HID v1.11 Mouse [HID 05ac:1000] on usb-:00:1d.3-1
input: appletouch disconnected
input: Apple Computer Apple Internal Keyboard / Trackpad as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.0/input/input22
input: USB HID v1.11 Keyboard [Apple Computer Apple Internal Keyboard / 
Trackpad] on usb-:00:1d.0-2
input: appletouch as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.1/input/input23
input: Apple Computer Apple Internal Keyboard / Trackpad as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.2/input/input24
input: USB HID v1.11 Device [Apple Computer Apple Internal Keyboard / Trackpad] 
on usb-:00:1d.0-2
input: HID 05ac:1000 as 
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.0/input/input25
input: USB HID v1.11 Keyboard [HID 05ac:1000] on usb-:00:1d.3-1
input: HID 05ac:1000 as 
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.1/input/input26
input: USB HID v1.11 Mouse [HID 05ac:1000] on usb-:00:1d.3-1
input: appletouch disconnected
input: Apple Computer Apple Internal Keyboard / Trackpad as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.0/input/input27
input: USB HID v1.11 Keyboard [Apple Computer Apple Internal Keyboard / 
Trackpad] on usb-:00:1d.0-2
input: appletouch as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.1/input/input28
input: Apple Computer Apple Internal Keyboard / Trackpad as 
/devices/pci:00/:00:1d.0/usb2/2-2/2-2:1.2/input/input29
input: USB HID v1.11 Device [Apple Computer Apple Internal Keyboard / Trackpad] 
on usb-:00:1d.0-2
input: HID 05ac:1000 as 
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.0/input/input30
input: USB HID v1.11 Keyboard [HID 05ac:1000] on usb-:00:1d.3-1
input: HID 05ac:1000 as 
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.1/input/input31