Re: new computer, strange usb messages at boot

From: Larry Rosenman <ler_at_lerctr.org>
Date: Tue, 23 Feb 2016 08:36:57 -0600
On 2016-02-23 08:28, Larry Rosenman wrote:
> On 2016-02-22 01:10, Hans Petter Selasky wrote:
>> On 02/21/16 17:28, Larry Rosenman wrote:
>>> Does this mean that the touch screen is hitting a limit in FreeBSD's
>>> driver?
>> 
>> Yes, the hid driver is limiting the range of some report. This should
>> be harmless. You would need to dump the HID descriptor to see the
>> limits. Maybe we could raise the limit from 256 to 4096 or something
>> in that range, to make the warning to away. It's
>> 
>> sys/dev/usb/usb_hid.c:
>> 
>>>                                         /* range check usage count */
>>>                                         if (c->loc.count > 255) {
>>>                                                 DPRINTFN(0, "Number 
>>> of "
>>>                                                     "items truncated 
>>> to 255\n");
>>>                                                 s->ncount = 255;
>>>                                         } else
>>>                                                 s->ncount = 
>>> c->loc.count;
>>> 
>> 
>> Try adding c->loc.count to the printout, to see the limit it is 
>> exceeding.
>> 
>> --HPS
> 
> hid_get_item: Number of items truncated to 255 (was 256)

Any chance of someone(tm) committing this small patch to add this info 
by
default?

Index: usb_hid.c
===================================================================
--- usb_hid.c	(revision 295874)
+++ usb_hid.c	(working copy)
_at__at_ -354,7 +354,8 _at__at_
  					/* range check usage count */
  					if (c->loc.count > 255) {
  						DPRINTFN(0, "Number of "
-						    "items truncated to 255\n");
+						    "items truncated to 255 "
+                                                    "(was 
%d)\n",c->loc.count);
  						s->ncount = 255;
  					} else
  						s->ncount = c->loc.count;
$


-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler_at_lerctr.org
US Mail: 7011 W Parmer Ln, Apt 1115, Austin, TX 78729-6961
Received on Tue Feb 23 2016 - 13:36:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:03 UTC