Eddy, Benjamin On Mon, May 23, 2005 at 10:28:36AM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2005-05-23 at 03:01 +0300, Eddy Petrisor wrote: > > Hello, > > > > I have finaly installed 2.6.12-rc4, but I found that it oopses when > > comming back from sleep. > > Any idea why? > > > > boring info on: > > It's apparently a bug in the USB HID code when CONFIG_USB_SUSPEND is > enabled, though so far, I haven't got the USB folks to figure out what's > going on. You should post your report to the linux-usb-devel mailing > list anyway, maybe that will get them more data on the problem. Seems this code's not vitally necessary for USB devices: I'm using 2.6.12-rc4 without USB_SUSPEND, and rendering the machine here to sleep, and waking it up again does not yield any probs with my USB Logitec mouse, as it seems. That is, the Logitec mouse's seems to be perfectly back on track after waking up the machine: $ zcat /proc/config.gz | grep -i USB_SUSPEND # CONFIG_USB_SUSPEND is not set # dmesg | grep -i mouse [17294.335122] ADB mouse at 3, handler set to 4 (trackpad) [69553.822306] ADB mouse at 3, handler set to 4 (trackpad) [124667.243642] ADB mouse at 3, handler set to 4 (trackpad) [126950.822089] ADB mouse at 3, handler set to 4 (trackpad) [160408.349468] input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0001:10:18.0-1 [181610.781572] ADB mouse at 3, handler set to 4 (trackpad) $ cat /proc/cpuinfo processor : 0 cpu : 7455, altivec supported clock : 867MHz revision : 0.2 (pvr 8001 0302) bogomips : 865.18 machine : PowerBook3,5 motherboard : PowerBook3,5 MacRISC2 MacRISC Power Macintosh detected as : 80 (PowerBook Titanium IV) pmac flags : 0000001b L2 cache : 256K unified memory : 768MB pmac-generation : NewWorld Although I completely agree with people testing unstable code one should not forget the following information in the corresponding Kconfig: config USB_SUSPEND bool "USB suspend/resume (EXPERIMENTAL)" depends on USB && PM && EXPERIMENTAL help If you say Y here, you can use driver calls or the sysfs "power/state" file to suspend or resume individual USB peripherals. There are many related features, such as remote wakeup and driver-specific suspend processing, that may not yet work as expected. If you are unsure about this, say N here. Just in case folks want to get their USB devices up and running for sleep situations I attach my current config for 2.6.12-rc4-selinux3 (the appended selinux3 only to make clear I enabled selinux for this kernel. And selinux with this kernel is disabled at boot time as per default, via this config. As it seems .. :) More on that in the "2.6.12-rc4 lots faster than any kernel before?" from a week or so ago ... (BTW: In the meantime I don't think it's "lots" faster than any kernel before ... :) HTH Best Regards Wolfgang -- Wolfgang Pfeiffer http://profiles.yahoo.com/wolfgangpfeiffer
Attachment:
config.gz
Description: /proc/config.gz for 2.6.12-rc4