From owner-freebsd-current@freebsd.org Fri Mar 9 08:40:05 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E500F37F2F; Fri, 9 Mar 2018 08:40:05 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D50966AE8B; Fri, 9 Mar 2018 08:40:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 74210260178; Fri, 9 Mar 2018 09:40:03 +0100 (CET) Subject: Re: webcamd based touchscreen problem on Pi3 To: ticso@cicely.de Cc: freebsd-arm@freebsd.org, freebsd-current@freebsd.org, Bernd Walter References: <20180308161645.GF80981@cicely7.cicely.de> <20180308163605.GA61875@BWEPCFERNANDEZ> <20180308161645.GF80981@cicely7.cicely.de> <818e1917-0472-c0dd-a9d6-b7532faf4d4b@selasky.org> <20180308163026.z3ptrc7376smnsrt@unrelenting.technology> <20180308191131.GB86413@cicely7.cicely.de> <20180308200849.GC86413@cicely7.cicely.de> <20180308210805.GE86413@cicely7.cicely.de> <20180309004433.GI86413@cicely7.cicely.de> From: Hans Petter Selasky Message-ID: <4765ef04-6fb1-f9dc-315d-c4419d6ba016@selasky.org> Date: Fri, 9 Mar 2018 09:40:00 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180309004433.GI86413@cicely7.cicely.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2018 08:40:05 -0000 On 03/09/18 01:44, Bernd Walter wrote: > On Thu, Mar 08, 2018 at 10:10:47PM +0100, Hans Petter Selasky wrote: >> You can try running usbdump to capture USB packets. >> >> ktrace is also your friend. >> >> dd if=/dev/input/event0 bs=1 >> >> Also check ownership of devices, that X.org can read from them. > > It happens earlier, /dev/input/event0 delivers nothing at all. > But usbdump is interesting. > I've booted with webcamd disabled, started usbdump and started webcamd. > > This is what I get: > [22]sa# usbdump -v -f 4 > 00:30:09.379930 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.382401 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... | > 00:30:09.382448 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.385398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... | > 00:30:09.385439 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 02 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.388398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 12 03 42 00 -- -- -- -- -- -- -- -- -- -- -- -- |..B. | > 00:30:09.388434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 02 03 09 04 12 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 18 bytes > 00:30:09.391399 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 18 bytes > 0000 12 03 42 00 79 00 20 00 5A 00 48 00 38 00 35 00 |..B.y. .Z.H.8.5.| > 0010 31 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- |1. | > 00:30:09.391474 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.394398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... | > 00:30:09.394435 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.397398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... | > 00:30:09.397436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 01 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.400398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 14 03 42 00 -- -- -- -- -- -- -- -- -- -- -- -- |..B. | > 00:30:09.400433 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 01 03 09 04 14 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 20 bytes > 00:30:09.403398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=20,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 20 bytes > 0000 14 03 42 00 59 00 5A 00 48 00 59 00 59 00 5A 00 |..B.Y.Z.H.Y.Y.Z.| > 0010 48 00 59 00 -- -- -- -- -- -- -- -- -- -- -- -- |H.Y. | > 00:30:09.403440 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.406398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... | > 00:30:09.406437 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.409397 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... | > 00:30:09.409434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 03 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.412398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 1A 03 1A 00 -- -- -- -- -- -- -- -- -- -- -- -- |.... | > 00:30:09.412434 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 03 03 09 04 1A 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 26 bytes > 00:30:09.415398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 26 bytes > 0000 1A 03 1A 00 95 00 50 00 33 00 39 00 31 00 31 00 |......P.3.9.1.1.| > 0010 06 00 32 00 33 00 39 00 38 00 -- -- -- -- -- -- |..2.3.9.8. | > 00:30:09.420243 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.422400 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... | > 00:30:09.422441 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 00 03 00 00 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.425398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 04 03 09 04 -- -- -- -- -- -- -- -- -- -- -- -- |.... | > 00:30:09.425436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 03 03 09 04 04 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 4 bytes > 00:30:09.428398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 4 bytes > 0000 1A 03 1A 00 -- -- -- -- -- -- -- -- -- -- -- -- |.... | > 00:30:09.428436 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 03 03 09 04 1A 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 26 bytes > 00:30:09.431398 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=28,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 26 bytes > 0000 1A 03 1A 00 95 00 50 00 33 00 39 00 31 00 31 00 |......P.3.9.1.1.| > 0010 06 00 32 00 33 00 39 00 38 00 -- -- -- -- -- -- |..2.3.9.8. | > 00:30:09.431941 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 21 0A 00 00 00 00 00 00 -- -- -- -- -- -- -- -- |!....... | > 00:30:09.433396 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=1,SLEN=0,IVAL=0,ERR=STALLED > frame[0] WRITE 8 bytes > 00:30:09.433442 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 81 06 00 22 00 00 FB 00 -- -- -- -- -- -- -- -- |...".... | > frame[1] READ 251 bytes > 00:30:09.439403 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=252,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 251 bytes > 00:30:09.447376 usbus0.4 SUBM-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 A1 01 02 03 00 00 02 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 2 bytes > 00:30:09.450400 usbus0.4 DONE-CTRL-EP=00000080,SPD=FULL,NFR=2,SLEN=4,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 2 bytes > 0000 02 0A -- -- -- -- -- -- -- -- -- -- -- -- -- -- |.. | > 00:30:09.451878 usbus0.4 SUBM-CTRL-EP=00000000,SPD=FULL,NFR=2,SLEN=12,IVAL=0 > frame[0] WRITE 8 bytes > 0000 21 09 03 03 00 00 03 00 -- -- -- -- -- -- -- -- |!....... | > frame[1] WRITE 3 bytes > 0000 03 02 00 -- -- -- -- -- -- -- -- -- -- -- -- -- |... | > 00:30:09.454404 usbus0.4 DONE-CTRL-EP=00000000,SPD=FULL,NFR=2,SLEN=0,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] WRITE 3 bytes > 00:30:09.466235 usbus0.4 SUBM-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=0,IVAL=10 > frame[0] READ 14 bytes > 00:30:09.523430 usbus0.4 DONE-INTR-EP=00000082,SPD=FULL,NFR=0,SLEN=0,IVAL=10,ERR=CANCELLED > > It is obvious that the communication fails very early. > Can you try connecting the device through an external USB HUB? Can you capture the whole enumeration sequence. Can you also try setting the UQ_NO_STRINGS quirk using usbconfig for this device and re-plug it? --HPS --HPS