Bug 126740 - [ulpt] doesn't work on 7.0-RELEASE, 10 second stall before failure
Summary: [ulpt] doesn't work on 7.0-RELEASE, 10 second stall before failure
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 7.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-22 16:30 UTC by Aled Morris
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aled Morris 2008-08-22 16:30:03 UTC
Trying to print to a Dymo label printer 400 connected via USB to my Dell 6000 laptop running 7.0-RELEASE.

This used to work on this hardware under an older release of FreeBSD 5.  The printer works on the same hardware if I boot Windows XP.

The symptom is that writing to the USB port times out and returns an error EIO.

I am trying to use CUPS however the problem also appears if you just do:

# echo hello >/dev/ulpt0
su: echo: write error: Input/output error

There is a delay of exactly 10 seconds before the error message is printed.

Here is the output of dmesg with USB_DEBUG set to 999:

ulptopen: flags=0x0
ulpt_reset
usbd_alloc_xfer() = 0xc58ea600
usbd_transfer: xfer=0xc58ea600, flags=2, pipe=0xc5414800, running=0
usbd_dump_queue: pipe=0xc5414800
usb_insert_transfer: pipe=0xc5414800 running=0 timeout=5000
usb_event_thread: woke up
usb_discover
usb_add_task: task=0xc58ea790
usb_task_thread: woke up task=0xc58ea790
usb_schedsoftintr: polling=0
usb_transfer_complete: pipe=0xc5414800 xfer=0xc58ea600 status=15 actlen=0
usb_transfer_complete: repeat=0 new head=0
usbd_start_next: pipe=0xc5414800, xfer=0
usbd_free_xfer: 0xc58ea600
usbd_alloc_xfer() = 0xc58ea600
usbd_transfer: xfer=0xc58ea600, flags=2, pipe=0xc5414800, running=0
usbd_dump_queue: pipe=0xc5414800
usb_insert_transfer: pipe=0xc5414800 running=0 timeout=5000
usb_add_task: task=0xc58ea790
usb_task_thread: woke up task=0xc58ea790
usb_schedsoftintr: polling=0
usb_transfer_complete: pipe=0xc5414800 xfer=0xc58ea600 status=15 actlen=0
usb_transfer_complete: repeat=0 new head=0
usbd_start_next: pipe=0xc5414800, xfer=0
usbd_free_xfer: 0xc58ea600
usbd_open_pipe: iface=0xc655cd60 address=0x2 flags=0x0
usbd_setup_pipe: dev=0xc6796780 iface=0xc655cd60 ep=0xc655c8cc pipe=0xe7b4f9a8
usbd_alloc_xfer() = 0xc58ea600
ulpt_open: open input pipe
usbd_open_pipe: iface=0xc655cd60 address=0x82 flags=0x0
usbd_setup_pipe: dev=0xc6796780 iface=0xc655cd60 ep=0xc655c8c0 pipe=0xe7b4f9a8
usbd_alloc_xfer() = 0xc527d200
ulpt_open: start read callout
ulptopen: done, error=0
ulptwrite
usbd_alloc_xfer() = 0xc58ea400
usbd_transfer: xfer=0xc58ea400, flags=2, pipe=0xc5414800, running=0
usbd_dump_queue: pipe=0xc5414800
usb_insert_transfer: pipe=0xc5414800 running=0 timeout=5000
usb_schedsoftintr: polling=0
usb_transfer_complete: pipe=0xc5414800 xfer=0xc58ea400 status=0 actlen=1
usb_transfer_complete: repeat=0 new head=0
usbd_start_next: pipe=0xc5414800, xfer=0
usbd_free_xfer: 0xc58ea400
ulpt_status: status=0x18 err=0
ulptwrite: transfer 6 bytes
usbd_bulk_transfer: start transfer 6 bytes
usbd_transfer: xfer=0xc58ea600, flags=1, pipe=0xc6796400, running=0
usbd_dump_queue: pipe=0xc6796400
usb_insert_transfer: pipe=0xc6796400 running=0 timeout=0
usb_schedsoftintr: polling=0
usb_transfer_complete: pipe=0xc6796400 xfer=0xc58ea600 status=17 actlen=6
usb_transfer_complete: repeat=0 new head=0
usbd_start_next: pipe=0xc6796400, xfer=0
usbd_bulk_transfer: transferred 6
usbd_bulk_transfer: error=17
usbd_clear_endpoint_stall
usbd_alloc_xfer() = 0xc58ea400
usbd_transfer: xfer=0xc58ea400, flags=2, pipe=0xc5414800, running=0
usbd_dump_queue: pipe=0xc5414800
usb_insert_transfer: pipe=0xc5414800 running=0 timeout=5000
usb_schedsoftintr: polling=0
usb_schedsoftintr: polling=0
usb_transfer_complete: pipe=0xc5414800 xfer=0xc58ea400 status=0 actlen=0
usb_transfer_complete: repeat=0 new head=0
usbd_start_next: pipe=0xc5414800, xfer=0
usbd_free_xfer: 0xc58ea400
ulptwrite: error=17
usbd_ar_pipe: pipe=0xc6796400
usbd_dump_queue: pipe=0xc6796400
usbd_free_xfer: 0xc58ea600
usbd_ar_pipe: pipe=0xc61d1800
usbd_dump_queue: pipe=0xc61d1800
usbd_free_xfer: 0xc527d200
ulptclose: closed

How-To-Repeat: echo hello >/dev/ulpt0
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:37 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped