From nobody Sun Jan 28 09:04:48 2024 X-Original-To: dev-commits-src-all@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 4TN59D2yBRz58BDF; Sun, 28 Jan 2024 09:04:48 +0000 (UTC) (envelope-from git@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 4TN59D2NKpz4Vx7; Sun, 28 Jan 2024 09:04:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706432688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZceQzl/+TLIVuctEhMM8wZ7VCuulPKgMQScBB8JiHDI=; b=ugkAz/eanuA4QDhaFQuEO17AzH1kvlR+l5MTlXD2GBlH7VKEmoK8rv58CNOd80dahRheVo 6p+iuxPMj+Ow5nKVbTqFkAq7Y+Ws3sdKZDSOZqwZ2ZXMXhXqlVHMbp48gTkAGHu9skAd8b RTTWbhgRfjV64szCF14zVdDEwXbMu4DrxUZxFV/2gFUFBGAVTzoRDtSA7oedxJfo4YQ2cF l2KNlf3oAeQyc0tT2uxa2nVUbis+QPuCM5C0AuwjWPKdADrvvgkg0e2Iz3MdlfWoTKIqNx UZssITRh8NS0qqb2o5RFr95RSrOaEaNJHvteAOLaUo/l14w1Yw28SRUjlOxnhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706432688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZceQzl/+TLIVuctEhMM8wZ7VCuulPKgMQScBB8JiHDI=; b=j8YtaoudhgqHiU9lSZvfGojbrFLo/W79VdjHedDCeACZwRovUMQFdZLSMyuJIEwsm8cy0q 7W4nnFloQHzx0ejwVmJkXN4+jQp4fpOFn65WYkdhpBpGP0J6fAqb81WpxYl4n5fSlIiUhH SKpjtMlhYP1yz6GHtslyBpwVOi5KsLHxPa7qnwzfCvVe+wcoBtklNvuZZuHKObi2XoJWRH vd62BmR0plMzYe9q8uiKt+3ILy6Cd41lx2P23slkDhHVE4bZThwfCpJwQCzgCTzadOW9Fu +fkM8YMYZ9sRad14S++85TKY2xSK4gt+8DX03f91JkOpQBoV4J4eb05pUhwHhA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706432688; a=rsa-sha256; cv=none; b=Hzgh0/JvwQkBMv1UdlYK6gQcH9fmxiRNy5fXly00q2dDdV8B3UO09pVPgwmTe0S1Joj72i SHuPVN+aGV0sBaGmCFIcHhYnIbracJbxl/uJrVFdoffZxfIeLleTUSDpBv+ieUepTXw9+c GusrniRR/4qjHGkUSh3qE3jkC3J5HB7w4SJO/z2T4nYaGPTGsvAPgOb+PZhQEzka9AYwc5 CNezvEJ1mZ84FfuAD+2or/XYHLnQCahR+eDtzkR7nfeV6eomc3chjIRCOpCY6RYlG3++G6 CAeKGEAPpsjqy1UHo2QIRlM0RIEWY+R1R+ujSrUURwKLZTTR0zUJSrFIUaiirg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4TN59D1QzNz124s; Sun, 28 Jan 2024 09:04:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40S94me9018550; Sun, 28 Jan 2024 09:04:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40S94mUg018547; Sun, 28 Jan 2024 09:04:48 GMT (envelope-from git) Date: Sun, 28 Jan 2024 09:04:48 GMT Message-Id: <202401280904.40S94mUg018547@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Peter Grehan Subject: git: 48214dfab801 - stable/13 - Fix issue with Linux guest XHCI tablet probing. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: grehan X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 48214dfab80155c03b9b22aca9f9810774c151e9 Auto-Submitted: auto-generated The branch stable/13 has been updated by grehan: URL: https://cgit.FreeBSD.org/src/commit/?id=48214dfab80155c03b9b22aca9f9810774c151e9 commit 48214dfab80155c03b9b22aca9f9810774c151e9 Author: Peter Grehan AuthorDate: 2024-01-14 11:27:12 +0000 Commit: Peter Grehan CommitDate: 2024-01-28 09:03:25 +0000 Fix issue with Linux guest XHCI tablet probing. The USB3 spec mandates that the device-descriptor max packet size be 512 bytes, which requires a field size of 9 since it is a power-of-2. Linux kernels recently started validating this field, resulting in the table not being probed and the cursor not working in bhyve VNC. PR: 275760 (cherry picked from commit 0c243cd4a3671bf728f33378ac593c08d8367bc2) --- usr.sbin/bhyve/usb_mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bhyve/usb_mouse.c b/usr.sbin/bhyve/usb_mouse.c index 80f79980a98e..a37941c0cd9d 100644 --- a/usr.sbin/bhyve/usb_mouse.c +++ b/usr.sbin/bhyve/usb_mouse.c @@ -154,7 +154,7 @@ static struct usb_device_descriptor umouse_dev_desc = { .bLength = sizeof(umouse_dev_desc), .bDescriptorType = UDESC_DEVICE, MSETW(.bcdUSB, UD_USB_3_0), - .bMaxPacketSize = 8, /* max packet size */ + .bMaxPacketSize = 9, /* max pkt size, 2^9 = 512 */ MSETW(.idVendor, 0xFB5D), /* vendor */ MSETW(.idProduct, 0x0001), /* product */ MSETW(.bcdDevice, 0), /* device version */