Pete Zaitcev wrote:
OK, here is the interesting part of the trace.

Thanks for the decode...

Up to this point, something hits the UPS with control messages every 4ms (sounds crazy, but here it is: the daemon is obviously out of control).

That is insane. No wonder the thing locks up eventually.

Christian, back in mid-May I suggested a way you might be able to reproduce the lockup faster:

   | One other thing to try on the apcupsd end is to edit
   | src/drivers/usb/linux/linux-usb.c and modify the
   | pusb_ups_check_state() function. Replace the entire
   | body of that function with "return 1;" and| then
   | rebuild apcupsd and run it.

You're not still running with that change, are you? It would certainly account for why the UPS is getting blasted with control transfers. But I don't think this is the case since we'd see them in the HID debug output.

> c21ed160 2336523562 S Ci:002:00 -115 8 D
<---- Control submission without completion

Yup, that matches what we see from the HID level.

> c21ed1e0 2337061533 C Ii:002:01 0 3 D
> c21ed1e0 2337061550 S Ii:002:01 -115 3 D
<----- Pretty big gap, 3.5s
> c21ed1e0 2340357664 C Ii:002:01 0 3 D
> c21ed1e0 2340357681 S Ii:002:01 -115 3 D

From now on it's only interrupt requests ending, about every 8ms or so.

Unless I'm mis-reading the trace, I think there are actually bursts of 4-5 back-to-back interrupt transfers every 3 seconds or so. Grepping out just the interrupt transfers shows they've been happening that way from the very beginning...which is expected behavior: The UPS periodically reports dynamic data such as line voltage and frequency.

--Adam



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to