From owner-freebsd-hackers@freebsd.org Mon Feb 8 19:33:17 2021 Return-Path: Delivered-To: freebsd-hackers@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 477AD53E7D4 for ; Mon, 8 Feb 2021 19:33:17 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (mailserver.netfence.it [78.134.96.152]) (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 (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZGQh1l0rz4k43 for ; Mon, 8 Feb 2021 19:33:15 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.16.1/8.16.1) with ESMTPSA id 118JX8UK082928 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Mon, 8 Feb 2021 20:33:08 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu From: Andrea Venturoli Subject: Understanding kernel deadlock To: freebsd-hackers@freebsd.org Message-ID: Date: Mon, 8 Feb 2021 20:33:08 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DZGQh1l0rz4k43 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=netfence.it; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 78.134.96.152 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-3.80 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[78.134.96.152:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:78.134.96.152]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; HAS_XAW(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[78.134.96.152:from:127.0.2.255]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[netfence.it,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:35612, ipnet:78.134.0.0/17, country:IT]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 19:33:17 -0000 Hello. First off, I apologize if I'm asking stupid questions, but I'm a noob. I'm reading a lot of docs but that seems to never be enough. I'm trying to analyze a locked up 12.2 kernel (from #244048) with kgdb, but I'm stuck due to too little knowledge on my part. What I think I'm seeing are some threads (including the one originated from mksnap_ffs) waiting for some spare buffer (i.e. in bufspace_wait). However the buf_daemon thread and its child, bufspace_daemon, are seemingly looping without finding any buffer available to free. Is that explanation reasonable? Possible at all? Or am I getting it all wrong? Is there a paper somewhere explaining how bufdaemon & co are supposed to work? Will they not allocate new buffers if needed? Is there a limit set somewhere that I should increase? Or are they just probably unable to work due to a LOR somewhere else? Thanks for bearing with me. bye av. From owner-freebsd-hackers@freebsd.org Mon Feb 8 20:32:18 2021 Return-Path: Delivered-To: freebsd-hackers@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 A0A65540A52 for ; Mon, 8 Feb 2021 20:32:18 +0000 (UTC) (envelope-from mr@freebsd.org) Received: from app.eeeit.de (app.eeeit.de [188.68.43.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZHkp1RK7z4phv for ; Mon, 8 Feb 2021 20:32:17 +0000 (UTC) (envelope-from mr@freebsd.org) Received: from localhost (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mike@reifenberger.com) by app.eeeit.de (Postfix) with ESMTPSA id 7E59F76E04 for ; Mon, 8 Feb 2021 21:32:09 +0100 (CET) Received: from ipbcc0fd0a.dynamic.kabel-deutschland.de (ipbcc0fd0a.dynamic.kabel-deutschland.de [188.192.253.10]) by app.eeeit.de (Horde Framework) with HTTPS; Mon, 08 Feb 2021 20:32:09 +0000 Date: Mon, 08 Feb 2021 20:32:09 +0000 Message-ID: <20210208203209.Horde.UnyaL7FUzQNeXC0k2_ZbH2a@app.eeeit.de> From: MR To: freebsd-hackers@freebsd.org Subject: Trying to define a devd rule doesn't work User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-Rspamd-Queue-Id: 4DZHkp1RK7z4phv X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:197540, ipnet:188.68.32.0/20, country:DE]; local_wl_from(0.00)[freebsd.org] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 20:32:18 -0000 Hi, I'm trying to add a rule for chmod a usb device (HackRF) with devd on attach. Thats the /usr/local/etc/devd/hackrf.conf file: attach 1000 { match "system" "USB"; match "subsystem" "INTERFACE"; match "type" "ATTACH"; match "vendor" "0x1d50"; match "product" "0x6089"; action "chmod g+w /dev/$device-name"; }; The rule doesn't seem to work and the generic devmatch rule is used instead: ... Processing event '!system=DEVFS subsystem=CDEV type=CREATE cdev=usb/0.5.0' Pushing table setting *=!system=DEVFS subsystem=CDEV type=CREATE cdev=usb/0.5.0 setting _=system=DEVFS subsystem=CDEV type=CREATE cdev=usb/0.5.0 setting timestamp=1612815555.510412 setting system=DEVFS setting subsystem=CDEV setting type=CREATE setting cdev=usb/0.5.0 Processing notify event Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.0 against ^atp[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.0 against ^ums[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.0 against ^wsp[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^GEOM$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.0 against ^hv_fsvss_dev$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.0 against ^hv_kvp_dev$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^HYPERV_NIC_VF$, invert=0 Testing system=DEVFS against ^ETHERNET$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing subsystem=CDEV against ^DEVICE$, invert=0 Popping table Processing event '!system=DEVFS subsystem=CDEV type=CREATE cdev=ugen0.5' Pushing table setting *=!system=DEVFS subsystem=CDEV type=CREATE cdev=ugen0.5 setting _=system=DEVFS subsystem=CDEV type=CREATE cdev=ugen0.5 setting timestamp=1612815555.510552 setting system=DEVFS setting subsystem=CDEV setting type=CREATE setting cdev=ugen0.5 Processing notify event Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=ugen0.5 against ^atp[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=ugen0.5 against ^ums[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=ugen0.5 against ^wsp[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^GEOM$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=ugen0.5 against ^hv_fsvss_dev$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=ugen0.5 against ^hv_kvp_dev$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^HYPERV_NIC_VF$, invert=0 Testing system=DEVFS against ^ETHERNET$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing subsystem=CDEV against ^DEVICE$, invert=0 Popping table Processing event '!system=DEVFS subsystem=CDEV type=CREATE cdev=usb/0.5.1' Pushing table setting *=!system=DEVFS subsystem=CDEV type=CREATE cdev=usb/0.5.1 setting _=system=DEVFS subsystem=CDEV type=CREATE cdev=usb/0.5.1 setting timestamp=1612815555.526455 setting system=DEVFS setting subsystem=CDEV setting type=CREATE setting cdev=usb/0.5.1 Processing notify event Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.1 against ^atp[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.1 against ^ums[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.1 against ^wsp[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^GEOM$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.1 against ^hv_fsvss_dev$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.1 against ^hv_kvp_dev$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^HYPERV_NIC_VF$, invert=0 Testing system=DEVFS against ^ETHERNET$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing subsystem=CDEV against ^DEVICE$, invert=0 Popping table Processing event '!system=DEVFS subsystem=CDEV type=CREATE cdev=usb/0.5.2' Pushing table setting *=!system=DEVFS subsystem=CDEV type=CREATE cdev=usb/0.5.2 setting _=system=DEVFS subsystem=CDEV type=CREATE cdev=usb/0.5.2 setting timestamp=1612815555.526580 setting system=DEVFS setting subsystem=CDEV setting type=CREATE setting cdev=usb/0.5.2 Processing notify event Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.2 against ^atp[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.2 against ^ums[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.2 against ^wsp[0-9]+$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^GEOM$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^USB$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.2 against ^hv_fsvss_dev$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^CREATE$, invert=0 Testing cdev=usb/0.5.2 against ^hv_kvp_dev$, invert=0 Testing system=DEVFS against ^DEVFS$, invert=0 Testing subsystem=CDEV against ^CDEV$, invert=0 Testing type=CREATE against ^DESTROY$, invert=0 Testing system=DEVFS against ^HYPERV_NIC_VF$, invert=0 Testing system=DEVFS against ^ETHERNET$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^ZFS$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^IFNET$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing system=DEVFS against ^ACPI$, invert=0 Testing subsystem=CDEV against ^DEVICE$, invert=0 Popping table Processing event '!system=USB subsystem=DEVICE type=ATTACH ugen=ugen0.5 cdev=ugen0.5 vendor=0x1d50 product=0x6089 devclass=0x00 devsubclass=0x00 sernum="000000000000000017c467dc377f3bc3" release=0x0104 mode=host port=4 parent=ugen0.1' Pushing table setting *=!system=USB subsystem=DEVICE type=ATTACH ugen=ugen0.5 cdev=ugen0.5 vendor=0x1d50 product=0x6089 devclass=0x00 devsubclass=0x00 sernum="000000000000000017c467dc377f3bc3" release=0x0104 mode=host port=4 parent=ugen0.1 setting _=system=USB subsystem=DEVICE type=ATTACH ugen=ugen0.5 cdev=ugen0.5 vendor=0x1d50 product=0x6089 devclass=0x00 devsubclass=0x00 sernum="000000000000000017c467dc377f3bc3" release=0x0104 mode=host port=4 parent=ugen0.1 setting timestamp=1612815555.552657 setting system=USB setting subsystem=DEVICE setting type=ATTACH setting ugen=ugen0.5 setting cdev=ugen0.5 setting vendor=0x1d50 setting product=0x6089 setting devclass=0x00 setting devsubclass=0x00 setting sernum=000000000000000017c467dc377f3bc3 setting release=0x0104 setting mode=host setting port=4 setting parent=ugen0.1 Processing notify event Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x082d$, invert=0 Testing system=USB against ^GEOM$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x083a$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x168c$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x0cf3$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x0d8e$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x2001$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x07d1$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x1690$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x16ab$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x0846$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x1385$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x157e$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x1435$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing vendor=0x1d50 against ^0x0cde$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=DEVICE against ^INTERFACE$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^HYPERV_NIC_VF$, invert=0 Testing system=USB against ^ETHERNET$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^IFNET$, invert=0 Testing system=USB against ^IFNET$, invert=0 Testing system=USB against ^IFNET$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing subsystem=DEVICE against ^DEVICE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing cdev=ugen0.5 against ^ugen[0-9]+.[0-9]+$, invert=0 Executing 'env LD_PRELOAD=%%LIBCUSE%% /usr/local/etc/rc.d/uhidd start /dev/$'ugen0.5'' ld-elf.so.1: Shared object "%%LIBCUSE%%" not found Popping table Processing event '!system=USB subsystem=INTERFACE type=ATTACH ugen=ugen0.5 cdev=ugen0.5 vendor=0x1d50 product=0x6089 devclass=0x00 devsubclass=0x00 sernum="000000000000000017c467dc377f3bc3" release=0x0104 mode=host interface=0 endpoints=2 intclass=0xff intsubclass=0xff intprotocol=0xff' Pushing table setting *=!system=USB subsystem=INTERFACE type=ATTACH ugen=ugen0.5 cdev=ugen0.5 vendor=0x1d50 product=0x6089 devclass=0x00 devsubclass=0x00 sernum="000000000000000017c467dc377f3bc3" release=0x0104 mode=host interface=0 endpoints=2 intclass=0xff intsubclass=0xff intprotocol=0xff setting _=system=USB subsystem=INTERFACE type=ATTACH ugen=ugen0.5 cdev=ugen0.5 vendor=0x1d50 product=0x6089 devclass=0x00 devsubclass=0x00 sernum="000000000000000017c467dc377f3bc3" release=0x0104 mode=host interface=0 endpoints=2 intclass=0xff intsubclass=0xff intprotocol=0xff setting timestamp=1612815555.602450 setting system=USB setting subsystem=INTERFACE setting type=ATTACH setting ugen=ugen0.5 setting cdev=ugen0.5 setting vendor=0x1d50 setting product=0x6089 setting devclass=0x00 setting devsubclass=0x00 setting sernum=000000000000000017c467dc377f3bc3 setting release=0x0104 setting mode=host setting interface=0 setting endpoints=2 setting intclass=0xff setting intsubclass=0xff setting intprotocol=0xff Processing notify event Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^GEOM$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Testing system=USB against ^USB$, invert=0 Testing subsystem=INTERFACE against ^INTERFACE$, invert=0 Testing type=ATTACH against ^ATTACH$, invert=0 Testing intclass=0xff against ^0x07$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^DEVFS$, invert=0 Testing system=USB against ^HYPERV_NIC_VF$, invert=0 Testing system=USB against ^ETHERNET$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^ZFS$, invert=0 Testing system=USB against ^IFNET$, invert=0 Testing system=USB against ^IFNET$, invert=0 Testing system=USB against ^IFNET$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing system=USB against ^ACPI$, invert=0 Testing subsystem=INTERFACE against ^DEVICE$, invert=0 Popping table Processing event '? at bus=0 hubaddr=1 port=4 devaddr=5 interface=0 ugen=ugen0.5 vendor=0x1d50 product=0x6089 devclass=0x00 devsubclass=0x00 devproto=0x00 sernum="000000000000000017c467dc377f3bc3" release=0x0104 mode=host intclass=0xff intsubclass=0xff intprotocol=0xff on uhub0' Pushing table setting *=? at bus=0 hubaddr=1 port=4 devaddr=5 interface=0 ugen=ugen0.5 vendor=0x1d50 product=0x6089 devclass=0x00 devsubclass=0x00 devproto=0x00 sernum="000000000000000017c467dc377f3bc3" release=0x0104 mode=host intclass=0xff intsubclass=0xff intprotocol=0xff on uhub0 setting _= at bus=0 hubaddr=1 port=4 devaddr=5 interface=0 ugen=ugen0.5 vendor=0x1d50 product=0x6089 devclass=0x00 devsubclass=0x00 devproto=0x00 sernum="000000000000000017c467dc377f3bc3" release=0x0104 mode=host intclass=0xff intsubclass=0xff intprotocol=0xff on uhub0 setting timestamp=1612815555.616404 setting bus=0 setting hubaddr=1 setting port=4 setting devaddr=5 setting interface=0 setting ugen=ugen0.5 setting vendor=0x1d50 setting product=0x6089 setting devclass=0x00 setting devsubclass=0x00 setting devproto=0x00 setting sernum=000000000000000017c467dc377f3bc3 setting release=0x0104 setting mode=host setting intclass=0xff setting intsubclass=0xff setting intprotocol=0xff setting bus=uhub0 Processing nomatch event Executing 'service devmatch quietstart '?'$' at bus=0 hubaddr=1 port=4 devaddr=5 interface=0 ugen=ugen0.5 vendor=0x1d50 product=0x6089 devclass=0x00 devsubclass=0x00 devproto=0x00 sernum="000000000000000017c467dc377f3bc3" release=0x0104 mode=host intclass=0xff intsubclass=0xff intprotocol=0xff on uhub0'' Popping table ... usbconfig dump_all_desc ... ugen0.5: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x1d50 idProduct = 0x6089 bcdDevice = 0x0104 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0004 <000000000000000017c467dc377f3bc3> bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0003 bmAttributes = 0x0080 bMaxPower = 0x00fa Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0002 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Does anyone know what could be missing or wrong? Thanks in advance! greetings --- Michael -- greetings --- mike mr@freebsd.org From owner-freebsd-hackers@freebsd.org Mon Feb 8 21:00:09 2021 Return-Path: Delivered-To: freebsd-hackers@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 0EC045417CF for ; Mon, 8 Feb 2021 21:00:09 +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 4DZJLw0xHBz4rYR; Mon, 8 Feb 2021 21:00:07 +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 1E707260378; Mon, 8 Feb 2021 22:00:05 +0100 (CET) Subject: Re: Trying to define a devd rule doesn't work To: MR , freebsd-hackers@freebsd.org References: <20210208203209.Horde.UnyaL7FUzQNeXC0k2_ZbH2a@app.eeeit.de> From: Hans Petter Selasky Message-ID: <09c861f0-a16f-5176-024a-34ce5511c9d9@selasky.org> Date: Mon, 8 Feb 2021 21:59:49 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20210208203209.Horde.UnyaL7FUzQNeXC0k2_ZbH2a@app.eeeit.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4DZJLw0xHBz4rYR 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.30 / 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]; TO_MATCH_ENVRCPT_ALL(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]; MID_RHS_MATCH_FROM(0.00)[]; SPAMHAUS_ZRD(0.00)[2a01:4f8:c17:6c4b::2:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 21:00:09 -0000 On 2/8/21 9:32 PM, MR wrote: >         action "chmod g+w /dev/$device-name"; Should be $cdev instead of $device-name . --HPS From owner-freebsd-hackers@freebsd.org Mon Feb 8 21:27:01 2021 Return-Path: Delivered-To: freebsd-hackers@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 72FD0542078 for ; Mon, 8 Feb 2021 21:27:01 +0000 (UTC) (envelope-from mr@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.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 SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZJxx2wnNz4sns; Mon, 8 Feb 2021 21:27:01 +0000 (UTC) (envelope-from mr@freebsd.org) Received: from [127.0.0.1] (ipbcc0fd0a.dynamic.kabel-deutschland.de [188.192.253.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: mr) by smtp.freebsd.org (Postfix) with ESMTPSA id F11EA29381; Mon, 8 Feb 2021 21:27:00 +0000 (UTC) (envelope-from mr@freebsd.org) Date: Mon, 08 Feb 2021 22:26:59 +0100 From: Michael To: freebsd-hackers@freebsd.org, Hans Petter Selasky , MR Subject: Re: Trying to define a devd rule doesn't work User-Agent: K-9 Mail for Android In-Reply-To: <09c861f0-a16f-5176-024a-34ce5511c9d9@selasky.org> References: <20210208203209.Horde.UnyaL7FUzQNeXC0k2_ZbH2a@app.eeeit.de> <09c861f0-a16f-5176-024a-34ce5511c9d9@selasky.org> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 21:27:01 -0000 Hi, yes maybe, but the rule doesn't match at all=2E Am 8=2E Februar 2021 21:59:49 MEZ schrieb Hans Petter Selasky : >On 2/8/21 9:32 PM, MR wrote: >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 action "chmod g+w /dev/$dev= ice-name"; > >Should be $cdev instead of $device-name =2E > >--HPS >_______________________________________________ >freebsd-hackers@freebsd=2Eorg mailing list >https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd=2Eo= rg" --=20 Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail gesendet= =2E From owner-freebsd-hackers@freebsd.org Mon Feb 8 22:15:18 2021 Return-Path: Delivered-To: freebsd-hackers@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 0FB73543F03 for ; Mon, 8 Feb 2021 22:15:18 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZL1d3dHyz3DbX; Mon, 8 Feb 2021 22:15:17 +0000 (UTC) (envelope-from avg@FreeBSD.org) X-Originating-IP: 195.64.148.76 Received: from [192.168.0.88] (unknown [195.64.148.76]) (Authenticated sender: andriy.gapon@uabsd.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 2007040006; Mon, 8 Feb 2021 22:15:14 +0000 (UTC) Subject: Re: Trying to define a devd rule doesn't work To: MR , freebsd-hackers@freebsd.org References: <20210208203209.Horde.UnyaL7FUzQNeXC0k2_ZbH2a@app.eeeit.de> From: Andriy Gapon Message-ID: <3617952c-d173-d7c8-a119-2651274a3f6f@FreeBSD.org> Date: Tue, 9 Feb 2021 00:15:13 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210208203209.Horde.UnyaL7FUzQNeXC0k2_ZbH2a@app.eeeit.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4DZL1d3dHyz3DbX X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; ASN(0.00)[asn:29169, ipnet:217.70.176.0/20, country:FR] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 22:15:18 -0000 On 08/02/2021 22:32, MR wrote: > attach 1000 { >         match "system"          "USB"; >         match "subsystem"       "INTERFACE"; >         match "type"            "ATTACH"; >         match "vendor" "0x1d50"; >         match "product" "0x6089"; >         action "chmod g+w /dev/$device-name"; > }; You should either use "notify 1000" or, if you keep "attach 1000", remove system, subsystem and type matches. -- Andriy Gapon From owner-freebsd-hackers@freebsd.org Tue Feb 9 12:03:01 2021 Return-Path: Delivered-To: freebsd-hackers@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 5E46453C913 for ; Tue, 9 Feb 2021 12:03:01 +0000 (UTC) (envelope-from mr@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZhNj25M8z4w90; Tue, 9 Feb 2021 12:03:01 +0000 (UTC) (envelope-from mr@freebsd.org) Received: from [127.0.0.1] (ipbcc0fd0a.dynamic.kabel-deutschland.de [188.192.253.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: mr) by smtp.freebsd.org (Postfix) with ESMTPSA id D73E8DF; Tue, 9 Feb 2021 12:03:00 +0000 (UTC) (envelope-from mr@freebsd.org) Date: Tue, 09 Feb 2021 13:03:00 +0100 From: Michael To: freebsd-hackers@freebsd.org, Andriy Gapon Subject: Re: Trying to define a devd rule doesn't work User-Agent: K-9 Mail for Android In-Reply-To: <3617952c-d173-d7c8-a119-2651274a3f6f@FreeBSD.org> References: <20210208203209.Horde.UnyaL7FUzQNeXC0k2_ZbH2a@app.eeeit.de> <3617952c-d173-d7c8-a119-2651274a3f6f@FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2021 12:03:01 -0000 Hi, yes, changing top notify did help=2E Thanks! Am 8=2E Februar 2021 23:15:13 MEZ schrieb Andriy Gapon = : >On 08/02/2021 22:32, MR wrote: >> attach 1000 { >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 match "system"=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "USB"; >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 match "subsystem"=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 "INTERFACE"; >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 match "type"=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "ATTACH"; >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 match "vendor" "0x1d50"; >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 match "product" "0x6089"; >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 action "chmod g+w /dev/$devi= ce-name"; >> }; > >You should either use "notify 1000" or, if you keep "attach 1000", remove >system, subsystem and type matches=2E > >--=20 >Andriy Gapon >_______________________________________________ >freebsd-hackers@freebsd=2Eorg mailing list >https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd=2Eo= rg" --=20 Diese Nachricht wurde von meinem Android-Ger=C3=A4t mit K-9 Mail gesendet= =2E From owner-freebsd-hackers@freebsd.org Tue Feb 9 04:20:24 2021 Return-Path: Delivered-To: freebsd-hackers@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 2643B52EACA for ; Tue, 9 Feb 2021 04:20:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZV6v3MJ6z3vMX for ; Tue, 9 Feb 2021 04:20:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qk1-x72e.google.com with SMTP id q85so4553313qke.8 for ; Mon, 08 Feb 2021 20:20:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yNXnR0OFZSJu9NVe6z/yD1nd4Y2mUMvNEqBm29aUM5E=; b=XNKdTwmoMPaALkc0SOf04tOCQ7dJCQkBpwiB4u6iFTReXepRdyQlwdsA1KkwmKEgIw smhHaF7NFUOka0SRNa+/to3D/QdSjMKBITe/30S26ojz5w3Rt+vtjTK5p7d/VyouqQVS tv1e/z+H2ts7nkD+hjLF33FJOrsfdW46bV3f025RlLCt95cHLukQVoiNrLO0Gs3q+F1r DNpFTRQZEFak/Xw9iJQjqXCcpUFJdrBiZwTfUQ3rWqBhxU6PTyqFQbXWBSCZJ7+5nspO Vh5X/DPIibfbJFw4GUgvyKX5ql5n9vTMSfF5GKqpi3sE1Oug7wQTS1CVxgeGblPBykaj AJfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yNXnR0OFZSJu9NVe6z/yD1nd4Y2mUMvNEqBm29aUM5E=; b=Vj2DLzXw+ZE1l94zKZpgg5ZL8WILy6ilJ1ltSwyvHyfCdanhqZkIFB49ZuQ9SnhHtu x8Li4xKXBd5U8a5TzCB/J7w0tBbEY6qYY6HZLhL//GD3T06F2OXy5Ki/iszybbicCDui SdkCIwgL4BFoWqfNcJZmymycZkaqi4H1iTy7OC6Tu9C+RjYIsAL+BI97TAHDZvkw4Ufb vvAzQxLoUr8t8lvRcyMhNr7LuynrGegsiy4Pin/MEDCacVX32/e5xNKevVIzDrnq3g8f /Rt2MRngH37OCWi8zY6i/5YwsV9oS4r3abjFmd+/m5AgJ7CKGpEqjl3DZMgeCy/+jwak kTkQ== X-Gm-Message-State: AOAM531rotN2zOk09v2aj0Wi6fo/tp/JopF4sk5rOEVfNGHIYUbsn3LF KqkWA6Q1OcBUA7AzbMRkbhZq/MNg7RHCwA1el686U0sPO/o= X-Google-Smtp-Source: ABdhPJzQEcdRac8AFxC0uAbYfrTuR1QG0ZgWYrO45/1P688IvsMUxsVpwJKr62Flk0oJKNUi5nr6/HTpaJWhbJ1uxp0= X-Received: by 2002:a37:8306:: with SMTP id f6mr20483725qkd.366.1612844422595; Mon, 08 Feb 2021 20:20:22 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Mon, 8 Feb 2021 20:20:10 -0800 Message-ID: Subject: Re: RTL8188EU Wifi adapter - what i am missing To: Wojciech Puchar Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4DZV6v3MJ6z3vMX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XNKdTwmo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::72e as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::72e:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::72e:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72e:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-Mailman-Approved-At: Tue, 09 Feb 2021 21:36:24 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2021 04:20:24 -0000 hi! Did you figure this out? Can you try a -13 pre-release snapshot and see if it works there? -adrian On Mon, 11 Jan 2021 at 02:02, Wojciech Puchar wrote: > > FreeBSD 12.2-STABLE > > in kernel config: > device wlan # 802.11 support > options IEEE80211_DEBUG # enable debug msgs > options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's > options IEEE80211_SUPPORT_MESH # enable 802.11s draft support > device wlan_wep # 802.11 WEP support > device wlan_ccmp # 802.11 CCMP support > device wlan_tkip # 802.11 TKIP support > device wlan_amrr # AMRR transmit rate control algorithm > device uether > device rtwn > device rtwn_usb > device rtwnfw > device firmware > > > > in dmesg: > > rtwn0: on usbus4 > rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R > > > ifconfig wlan0 create wlandev rtwn0 > > then > wpa_supplicant -Dbsd -iwlan0 -c/etc/wpa_supplicant.conf > > results in: > Successfully initialized wpa_supplicant > ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument > ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument > wlan0: Trying to associate with 00:21:29:8a:26:af (SSID='linksysd' freq=2432 MHz) > Failed to add supported operating classes IE > wlan0: Authentication with 00:21:29:8a:26:af timed out. > wlan0: CTRL-EVENT-DISCONNECTED bssid=00:21:29:8a:26:af reason=3 locally_generated=1 > wlan0: Trying to associate with 00:21:29:8a:26:af (SSID='linksysd' freq=2432 MHz) > Failed to add supported operating classes IE > wlan0: Authentication with 00:21:29:8a:26:af timed out. > wlan0: CTRL-EVENT-DISCONNECTED bssid=00:21:29:8a:26:af reason=3 locally_generated=1 > wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="linksysd" auth_failures=1 duration=10 reason=CONN_FAILED > wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="linksysd" > wlan0: Trying to associate with 00:21:29:8a:26:af (SSID='linksysd' freq=2432 MHz) > Failed to add supported operating classes IE > wlan0: CTRL-EVENT-DISCONNECTED bssid=00:21:29:8a:26:af reason=3 locally_generated=1 > wlan0: CTRL-EVENT-TERMINATING > > > wpa_supplicant.conf contains: > ctrl_interface=/var/run/wpa_supplicant > ctrl_interface_group=wheel > eapol_version=1 > ap_scan=1 > fast_reauth=1 > network={ > scan_ssid=1 > ssid="linksysd" > psk="passwordhere" > } > > > thank you for help > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@freebsd.org Wed Feb 10 05:42:29 2021 Return-Path: Delivered-To: freebsd-hackers@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 4194953AE07 for ; Wed, 10 Feb 2021 05:42:29 +0000 (UTC) (envelope-from amshafe2@ncsu.edu) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Db7v82HJSz3FBj for ; Wed, 10 Feb 2021 05:42:28 +0000 (UTC) (envelope-from amshafe2@ncsu.edu) Received: by mail-qk1-x729.google.com with SMTP id x14so662544qkm.2 for ; Tue, 09 Feb 2021 21:42:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ncsu.edu; s=google; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=PnN0x9kxqC+Lb3JbF8y/lnYq79xweusxBnB+TguqnKI=; b=QPTuRW5DqpHGjA9uEL8fAUOnbkyExOw2uT3TjLL/jvDJopCq+NoWQFGe5cj9YoTShL obpaothFk2Dzu7Dgel5UN76aoe2cRU8obsf67jMq5iJ08l7RQYtl8pchHFNZJ6/K1yjq lMROs+cbpc8Vq23FEahkGIMU7ing6mocXUDZoHMWkw5zlAEdh0PSVtkAg/glDBgJTT9p 7NOEbnjAH3vZ74eb2I9rd5umVs6XNd2fRSooMHFeNvXHdr9n1Ax0gEqBr2Gl0Jk7iUup FIgxKKvRm5uv4iquG6VX4q94YR5YOPhRKJ7pDOOlMJDTaVr+oBFsIxWsM9ELZVp6hDb/ NvBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=PnN0x9kxqC+Lb3JbF8y/lnYq79xweusxBnB+TguqnKI=; b=ZUjEu+JTnbT8H1JlWJUL9nTlDJxEtLwaobTeJZUZU75STQjulFnEeeYlJoPX9b2Cmx 9Pxz1smDdqGclgvAAlA9rb/U2BEeSolHk+B9/hHRdkl4xcICCHXQqGdTlrCLZskVRBbo /wQmRQSoszBkHyjm0P3T48ULmGunPY+to75fLGAoxM8HYw/cL3esSqhNW8gQU8V7PiAU 204aNPM8RiJJ8eyV4SSuYqnR2MirFctYJ3kOG6cFxJOS+W84z6CW+k+p+tnChazNdLSl 21bE6Ueb9jn98pjaHzXL0qRZ2S6kTw4wtJL10YQp6MNBTecgnj+GJg3GjoMFgn2/+nHE qRxQ== X-Gm-Message-State: AOAM5302d/y3DFJkrQKb++33oBblqiwH5qL6aiomY6Q4e0UcJnoA8cFV 92meXxe/QUFB3Am7BGpAWDucJg== X-Google-Smtp-Source: ABdhPJxxapQREcDfqHC0U80O/Um1JF5ES9bdk96KtTAAYTyrc65wGnFac1WitE0ChKhG4TZTGrhCcw== X-Received: by 2002:a37:614f:: with SMTP id v76mr186170qkb.352.1612935747374; Tue, 09 Feb 2021 21:42:27 -0800 (PST) Received: from localhost ([2600:1700:e71:d230:d0a0:c06c:f8fe:5d59]) by smtp.gmail.com with ESMTPSA id h6sm647356qtx.39.2021.02.09.21.42.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 21:42:26 -0800 (PST) From: Austin Shafer X-Google-Original-From: Austin Shafer To: Adrian Chadd , Wojciech Puchar Cc: "freebsd-hackers\@freebsd.org" Subject: Re: RTL8188EU Wifi adapter - what i am missing In-Reply-To: References: Date: Wed, 10 Feb 2021 00:42:24 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4Db7v82HJSz3FBj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ncsu.edu header.s=google header.b=QPTuRW5D; dmarc=pass (policy=none) header.from=ncsu.edu; spf=pass (mx1.freebsd.org: domain of amshafe2@ncsu.edu designates 2607:f8b0:4864:20::729 as permitted sender) smtp.mailfrom=amshafe2@ncsu.edu X-Spamd-Result: default: False [-3.31 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[ncsu.edu:+]; DMARC_POLICY_ALLOW(-0.50)[ncsu.edu,none]; FREEMAIL_TO(0.00)[gmail.com,puchar.net]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::729:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[ncsu.edu:s=google]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.69)[0.689]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DWL_DNSWL_LOW(-1.00)[ncsu.edu:dkim]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::729:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::729:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-Mailman-Approved-At: Wed, 10 Feb 2021 10:00:53 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2021 05:42:29 -0000 Just wanted to add that I've seen an almost identical error with my netgear AC600 with rtwn . If I switch from the normal network to the guest network (which is only 2.4Ghz) then it works reliably and the error doesn't occur. Very slow, but at least reliable. The normal network that I sometimes get this error on is one of those 5ghz/2.4ghz simultaneous ones, and my machine says it uses 2.4 on it. I'm guessing that's the problem since the 2.4-only network is fine. - Austin Adrian Chadd writes: > hi! > > Did you figure this out? Can you try a -13 pre-release snapshot and > see if it works there? > > > > -adrian > > On Mon, 11 Jan 2021 at 02:02, Wojciech Puchar wrote: >> >> FreeBSD 12.2-STABLE >> >> in kernel config: >> device wlan # 802.11 support >> options IEEE80211_DEBUG # enable debug msgs >> options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's >> options IEEE80211_SUPPORT_MESH # enable 802.11s draft support >> device wlan_wep # 802.11 WEP support >> device wlan_ccmp # 802.11 CCMP support >> device wlan_tkip # 802.11 TKIP support >> device wlan_amrr # AMRR transmit rate control algorithm >> device uether >> device rtwn >> device rtwn_usb >> device rtwnfw >> device firmware >> >> >> >> in dmesg: >> >> rtwn0: on usbus4 >> rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R >> >> >> ifconfig wlan0 create wlandev rtwn0 >> >> then >> wpa_supplicant -Dbsd -iwlan0 -c/etc/wpa_supplicant.conf >> >> results in: >> Successfully initialized wpa_supplicant >> ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument >> ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument >> wlan0: Trying to associate with 00:21:29:8a:26:af (SSID='linksysd' freq=2432 MHz) >> Failed to add supported operating classes IE >> wlan0: Authentication with 00:21:29:8a:26:af timed out. >> wlan0: CTRL-EVENT-DISCONNECTED bssid=00:21:29:8a:26:af reason=3 locally_generated=1 >> wlan0: Trying to associate with 00:21:29:8a:26:af (SSID='linksysd' freq=2432 MHz) >> Failed to add supported operating classes IE >> wlan0: Authentication with 00:21:29:8a:26:af timed out. >> wlan0: CTRL-EVENT-DISCONNECTED bssid=00:21:29:8a:26:af reason=3 locally_generated=1 >> wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="linksysd" auth_failures=1 duration=10 reason=CONN_FAILED >> wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="linksysd" >> wlan0: Trying to associate with 00:21:29:8a:26:af (SSID='linksysd' freq=2432 MHz) >> Failed to add supported operating classes IE >> wlan0: CTRL-EVENT-DISCONNECTED bssid=00:21:29:8a:26:af reason=3 locally_generated=1 >> wlan0: CTRL-EVENT-TERMINATING >> >> >> wpa_supplicant.conf contains: >> ctrl_interface=/var/run/wpa_supplicant >> ctrl_interface_group=wheel >> eapol_version=1 >> ap_scan=1 >> fast_reauth=1 >> network={ >> scan_ssid=1 >> ssid="linksysd" >> psk="passwordhere" >> } >> >> >> thank you for help >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@freebsd.org Thu Feb 11 18:47:17 2021 Return-Path: Delivered-To: freebsd-hackers@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 267645316B7 for ; Thu, 11 Feb 2021 18:47:17 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.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 SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dc5GF0YxTz4dlb; Thu, 11 Feb 2021 18:47:17 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 01564299C0; Thu, 11 Feb 2021 18:47:16 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qk1-f177.google.com with SMTP id r77so6217008qka.12; Thu, 11 Feb 2021 10:47:16 -0800 (PST) X-Gm-Message-State: AOAM532syaHCqY3gHNKSk8QI6X1H3Pf19VldSjftmKtQFxq0ndXdlOHk 7sslyfF2HxPWntmB4NW3wgAiptAg0jltbOuyjlU= X-Google-Smtp-Source: ABdhPJzUFM2zuR4TXwDjFsbXh/hdcIeiu6NOdtanOH7c3cAPBNfglPtA7HRqFSg98dC3tAlC7L7Kh/ImMVEQAUXlCmA= X-Received: by 2002:a05:620a:b8a:: with SMTP id k10mr10524283qkh.120.1613069236422; Thu, 11 Feb 2021 10:47:16 -0800 (PST) MIME-Version: 1.0 References: <377FA5D1-0DC8-463D-A8E3-5645801C2858@freebsd.org> <20210203182928.GG77557@FreeBSD.org> In-Reply-To: <20210203182928.GG77557@FreeBSD.org> From: Kyle Evans Date: Thu, 11 Feb 2021 12:47:03 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Including IB utils in install images To: Glen Barber Cc: Ravi Pokala , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2021 18:47:17 -0000 On Wed, Feb 3, 2021 at 12:29 PM Glen Barber wrote: > > On Wed, Feb 03, 2021 at 10:06:20AM -0800, Ravi Pokala wrote: > > Hi folks, > > > > I'm using release/release.sh to create install images. We recently dete= rmined that we need to start including the InfiniBand utilities (contrib/of= ed/infiniband-diags / usr.bin/ofed/infiniband-diags). I updated my release.= conf to add 'WITH_OFED_EXTRA=3D1' to MAKE_FLAGS, and I confirmed that the u= tilities are being built. However, they are not subsequently copied to the = distdir, or included in the resulting image. Well, technically, `ibstat' is= , but per usr.bin/ofed/infiniband-diags/Makefile, it is not contingent on W= ITH_OFED_EXTRA / MK_OFED_EXTRA. > > > > Bug, or operator error? > > > > You could set a local SRC_CONF (see release/release.conf.sample), but > I *think* you also need to set WITH_OFED=3D1. According to src.conf(5), > it seems WITH_OFED_EXTRA is ignored unless WITH_OFED is explicitly set. > Ravi followed up privately here; the problem he was seeing is because MAKE_FLAGS is only included in release.sh for building stuff. WORLD_FLAGS gets closer to what he wants, but a local src.conf is better as far as "touching build options" goes. The caveat was that then they'd have to pair their release.conf with a src.conf; I pointed out that release.conf is literally sourced in and that's heavily baked in enough to release.sh that it cannot change. A good solution for this kind of thing should be something along the lines of: srcconf=3D/path/whatever/maybe/tmpfile cat < $srcconf WITH_OFED_EXTRA=3D"YES" EOF ... SRC_CONF=3D$srcconf Thanks, Kyle Evans From owner-freebsd-hackers@freebsd.org Fri Feb 12 03:22:02 2021 Return-Path: Delivered-To: freebsd-hackers@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 C587C54163E for ; Fri, 12 Feb 2021 03:22:02 +0000 (UTC) (envelope-from rpokala@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DcJhB5KLhz3pyV; Fri, 12 Feb 2021 03:22:02 +0000 (UTC) (envelope-from rpokala@freebsd.org) Received: from [192.168.1.10] (unknown [98.42.164.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: rpokala) by smtp.freebsd.org (Postfix) with ESMTPSA id 4107E2D5F8; Fri, 12 Feb 2021 03:22:02 +0000 (UTC) (envelope-from rpokala@freebsd.org) User-Agent: Microsoft-MacOutlook/16.45.21011103 Date: Thu, 11 Feb 2021 19:21:57 -0800 Subject: Re: Including IB utils in install images From: Ravi Pokala To: Kyle Evans , Glen Barber CC: "freebsd-hackers@freebsd.org" Message-ID: <4D70C9A9-A534-4C38-9A95-4ED260F49DD1@panasas.com> Thread-Topic: Including IB utils in install images References: <377FA5D1-0DC8-463D-A8E3-5645801C2858@freebsd.org> <20210203182928.GG77557@FreeBSD.org> In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Feb 2021 03:22:02 -0000 -----Original Message----- From: Kyle Evans Date: 2021-02-11, Thursday at 10:47 To: Glen Barber Cc: Ravi Pokala , "freebsd-hackers@freebsd.org" Subject: Re: Including IB utils in install images On Wed, Feb 3, 2021 at 12:29 PM Glen Barber wrote: > > On Wed, Feb 03, 2021 at 10:06:20AM -0800, Ravi Pokala wrote: > > Hi folks, > > > > I'm using release/release.sh to create install images. We recently determined that we need to start including the InfiniBand utilities (contrib/ofed/infiniband-diags / usr.bin/ofed/infiniband-diags). I updated my release.conf to add 'WITH_OFED_EXTRA=1' to MAKE_FLAGS, and I confirmed that the utilities are being built. However, they are not subsequently copied to the distdir, or included in the resulting image. Well, technically, `ibstat' is, but per usr.bin/ofed/infiniband-diags/Makefile, it is not contingent on WITH_OFED_EXTRA / MK_OFED_EXTRA. > > > > Bug, or operator error? > > > > You could set a local SRC_CONF (see release/release.conf.sample), but > I *think* you also need to set WITH_OFED=1. According to src.conf(5), > it seems WITH_OFED_EXTRA is ignored unless WITH_OFED is explicitly set. > Ravi followed up privately here; the problem he was seeing is because MAKE_FLAGS is only included in release.sh for building stuff. WORLD_FLAGS gets closer to what he wants, but a local src.conf is better as far as "touching build options" goes. The caveat was that then they'd have to pair their release.conf with a src.conf; I pointed out that release.conf is literally sourced in and that's heavily baked in enough to release.sh that it cannot change. A good solution for this kind of thing should be something along the lines of: srcconf=/path/whatever/maybe/tmpfile cat < $srcconf WITH_OFED_EXTRA="YES" EOF ... SRC_CONF=$srcconf I had hoped that adding "WITH_OFED_EXTRA=1" to WORLD_FLAGS in release.conf would do the trick, to avoid a separate src.conf to keep track of and clean up after. That built the tools, and put them in the world, but they were still omitted from the release directory. So, I gave in and created a src.conf with "WITH_OFED_EXTRA=1", and that indeed did the trick. Thanks Kyle! -Ravi (rpokala@) Thanks, Kyle Evans