Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Feb 2021 21:17:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        usb@FreeBSD.org
Subject:   [Bug 253232] ulpt possible regression in 12.2
Message-ID:  <bug-253232-19105@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253232-19105>