From owner-freebsd-usb@freebsd.org Sun May 16 21:00:28 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AAD76631036 for ; Sun, 16 May 2021 21:00:28 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FjvmX1zHJz3r0W for ; Sun, 16 May 2021 21:00:28 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 28989630FF3; Sun, 16 May 2021 21:00:28 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2462A6310A0 for ; Sun, 16 May 2021 21:00:28 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FjvmW2QBZz3r2Y for ; Sun, 16 May 2021 21:00:27 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0E2F81F6D2 for ; Sun, 16 May 2021 21:00:27 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 14GL0QAk056543 for ; Sun, 16 May 2021 21:00:26 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 14GL0Q2D056542 for usb@FreeBSD.org; Sun, 16 May 2021 21:00:26 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202105162100.14GL0Q2D056542@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: usb@FreeBSD.org Subject: Problem reports for usb@FreeBSD.org that need special attention Date: Sun, 16 May 2021 21:00:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 May 2021 21:00:28 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 213877 | xhci reset causes panic on SuperMicro A1SRi-2758F Open | 234578 | Support for Sierra Wireless EM7455 modem Open | 247964 | Low read throughput on Sandisk Extreme external S 3 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Mon May 17 09:50:15 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8CD96642256 for ; Mon, 17 May 2021 09:50:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FkDrl3MdYz3jlL for ; Mon, 17 May 2021 09:50:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 71455642356; Mon, 17 May 2021 09:50:15 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7105A642255 for ; Mon, 17 May 2021 09:50:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FkDrl2cJWz3jjl for ; Mon, 17 May 2021 09:50:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3B8AF1C9C for ; Mon, 17 May 2021 09:50:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 14H9oFXv068562 for ; Mon, 17 May 2021 09:50:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 14H9oFad068561 for usb@FreeBSD.org; Mon, 17 May 2021 09:50:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 255780] USB timeout when using BladeRF 2.0 A9 Date: Mon, 17 May 2021 09:50:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kjopek@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2021 09:50:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255780 --- Comment #4 from Konrad Jopek --- Do you any further debug information? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu May 20 17:44:45 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8AE826446EB for ; Thu, 20 May 2021 17:44:45 +0000 (UTC) (envelope-from mark@kane.mn) Received: from stinger.tntpowerhost.com (stinger.tntpowerhost.com [104.128.58.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "stinger.tntpowerhost.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FmHDr3kdwz4sBk for ; Thu, 20 May 2021 17:44:44 +0000 (UTC) (envelope-from mark@kane.mn) Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTP id 28e79598 for ; Thu, 20 May 2021 12:44:36 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kane.mn; h= mime-version:date:from:to:subject:message-id:content-type :content-transfer-encoding; s=stinger; bh=fe0TSWEHIkCnAkOYbgFw4t KfTSSVAMxBbmVW9vMRiP0=; b=AZNgaa9JDKwfbTLpstUGvRCgquIwfSsZmL/MGB 3xCStDnOlfh4YKaSF5YH3HyQteKhD4KzjwjDj27eNg5aMzvw1Xuy1Q+mPkGYpqkl KlTofLdFQLmsu7RwJq/1CFd05NEGqa789VcBEFpIt5VL0YXZOLuLxojzA0WoSWcz 1GCFA= Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTPSA id bb406d83 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 20 May 2021 12:44:36 -0500 (CDT) MIME-Version: 1.0 Date: Thu, 20 May 2021 12:44:36 -0500 From: Mark Kane To: freebsd-usb@freebsd.org Subject: eGalax USB touchscreen issues User-Agent: Roundcube Webmail/1.4.6 Message-ID: X-Sender: mark@kane.mn Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4FmHDr3kdwz4sBk X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=kane.mn header.s=stinger header.b=AZNgaa9J; dmarc=pass (policy=none) header.from=kane.mn; spf=pass (mx1.freebsd.org: domain of mark@kane.mn designates 104.128.58.83 as permitted sender) smtp.mailfrom=mark@kane.mn X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[104.128.58.83:from]; R_DKIM_ALLOW(-0.20)[kane.mn:s=stinger]; FREEFALL_USER(0.00)[mark]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:104.128.58.83]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[104.128.58.83:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[kane.mn:+]; DMARC_POLICY_ALLOW(-0.50)[kane.mn,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:30455, ipnet:104.128.58.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2021 17:44:45 -0000 Hi, I'm trying to get an eGalax USB touchscreen working on FreeBSD 13.0-RELEASE and several approaches have been unsuccessful. 1) uep(4) in evdev or native mode - uep.ko automatically loads and attaches. X uses the respective evdev or egalax input driver however no events are registered with `xinput --test` or evemu-record. [1] suggests uep(4) is for older non-HID devices and the vendor reused the same device IDs for newer HID devices, so a different driver may be correct for this device. [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183032 ugen0.3: at usbus0 uep0: on usbus0 2) uhid(4) - With uep(4) disabled, uhid(4) attempts to attach but fails: kernel: ugen0.3: at usbus0 kernel: uhid1 on uhub1 kernel: uhid1: on usbus0 kernel: uhid1: no report descriptor kernel: device_attach: uhid1 attach returned 12 3) uhidd(8) - With uhid(4) disabled, this is the only method that any touchscreen events have been seen but there are issues. Sometimes starting uhidd will fail the first couple times ("libusb20_dev_request_sync failed" the first, crash the second) and then start OK after a few tries. When it is running uhidd prints touchscreen events with -v but X didn't autodetect the /dev/uvhid* device or if symlinked to /dev/uhid*. If the X "mouse" driver is configured with the uvhid device X will segfault upon startup citing mouse_drv.so. 4) wmt(4) - wmt.ko automatically loads but does not attach or create any evdev devices. 5) `webcamd -l` shows the device but exits on startup with "Cannot find USB device". Should this device work with uhid(4) or wmt(4) and does the below output give any clues what might be going wrong? If uhidd(8) or webcamd is what should be used instead are there any issues with my config? The device itself should be okay, it works out of the box on OpenBSD and the vendor provides drivers for Linux. Thanks in advance for any pointers. -Mark # usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) ugen0.4: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) ugen0.5: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA) # # usbhid-dump 000:003:000:DESCRIPTOR 1621478496.823720 8D 0F 00 09 42 09 32 15 00 25 01 95 02 75 01 81 02 95 06 75 01 81 03 05 01 09 30 75 10 95 01 A4 55 00 65 00 36 00 00 46 00 00 16 1E 00 26 C8 0F 81 02 09 31 16 3C 00 26 000:004:001:DESCRIPTOR 1621478496.826074 05 0C 09 01 A1 01 85 01 19 00 2A 3C 02 15 00 26 3C 02 95 01 75 10 81 00 C0 05 01 09 80 A1 01 85 02 19 81 29 83 25 01 75 01 95 03 81 02 95 05 81 01 C0 000:004:000:DESCRIPTOR 1621478496.829067 05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01 95 08 75 01 81 02 95 08 75 01 81 01 05 08 19 01 29 03 95 03 75 01 91 02 95 01 75 05 91 01 05 07 19 00 2A FF 00 15 00 26 FF 00 95 06 75 08 81 00 C0 # # usbconfig -d ugen0.3 dump_all_desc ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0eef idProduct = 0x0001 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0022 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0001 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x02, 0x00, 0x01, 0x22, 0x8d, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x0003 bRefresh = 0x0000 bSynchAddress = 0x0000 # ----------------------- uhidd sees events: # /usr/local/sbin/uhidd -kmohsuvvv /dev/ugen0.3 uhidd 1292 - - open /usr/local/etc/uhidd.conf failed: No such file or directory uhidd 1292 - - proceed without configuration file ugen0.3[0]-> HID interface ugen0.3[0]-> Report descriptor size = 141 ugen0.3[0]-> Find IN interrupt ep: 0x81 packet_size=0x8 HID APPLICATION COLLECTION (Pointer) size(63) HID REPORT: ID 1 INPUT: POS:0 SIZE:1 COUNT:2 [VARIABLE] USAGE Button1 USAGE Button2 POS:2 SIZE:6 COUNT:1 [CONST] POS:8 SIZE:16 COUNT:2 [VARIABLE] USAGE X USAGE Y HID APPLICATION COLLECTION (Touch Screen) size(78) HID REPORT: ID 2 INPUT: POS:0 SIZE:1 COUNT:2 [VARIABLE] USAGE Tip Switch USAGE In Range POS:2 SIZE:1 COUNT:6 [CONST] POS:8 SIZE:16 COUNT:1 [VARIABLE] USAGE X POS:24 SIZE:16 COUNT:1 [VARIABLE] USAGE Y uhidd 1292 - - cuse initiailzed. ugen0.3[0]-> vhid device created: uvhid0 ugen0.3[0]-> vhid device created: uvhid1 ugen0.3[0]-> HID interface task started [...start touching screen...] ugen0.3[0]-> received data(6): 02 03 -7 03 -8 10 hid_appcol_recv_data: len(6) 0x02 0x03 0xf9 0x03 0xf8 0x0a ugen0.3[0]-> uvhid1 received data: 2 3 249 3 248 10 ugen0.3[0]-> received data(6): 02 03 -7 03 -13 10 hid_appcol_recv_data: len(6) 0x02 0x03 0xf9 0x03 0xf3 0x0a ugen0.3[0]-> uvhid1 received data: 2 3 249 3 243 10 ugen0.3[0]-> received data(6): 02 02 -7 03 -13 10 hid_appcol_recv_data: len(6) 0x02 0x02 0xf9 0x03 0xf3 0x0a ugen0.3[0]-> uvhid1 received data: 2 2 249 3 243 10 ugen0.3[0]-> received data(6): 02 03 -30 03 00 11 hid_appcol_recv_data: len(6) 0x02 0x03 0xe2 0x03 0x00 0x0b ugen0.3[0]-> uvhid1 received data: 2 3 226 3 0 11 ugen0.3[0]-> received data(6): 02 03 -39 03 09 11 [... more events ...] # however X crashes with uhidd and xf86-input-mouse: [...] [ 151.396] (II) Using input driver 'mouse' for 'Touch0' [ 151.397] (**) Option "SendCoreEvents" [ 151.397] (**) Option "CorePointer" "on" [ 151.397] (**) Touch0: always reports core events [ 151.397] (**) Option "Protocol" "usb" [ 151.397] (**) Option "Device" "/dev/uvhid1" [ 151.397] (**) Touch0: Protocol: usb [ 151.397] (**) Touch0: always reports core events [ 151.397] (==) Touch0: Opening new HID device [ 151.398] (==) Touch0: Found 1 usable logical collections [ 151.398] (**) Option "Collection" "2" [ 151.398] (**) Touch0: Collection: 2 [ 151.398] (EE) Touch0: Application collection not found or already handled [ 151.398] (**) Touch0: Protocol: "usb" [ 151.398] (II) XINPUT: Adding extended input device "Touch0" (type: MOUSE, id 7) [ 151.399] (EE) [ 151.399] (EE) Backtrace: [ 151.402] (EE) 0: /usr/local/bin/Xorg (?+0x0) [0x41dd9a] [ 151.404] (EE) unw_get_proc_name failed: no unwind info found [-10] [ 151.404] (EE) 1: /lib/libthr.so.3 (?+0x0) [0x800928e0e] [ 151.407] (EE) unw_get_proc_name failed: no unwind info found [-10] [ 151.407] (EE) 2: /lib/libthr.so.3 (?+0x0) [0x8009283cf] [ 151.409] (EE) 3: ? (?+0x0) [0x7ffffffff003] [ 151.412] (EE) 4: /usr/local/lib/xorg/modules/input/mouse_drv.so (?+0x0) [0x801cef5ff] [ 151.415] (EE) 5: /usr/local/bin/Xorg (?+0x0) [0x292bfc] [ 151.417] (EE) 6: /usr/local/bin/Xorg (?+0x0) [0x2f0ed8] [ 151.420] (EE) 7: /usr/local/bin/Xorg (?+0x0) [0x2e6961] [ 151.422] (EE) 8: /usr/local/bin/Xorg (?+0x0) [0x2a1a5f] [ 151.425] (EE) 9: /usr/local/bin/Xorg (?+0x0) [0x28a420] [ 151.427] (EE) 10: ? (?+0x0) [0x800458008] [ 151.427] (EE) [ 151.427] (EE) Segmentation fault at address 0x0 [ 151.428] (EE) Fatal server error: [ 151.428] (EE) Caught signal 11 (Segmentation fault). Server aborting Section "InputDevice" Identifier "Touch0" Driver "mouse" Option "Protocol" "usb" Option "Device" "/dev/uvhid1" EndSection Sometimes uhidd has problems starting but then works on the 3rd or 4th try: # uhidd -dD -vvv -kmohu /dev/ugen0.3 uhidd 1808 - - open /usr/local/etc/uhidd.conf failed: No such file or directory uhidd 1808 - - proceed without configuration file ugen0.3[0]-> HID interface ugen0.3[0]-> Report descriptor size = 141 uhidd 1808 - - ugen0.3[0]=> libusb20_dev_request_sync failed # uhidd -dD -vvv -kmohu /dev/ugen0.3 uhidd 1809 - - open /usr/local/etc/uhidd.conf failed: No such file or directory uhidd 1809 - - proceed without configuration file ugen0.3[0]-> HID interface ugen0.3[0]-> Report descriptor size = 141 ugen0.3[0]-> Report descriptor dump: illegal type (bType=3) illegal Main Item (bTag=0) ugen0.3[0]-> Find IN interrupt ep: 0x81 packet_size=0x8 uhidd: hid_parser: unknown bType(3) uhidd: hid_parser: unknown Main item(0) Assertion failed: (ha != NULL), function hid_parser_init, file uhidd_hidcore.c, line 380. Abort (core dumped) # uhidd -dD -vvv -kmohu /dev/ugen0.3 uhidd 1810 - - open /usr/local/etc/uhidd.conf failed: No such file or directory uhidd 1810 - - proceed without configuration file ugen0.3[0]-> HID interface ugen0.3[0]-> Report descriptor size = 141 uhidd 1810 - - ugen0.3[0]=> libusb20_dev_request_sync failed # uhidd -dD -vvv -kmohu /dev/ugen0.3 uhidd 1811 - - open /usr/local/etc/uhidd.conf failed: No such file or directory uhidd 1811 - - proceed without configuration file ugen0.3[0]-> HID interface ugen0.3[0]-> Report descriptor size = 141 ugen0.3[0]-> Report descriptor dump: USAGE PAGE Generic Desktop(0x1) USAGE Pointer(0x1)[Generic Desktop(0x1)] COLLECTION Application(1) REPORT ID 1 USAGE Pointer(0x1)[Generic Desktop(0x1)] COLLECTION Physical(0) USAGE PAGE Button(0x9) USAGE MINIMUM Button1(1) USAGE MAXIMUM Button2(2) LOGICAL MINIMUM 0 LOGICAL MAXIMUM 1 REPORT COUNT 2 REPORT SIZE 1 INPUT ( Data Variable Absolute ) (2) REPORT COUNT 1 REPORT SIZE 6 INPUT ( Const Array Absolute ) (1) USAGE PAGE Generic Desktop(0x1) USAGE X(0x30)[Generic Desktop(0x1)] USAGE Y(0x31)[Generic Desktop(0x1)] LOGICAL MINIMUM 42 LOGICAL MAXIMUM 1981 PHYSICAL MINIMUM 0 PHYSICAL MAXIMUM 4095 UNIT (0) REPORT SIZE 16 REPORT COUNT 2 INPUT ( Data Variable Absolute ) (2) END COLLECTION END COLLECTION USAGE PAGE Digitizer(0xd) USAGE Touch Screen(0x4)[Digitizer(0xd)] COLLECTION Application(1) REPORT ID 2 USAGE Stylus(0x20)[Digitizer(0xd)] COLLECTION Physical(0) USAGE Tip Switch(0x42)[Digitizer(0xd)] USAGE In Range(0x32)[Digitizer(0xd)] LOGICAL MINIMUM 0 LOGICAL MAXIMUM 1 REPORT COUNT 2 REPORT SIZE 1 INPUT ( Data Variable Absolute ) (2) REPORT COUNT 6 REPORT SIZE 1 INPUT ( Const Variable Absolute ) (3) USAGE PAGE Generic Desktop(0x1) USAGE X(0x30)[Generic Desktop(0x1)] REPORT SIZE 16 REPORT COUNT 1 PUSH UNIT EXPONENT 0 UNIT (0) PHYSICAL MINIMUM 0 PHYSICAL MAXIMUM 0 LOGICAL MINIMUM 30 LOGICAL MAXIMUM 4040 INPUT ( Data Variable Absolute ) (2) USAGE Y(0x31)[Generic Desktop(0x1)] LOGICAL MINIMUM 60 LOGICAL MAXIMUM 4035 PHYSICAL MINIMUM 0 PHYSICAL MAXIMUM 0 INPUT ( Data Variable Absolute ) (2) POP END COLLECTION END COLLECTION ugen0.3[0]-> Find IN interrupt ep: 0x81 packet_size=0x8 HID APPLICATION COLLECTION (Pointer) size(63) HID REPORT: ID 1 INPUT: POS:0 SIZE:1 COUNT:2 [VARIABLE] USAGE Button1 USAGE Button2 POS:2 SIZE:6 COUNT:1 [CONST] POS:8 SIZE:16 COUNT:2 [VARIABLE] USAGE X USAGE Y HID APPLICATION COLLECTION (Touch Screen) size(78) HID REPORT: ID 2 INPUT: POS:0 SIZE:1 COUNT:2 [VARIABLE] USAGE Tip Switch USAGE In Range POS:2 SIZE:1 COUNT:6 [CONST] POS:8 SIZE:16 COUNT:1 [VARIABLE] USAGE X POS:24 SIZE:16 COUNT:1 [VARIABLE] USAGE Y ugen0.3[0]-> Kernel driver is active ugen0.3[0]-> kernel driver detached! uhidd 1811 - - Attempt to load kernel module cuse.ko... uhidd 1811 - - Successfully loaded cuse kernel module uhidd 1811 - - cuse initiailzed. ugen0.3[0]-> vhid device created: uvhid0 ugen0.3[0]-> vhid device created: uvhid1 ugen0.3[0]-> HID interface task started ----------------------- # webcamd -d ugen0.3 webcamd 1415 - - Attached to ugen0.3[0] webcamd 1415 - - webcamd: Cannot find USB device # ----------------------- uep(4) with evdev: # evemu-describe Available devices: /dev/input/event0: System mouse /dev/input/event1: System keyboard multiplexer /dev/input/event2: Power Button /dev/input/event3: Sleep Button /dev/input/event4: Lite-On Technology Corp. USB Multimedia Keyboard, class 0/0, rev 1.10/1.09, add /dev/input/event5: eGalax Inc. USB TouchController, class 0/0, rev 1.10/1.00, addr 3 Select the device event number [0-5]: 5 # EVEMU 1.3 # Kernel: 13.0-RELEASE # Input device name: "eGalax Inc. USB TouchController, class 0/0, rev 1.10/1.00, addr 3" # Input device ID: bus 0x03 vendor 0xeef product 0x01 version 0000 # Supported events: # Event type 0 (EV_SYN) # Event code 0 (SYN_REPORT) # Event code 1 (SYN_CONFIG) # Event code 2 (SYN_MT_REPORT) # Event code 3 (SYN_DROPPED) # Event code 4 ((null)) # Event code 5 ((null)) # Event code 6 ((null)) # Event code 7 ((null)) # Event code 8 ((null)) # Event code 9 ((null)) # Event code 10 ((null)) # Event code 11 ((null)) # Event code 12 ((null)) # Event code 13 ((null)) # Event code 14 ((null)) # Event code 15 (SYN_MAX) # Event type 1 (EV_KEY) # Event code 330 (BTN_TOUCH) # Event type 3 (EV_ABS) # Event code 0 (ABS_X) # Value 0 # Min 0 # Max 2047 # Fuzz 0 # Flat 0 # Resolution 0 # Event code 1 (ABS_Y) # Value 0 # Min 0 # Max 2047 # Fuzz 0 # Flat 0 # Resolution 0 # Properties: # Property type 1 (INPUT_PROP_DIRECT) N: eGalax Inc. USB TouchController, class 0/0, rev 1.10/1.00, addr 3 I: 0003 0eef 0001 0000 P: 02 00 00 00 00 00 00 00 B: 00 0b 00 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 01 00 04 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 01 00 00 00 00 00 00 00 00 B: 02 00 00 00 00 00 00 00 00 B: 03 03 00 00 00 00 00 00 00 B: 04 00 00 00 00 00 00 00 00 B: 05 00 00 00 00 00 00 00 00 B: 11 00 00 00 00 00 00 00 00 B: 12 00 00 00 00 00 00 00 00 B: 14 00 00 00 00 00 00 00 00 B: 15 00 00 00 00 00 00 00 00 B: 15 00 00 00 00 00 00 00 00 A: 00 0 2047 0 0 0 A: 01 0 2047 0 0 0 # # libinput list-devices [...] Device: eGalax Inc. USB TouchController, class 0/0, rev 1.10/1.00, addr 3 Kernel: /dev/input/event5 Group: 6 Seat: seat0, default Capabilities: touch Tap-to-click: n/a Tap-and-drag: n/a Tap drag lock: n/a Left-handed: n/a Nat.scrolling: n/a Middle emulation: n/a Calibration: identity matrix Scroll methods: none Click methods: none Disable-w-typing: n/a Accel profiles: n/a Rotation: n/a # X log for uep(4) in evdev mode: [ 291.398] (II) config/udev: Adding input device eGalax Inc. USB TouchController (/dev/input/event5) [ 291.398] (**) eGalax Inc. USB TouchController: Applying InputClass "evdev touchscreen catchall" [ 291.398] (**) eGalax Inc. USB TouchController: Applying InputClass "libinput touchscreen catchall" [ 291.398] (II) Using input driver 'libinput' for 'eGalax Inc. USB TouchController' [ 291.398] (**) eGalax Inc. USB TouchController: always reports core events [ 291.398] (**) Option "Device" "/dev/input/event5" [ 291.398] (**) Option "_source" "server/udev" [ 291.401] (II) event5 - eGalax Inc. USB TouchController, class 0/0, rev 1.10/1.00, addr 3: is tagged by udev as: Touchscreen [ 291.402] (II) event5 - eGalax Inc. USB TouchController, class 0/0, rev 1.10/1.00, addr 3: device is a touch device [ 291.403] (II) event5 - eGalax Inc. USB TouchController, class 0/0, rev 1.10/1.00, addr 3: device removed [ 291.403] (**) Option "config_info" "udev:/dev/input/event5" [ 291.403] (II) XINPUT: Adding extended input device "eGalax Inc. USB TouchController" (type: TOUCHSCREEN, id 11) [ 291.403] (**) Option "AccelerationScheme" "none" [ 291.403] (**) eGalax Inc. USB TouchController: (accel) selected scheme none/0 [ 291.403] (**) eGalax Inc. USB TouchController: (accel) acceleration factor: 2.000 [ 291.403] (**) eGalax Inc. USB TouchController: (accel) acceleration threshold: 4 [ 291.406] (II) event5 - eGalax Inc. USB TouchController, class 0/0, rev 1.10/1.00, addr 3: is tagged by udev as: Touchscreen [ 291.407] (II) event5 - eGalax Inc. USB TouchController, class 0/0, rev 1.10/1.00, addr 3: device is a touch device xinput uep(4) evdev test: % xinput --list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ System mouse id=6 [slave pointer (2)] ⎜ ↳ eGalax Inc. USB TouchController id=11 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ System keyboard multiplexer id=7 [slave keyboard (3)] ↳ Power Button id=8 [slave keyboard (3)] ↳ Sleep Button id=9 [slave keyboard (3)] ↳ Lite-On Technology Corp. USB Multimedia Keyboard id=10 [slave keyboard (3)] % xinput --test 11 [...no events...] ^C % dmesg: Copyright (c) 1992-2021 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 04:24:09 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) VT(vga): resolution 640x480 CPU: Intel(R) Atom(TM) CPU E3845 @ 1.91GHz (1916.71-MHz K8-class CPU) Origin="GenuineIntel" Id=0x30679 Family=0x6 Model=0x37 Stepping=9 Features=0xbfebfbff Features2=0x43d8e3bf AMD Features=0x28000800 AMD Features2=0x101 Structured Extended Features=0x2282 VT-x: (disabled in BIOS) PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory = 2147483648 (2048 MB) avail memory = 1907458048 (1819 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: WARNING: L1 data cache covers fewer APIC IDs than a core (0 < 1) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" random: unblocking device. Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block: 128/32 (20201113/tbfadt-748) ioapic0 irqs 0-86 Launching APs: 3 2 1 Timecounter "TSC" frequency 1916713993 Hz quality 1000 KTLS: Initialized 4 threads random: entropy device external interface 000.000019 [4354] netmap_init netmap: loaded module [ath_hal] loaded WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 14.0. kbd0 at kbdmux0 mlx5en: Mellanox Ethernet driver 3.6.0 (December 2020) nexus0 vtvga0: cryptosoft0: aesni0: acpi0: acpi0: Power Button (fixed) unknown: I/O range not supported cpu0: on acpi0 atrtc0: port 0x70-0x77 on acpi0 atrtc0: Warning: Couldn't map I/O. atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 hpet0: iomem 0xfed00000-0xfed003ff irq 8 on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pcib0: Length mismatch for 3 range: 50d06fff vs 50d07000 pci0: on pcib0 vgapci0: port 0xe080-0xe087 mem 0xd0000000-0xd03fffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0 vgapci0: Boot video device ahci0: port 0xe070-0xe077,0xe060-0xe063,0xe050-0xe057,0xe040-0xe043,0xe020-0xe03f mem 0xd0d06000-0xd0d067ff irq 19 at device 19.0 on pci0 ahci0: AHCI v1.30 with 2 3Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 pci0: at device 26.0 (no driver attached) hdac0: mem 0xd0d00000-0xd0d03fff irq 22 at device 27.0 on pci0 pcib1: irq 16 at device 28.0 on pci0 pci1: on pcib1 igb0: port 0xd000-0xd01f mem 0xd0a00000-0xd0afffff,0xd0b00000-0xd0b03fff irq 16 at device 0.0 on pci1 igb0: Using 1024 TX descriptors and 1024 RX descriptors igb0: Using 4 RX queues 4 TX queues igb0: Using MSI-X interrupts with 5 vectors igb0: Ethernet address: 00:10:f3:9c:6b:7c igb0: netmap queues/slots: TX 4/1024, RX 4/1024 pcib2: irq 17 at device 28.1 on pci0 pcib3: irq 18 at device 28.2 on pci0 pci2: on pcib3 pci2: at device 0.0 (no driver attached) pcib4: irq 19 at device 28.3 on pci0 pci3: on pcib4 igb1: port 0xc000-0xc01f mem 0xd0700000-0xd07fffff,0xd0800000-0xd0803fff irq 19 at device 0.0 on pci3 igb1: Using 1024 TX descriptors and 1024 RX descriptors igb1: Using 4 RX queues 4 TX queues igb1: Using MSI-X interrupts with 5 vectors igb1: Ethernet address: 00:10:f3:9c:6b:7d igb1: netmap queues/slots: TX 4/1024, RX 4/1024 ehci0: mem 0xd0d05000-0xd0d053ff irq 23 at device 29.0 on pci0 usbus0: EHCI version 1.0 usbus0 on ehci0 usbus0: 480Mbps High Speed USB v2.0 isab0: at device 31.0 on pci0 isa0: on isab0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_tz0: on acpi0 ppc1: port 0x378-0x37f irq 15 on acpi0 ppc1: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc1 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 uart2: <16950 or compatible> port 0x248-0x24f irq 5 on acpi0 uart1: <16950 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 uart3: <16950 or compatible> port 0x3e8-0x3ef irq 11 on acpi0 uart4: <16950 or compatible> port 0x2e8-0x2ef irq 10 on acpi0 uart5: <16950 or compatible> port 0x228-0x22f irq 6 on acpi0 uart6: <16950 or compatible> port 0x238-0x23f irq 7 on acpi0 est0: on cpu0 Timecounters tick every 1.000 msec hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 20 and 24 on hdaa0 pcm1: at nid 21 and 26 on hdaa0 hdacc1: at cad 2 on hdac0 hdaa1: at nid 1 on hdacc1 hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (5) in association 1! Disabling association. hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (6) in association 1! Disabling association. ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-3 ATA SATA 3.x device ada0: Serial Number 50026B768365A54C ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 114473MB (234441648 512 byte sectors) Trying to mount root from ufs:/dev/ada0s1a [rw]... ugen0.1: at usbus0 uhub0 on usbus0 uhub0: on usbus0 ichsmb0: port 0xe000-0xe01f mem 0xd0d04000-0xd0d0401f irq 18 at device 31.3 on pci0 smbus0: on ichsmb0 lo0: link state changed to UP uhub0: 8 ports with 8 removable, self powered ugen0.2: at usbus0 uhub1 on uhub0 uhub1: on usbus0 uhub1: 4 ports with 4 removable, self powered igb1: link state changed to UP ugen0.3: at usbus0 ugen0.4: at usbus0 ukbd0 on uhub1 ukbd0: on usbus0 kbd1 at ukbd0 ugen0.5: at usbus0 uhub2 on uhub1 uhub2: on usbus0 uhub2: 4 ports with 4 removable, self powered From owner-freebsd-usb@freebsd.org Thu May 20 21:32:29 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0CEC3649808 for ; Thu, 20 May 2021 21:32:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FmNHb5G5xz4Z4m for ; Thu, 20 May 2021 21:32:27 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5469626022B; Thu, 20 May 2021 23:32:20 +0200 (CEST) Subject: Re: eGalax USB touchscreen issues To: Mark Kane , freebsd-usb@freebsd.org References: From: Hans Petter Selasky Message-ID: Date: Thu, 20 May 2021 23:31:02 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FmNHb5G5xz4Z4m X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.04 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[88.99.82.50:from]; SPAMHAUS_ZRD(0.00)[88.99.82.50:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.74)[-0.737]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-usb]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2021 21:32:29 -0000 On 5/20/21 7:44 PM, Mark Kane wrote: > > 5) `webcamd -l` shows the device but exits on startup with "Cannot find > USB device". Webcamd needs to be recompiled with INPUT device support, I believe, before it works with such devices. --HPS From owner-freebsd-usb@freebsd.org Thu May 20 22:04:19 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 282D6649E95 for ; Thu, 20 May 2021 22:04:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FmP0M0Nt5z4pWW for ; Thu, 20 May 2021 22:04:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0D2F16498E5; Thu, 20 May 2021 22:04:19 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0BC0F6498E4 for ; Thu, 20 May 2021 22:04:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FmP0L6pc0z4pR0 for ; Thu, 20 May 2021 22:04:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D13E92DA2A for ; Thu, 20 May 2021 22:04:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 14KM4Ifm044300 for ; Thu, 20 May 2021 22:04:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 14KM4IZ5044299 for usb@FreeBSD.org; Thu, 20 May 2021 22:04:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 218908] Missing usbdevs for TP-Link WN-821N v5 Date: Thu, 20 May 2021 22:04:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asherikov@yandex.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2021 22:04:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218908 Alexander Sherikov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |asherikov@yandex.com --- Comment #8 from Alexander Sherikov --- Hm, is there a regression in HEAD or a catch in configuration? I have WN821N which is detected in the same way as above and wpa_supplicant also timeouts during authentication with WPA-PSK. Sidenote: wpa_supplicant hangs if restarted, device must be unplugged to fix this. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-usb@freebsd.org Thu May 20 23:06:59 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5783764AF50 for ; Thu, 20 May 2021 23:06:59 +0000 (UTC) (envelope-from mark@kane.mn) Received: from stinger.tntpowerhost.com (stinger.tntpowerhost.com [104.128.58.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "stinger.tntpowerhost.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FmQNf4BGDz3psg for ; Thu, 20 May 2021 23:06:58 +0000 (UTC) (envelope-from mark@kane.mn) Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTP id 3e98c756; Thu, 20 May 2021 18:06:55 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kane.mn; h= mime-version:date:from:to:cc:subject:in-reply-to:references :message-id:content-type:content-transfer-encoding; s=stinger; bh=WWmS+0rCSUZ2/aM8gs0iLJB8KSrRo0HzQtZfTgGmZzc=; b=tuRnG58HhAPI doGrZBbKNdF5BCynkJjcmrlK9MN6VkNaF9nwzyuThu3oANsyxQv+DuIRKuymEcR5 qqWEoELHMp5VAkh+P3ATFl30Cv12XXTBWHbppIdMdq+O1YnIrX6ijboI5cozCR6x aQiQmSUOo+reZF8otJMvFb7sS2XqQRw= Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTPSA id b1345894 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 20 May 2021 18:06:54 -0500 (CDT) MIME-Version: 1.0 Date: Thu, 20 May 2021 18:06:54 -0500 From: Mark Kane To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org Subject: Re: eGalax USB touchscreen issues In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.6 Message-ID: X-Sender: mark@kane.mn Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FmQNf4BGDz3psg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=kane.mn header.s=stinger header.b=tuRnG58H; dmarc=pass (policy=none) header.from=kane.mn; spf=pass (mx1.freebsd.org: domain of mark@kane.mn designates 104.128.58.83 as permitted sender) smtp.mailfrom=mark@kane.mn X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[kane.mn:s=stinger]; FREEFALL_USER(0.00)[mark]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:104.128.58.83]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RBL_DBL_DONT_QUERY_IPS(0.00)[104.128.58.83:from]; SPAMHAUS_ZRD(0.00)[104.128.58.83:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[kane.mn:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[kane.mn,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:30455, ipnet:104.128.58.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2021 23:06:59 -0000 On 2021-05-20 16:31, Hans Petter Selasky wrote: > Webcamd needs to be recompiled with INPUT device support, I believe, > before it works with such devices. Thanks for the reply. I recompiled Webcamd with all options except vTuner to be sure nothing is missing. Got one specific error now, "ERR: : can't add hid device: -6" which I'm not finding much about. Any other ideas to try or info I can provide? # pkg info webcamd | grep -A10 Options Options : COMPAT32 : on DEBUG : on DVB : on INPUT : on KEYBOARD : on MOUSE : on RADIO : on VT_CLIENT : off VT_SERVER : off WEBCAM : on # webcamd -l Available device(s): webcamd [-d ugen0.1] -N Intel-EHCI-root-HUB -S unknown -M 0 webcamd [-d ugen0.2] -N vendor-0x8087-product-0x07e6 -S unknown -M 0 webcamd [-d ugen0.3] -N eGalax-Inc--USB-TouchController -S unknown -M 0 webcamd [-d ugen0.4] -N Lite-On-Technology-Corp--USB-Multimedia-Keyboard -S unknown -M 0 webcamd [-d ugen0.5] -N vendor-0x05e3-USB2-0-Hub -S unknown -M 0 Show webcamd usage: webcamd -h # webcamd -d ugen0.3 -N eGalax-Inc--USB-TouchController -S unknown -M 0 webcamd 89207 - - IR NEC protocol handler initialized webcamd 89207 - - IR RC5(x/sz) protocol handler initialized webcamd 89207 - - IR RC6 protocol handler initialized webcamd 89207 - - IR JVC protocol handler initialized webcamd 89207 - - IR Sony protocol handler initialized webcamd 89207 - - IR SANYO protocol handler initialized webcamd 89207 - - IR XMP protocol handler initialized webcamd 89207 - - b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully webcamd 89207 - - USB Video Class driver (1.1.1) webcamd 89207 - - cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1 webcamd 89207 - - Attached to ugen0.3[0] webcamd 89207 - - ERR: : can't add hid device: -6 webcamd 89207 - - webcamd: Cannot find USB device # wmt.ko, usbhid.ko, and hidbus.ko are still loaded automatically on boot. No change if those are unloaded. From owner-freebsd-usb@freebsd.org Fri May 21 06:27:48 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3A1FC651EFD for ; Fri, 21 May 2021 06:27:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Fmc9J0zrRz4p7V for ; Fri, 21 May 2021 06:27:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 200EF651E47; Fri, 21 May 2021 06:27:48 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1FD4865229B for ; Fri, 21 May 2021 06:27:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fmc9J0JQHz4pHC for ; Fri, 21 May 2021 06:27:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E78084720 for ; Fri, 21 May 2021 06:27:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 14L6Rlnr096427 for ; Fri, 21 May 2021 06:27:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 14L6Rla6096426 for usb@FreeBSD.org; Fri, 21 May 2021 06:27:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 218908] Missing usbdevs for TP-Link WN-821N v5 Date: Fri, 21 May 2021 06:27:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kuehro@posteo.de X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2021 06:27:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218908 --- Comment #9 from Kai-Uwe Eckhardt --- It works for me with wpa-psk on yesterdays 14.0-CURRENT with this in rc.con= f: wlans_rtwn0=3D"wlan0" ifconfig_wlan0=3D"WPA DHCP" create_args_wlan0=3D"country DE regdomain ETSI" and the appropiate entry in wpa_supplicant.conf connecting to an 11g AP. Good luck, Kai-Uwe --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-usb@freebsd.org Fri May 21 06:49:57 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2D4E16526C2 for ; Fri, 21 May 2021 06:49:57 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fmcfr0pWxz4wqn for ; Fri, 21 May 2021 06:49:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 37E4126028D; Fri, 21 May 2021 08:49:48 +0200 (CEST) Subject: Re: eGalax USB touchscreen issues To: Mark Kane Cc: freebsd-usb@freebsd.org References: From: Hans Petter Selasky Message-ID: Date: Fri, 21 May 2021 08:48:28 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Fmcfr0pWxz4wqn X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.03 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a01:4f8:c17:6c4b::2:from]; SPAMHAUS_ZRD(0.00)[2a01:4f8:c17:6c4b::2:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.73)[-0.732]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2021 06:49:57 -0000 On 5/21/21 1:06 AM, Mark Kane wrote: > webcamd 89207 - - ERR: : can't add hid device: -6 Try adding -i 1 then -i 2 and so on. Not sure if you need to attach to a specific interface. -6 means: 6 ENXIO Device not configured. --HPS From owner-freebsd-usb@freebsd.org Fri May 21 13:02:50 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B89AF631DBB for ; Fri, 21 May 2021 13:02:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Fmmx64MWpz4bTr for ; Fri, 21 May 2021 13:02:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9211A631DBA; Fri, 21 May 2021 13:02:50 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 91075631E96 for ; Fri, 21 May 2021 13:02:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fmmx63PW3z4bTp for ; Fri, 21 May 2021 13:02:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 550F511C72 for ; Fri, 21 May 2021 13:02:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 14LD2o03096444 for ; Fri, 21 May 2021 13:02:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 14LD2onN096440 for usb@FreeBSD.org; Fri, 21 May 2021 13:02:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 252608] [panic] [usb] [if_ure] Kernel fault on ure disconnect Date: Fri, 21 May 2021 13:02:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: panic X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2021 13:02:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252608 --- Comment #18 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D4eac63af23ddafc2b1dfb2aad2896f451= 3c37cdd commit 4eac63af23ddafc2b1dfb2aad2896f4513c37cdd Author: Hans Petter Selasky AuthorDate: 2021-01-12 17:51:09 +0000 Commit: Hans Petter Selasky CommitDate: 2021-05-21 12:59:19 +0000 Fix for use-after-free by if_ioctl() calls from user-space in USB drive= rs by detaching the ifnet before the miibus. PR: 252608 Suggested by: jhb@ MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking sys/dev/usb/net/uhso.c | 2 +- sys/dev/usb/net/usb_ethernet.c | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri May 21 13:03:56 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D0800631E9F for ; Fri, 21 May 2021 13:03:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FmmyN5MB2z4cGS for ; Fri, 21 May 2021 13:03:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B7DC363193E; Fri, 21 May 2021 13:03:56 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B7A6D631DC8 for ; Fri, 21 May 2021 13:03:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FmmyN4lZyz4cLq for ; Fri, 21 May 2021 13:03:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8BDD211F8B for ; Fri, 21 May 2021 13:03:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 14LD3ukR096657 for ; Fri, 21 May 2021 13:03:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 14LD3ugV096655 for usb@FreeBSD.org; Fri, 21 May 2021 13:03:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 252608] [panic] [usb] [if_ure] Kernel fault on ure disconnect Date: Fri, 21 May 2021 13:03:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: panic X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2021 13:03:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252608 --- Comment #19 from Hans Petter Selasky --- There are two more commits coming and this issue can be closed! --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri May 21 17:36:05 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A9749638468 for ; Fri, 21 May 2021 17:36:05 +0000 (UTC) (envelope-from mark@kane.mn) Received: from stinger.tntpowerhost.com (stinger.tntpowerhost.com [104.128.58.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "stinger.tntpowerhost.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fmv0N6NcKz4lPW for ; Fri, 21 May 2021 17:36:04 +0000 (UTC) (envelope-from mark@kane.mn) Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTP id 5b8c3450; Fri, 21 May 2021 12:36:02 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kane.mn; h= mime-version:date:from:to:cc:subject:in-reply-to:references :message-id:content-type:content-transfer-encoding; s=stinger; bh=O67QJv5zvNStmdp1jnkEcQ8wt1lQBmy9Sw70kFOZB8A=; b=I/Oz4NvEiwLK Oj6CTICgsc+Biuen28b4ZPtx2HkcqOyOGSs4PI49MCh09OMRdB+HVWA4LBo8amiD jattYS0wSvngunXhchDvz8/xBLWiPDI/ibB4m/EiPpJjbkXxLzBLPTX+xqpKBIjD +umjRxSQXASqx/gipNBYi5/khz3CCkk= Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTPSA id b6c0241c (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 21 May 2021 12:36:02 -0500 (CDT) MIME-Version: 1.0 Date: Fri, 21 May 2021 12:36:02 -0500 From: Mark Kane To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org Subject: Re: eGalax USB touchscreen issues In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.6 Message-ID: X-Sender: mark@kane.mn Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Fmv0N6NcKz4lPW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=kane.mn header.s=stinger header.b=I/Oz4NvE; dmarc=pass (policy=none) header.from=kane.mn; spf=pass (mx1.freebsd.org: domain of mark@kane.mn designates 104.128.58.83 as permitted sender) smtp.mailfrom=mark@kane.mn X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[kane.mn:s=stinger]; FREEFALL_USER(0.00)[mark]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:104.128.58.83]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RBL_DBL_DONT_QUERY_IPS(0.00)[104.128.58.83:from]; SPAMHAUS_ZRD(0.00)[104.128.58.83:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[kane.mn:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[kane.mn,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:30455, ipnet:104.128.58.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2021 17:36:05 -0000 On 2021-05-21 01:48, Hans Petter Selasky wrote: > Try adding -i 1 then -i 2 and so on. > > Not sure if you need to attach to a specific interface. > > -6 means: > > 6 ENXIO Device not configured. With -i 0 there is the same -6 error as without -i. With -i 1 through 100 there is no ERR, only "webcamd: Cannot find USB device". From owner-freebsd-usb@freebsd.org Sat May 22 08:03:33 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 57302647136 for ; Sat, 22 May 2021 08:03:33 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FnGFJ416Nz4gTK for ; Sat, 22 May 2021 08:03:32 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 213892600DF; Sat, 22 May 2021 10:03:24 +0200 (CEST) Subject: Re: eGalax USB touchscreen issues To: Mark Kane Cc: freebsd-usb@freebsd.org References: From: Hans Petter Selasky Message-ID: <24ab05f3-86f3-5da7-0485-2839eba43975@selasky.org> Date: Sat, 22 May 2021 10:02:04 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4FnGFJ416Nz4gTK X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.28 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a01:4f8:c17:6c4b::2:from]; SPAMHAUS_ZRD(0.00)[2a01:4f8:c17:6c4b::2:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.98)[-0.983]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-usb]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 08:03:33 -0000 On 5/21/21 7:36 PM, Mark Kane wrote: > On 2021-05-21 01:48, Hans Petter Selasky wrote: >> Try adding -i 1 then -i 2 and so on. >> >> Not sure if you need to attach to a specific interface. >> >> -6 means: >> >>  6 ENXIO Device not configured. > > With -i 0 there is the same -6 error as without -i. With -i 1 through > 100 there is no ERR, only "webcamd: Cannot find USB device". Linux driver is here: drivers/input/touchscreen/usbtouchscreen.c: {USB_DEVICE(0x0eef, 0x0001), .driver_info = DEVTYPE_EGALAX}, drivers/input/touchscreen/usbtouchscreen.c: {USB_DEVICE(0x0eef, 0x0002), .driver_info = DEVTYPE_EGALAX}, Can you try adding: CONFIG_TOUCHSCREEN_EGALAX=y To: config_input.in diff --git a/config_input.in b/config_input.in index b1c8158..4e19459 100644 --- a/config_input.in +++ b/config_input.in @@ -112,6 +112,7 @@ CONFIG_TOUCHSCREEN_COMPOSITE=y CONFIG_TOUCHSCREEN_DMC_TSC10=y CONFIG_TOUCHSCREEN_E2I=y CONFIG_TOUCHSCREEN_EASYTOUCH=y +CONFIG_TOUCHSCREEN_EGALAX=y CONFIG_TOUCHSCREEN_ETT_TC45USB=y CONFIG_TOUCHSCREEN_ETURBO=y CONFIG_TOUCHSCREEN_GENERAL_TOUCH=y Before building webcamd after "make extract patch". It might not build, but if it does, should fix support for your device. --HPS From owner-freebsd-usb@freebsd.org Sat May 22 08:11:44 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C24176472B3 for ; Sat, 22 May 2021 08:11:44 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FnGQl5z67z4kLy for ; Sat, 22 May 2021 08:11:43 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id DB2A42600DF; Sat, 22 May 2021 10:11:35 +0200 (CEST) Subject: Re: eGalax USB touchscreen issues From: Hans Petter Selasky To: Mark Kane Cc: freebsd-usb@freebsd.org References: <24ab05f3-86f3-5da7-0485-2839eba43975@selasky.org> Message-ID: <8a7a7402-95e3-3fe3-bde2-01b4a16a97fd@selasky.org> Date: Sat, 22 May 2021 10:10:16 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <24ab05f3-86f3-5da7-0485-2839eba43975@selasky.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4FnGQl5z67z4kLy X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.28 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[88.99.82.50:from]; SPAMHAUS_ZRD(0.00)[88.99.82.50:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.98)[-0.982]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 08:11:44 -0000 On 5/22/21 10:02 AM, Hans Petter Selasky wrote: > On 5/21/21 7:36 PM, Mark Kane wrote: >> On 2021-05-21 01:48, Hans Petter Selasky wrote: >>> Try adding -i 1 then -i 2 and so on. >>> >>> Not sure if you need to attach to a specific interface. >>> >>> -6 means: >>> >>>  6 ENXIO Device not configured. >> >> With -i 0 there is the same -6 error as without -i. With -i 1 through >> 100 there is no ERR, only "webcamd: Cannot find USB device". > > Linux driver is here: > > drivers/input/touchscreen/usbtouchscreen.c:    {USB_DEVICE(0x0eef, > 0x0001), .driver_info = DEVTYPE_EGALAX}, > drivers/input/touchscreen/usbtouchscreen.c:    {USB_DEVICE(0x0eef, > 0x0002), .driver_info = DEVTYPE_EGALAX}, > > Can you try adding: > > CONFIG_TOUCHSCREEN_EGALAX=y > > To: > > config_input.in > > diff --git a/config_input.in b/config_input.in > index b1c8158..4e19459 100644 > --- a/config_input.in > +++ b/config_input.in > @@ -112,6 +112,7 @@ CONFIG_TOUCHSCREEN_COMPOSITE=y >  CONFIG_TOUCHSCREEN_DMC_TSC10=y >  CONFIG_TOUCHSCREEN_E2I=y >  CONFIG_TOUCHSCREEN_EASYTOUCH=y > +CONFIG_TOUCHSCREEN_EGALAX=y >  CONFIG_TOUCHSCREEN_ETT_TC45USB=y >  CONFIG_TOUCHSCREEN_ETURBO=y >  CONFIG_TOUCHSCREEN_GENERAL_TOUCH=y > > Before building webcamd after "make extract patch". > > It might not build, but if it does, should fix support for your device. > > --HPS I see there are some build failures there which need to be fixed. --HPS From owner-freebsd-usb@freebsd.org Sat May 22 08:36:20 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B9999647FAA for ; Sat, 22 May 2021 08:36:20 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FnGz771fnz4vmm for ; Sat, 22 May 2021 08:36:19 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 550AF26017B; Sat, 22 May 2021 10:36:18 +0200 (CEST) Subject: Re: eGalax USB touchscreen issues From: Hans Petter Selasky To: Mark Kane Cc: freebsd-usb@freebsd.org References: <24ab05f3-86f3-5da7-0485-2839eba43975@selasky.org> <8a7a7402-95e3-3fe3-bde2-01b4a16a97fd@selasky.org> Message-ID: <74c359d7-512d-0fcd-381f-82161cc20078@selasky.org> Date: Sat, 22 May 2021 10:34:59 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <8a7a7402-95e3-3fe3-bde2-01b4a16a97fd@selasky.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4FnGz771fnz4vmm X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.24 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[88.99.82.50:from]; SPAMHAUS_ZRD(0.00)[88.99.82.50:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.94)[-0.936]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 08:36:20 -0000 On 5/22/21 10:10 AM, Hans Petter Selasky wrote: > On 5/22/21 10:02 AM, Hans Petter Selasky wrote: >> On 5/21/21 7:36 PM, Mark Kane wrote: >>> On 2021-05-21 01:48, Hans Petter Selasky wrote: >>>> Try adding -i 1 then -i 2 and so on. >>>> >>>> Not sure if you need to attach to a specific interface. >>>> >>>> -6 means: >>>> >>>>  6 ENXIO Device not configured. >>> >>> With -i 0 there is the same -6 error as without -i. With -i 1 through >>> 100 there is no ERR, only "webcamd: Cannot find USB device". >> >> Linux driver is here: >> >> drivers/input/touchscreen/usbtouchscreen.c:    {USB_DEVICE(0x0eef, >> 0x0001), .driver_info = DEVTYPE_EGALAX}, >> drivers/input/touchscreen/usbtouchscreen.c:    {USB_DEVICE(0x0eef, >> 0x0002), .driver_info = DEVTYPE_EGALAX}, >> >> Can you try adding: >> >> CONFIG_TOUCHSCREEN_EGALAX=y >> >> To: >> >> config_input.in >> >> diff --git a/config_input.in b/config_input.in >> index b1c8158..4e19459 100644 >> --- a/config_input.in >> +++ b/config_input.in >> @@ -112,6 +112,7 @@ CONFIG_TOUCHSCREEN_COMPOSITE=y >>   CONFIG_TOUCHSCREEN_DMC_TSC10=y >>   CONFIG_TOUCHSCREEN_E2I=y >>   CONFIG_TOUCHSCREEN_EASYTOUCH=y >> +CONFIG_TOUCHSCREEN_EGALAX=y >>   CONFIG_TOUCHSCREEN_ETT_TC45USB=y >>   CONFIG_TOUCHSCREEN_ETURBO=y >>   CONFIG_TOUCHSCREEN_GENERAL_TOUCH=y >> >> Before building webcamd after "make extract patch". >> >> It might not build, but if it does, should fix support for your device. >> >> --HPS > > I see there are some build failures there which need to be fixed. This patch should work: https://github.com/hselasky/webcamd/commit/816f17ac38ce32879f6eb5b610305468b1b24de9 --HPS From owner-freebsd-usb@freebsd.org Sat May 22 10:57:18 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E6AB764B0BC for ; Sat, 22 May 2021 10:57:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FnL5p5mv7z4nDT for ; Sat, 22 May 2021 10:57:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C45F164AF90; Sat, 22 May 2021 10:57:18 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C40E264ABF6 for ; Sat, 22 May 2021 10:57:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FnL5p50Wmz4n5V for ; Sat, 22 May 2021 10:57:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8C7BF23318 for ; Sat, 22 May 2021 10:57:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 14MAvI5G061687 for ; Sat, 22 May 2021 10:57:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 14MAvIWJ061686 for usb@FreeBSD.org; Sat, 22 May 2021 10:57:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 255759] [Patch] Add USB product ID for ASUS USB-N14 Wireless Adaptor Date: Sat, 22 May 2021 10:57:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 10:57:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255759 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dd6fd321ef60d43dce9f437187c94a7de2= b91ab69 commit d6fd321ef60d43dce9f437187c94a7de2b91ab69 Author: Dmitry Chagin AuthorDate: 2021-05-22 10:52:12 +0000 Commit: Dmitry Chagin CommitDate: 2021-05-22 10:52:12 +0000 run(4): add support for ASUS USB-N14 wireless adaptor. PR: 255759 Submitted by: john.lmurdoch at gmail.com MFC After: 1 week sys/dev/usb/usbdevs | 1 + sys/dev/usb/wlan/if_run.c | 1 + 2 files changed, 2 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sat May 22 22:07:09 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 664526389F1 for ; Sat, 22 May 2021 22:07:09 +0000 (UTC) (envelope-from mark@kane.mn) Received: from stinger.tntpowerhost.com (stinger.tntpowerhost.com [104.128.58.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "stinger.tntpowerhost.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fncyh2n5Bz3qFn for ; Sat, 22 May 2021 22:07:07 +0000 (UTC) (envelope-from mark@kane.mn) Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTP id bb47809f; Sat, 22 May 2021 17:07:00 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kane.mn; h= mime-version:date:from:to:cc:subject:in-reply-to:references :message-id:content-type:content-transfer-encoding; s=stinger; bh=c2V2trqb3/0rWj6X/JxrdtXtMF8bOIb6Rg1nNLXOx8s=; b=Cik+N5Nlv+Iw e3mpVuVgPl3LxeoqUckjGfsNciCMG6AoCJl+a12w4Q5hp4aLUkPpHRDWKBxxEiXO /kdLhEsEltjsuEOoQV1wlY8hvi80ajeBzlYsdAyor3r0X6LTm6Um4M4cP/pLWIXc E56KPOVQ93UDP+vUVDEW2VivOAcY4mI= Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTPSA id 8cbc10d0 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 22 May 2021 17:07:00 -0500 (CDT) MIME-Version: 1.0 Date: Sat, 22 May 2021 17:07:00 -0500 From: Mark Kane To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org Subject: Re: eGalax USB touchscreen issues In-Reply-To: <74c359d7-512d-0fcd-381f-82161cc20078@selasky.org> References: <24ab05f3-86f3-5da7-0485-2839eba43975@selasky.org> <8a7a7402-95e3-3fe3-bde2-01b4a16a97fd@selasky.org> <74c359d7-512d-0fcd-381f-82161cc20078@selasky.org> User-Agent: Roundcube Webmail/1.4.6 Message-ID: X-Sender: mark@kane.mn Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Fncyh2n5Bz3qFn X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=kane.mn header.s=stinger header.b=Cik+N5Nl; dmarc=pass (policy=none) header.from=kane.mn; spf=pass (mx1.freebsd.org: domain of mark@kane.mn designates 104.128.58.83 as permitted sender) smtp.mailfrom=mark@kane.mn X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[104.128.58.83:from]; R_DKIM_ALLOW(-0.20)[kane.mn:s=stinger]; FREEFALL_USER(0.00)[mark]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:104.128.58.83]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; SPAMHAUS_ZRD(0.00)[104.128.58.83:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[kane.mn:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[kane.mn,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:30455, ipnet:104.128.58.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 22:07:09 -0000 On 2021-05-22 03:34, Hans Petter Selasky wrote: > This patch should work: > > https://github.com/hselasky/webcamd/commit/816f17ac38ce32879f6eb5b610305468b1b24de9 Thanks for the diff. That applies cleanly to the 5.10.6.1 port but errors during build: --- obj-media_tree-drivers-input-touchscreen-egalax_ts.o --- In file included from media_tree/drivers/input/touchscreen/egalax_ts.c:27: In file included from media_tree/include/linux/of_gpio.h:14: In file included from media_tree/include/linux/gpio/driver.h:8: media_tree/include/linux/irqchip/chained_irq.h:16:45: warning: declaration of 'struct irq_chip' will not be visible outside of this function [-Wvisibility] static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:17:17: warning: declaration of 'struct irq_desc' will not be visible outside of this function [-Wvisibility] struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:20:10: error: incomplete definition of type 'struct irq_chip' if (chip->irq_eoi) ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:23:10: error: incomplete definition of type 'struct irq_chip' if (chip->irq_mask_ack) { ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:24:7: error: incomplete definition of type 'struct irq_chip' chip->irq_mask_ack(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:24:27: error: incomplete definition of type 'struct irq_desc' chip->irq_mask_ack(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:17:17: note: forward declaration of 'struct irq_desc' struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:26:7: error: incomplete definition of type 'struct irq_chip' chip->irq_mask(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:26:23: error: incomplete definition of type 'struct irq_desc' chip->irq_mask(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:17:17: note: forward declaration of 'struct irq_desc' struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:27:11: error: incomplete definition of type 'struct irq_chip' if (chip->irq_ack) ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:28:8: error: incomplete definition of type 'struct irq_chip' chip->irq_ack(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:28:23: error: incomplete definition of type 'struct irq_desc' chip->irq_ack(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:17:17: note: forward declaration of 'struct irq_desc' struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:32:44: warning: declaration of 'struct irq_chip' will not be visible outside of this function [-Wvisibility] static inline void chained_irq_exit(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:33:16: warning: declaration of 'struct irq_desc' will not be visible outside of this function [-Wvisibility] struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:35:10: error: incomplete definition of type 'struct irq_chip' if (chip->irq_eoi) ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:32:44: note: forward declaration of 'struct irq_chip' static inline void chained_irq_exit(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:36:7: error: incomplete definition of type 'struct irq_chip' chip->irq_eoi(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:32:44: note: forward declaration of 'struct irq_chip' static inline void chained_irq_exit(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:36:22: error: incomplete definition of type 'struct irq_desc' chip->irq_eoi(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:33:16: note: forward declaration of 'struct irq_desc' struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:38:7: error: incomplete definition of type 'struct irq_chip' chip->irq_unmask(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:32:44: note: forward declaration of 'struct irq_chip' static inline void chained_irq_exit(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:38:25: error: incomplete definition of type 'struct irq_desc' chip->irq_unmask(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:33:16: note: forward declaration of 'struct irq_desc' struct irq_desc *desc) ^ In file included from media_tree/drivers/input/touchscreen/egalax_ts.c:27: In file included from media_tree/include/linux/of_gpio.h:14: media_tree/include/linux/gpio/driver.h:137:2: error: unknown type name 'irq_flow_handler_t' irq_flow_handler_t handler; ^ media_tree/include/linux/gpio/driver.h:167:2: error: unknown type name 'irq_flow_handler_t' irq_flow_handler_t parent_handler; ^ media_tree/include/linux/gpio/driver.h:248:29: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] void (*irq_enable)(struct irq_data *data); ^ media_tree/include/linux/gpio/driver.h:255:30: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] void (*irq_disable)(struct irq_data *data); ^ media_tree/include/linux/gpio/driver.h:261:29: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] void (*irq_unmask)(struct irq_data *data); ^ media_tree/include/linux/gpio/driver.h:268:27: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] void (*irq_mask)(struct irq_data *data); ^ media_tree/include/linux/gpio/driver.h:616:8: error: unknown type name 'irq_hw_number_t' irq_hw_number_t hwirq); ^ media_tree/include/linux/gpio/driver.h:620:13: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] struct irq_data *data, bool reserve); ^ media_tree/include/linux/gpio/driver.h:622:16: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] struct irq_data *data); ^ media_tree/include/linux/gpio/driver.h:631:9: error: unknown type name 'irq_flow_handler_t' irq_flow_handler_t handler, ^ media_tree/include/linux/gpio/driver.h:683:12: error: unknown type name 'irq_flow_handler_t' irq_flow_handler_t handler, ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 10 warnings and 20 errors generated. *** [obj-media_tree-drivers-input-touchscreen-egalax_ts.o] Error code 1 make[2]: stopped in /usr/ports/multimedia/webcamd/work/webcamd-5.10.6.1 1 error make[2]: stopped in /usr/ports/multimedia/webcamd/work/webcamd-5.10.6.1 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/multimedia/webcamd *** Error code 1 Stop. make: stopped in /usr/ports/multimedia/webcamd # --------------------------------------------------- Similar if adapted to the new 5.13.2.2 port: --- obj-media_tree-drivers-input-touchscreen-egalax_ts.o --- In file included from media_tree/drivers/input/touchscreen/egalax_ts.c:27: In file included from media_tree/include/linux/of_gpio.h:14: In file included from media_tree/include/linux/gpio/driver.h:8: media_tree/include/linux/irqchip/chained_irq.h:16:45: warning: declaration of 'struct irq_chip' will not be visible outside of this function [-Wvisibility] static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:17:17: warning: declaration of 'struct irq_desc' will not be visible outside of this function [-Wvisibility] struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:20:10: error: incomplete definition of type 'struct irq_chip' if (chip->irq_eoi) ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:23:10: error: incomplete definition of type 'struct irq_chip' if (chip->irq_mask_ack) { ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, --- obj-media_tree-drivers-input-touchscreen-sur40.o --- --- obj-media_tree-drivers-input-touchscreen-egalax_ts.o --- ^ media_tree/include/linux/irqchip/chained_irq.h:24:7: error: incomplete definition of type 'struct irq_chip' chip->irq_mask_ack(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:24:27: error: incomplete definition of type 'struct irq_desc' chip->irq_mask_ack(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:17:17: note: forward declaration of 'struct irq_desc' struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:26:7: error: incomplete definition of type 'struct irq_chip' chip->irq_mask(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:26:23: error: incomplete definition of type 'struct irq_desc' chip->irq_mask(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:17:17: note: forward declaration of 'struct irq_desc' struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:27:11: error: incomplete definition of type 'struct irq_chip' if (chip->irq_ack) ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ --- obj-media_tree-drivers-input-touchscreen-sur40.o --- cc -c -DCURR_FILE_NAME=\"sur40\" -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -D_GNU_SOURCE -DLINUX -Wall -Wno-pointer-sign -Wno-unused-variable -I/usr/ports/multimedia/webcamd/work/webcamd-5.13.2.2 -I/usr/ports/multimedia/webcamd/work/webcamd-5.13.2.2/dummy -I/usr/ports/multimedia/webcamd/work/webcamd-5.13.2.2/headers -Imedia_tree/drivers/media/common -Imedia_tree/drivers/media/common/tuners -Imedia_tree/drivers/media/dvb/dvb-core -Imedia_tree/drivers/media/dvb/dvb-usb -Imedia_tree/drivers/media/dvb/frontends -Imedia_tree/drivers/media/dvb/ttpci -Imedia_tree/drivers/media/video/gspca -Imedia_tree/drivers/media/video/hdpvr -Imedia_tree/drivers/media/dvb-core -Imedia_tree/drivers/media/dvb-usb -Imedia_tree/drivers/media/dvb-frontends -Imedia_tree/drivers/media/tuners -Imedia_tree/drivers/media/pci/ttpci -Imedia_tree/drivers/media/common/siano -Imedia_tree/drivers/media/common/b2c2 -Imedia_tree/drivers/media/usb/gspca -Imedia_tree/drivers/media/usb/dvb-usb -Imedia_tree/drivers/media/usb/dvb-usb-v2 --- obj-media_tree-drivers-input-touchscreen-egalax_ts.o --- media_tree/include/linux/irqchip/chained_irq.h:28:8: error: incomplete definition of type 'struct irq_chip' chip->irq_ack(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:16:45: note: forward declaration of 'struct irq_chip' static inline void chained_irq_enter(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:28:23: error: incomplete definition of type 'struct irq_desc' chip->irq_ack(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:17:17: note: forward declaration of 'struct irq_desc' struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:32:44: warning: declaration of 'struct irq_chip' will not be visible outside of this function [-Wvisibility] --- obj-media_tree-drivers-input-touchscreen-sur40.o --- -Imedia_tree/include -Imedia_tree/include/uapi -Imedia_tree/include/media -I/usr/local -I/usr/local/include -include webcamd_global.h -DCONFIG_DVB_USB_DEBUG -DHAVE_DEBUG -g -MD -MF.depend.obj-media_tree-drivers-input-touchscreen-sur40.o -MTobj-media_tree-drivers-input-touchscreen-sur40.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/11.0.1/include -fstack-protector-strong -Qunused-arguments -o obj-media_tree-drivers-input-touchscreen-sur40.o media_tree/drivers/input/touchscreen/sur40.c --- obj-media_tree-drivers-input-touchscreen-egalax_ts.o --- static inline void chained_irq_exit(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:33:16: warning: declaration of 'struct irq_desc' will not be visible outside of this function [-Wvisibility] struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:35:10: error: incomplete definition of type 'struct irq_chip' if (chip->irq_eoi) ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:32:44: note: forward declaration of 'struct irq_chip' static inline void chained_irq_exit(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:36:7: error: incomplete definition of type 'struct irq_chip' chip->irq_eoi(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:32:44: note: forward declaration of 'struct irq_chip' static inline void chained_irq_exit(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:36:22: error: incomplete definition of type 'struct irq_desc' chip->irq_eoi(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:33:16: note: forward declaration of 'struct irq_desc' struct irq_desc *desc) ^ media_tree/include/linux/irqchip/chained_irq.h:38:7: error: incomplete definition of type 'struct irq_chip' chip->irq_unmask(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:32:44: note: forward declaration of 'struct irq_chip' static inline void chained_irq_exit(struct irq_chip *chip, ^ media_tree/include/linux/irqchip/chained_irq.h:38:25: error: incomplete definition of type 'struct irq_desc' chip->irq_unmask(&desc->irq_data); ~~~~^ media_tree/include/linux/irqchip/chained_irq.h:33:16: note: forward declaration of 'struct irq_desc' struct irq_desc *desc) ^ In file included from media_tree/drivers/input/touchscreen/egalax_ts.c:27: In file included from media_tree/include/linux/of_gpio.h:14: media_tree/include/linux/gpio/driver.h:137:2: error: unknown type name 'irq_flow_handler_t' irq_flow_handler_t handler; ^ media_tree/include/linux/gpio/driver.h:167:2: error: unknown type name 'irq_flow_handler_t' irq_flow_handler_t parent_handler; ^ media_tree/include/linux/gpio/driver.h:248:29: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] void (*irq_enable)(struct irq_data *data); ^ media_tree/include/linux/gpio/driver.h:255:30: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] void (*irq_disable)(struct irq_data *data); ^ media_tree/include/linux/gpio/driver.h:261:29: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] void (*irq_unmask)(struct irq_data *data); ^ media_tree/include/linux/gpio/driver.h:268:27: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] void (*irq_mask)(struct irq_data *data); ^ media_tree/include/linux/gpio/driver.h:616:8: error: unknown type name 'irq_hw_number_t' irq_hw_number_t hwirq); ^ media_tree/include/linux/gpio/driver.h:620:13: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] struct irq_data *data, bool reserve); ^ media_tree/include/linux/gpio/driver.h:622:16: warning: declaration of 'struct irq_data' will not be visible outside of this function [-Wvisibility] struct irq_data *data); ^ In file included from media_tree/drivers/input/touchscreen/egalax_ts.c:27: media_tree/include/linux/of_gpio.h:103:9: warning: implicit declaration of function 'of_count_phandle_with_args' is invalid in C99 [-Wimplicit-function-declaration] return of_count_phandle_with_args(np, propname, "#gpio-cells"); ^ media_tree/drivers/input/touchscreen/egalax_ts.c:244:6: warning: implicit declaration of function 'device_may_wakeup' is invalid in C99 [-Wimplicit-function-declaration] if (device_may_wakeup(dev)) ^ media_tree/drivers/input/touchscreen/egalax_ts.c:245:10: warning: implicit declaration of function 'enable_irq_wake' is invalid in C99 [-Wimplicit-function-declaration] return enable_irq_wake(client->irq); ^ media_tree/drivers/input/touchscreen/egalax_ts.c:255:6: warning: implicit declaration of function 'device_may_wakeup' is invalid in C99 [-Wimplicit-function-declaration] if (device_may_wakeup(dev)) ^ media_tree/drivers/input/touchscreen/egalax_ts.c:256:10: warning: implicit declaration of function 'disable_irq_wake' is invalid in C99 [-Wimplicit-function-declaration] return disable_irq_wake(client->irq); ^ media_tree/drivers/input/touchscreen/egalax_ts.c:273:21: warning: initializing 'void *' with an expression of type 'const struct of_device_id [2]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] .of_match_table = egalax_ts_dt_ids, ^~~~~~~~~~~~~~~~ 16 warnings and 17 errors generated. *** [obj-media_tree-drivers-input-touchscreen-egalax_ts.o] Error code 1 make[2]: stopped in /usr/ports/multimedia/webcamd/work/webcamd-5.13.2.2 --- obj-media_tree-drivers-input-tablet-aiptek.o --- 1 warning generated. 1 error make[2]: stopped in /usr/ports/multimedia/webcamd/work/webcamd-5.13.2.2 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/multimedia/webcamd *** Error code 1 Stop. make: stopped in /usr/ports/multimedia/webcamd # From owner-freebsd-usb@freebsd.org Sat May 22 22:59:22 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 15C7E639433 for ; Sat, 22 May 2021 22:59:22 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fnf6x0NRsz4gFd for ; Sat, 22 May 2021 22:59:20 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 2A8A42601D5; Sun, 23 May 2021 00:59:18 +0200 (CEST) Subject: Re: eGalax USB touchscreen issues To: Mark Kane Cc: freebsd-usb@freebsd.org References: <24ab05f3-86f3-5da7-0485-2839eba43975@selasky.org> <8a7a7402-95e3-3fe3-bde2-01b4a16a97fd@selasky.org> <74c359d7-512d-0fcd-381f-82161cc20078@selasky.org> From: Hans Petter Selasky Message-ID: <5e09b9ca-4dce-332a-28fe-37ef0a875725@selasky.org> Date: Sun, 23 May 2021 00:57:59 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Fnf6x0NRsz4gFd X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.05 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; ARC_NA(0.00)[]; SPAMHAUS_ZRD(0.00)[88.99.82.50:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[88.99.82.50:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.75)[-0.754]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 22:59:22 -0000 On 5/23/21 12:07 AM, Mark Kane wrote: > > Thanks for the diff. That applies cleanly to the 5.10.6.1 port but > errors during build: > Just build the latest webcamd port as is 5.13.2.2 w/ INPUT option selected. --HPS