From owner-freebsd-usb@freebsd.org Wed Feb 3 21:17: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 2C74252C737 for ; Wed, 3 Feb 2021 21:17:28 +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 4DWDzD0bZ1z3qRm for ; Wed, 3 Feb 2021 21:17:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 146CA52C736; Wed, 3 Feb 2021 21:17: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 1431152C3F2 for ; Wed, 3 Feb 2021 21:17: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 4DWDzD01Ctz3qTy for ; Wed, 3 Feb 2021 21:17:28 +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 E777527A6F for ; Wed, 3 Feb 2021 21:17: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 113LHRMV036171 for ; Wed, 3 Feb 2021 21:17:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 113LHR9E036170 for usb@FreeBSD.org; Wed, 3 Feb 2021 21:17:27 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 253232] ulpt possible regression in 12.2 Date: Wed, 03 Feb 2021 21:17:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: brock@cottonwoodcomputer.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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Wed, 03 Feb 2021 21:17:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253232 Bug ID: 253232 Summary: ulpt possible regression in 12.2 Product: Base System Version: 12.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: brock@cottonwoodcomputer.com We have a point of sale system that uses Epson receipt printers attached vi= a a USB-Parallel adapter. After upgrading these systems to 12.2-RELEASE the printing is intermittent. We have duplicated the issue on a fresh 12.2-RELEASE install upgraded to p3= via freebsd-update. For example, when running an 'echo "hello" > /dev/ulpt0' multiple times on 12.2 only every other line is printed. No errors are generated. I have a separate boot environment on the same hardware with 12= .1, which works perfectly. We have tried a couple different USB-Parallel adapters, including: Belk USB Printing Support IEEE-1284 Controller and Prolific Technology Inc. IEEE-1284 Controller, class 0/0, rev 1.00/2.02, ad= dr 1 both of these behave the same. I have tried enabling ulpt debugging with sysctl hw.usb.ulpt.debug=3D15 after each echo command, we get: Feb 3 13:57:31 fbtest kernel: ulpt_reset:=20 Feb 3 13:57:31 fbtest kernel: ulpt_write_callback: state=3D0x0 actlen=3D6 Feb 3 13:57:31 fbtest kernel: ulpt_write_callback: state=3D0x1 actlen=3D6 the ones that work look the same as the ones that don't work. I have also tried using unlpt0 and it behaves the same way. Using echo is a simplified example, if we point lpd to the same device it is even more intermittent. In that case, it seems like the first job or two w= ill print, and after that, most jobs fail silently. --=20 You are receiving this mail because: You are the assignee for the bug.=