From nobody Mon Jun 27 16:18:58 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 49B30873AF2 for ; Mon, 27 Jun 2022 16:19:08 +0000 (UTC) (envelope-from tezeka@hotmail.com) Received: from BRA01-ROA-obe.outbound.protection.outlook.com (mail-roabra01olkn2014.outbound.protection.outlook.com [40.92.96.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LWtG31B1hz4hS2; Mon, 27 Jun 2022 16:19:07 +0000 (UTC) (envelope-from tezeka@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K7Z1xUQrxrcE9YF8C/S1X+xxUF7DIcSdD7/Xu15YwInmwslJ9Use11E0B5sLGc/ZIpnV/55HvvepOHkV5tB6sNlVUsPeh1L61KBv5FyCmyRGJWhP1z8OCDGrLw3m/6BqERhLZF74LcS5nYX/2xI3D7uxcnvgOC5DvXUvDop2dxE4Tw9d8vMTOZQxYpWjRb9LkhYgx8qGe5M78zKQZoJFcmj1FWkky7wJ5F8lm0RjWqbqh12wLEMWjyQqMqlMJjX/bVVkz8VK4A95Jsp5uK3dzC6yW2FAsuiNffq8Rf4j1X5LagaBffwtT+aYrORArstvtE0FOqeDfrX0pQ5SNcAuRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ob3oyPXV9VUhlIcgk6k5o90wWsH7jWSj1Ei9inNS280=; b=BqOEKrPbdFAAfa7ne59p+QNaRMXMwR7BUoaGPVzqGEN7spycozYOxxfRH5854cgLXKKLpUpDFhAAkk2n8LpjK+odxOBSfBVxBRMef9aR7g4HkqNGA12WG0jVUp835p7QvMfkSbaQEOQgc0tAZ6G+i4QPMYJlcNQV59yXCFFWPQ5Y90iCycaM7qcfPicUUDMfJnoHIbe0C/GHSqMtqtQF2ndjzha2W1+VbhpiAZX2qh1vreFhppawfPXqAnkAPKLo9ovUSEms9XOdBwkA4dcPugeaSoS44ebWW0m4GQ6y+Hpz2EmVUBsE5yx8J6gOL1PfI5aPFE8rUB+gbQubpyGD6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ob3oyPXV9VUhlIcgk6k5o90wWsH7jWSj1Ei9inNS280=; b=d/Po/Tk6W3ZSzRX/4jCupegBJVn0RdzISnmEuCIHqyGFALSKZoz34i2mowyJtxvZ3OGRiJZaCJoquaFE0MnTYbhYzYXqJwU4r825IpyZHYa11Ksm4692o2Dey6cm+qV1P19M3bBR0ojUmDLHPIRRQtP7KLgdOCE6+xSi90xlSdVnw65smHlDerFRDHma+mFSNT8peI3XMtEFe+aP8UpohPmRd/e8TCwtt8dVFCiZbD1sI45MCKQ2S97JNgduDdWwNItmEpA04ugel1mwMRLxfmCQaIgxYgi9OmAidiWfjyN4QUO49xL9CDsk+GlWj9Yuw6J0rAlMP2IIOGNKW0EQNQ== Received: from CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:118::12) by FRBP284MB0636.BRAP284.PROD.OUTLOOK.COM (2603:10d6:203:3e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.17; Mon, 27 Jun 2022 16:18:58 +0000 Received: from CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM ([fe80::9d3d:d0fe:1196:ff34]) by CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM ([fe80::9d3d:d0fe:1196:ff34%8]) with mapi id 15.20.5373.018; Mon, 27 Jun 2022 16:18:58 +0000 From: Ivan Quitschal To: Hans Petter Selasky , "freebsd-current@freebsd.org" , "wulf@freebsd.org" , "grembo@freebsd.org" , "imp@bsdimp.com" Subject: RES: iichid/hms keyboard/mouse wrongly reattached to uhid/ums Thread-Topic: iichid/hms keyboard/mouse wrongly reattached to uhid/ums Thread-Index: AdiKNwIPD56grc49TwS+3NUAqhONSQAA1MqAAAFxcZA= Date: Mon, 27 Jun 2022 16:18:58 +0000 Message-ID: References: <420b1f58-09c4-6876-b1ad-91751c60e83c@selasky.org> In-Reply-To: <420b1f58-09c4-6876-b1ad-91751c60e83c@selasky.org> Accept-Language: pt-BR, en-US Content-Language: pt-BR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [2phxqrrZqMsh3v7i5P944QftuRBmglzB4BGLW6Ww6gJ+lqpIgPjYmTigLp5QOYbM] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7af4f1cc-d6f6-4d76-cd1a-08da5858bd82 x-ms-traffictypediagnostic: FRBP284MB0636:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: T0EJmXMo+DlCtGhDOWxk0+HJZxOeOCvIqV2nml3EnM2ke7DcbmWuS7jhzAL2d8DRyWw66ARGDyFDPQdnvQIa3qeJK6PfgABAXqRtp3SzQiamH1cnLOpTa6EUMVfIMbWy5BycSIlkbwgjZgfJEZ/cS9OPt+N1DIsdIMWay+OwHQIihzqekHaSW5gWEXrWw0hfzg91MkcSa/NlEze/bR8mrYFwoD65rhppk/JgxjD98fzjW62GDy68ogyWEFUOWf+5UZXtt/uFcnX3SjDi5CtSsnGuZMilcLd/0dv0LqIexyj3hU+a+l6gGrxFUhAAWvoJ5iq4IDOgNh6h4Zo0OAxXoMSOTVbYhqpU0FbZMv0/BcScu+B4F/B5aZN1u5oF8HpCsABa32Y0taxcr5S6FY1pJUNjLpI9+aThfLT6unCW+7qcvrJVpvCeyKcVWIt1Kqhq2NbkDop2fdKiFlAGCgo3OlX5IB4yJ6J3bXeEl2VRDpxZM1ttCDfuxLhlqx1FHX4fk7pADnNU5Yiu2f6QXQsrVaeToE8dAAijC8w4oaPFZbgfcRmIYYQ+KYELPBplfD5BBeAl48ZxevKpxGKD+a4tt5Ka6ypa8aZuY59qWiFrSDRzWsbry1NBac7l/p0ulTwm+w+yYTxoia5vluXVDqCiDQ== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HCMh7XDNk8x0D8c8/WqacCtO/ewL2766z8FkAx6tlJiqGxOzyDaK4MawMpCK?= =?us-ascii?Q?rP2ObF0podYBYT6vvT92Vy6hsNifIk6pjj4SBL0bFqD7ROZGBiFqydYZIgHh?= =?us-ascii?Q?JmDiLmbLy1GpN37xYSNh3arCyd4+xVwhLWFF/E0wDIq48cqWTZGKi3vtdL9y?= =?us-ascii?Q?ZUl1/EIhy4PaliXCSS5y7JapFTenvbCkwz9IMkwgdjcJ8ycckBz6AjvNb1+T?= =?us-ascii?Q?U2d9tQtp92VOvBb/+QrhWxmQoG3fLYfElRHE1GdzMZvDvCcRoeSx/yiXmFyj?= =?us-ascii?Q?lRzxt5ejTL/iF5jm0RJgv92a72rMaAukDOh7HPQwdn/BoYHDQIdfNGxmk5rL?= =?us-ascii?Q?7UyCtYRZPJCiJHabDMsHbEdTTIAyfs9bmwRYuqNJap1u7KFBuEwLKQsu/FiN?= =?us-ascii?Q?GygkWUM92uRg+2pO8lGDUnkBjEw0+6PRY4ktpfWtLjNNGFo9Xs0qyplM1ubo?= =?us-ascii?Q?XJiYJ8RIbiPxyaWCNDJCLOyHjW65TsIB362h4jK1otcEsAPJ4fHKDZYV+QFv?= =?us-ascii?Q?cHwBr2RR+dF0+vXHqX6d09J0nX8R6hQtMY7pVfqU8T8N7QBwJEETyXx8/pZK?= =?us-ascii?Q?hNOIIJ5XaF2ABE4dVgMlz/0g7OVSjJmW0S4XVe5r/6ySUWf0FzfywHycbU3e?= =?us-ascii?Q?qz0TY80+Mf61wJY3gMWD9zFbnSu5tlu8kdqRzi+D3WYn+xTYipYHqbk7GG/z?= =?us-ascii?Q?K/9Lh/kwdHmEF8hvrjAVh2C70b2m8O4E4b8SOAnviRYYim/00wGcV5gOiao+?= =?us-ascii?Q?Y7ubcrAdj4Wxpl0zq4YfcXd95XXqDsUjr3Zq3cHQn9MJRrt+GgAddwPlaYwN?= =?us-ascii?Q?EuMhN4Fo3WmCK2VZsooy0JuTThT2bm3SmcsP3J1MeYbM7pEkpiKVqVT/RjFr?= =?us-ascii?Q?78TP4NJW/xFqfNVTfkJNrGaDl0mjf26WrZJ/IAg7xfFY3h/Tp/QeanpjLJnc?= =?us-ascii?Q?TFZB+cO11LpQZMl+Q1rsqsJtvrVheuLyst5nPUbN9XwLiTlV9YapeZQR34H4?= =?us-ascii?Q?YdX6ZtUN0rG0Plja8nbo79P+ePK81kqK8PHn57s7eHSlA9LwUlGAiEUIBNdO?= =?us-ascii?Q?RV5BOdH/co5i6oQcp8p7KNd7xTZ8iosXB9YKECp31bq1XvPGhZT1eqn1/swy?= =?us-ascii?Q?m/Bi89dobmDiSARa2z4hMwf879Qtyq4u6Kx4DfDzaBboIIo1VYkBYUBvLkWO?= =?us-ascii?Q?YzN4XK4la8m9hHHAjJuRaq1R1V1DxdH9tNillpv4bIcOzAsm3BeclE88FAM1?= =?us-ascii?Q?a72Cxdj8KoarNm17xNq5i8bbFUtWdOF2EbwpzZHq3ro1XT7iwHYsEfzRx/vj?= =?us-ascii?Q?p5qgxMWrfmtKufTE/GRLPbgG?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-7dc52.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 7af4f1cc-d6f6-4d76-cd1a-08da5858bd82 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jun 2022 16:18:58.6022 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: FRBP284MB0636 X-Rspamd-Queue-Id: 4LWtG31B1hz4hS2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b="d/Po/Tk6"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of tezeka@hotmail.com designates 40.92.96.14 as permitted sender) smtp.mailfrom=tezeka@hotmail.com X-Spamd-Result: default: False [-2.27 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.26)[-0.265]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_SHORT(0.99)[0.994]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[40.92.96.14:from]; MLMMJ_DEST(0.00)[freebsd-current]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N > Hi, > >Can you dump "kldstat" at the different times? >I guess it may be just be that the wrong module is loaded first, so it gra= bs the device, because there are no other drivers loaded, even though ums i= s a generic driver. >Try loading all relevant drivers in /boot/loader.conf . Then the attach or= der shouldn't matter. >--HPS Hi Michael=20 Yes , hw.usb.usbhid.enable=3D"1" is in loader.conf , not sysctl=20 Hi Warner When ums.ko is up, the second attach is always taken by "ums" first no matt= er what. First time you boot tho, it takes the correct one (hms) Hi Hans Looks like this below is the only order I could make it work even tho uhid= and usbhid get loaded regardless what I put on loader.conf usbhid_load=3D"NO" <-- still loaded anyway uhid_load=3D"NO" <-- still loaded anyway ums_load=3D"NO" <- this one is not loaded ic_load=3D"YES" iichid_load=3D"YES" hidbus_load=3D"YES" hsctrl_load=3D"YES" hidmap_load=3D"YES" hcons_load=3D"YES" hkbd_load=3D"YES" hms_load=3D"YES" hmt_load=3D"YES" hconf_load=3D"YES" hw.usb.usbhid.enable=3D"1" with the order below , after 5 reboots and lots of kvm switches , it always= ended up on the right iichid device. Seems to be working now but like I said, its random, let see after some more reboots if this rule i= s still valid thanks Ivan