All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Boot time Bluetooth BUG: warning: (value > m) at hid-core.c:793
@ 2007-03-05 19:19 Amedee Van Gasse
  2007-03-05 21:54 ` Jiri Kosina
  2007-03-23  9:15 ` Jiri Kosina
  0 siblings, 2 replies; 15+ messages in thread
From: Amedee Van Gasse @ 2007-03-05 19:19 UTC (permalink / raw)
  To: LKML

[-- Attachment #1: Type: text/plain, Size: 3264 bytes --]

On Tue, 27 Feb 2007 16:54:27 +0100 (CET), Jiri Kosina <> wrote:
> 
> What puzzles me a bit is a fact that both the bugreporters seem to
> state pretty clearly that this started happening after some update, am
> I right?
> 
> Or did the hardware before work all the time in the HID mode, without
> even being attempted to switch to HCI (which seems to cause the bug)?

It _appears_ that the bug reports started after an update of
bluez-utils, but this remains to be confirmed. It could be
coincidence/temporal correlation (which does not imply causation).

As for myself, I have a Logitech MX5000 keyboard/mouse with usb dongle,
and I can confirm that the keyboard/mouse have always worked in HID.
But in HID mode, no other bluetooth functions are possible (like pairing
with a smartphone).
It's possible to switch from HID to HCI and have a working mouse
+bluetooth receiver, but in that case the keyboard can't pair.

I used this script to get functional bluetooth (and unresponsive
keyboard):

hid2hci --tohci
sleep 1
/etc/init.d/bluetooth restart
sleep 1
# connect with the mouse
hidd -i hci0 --connect 00:07:61:48:71:DE
# connect with the keyboard
hidd -i hci0 --connect 00:07:61:3F:DA:41

I think the "-i hci0" isn't even needed, but it can't hurt.

This triggers a lot of occurences of the following in my logs:

BUG: at drivers/hid/hid-core.c:785 implement()
 [<f8d59608>] hid_output_report+0x288/0x300 [hid]
 [<f8d7d4c8>] hid_submit_ctrl+0x58/0x200 [usbhid]
 [schedule_timeout+83/208] schedule_timeout+0x53/0xd0
 [finish_wait+45/112] finish_wait+0x2d/0x70
 [<f8d7d78b>] usbhid_submit_report+0x11b/0x1b0 [usbhid]
 [autoremove_wake_function+0/80] autoremove_wake_function+0x0/0x50
 [<f8d7f9d6>] hiddev_ioctl+0x446/0xb40 [usbhid]
 [filemap_nopage+753/928] filemap_nopage+0x2f1/0x3a0
 [kmap_atomic+134/160] kmap_atomic+0x86/0xa0
 [kunmap_atomic+107/112] kunmap_atomic+0x6b/0x70
 [__handle_mm_fault+633/2624] __handle_mm_fault+0x279/0xa40
 [nameidata_to_filp+53/64] nameidata_to_filp+0x35/0x40
 [do_ioctl+120/144] do_ioctl+0x78/0x90
 [vfs_ioctl+92/672] vfs_ioctl+0x5c/0x2a0
 [sys_ioctl+114/144] sys_ioctl+0x72/0x90
 [sysenter_past_esp+105/169] sysenter_past_esp+0x69/0xa9
 =======================

There are a few Ubuntu bug reports that describe the problem, with some
log files and other useful info:
https://bugs.launchpad.net/ubuntu/+source/bluez-utils/+bug/32415
https://launchpad.net/ubuntu/+source/bluez-utils/+bug/66884/
I have found similar descriptions in other distros.

I have exactly the same experience as Vincent Fortier described
(keyboard working at boot, some keys repeating sometimes, keyboard
unresponsive when bluetooth comes up, keyboard works again after dongle
unplug/replug, but no bluetooth)

Anyway, is this a kernel problem or is bluez-utils to blame?


PS: I bumped into this topic when googling for "046d:c70e". I'm not a
developer (I'm what they call "a user"), but I'm not afraid to get my
hands dirty. If you want me to run debug versions or patched kernels, I
can do that. After all, I have the hardware and I might give you
valuable information (even if I wouldn't recognise it when it spat me in
the face).

-- 
Amedee Van Gasse
amedee@amedee.be

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Fwd: RE: Boot time Bluetooth BUG: warning: (value > m) at hid-core.c:793
@ 2007-02-20  2:11 Veronique & Vincent
  2007-02-20  8:02 ` Jiri Kosina
  0 siblings, 1 reply; 15+ messages in thread
From: Veronique & Vincent @ 2007-02-20  2:11 UTC (permalink / raw)
  To: marcel, jikos, vincent.fortier1; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 10186 bytes --]

Hi again Marcel and Jiri,

I've set up the hid-core.c to DEBUG mode... and it literally got pretty verbose...

At line 2114 we finally get the BUG message (I've attached the full dmesg also...) :
2104 drivers/usb/input/hid-core.c: report (size 8) (unnumbered)
2105 drivers/usb/input/hid-core.c: report 0 (size 8) =  00 00 00 00 00 00 00 00
2106 hid-debug: input Keyboard.00e0 = 0
2107 hid-debug: input Keyboard.00e1 = 0
2108 hid-debug: input Keyboard.00e2 = 0
2109 hid-debug: input Keyboard.00e3 = 0
2110 hid-debug: input Keyboard.00e4 = 0
2111 hid-debug: input Keyboard.00e5 = 0
2112 hid-debug: input Keyboard.00e6 = 0
2113 hid-debug: input Keyboard.00e7 = 0
2114 BUG: warning at drivers/usb/input/hid-core.c:797/implement()
2115  [<c0404c70>] dump_trace+0x69/0x1b6
2116  [<c0404dd5>] show_trace_log_lvl+0x18/0x2c
2117  [<c04053bc>] show_trace+0xf/0x11
2118  [<c04054b9>] dump_stack+0x15/0x17
2119  [<c0589a5b>] hid_output_report+0x1f8/0x2a3
2120  [<c0589b5b>] hid_submit_ctrl+0x55/0x214
2121  [<c0589ee7>] hid_submit_report+0x134/0x15f
2122  [<c058c955>] hiddev_ioctl+0x327/0x88a
2123  [<c0479198>] do_ioctl+0x4c/0x62
2124  [<c04793f8>] vfs_ioctl+0x24a/0x25c
2125  [<c0479456>] sys_ioctl+0x4c/0x66
2126  [<c0403de5>] sysenter_past_esp+0x56/0x79
2127  [<b7f8c410>] 0xb7f8c410
2128  =======================
2129 BUG: warning at drivers/usb/input/hid-core.c:797/implement()
2130  [<c0404c70>] dump_trace+0x69/0x1b6
2131  [<c0404dd5>] show_trace_log_lvl+0x18/0x2c
...
2157  [<b7f8c410>] 0xb7f8c410
2158  =======================
2159 drivers/usb/input/hid-core.c: submitting ctrl urb: Set_Report wValue=0x0210 wIndex=0x0000 wLength=7
2160 BUG: warning at drivers/usb/input/hid-core.c:797/implement()
2161  [<c0404c70>] dump_trace+0x69/0x1b6
...
2184  [<c0479198>] do_ioctl+0x4c/0x62
2185  [<c04793f8>] vfs_ioctl+0x24a/0x25c
2186  [<c0479456>] sys_ioctl+0x4c/0x66
2187  [<c0403de5>] sysenter_past_esp+0x56/0x79
2188  [<b7f8c410>] 0xb7f8c410
2189  =======================
2190 drivers/usb/input/hid-core.c: submitting ctrl urb: Set_Report wValue=0x0210 wIndex=0x0000 wLength=7
2191 drivers/usb/input/hid-core.c: report (size 8) (unnumbered)
2192 drivers/usb/input/hid-core.c: report 0 (size 8) =  00 00 00 00 00 00 00 00
2193 hid-debug: input Keyboard.00e0 = 0
2194 hid-debug: input Keyboard.00e1 = 0
2195 hid-debug: input Keyboard.00e2 = 0
2196 hid-debug: input Keyboard.00e3 = 0
2197 hid-debug: input Keyboard.00e4 = 0
2198 hid-debug: input Keyboard.00e5 = 0
2199 hid-debug: input Keyboard.00e6 = 0
2200 hid-debug: input Keyboard.00e7 = 0
2201 drivers/usb/input/hid-core.c: report (size 7) (numbered)
2202 drivers/usb/input/hid-core.c: report 16 (size 6) =  ff 80 80 01 00 00
2203 hid-debug: input Undefined.0001 = 1
2204 hid-debug: input c06a.8f60 = 1
2205 hid-debug: input c06a.8f60 = 1
2206 hid-debug: input ff00.0001 = 1
2207 BUG: warning at drivers/usb/input/hid-core.c:797/implement()
2208  [<c0404c70>] dump_trace+0x69/0x1b6
2209  [<c0404dd5>] show_trace_log_lvl+0x18/0x2c
2210  [<c04053bc>] show_trace+0xf/0x11
2211  [<c04054b9>] dump_stack+0x15/0x17
2212  [<c0589a5b>] hid_output_report+0x1f8/0x2a3
2213  [<c0589b5b>] hid_submit_ctrl+0x55/0x214
2214  [<c0589ee7>] hid_submit_report+0x134/0x15f
2215  [<c058c955>] hiddev_ioctl+0x327/0x88a
2216  [<c0479198>] do_ioctl+0x4c/0x62
2217  [<c04793f8>] vfs_ioctl+0x24a/0x25c
2218  [<c0479456>] sys_ioctl+0x4c/0x66
2219  [<c0403de5>] sysenter_past_esp+0x56/0x79
2220  [<b7f8c410>] 0xb7f8c410
2221  =======================
2222 BUG: warning at drivers/usb/input/hid-core.c:797/implement()
...
2249  [<c0403de5>] sysenter_past_esp+0x56/0x79
2250  [<b7f8c410>] 0xb7f8c410
2251  =======================
2252 drivers/usb/input/hid-core.c: submitting ctrl urb: Set_Report wValue=0x0210 wIndex=0x0000 wLength=7
2253 drivers/usb/input/hid-core.c: report (size 7) (numbered)
2254 drivers/usb/input/hid-core.c: report 16 (size 6) =  ff 80 00 00 30 00
2255 hid-debug: input ff00.0001 = 0
2256 hid-debug: input Button.0001 = 1
2257 drivers/usb/input/hid-core.c: report (size 7) (numbered)
2258 drivers/usb/input/hid-core.c: report 16 (size 6) =  ff 81 80 01 00 00
2259 hid-debug: input ff00.0001 = 1
2260 hid-debug: input Button.0001 = 0
2261 Bluetooth: Core ver 2.11
2262 NET: Registered protocol family 31
2263 Bluetooth: HCI device and connection manager initialized
2264 Bluetooth: HCI socket layer initialized
2265 Bluetooth: L2CAP ver 2.8
2266 Bluetooth: L2CAP socket layer initialized
2267 Bluetooth: RFCOMM socket layer initialized
2268 Bluetooth: RFCOMM TTY layer initialized
2269 Bluetooth: RFCOMM ver 1.8
2270 usb 2-2.1: new full speed USB device using uhci_hcd and address 5
2271 drivers/usb/input/hid-core.c: report (size 8) (unnumbered)
2272 drivers/usb/input/hid-core.c: report 0 (size 8) =  00 00 00 00 00 00 00 00
2273 hid-debug: input Keyboard.00e0 = 0
2274 hid-debug: input Keyboard.00e1 = 0
2275 hid-debug: input Keyboard.00e2 = 0
2276 hid-debug: input Keyboard.00e3 = 0
2277 hid-debug: input Keyboard.00e4 = 0
2278 hid-debug: input Keyboard.00e5 = 0
2279 hid-debug: input Keyboard.00e6 = 0
2280 hid-debug: input Keyboard.00e7 = 0
2281 usb 2-2.1: configuration #1 chosen from 1 choice
2282 Bluetooth: HCI USB driver ver 2.9
2283 usbcore: registered new interface driver hci_usb
2284 drivers/usb/input/hid-core.c: report (size 7) (numbered)
2285 drivers/usb/input/hid-core.c: report 2 (size 6) =  00 00 00 00 00 00
2286 hid-debug: input Button.0001 = 0
2287 hid-debug: input Button.0002 = 0
2288 hid-debug: input Button.0003 = 0
2289 hid-debug: input Button.0004 = 0
2290 hid-debug: input Button.0005 = 0
2291 hid-debug: input Button.0006 = 0
2292 hid-debug: input Button.0007 = 0
2293 hid-debug: input Button.0008 = 0
2294 hid-debug: input GenericDesktop.X = 0
2295 hid-debug: input GenericDesktop.Y = 0
2296 hid-debug: input GenericDesktop.Wheel = 0
2297 hid-debug: input Consumer.HorizontalWheel = 0
2298 hid-debug: input Button.0009 = 0
2299 hid-debug: input Button.000a = 0
2300 hid-debug: input Button.000b = 0
2301 hid-debug: input Button.000c = 0
2302 drivers/usb/input/hid-core.c: report (size 8) (unnumbered)
2303 drivers/usb/input/hid-core.c: report 0 (size 8) =  00 00 00 00 00 00 00 00
2304 hid-debug: input Keyboard.00e0 = 0
2305 hid-debug: input Keyboard.00e1 = 0
2306 hid-debug: input Keyboard.00e2 = 0
2307 hid-debug: input Keyboard.00e3 = 0
2308 hid-debug: input Keyboard.00e4 = 0
2309 hid-debug: input Keyboard.00e5 = 0
2310 hid-debug: input Keyboard.00e6 = 0
2311 hid-debug: input Keyboard.00e7 = 0
2312 drivers/usb/input/hid-core.c: report (size 5) (numbered)
2313 drivers/usb/input/hid-core.c: report 3 (size 4) =  00 00 00 00
2314 drivers/usb/input/hid-core.c: report (size 7) (numbered)
2315 drivers/usb/input/hid-core.c: report 16 (size 6) =  ff 44 01 00 00 00
2316 hid-debug: input 01a1.0109 = 1
2317 hid-debug: input c06a.8f60 = 0
2318 drivers/usb/input/hid-core.c: report (size 2) (numbered)
2319 drivers/usb/input/hid-core.c: report 4 (size 1) =  00
2320 drivers/usb/input/hid-core.c: report (size 8) (unnumbered)
2321 drivers/usb/input/hid-core.c: report 0 (size 8) =  00 00 00 00 00 00 00 00
2322 hid-debug: input Keyboard.00e0 = 0
2323 hid-debug: input Keyboard.00e1 = 0
2324 hid-debug: input Keyboard.00e2 = 0
2325 hid-debug: input Keyboard.00e3 = 0
2326 hid-debug: input Keyboard.00e4 = 0
2327 hid-debug: input Keyboard.00e5 = 0
2328 hid-debug: input Keyboard.00e6 = 0
2329 hid-debug: input Keyboard.00e7 = 0
2330 Bluetooth: HIDP (Human Interface Emulation) ver 1.1
2331 drivers/usb/input/hid-core.c: report (size 8) (unnumbered)
2332 drivers/usb/input/hid-core.c: report 0 (size 8) =  00 00 00 00 00 00 00 00
2333 hid-debug: input Keyboard.00e0 = 0
2334 hid-debug: input Keyboard.00e1 = 0
2335 hid-debug: input Keyboard.00e2 = 0
2336 hid-debug: input Keyboard.00e3 = 0
2337 hid-debug: input Keyboard.00e4 = 0
2338 hid-debug: input Keyboard.00e5 = 0
2339 hid-debug: input Keyboard.00e6 = 0
2340 hid-debug: input Keyboard.00e7 = 0
2341 drivers/usb/input/hid-core.c: report (size 8) (unnumbered)
2342 drivers/usb/input/hid-core.c: report 0 (size 8) =  00 00 00 00 00 00 00 00
2343 hid-debug: input Keyboard.00e0 = 0
2344 hid-debug: input Keyboard.00e1 = 0
2345 hid-debug: input Keyboard.00e2 = 0
2346 hid-debug: input Keyboard.00e3 = 0
2347 hid-debug: input Keyboard.00e4 = 0
2348 hid-debug: input Keyboard.00e5 = 0
2349 hid-debug: input Keyboard.00e6 = 0
2350 hid-debug: input Keyboard.00e7 = 0

- vin

----------  Message transmis  ----------

Sujet : RE: Boot time Bluetooth BUG: warning: (value > m) at hid-core.c:793
Date : lundi 19 février 2007
De : "Fortier,Vincent [Montreal]" <Vincent.Fortier1@ec.gc.ca>
À : Jiri Kosina <jikos@jikos.cz>, Marcel Holtmann <marcel@holtmann.org>

Hi Macel and Jiri,

Thnx for answering!  I'll recompile my kernel when I'll be back home.  Do you want me to keep my 2.6.19, switch to 2.6.20 or 2.6.21-rcX-gitYZ ?

Thnx.

Note:  Added my home address in CC.

- vin

> -----Message d'origine-----
> De : Jiri Kosina [mailto:jikos@jikos.cz] 
> Envoyé : 19 février 2007 04:37
> À : Marcel Holtmann
> Cc : Fortier,Vincent [Montreal]; linux-kernel@vger.kernel.org
> Objet : Re: Boot time Bluetooth BUG: warning: (value > m) at 
> hid-core.c:793
> 
> On Mon, 19 Feb 2007, Marcel Holtmann wrote:
> 
> > we understand the original CSR HID proxy dongles, but for 
> the Logitech 
> > ones, it is wild guesses. The current support in hid2hci has been 
> > tested on Logitech diNovo first generation and I have no other 
> > Logitech hardware to verify it with. We might simply need 
> the full HID 
> > report descriptor to see who is at fault.
> 
> Vincent,
> 
> from the stacktrace it seems that you are using pre-2.6.20 
> kernel. Could you please compile kernel with the following 
> changes in drivers/usb/input/hid-core.c
> 
> - comment the #undef DEBUG and #undef DEBUG_DATA
> - add #define DEBUG and #define DEBUG_DATA
> 
> and send us the output?
> 
> --
> Jiri Kosina
> 

-------------------------------------------------------

[-- Attachment #2: dmesg.2.6.19-DEBUG.gz --]
[-- Type: application/x-gzip, Size: 12237 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [KJ][PATCH] is_power_of_2 in ia64mm
@ 2007-02-16 12:03 Vignesh Babu BM
  2007-02-16 15:02 ` [KJ] [PATCH] " Richard Knutsson
  0 siblings, 1 reply; 15+ messages in thread
From: Vignesh Babu BM @ 2007-02-16 12:03 UTC (permalink / raw)
  To: Kernel Janitors List; +Cc: tony.luck, linux-ia64, linux-mm, linux-kernel

Replacing (n & (n-1)) in the context of power of 2 checks
with is_power_of_2


diff --git a/arch/ia64/mm/hugetlbpage.c b/arch/ia64/mm/hugetlbpage.c
index 0c7e94e..0ccc70e 100644
--- a/arch/ia64/mm/hugetlbpage.c
+++ b/arch/ia64/mm/hugetlbpage.c
@@ -16,6 +16,7 @@
 #include <linux/smp_lock.h>
 #include <linux/slab.h>
 #include <linux/sysctl.h>
+#include <linux/log2.h>
 #include <asm/mman.h>
 #include <asm/pgalloc.h>
 #include <asm/tlb.h>
@@ -175,7 +176,7 @@ static int __init hugetlb_setup_sz(char *str)
 		tr_pages = 0x15557000UL;
 
 	size = memparse(str, &str);
-	if (*str || (size & (size-1)) || !(tr_pages & size) ||
+	if (*str || !is_power_of_2(size) || !(tr_pages & size) ||
 		size <= PAGE_SIZE ||
 		size >= (1UL << PAGE_SHIFT << MAX_ORDER)) {
 		printk(KERN_WARNING "Invalid huge page size specified\n");

-- 
Regards,  
Vignesh Babu BM  
_____________________________________________________________  
"Why is it that every time I'm with you, makes me believe in magic?"

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-03-23  9:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-05 19:19 Boot time Bluetooth BUG: warning: (value > m) at hid-core.c:793 Amedee Van Gasse
2007-03-05 21:54 ` Jiri Kosina
     [not found]   ` <1173191358.9292.4.camel@saruman>
2007-03-06 14:44     ` Jiri Kosina
2007-03-23  9:15 ` Jiri Kosina
  -- strict thread matches above, loose matches on Subject: below --
2007-02-20  2:11 Fwd: " Veronique & Vincent
2007-02-20  8:02 ` Jiri Kosina
2007-02-22  2:50   ` Pete Zaitcev
2007-02-22  8:04     ` Jiri Kosina
2007-02-22 10:38     ` Veronique & Vincent
2007-02-22 10:46       ` Jiri Kosina
2007-02-16 12:03 [KJ][PATCH] is_power_of_2 in ia64mm Vignesh Babu BM
2007-02-16 15:02 ` [KJ] [PATCH] " Richard Knutsson
2007-02-16 15:27   ` Boot time Bluetooth BUG: warning: (value > m) at hid-core.c:793 Fortier,Vincent [Montreal]
2007-02-18 21:23     ` Jiri Kosina
2007-02-19  0:25       ` Marcel Holtmann
2007-02-19  9:36         ` Jiri Kosina
2007-02-27 15:54         ` Jiri Kosina
2007-02-27 16:12           ` Fortier,Vincent [Montreal]
     [not found]             ` <Pine.LNX.4.64.0702271713220.10496@twin.jikos.cz>
2007-02-27 20:35               ` Fortier,Vincent [Montreal]

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.