Skip to contentSkip to conversation

ppdev - libieee1284.so conflicts with 2.6.21

DISCUSSION Juan Antonio Martinez 5 participants 6 messages Jul 2, 2007 – Jul 3, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I've reported this error to Fedora Bugzilla:

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=246406

In sort: to use libieee1284 I need to disable ppdev usage with kernel 2.6.21. Kernel 2.6.20 works fine

[root@drake char]# uname -a
Linux drake.micasa.es 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 15:37:31 EDT 2007 i686 athlon i386 GNU/Linux

By doing "echo disallow method ppdev > /etc/ieee1284.conf" everything works fine on both kernels

Seems affect several distributions, not Fedora specific:
http://bugs.archlinux.org/task/7438
http://sourceforge.net/tracker/index.php?func=detail&aid=1739643&group_id=29314&atid=395778
http://www.digipedia.pl/man/libieee1284.3.html

Not sure if a kernel bug or a library one, so my apologizes if this is not the propper list

Juan Antonio

#1 lore raw
Quoted 14 lines · On Mon, 02 Jul 2007 11:22:09 +0200 Juan Antonio Martinez <[email protected]>…

I've reported this error to Fedora Bugzilla:

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=246406

In sort: to use libieee1284 I need to disable ppdev usage with kernel 2.6.21. Kernel 2.6.20 works fine

[root@drake char]# uname -a
Linux drake.micasa.es 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 15:37:31 EDT 2007 i686 athlon i386 GNU/Linux

By doing "echo disallow method ppdev > /etc/ieee1284.conf" everything works fine on both kernels

Quoted 8 lines

Seems affect several distributions, not Fedora specific:
http://bugs.archlinux.org/task/7438
http://sourceforge.net/tracker/index.php?func=detail&aid=1739643&group_id=29314&atid=395778
http://www.digipedia.pl/man/libieee1284.3.html

Not sure if a kernel bug or a library one, so my apologizes if this is not the propper list

Not much has changed in ppdev.c. Possibly this:

commit da6752964290567a6b4ea180d1becda75e810e87

Author: David Brownell <[email protected]>
Date:   Tue May 8 00:27:42 2007 -0700

layered parport code uses parport->dev

Update some of the layered parport_driver code to use parport->dev:

- i2c-parport (parent of i2c_adapter)
- spi_butterfly (parent of spi_master, allowing cruft removal)
- lp (creating class_device)
- ppdev (parent of parportN device)
- tipar (creating class_device)

There are still drivers that should be updated, like some of the input drivers; but they won't be any worse off than they are today.

broke something.

Can you test a kernel with this change applied?

drivers/char/ppdev.c renamed from drivers/char/ppdev.c~a +1 -1
@@ -751,7 +751,7 @@ static const struct file_operations pp_f
 
 static void pp_attach(struct parport *port)
 {
-	device_create(ppdev_class, port->dev, MKDEV(PP_MAJOR, port->number),
+	device_create(ppdev_class, NULL, MKDEV(PP_MAJOR, port->number),
 			"parport%d", port->number);
 }
 

_

#2 lore raw
Quoted 60 lines · On Mon, 2 Jul 2007 15:47:53 -0700 Andrew Morton wrote:
Quoted 14 lines · On Mon, 02 Jul 2007 11:22:09 +0200 Juan Antonio Martinez <[email protected]>…

I've reported this error to Fedora Bugzilla:

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=246406

In sort: to use libieee1284 I need to disable ppdev usage with kernel 2.6.21. Kernel 2.6.20 works fine

[root@drake char]# uname -a
Linux drake.micasa.es 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 15:37:31 EDT 2007 i686 athlon i386 GNU/Linux

By doing "echo disallow method ppdev > /etc/ieee1284.conf" everything works fine on both kernels

Quoted 8 lines

Seems affect several distributions, not Fedora specific:
http://bugs.archlinux.org/task/7438
http://sourceforge.net/tracker/index.php?func=detail&aid=1739643&group_id=29314&atid=395778
http://www.digipedia.pl/man/libieee1284.3.html

Not sure if a kernel bug or a library one, so my apologizes if this is not the propper list

Not much has changed in ppdev.c. Possibly this:

commit da6752964290567a6b4ea180d1becda75e810e87

Author: David Brownell <[email protected]>
Date:   Tue May 8 00:27:42 2007 -0700

layered parport code uses parport->dev

Update some of the layered parport_driver code to use parport->dev:

- i2c-parport (parent of i2c_adapter)
- spi_butterfly (parent of spi_master, allowing cruft removal)
- lp (creating class_device)
- ppdev (parent of parportN device)
- tipar (creating class_device)

There are still drivers that should be updated, like some of the input drivers; but they won't be any worse off than they are today.

broke something.

Can you test a kernel with this change applied?

drivers/char/ppdev.c renamed from drivers/char/ppdev.c~a +1 -1
@@ -751,7 +751,7 @@ static const struct file_operations pp_f
 
 static void pp_attach(struct parport *port)
 {
-	device_create(ppdev_class, port->dev, MKDEV(PP_MAJOR, port->number),
+	device_create(ppdev_class, NULL, MKDEV(PP_MAJOR, port->number),
 			"parport%d", port->number);
 }
 
Quoted 1 line

_

and if that doesn't help, please try this:

boot with kernel boot options:
noisapnp pnpacpi=off

since we have also seen a couple of cases that look like ACPI + PNP are mucking up parallel port printers, so maybe they also muck up other ppdevs.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#3 lore raw
Quoted 8 lines · Randy Dunlap

and if that doesn't help, please try this:

boot with kernel boot options:
noisapnp pnpacpi=off

since we have also seen a couple of cases that look like ACPI + PNP are mucking up parallel port printers, so maybe they also muck up other ppdevs.

Juan Antonio, please send the output of "dmesg -s 1000000" after booting and then trying to access your scanner (without the /etc/ieee1284.conf) for both 2.6.20 and 2.6.21.

Quoted 1 line

~Randy

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#4 lore raw
In reply to Andrew Morton

drivers/char/ppdev.c

Quoted 26 lines · Andrew Morton
Quoted 11 lines · On Mon, 02 Jul 2007 11:22:09 +0200 Juan Antonio Martinez <[email protected]>…

I've reported this error to Fedora Bugzilla:

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=246406

In sort: to use libieee1284 I need to disable ppdev usage with kernel 2.6.21. Kernel 2.6.20 works fine

[root@drake char]# uname -a
Linux drake.micasa.es 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 15:37:31 EDT 2007 i686 athlon i386 GNU/Linux

Quoted 8 lines

By doing "echo disallow method ppdev > /etc/ieee1284.conf" everything works fine on both kernels

Seems affect several distributions, not Fedora specific:
http://bugs.archlinux.org/task/7438
http://sourceforge.net/tracker/index.php?func=detail&aid=1739643&group_id=29314&atid=395778
http://www.digipedia.pl/man/libieee1284.3.html

Can you test a kernel with this change applied?

drivers/char/ppdev.c renamed from drivers/char/ppdev.c~a +0 -0

He's reporting the bug against kernel 2.6.21, which does not have the patch you are reverting applied.

ppdev hasn't changed in the six months prior to 2.6.21...

#5 lore raw
Quoted 1 line · Chuck Ebbert

On 07/02/2007 06:47 PM, Andrew Morton wrote:

[...]

Quoted 7 lines

drivers/char/ppdev.c

Quoted 2 lines
drivers/char/ppdev.c renamed from drivers/char/ppdev.c~a +0 -0

He's reporting the bug against kernel 2.6.21, which does not have the patch you are reverting applied.

ppdev hasn't changed in the six months prior to 2.6.21...

Your'e right: seems that fedora kernel is based in 2.6.21-git5 and latest changes in ppdev and parport layer starts at 2.6.21-git10. So need to look at other changes...

What does mean this report received in my working kernel?

"ppdev0: negotiated back to compatibility mode because user-space forgot"

Juan Antonio