linux-image-2.6.15-19-powerpc64-smp unable to print to USB printer Lexmark E270

Bug #36947 reported by Jeff Bailey
10
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

From linux-image-2.6.15-19-powerpc64-smp, I am unable to print to a USB printer. I tested a ppc32 machine and it prints to the same USB printer fine.

dmesg reports:
[40583.333551] usb 5-4.2: new full speed USB device using ehci_hcd and address 8
[40583.405561] usb 5-4.2: device descriptor read/64, error -32
[40583.581545] usb 5-4.2: device descriptor read/64, error -32
[40583.757527] usb 5-4.2: new full speed USB device using ehci_hcd and address 9
[40584.006895] drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 9 if 0 alt 0 proto 2 vid 0x043D pid 0x0059
[40584.007238] usbcore: registered new driver usblp
[40584.007243] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
[40584.098675] ioctl32(hald-probe-prin:16522): Unknown cmd fd(4) cmd(44005001){04} arg(fff08538) on /dev/usblp0

When I attempt to print to the printer, the light will blink, and then stop. No page is issued.

The printer is a Lexmark E270.

Revision history for this message
Ben Collins (ben-collins) wrote :

The issue seems to be that the ioctl's used for the printer device are not translated between 32-bit userspace and 64-bit kernel.

Not sure if this will get fixed.

Revision history for this message
Jeff Bailey (jbailey) wrote :

I may try to hack on this over the long weekend. Notes from BenC (they may as well be public, posted with consent)

<BenC> ok, in drivers/usb/class/usblp.c
<BenC> there's a usblp_ioctl()
<BenC> it's used in the file_operations struct
<BenC> in drivers/acpi/dev_acpi.c there's an example of an additional compat_ioctl for the file_ops struct
<BenC> any ioctl's that pass data that is the same for 32-bit and 64-bit (typedef'd values like u32, int's, structures that contain compatible members, etc) are just compatible and can be passed directly
<BenC> anything that has incompatible values (long's, pointers, etc) need to be translated

Revision history for this message
Antoni Aloy (antoni-aloy-gmail) wrote :

I have the same issue with Epson Photo RX 640.

[10947.431721] ioctl32(usb:16433): Unknown cmd fd(4) cmd(44005001){04} arg(ffb5d246) on /dev/usblp0
[10947.812631] ioctl32(hpiod:16440): Unknown cmd fd(5) cmd(44005001){04} arg(100294b8) on /dev/usblp0

Also on PPC-64 and Drapper

This means that we can't use any usb printer attached to our system, so is a blocking bug in my oppinion.

Revision history for this message
Gareth Fitzworthington (mapping-gp-deactivatedaccount) wrote :

This bug has had no activity for a considerable period. This is a check to see if there is still interest in investigating this bug report.

Changed in linux-source-2.6.15:
status: New → Incomplete
Revision history for this message
Antoni Aloy (antoni-aloy-gmail) wrote : Re: [Bug 36947] Re: linux-image-2.6.15-19-powerpc64-smp unable to print to USB printer Lexmark E270

2008/3/14, Gareth Fitzworthington <email address hidden>:
> This bug has had no activity for a considerable period. This is a check
> to see if there is still interest in investigating this bug report.
>
> ** Changed in: linux-source-2.6.15 (Ubuntu)
> Status: New => Incomplete
>
>
> --
> linux-image-2.6.15-19-powerpc64-smp unable to print to USB printer Lexmark E270
>
> https://bugs.launchpad.net/bugs/36947
> You received this bug notification because you are a direct subscriber
> of the bug.
>
I still have problems with printing on PPC but are more driver
oriented rather than usb oriented. Upgrading ubuntu to 7.10 solved the
problem for me.

--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net

Revision history for this message
Gareth Fitzworthington (mapping-gp-deactivatedaccount) wrote :

Ok. It appears the reported bug has been fixed in later releases.
Will hold off closing for a while to allow others to comment.

Revision history for this message
Gareth Fitzworthington (mapping-gp-deactivatedaccount) wrote :

Closing : fixed in later releases.

Changed in linux-source-2.6.15:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.