rmmod parport_pc does something to pnp

Bug #103098 reported by Dave Gilbert
4
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
linux-source-2.6.22 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

If I look in the resources directory of the pnp device that corresponds to my parallel port I initially see:

dg@gallifrey:/sys/devices/pnp0/00:09$ cat resources
state = active
io 0x378-0x37f
io 0x778-0x77f
irq 7

if I remove the parport_pc module it changes to:
state = disabled
io 0x378-0x37f
io 0x778-0x77f
irq 7

if I put parport_pc back in then it stays at disabled and 'lp' doesn't seem to create a device again
when it is reinserted. In addition a program (that admittedly is touchy and I'm trying to debug) could
no longer see the parallel port at all (by direct IO) when it was in the 'disabled' state.

I don't think parport_pc should be disabling it on removal; or at least if it does it should be reversable.

Dave

Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in recently. We were wondering if this is still and issue for you? Thanks in advance.

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

I can confirm this still happens on the machine that I just upgraded to gutsy.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Hardy Heron kernel was recently uploaded for testing. We'd really appreciate it if you could try testing with this newer kernel and verify if this issue still exists. Unfortunately, the Hardy Heron Alpha1 LiveCD was released with the older 2.6.22 kernel. You'll have to manually install the newer Hardy Heron kernel in order to test. This should not be the case for Alpha2 which is set to come out around Dec 20. However, here are the instructions to install if you choose to do so, otherwise just wait for Alpha2 to come out:

1) edit the file /etc/apt/sources.list and add the following line:

deb http://archive.ubuntu.com/ubuntu hardy main restricted

2) sudo apt-get update
3) sudo apt-get install linux-image-2.6.24-1-generic
4) reboot and select the new kernel from the grub menu

After you've tested, please feel free to revert back - ie boot into the old kernel, sudo apt-get remove linux-image-2.6.24-1-generic, and remove the line from /etc/apt/sources.list . Please update this report with your results. Thanks in advance!

Changed in linux:
status: New → Incomplete
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

This report will remain open against the actively developed kernel. However, against linux-source-2.6.22 this bug does not meet the criteria for a stable release update and is being closed. You can learn more about the stable release update process at https://wiki.ubuntu.com/StableReleaseUpdates . Thanks!

Changed in linux-source-2.6.22:
status: New → Won't Fix
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

tested with 2.6.24-1, still the same:
(It's worth anyone who really knows the lp/pnp stuff actualyl telling me if this is just
normal behaviour, but I don't think so).

t@gallifrey:/sys/devices/pnp0/00:09# cat resources
state = active
io 0x378-0x37f
io 0x778-0x77f
irq 7
root@gallifrey:/sys/devices/pnp0/00:09# rmmod lp
root@gallifrey:/sys/devices/pnp0/00:09# rmmod parport_pc
root@gallifrey:/sys/devices/pnp0/00:09# rmmod parport
ERROR: Module parport is in use by ppdev
root@gallifrey:/sys/devices/pnp0/00:09# rmmod ppdev
root@gallifrey:/sys/devices/pnp0/00:09# rmmod parport
root@gallifrey:/sys/devices/pnp0/00:09# cat resources
state = disabled
io 0x378-0x37f
io 0x778-0x77f
irq 7
root@gallifrey:/sys/devices/pnp0/00:09# pwd
/sys/devices/pnp0/00:09
root@gallifrey:/sys/devices/pnp0/00:09# cd ..
root@gallifrey:/sys/devices/pnp0# cd 00\:09
root@gallifrey:/sys/devices/pnp0/00:09# cat resources
state = disabled
io 0x378-0x37f
io 0x778-0x77f
irq 7
root@gallifrey:/sys/devices/pnp0/00:09# modprobe parport
root@gallifrey:/sys/devices/pnp0/00:09# modprobe ppdev
root@gallifrey:/sys/devices/pnp0/00:09# modprobe parport
root@gallifrey:/sys/devices/pnp0/00:09# modprobe parport_pc
root@gallifrey:/sys/devices/pnp0/00:09# modprobe lp
root@gallifrey:/sys/devices/pnp0/00:09# cat resources
state = disabled
io 0x378-0x37f
io 0x778-0x77f
irq 7

Dave

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Dave,

The following document might help:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/pnp.txt;h=481faf515d5360e608b6f4541ef03f759612bc4f;hb=HEAD

Care to try activating your device as instructed in that doc? Thanks.

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Doesn't seem to be any happier; I've tried both the 'auto' and the 'dynamic'
by doing

echo "auto" > resources in the /sys/devices/pnp0/00:09
and

echo "1 dynamic" > resources

and removing and readding parort_pc and if anything it is worth; I seem to have got it to a point where
resources now just says

state = disabled

and no address info.

Is this just a buggy BIOS?

Dave

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Is your BIOS up to date? Also, per the kernel team's bug policy, can you please attach the following information:

* uname -a > uname-a.log
* cat /proc/version_signature > version.log
* dmesg > dmesg.log
* sudo lspci -vvnn > lspci-vvnn.log

Please be sure to attach each file as a separate attachment. It will also probably be more useful to capture the entire dmesg output after you load and unload the parport_pc module. Maybe some useful messages will get logged. For more information regarding the kernel team bug policy, please refer to https://wiki.ubuntu.com/KernelTeamBugPolicies . Thanks again and we appreciate your help and feedback.

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Hi,
  OK - a new BIOS has fixed this. For the record 1.05 seems to work, 1.02 which I had previously doesn't; motherboard is
Tyan S2460.

When I say it has fixed it I should clarify:
  1) I can unload and reload the parport/parport_pc/lp modules and it finds the parallel port again
  2) However I can't actually find the parallel port under the /sys/pnp directory any more - so
what it actually does to PNP I can't tell

There is a note in the release notes for the previous version of the BIOS that says:
'Add IO ports Dynamic Enable/Disable support for ACPI.' which may be relevant.

So please close this bug.

For any other S2460 users who find this the BIOS upgrades are here:
http://www.tyan.com/archive/support/html/b_s2460.html

and the 'normal' FreeDOS boot floppy on here:
http://www.fdos.org/bootdisks/

worked a treat for running the BIOS upgrade (although Tyan says Win95/98 boot floppies).

Changed in linux:
status: Incomplete → Invalid
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.