Skip to contentSkip to conversation

[Fwd: Re: long-term regression - Parallel Port broken?]

Fwd: Re: long-term regression - Parallel Port broken? Thomas Renninger 3 participants 17 messages Jun 28, 2007 – Jun 13, 2008

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

Hi David,

Could this problem have to do with this one:
https://bugzilla.novell.com/show_bug.cgi?id=180390
Tell me if you have problems accessing the bug, it should be public. Unfortunately the ongoing of the bug stopped a bit for various reasons.

The first comments pointed in the wrong direction, it's getting interesting when Vojtech joined the conversation and things pointed to acpi, possibly acpipnp.

First a collection of acpidump outputs of affected machines would be great, hopefully other reporters start helping again...

If it is the same bug, it's interesting that 2.6.18-rc3 worked for you (vanilla or gentoo?). Because SLE[DS]10 is 2.6.16 based, we could have backported the bug and that might help finding it?

Thanks,

Thomas

PS: I stripped the CC list, things seem to point to acpi...

PSS: Has there already been a bug at bugzilla.kernel.org opened where dmesg, acpidump and other info can be reviewed? If not this should be done.

Quoted 117 lines · Randy Dunlap

[adding [email protected]]

Quoted 21 lines · On Wed, 27 Jun 2007 00:38:17 -0700 (PDT) [email protected] wrote:
Quoted 12 lines · Randy Dunlap
Quoted 5 lines · On Mon, 25 Jun 2007 15:56:17 -0700 (PDT) [email protected] wrote:

due to the size the files are posted at http://linux.lang.hm/linux

let me know what else I can send to help.

David Lang

I suggest that you test 2.6.22-rcN using one or both of these boot options:

Quoted 6 lines

noisapnp
pnpacpi=off

Somewhere between 2.6.18 and 2.6.22-development, the ACPI config symbol also starting enabling (selecting) PNP. That's one of many differences....

Quoted 5 lines

with the 2.6.22-rc4 kernel that I was useing earlier, adding these two options clears up the problem. Thanks.

should I test the two individually? or just plan on useing both from now on?

Yes, please test them individually. I expect that just one of them will suffice, but I don't know which one.

Quoted 2 lines

I normally disable PnP (both ISA and PCI), should I leave it enabled with the newer kernels and this motherboard?

ACPI recently began enabling (selecting) PNP for you...

How do you normally disable PCI PNP?

What kind of hardware is this? Please show us lspci output.

Quoted 72 lines
Quoted 1 line

I would also disable CONFIG_USB_USS720, at least for testing.

for ease of testing (I got time to reboot the box around midnight) I used the same config as before, so this is still on.

David Lang

Quoted 65 lines
Quoted 65 lines · Randy Dunlap
Quoted 63 lines

Date: Mon, 25 Jun 2007 15:40:28 -0700
From: Randy Dunlap <[email protected]>
To: [email protected]
Cc: Andrew Morton <[email protected]>, [email protected],
[email protected]
Subject: Re: long-term regression

Quoted 41 lines · [email protected] wrote:
Quoted 39 lines · Randy Dunlap

Date: Thu, 21 Jun 2007 08:36:59 -0700
From: Randy Dunlap <[email protected]>
To: Andrew Morton <[email protected]>
Cc: [email protected], [email protected],
[email protected]
Subject: Re: long-term regression

Quoted 19 lines · On Thu, 21 Jun 2007 05:28:07 -0700 Andrew Morton wrote:
Quoted 19 lines · On Sun, 17 Jun 2007 10:57:55 -0700 (PDT) [email protected] wrote:

I haven't had time to bisect this, but I'm having a problem on a AMD64
gentoo system where the printer doesn't work with recent kernels.

2.6.18-rc3 worked
2.6.21.1 doesn't
2.6.22-rc4 doesn't

unfortunantly the system is gooted on 2.6.18 at the moment and I'm out of
town so my ability to test is limited I can provide the 2.6.22-rc4 (attached) and 2.6.18-rc3 configs.

dmesg appears to show the port being detected, but writes to the port
under newer kernels appear to complete, but no data gets to the printer.

Quoted 4 lines
Quoted 1 line

any suggestions other then doing the large bisect?

That would be good, thanks. Please be sure to cc linux-usb-devel on the results.

OK, I'm curious about how someone deduced that this is a problem with a USB printer vs. parallel port printer since the config file has:

CONFIG_PRINTER=y
CONFIG_USB_PRINTER=y

Quoted 6 lines
Quoted 1 line

The kernel boot log should probably be posted also.

here is the dmesg from 2.6.22-rc4 and kern.log showing 2.6.22.-rc4 and 2.6.180rc3

the printer not working is the parallel port.

This email didn't show up on lkml or linux-usb-devel due to size limits (it was 900+ KB).

David, please send your working 2.6.18 config file.

Can you post the kernel log files on the web somewhere?

---

#1 lore raw
Quoted 4 lines

should I test the two individually? or just plan on useing both from now on?
I normally disable PnP (both ISA and PCI), should I leave it enabled with the newer kernels and this motherboard?

Ultimately, you should have CONFIG_ACPI=y and CONFIG_PNPACPI=y, and you should not have to boot with "noisapnp" or "pnpacpi=off". My guess is that you only need "pnpacpi=off" to work around the current problem.

At http://linux.lang.hm/linux, I see dmesg logs (with tons of kobject debug that's useless to me) from 2.6.22-rc4. It would be useful to have the log from 2.6.22-rc4 with "pnpacpi=off" (which I expect to work), so we could compare it with the "2.6.22-rc4.dmesg" log, which I assume a non-working one.

Linux PNPACPI currently doesn't manage resources quite the same way Windows does, and that might account for this problem. You might try this:

- boot without "pnpacpi=off" (leave PNPACPI enabled)
- before loading the parport_pc driver, do this:

    # echo "disable" > /sys/devices/pnp0/00:0a/resources
    # echo "enable" > /sys/devices/pnp0/00:0a/resources
  - load the parport_pc driver

That should cause PNPACPI to run _PRS and _SRS. Many BIOSes report that devices are enabled, but don't actually enable them until _SRS is called.

Bjorn

#2 lore raw
Quoted 15 lines · Bjorn Helgaas
Quoted 4 lines

should I test the two individually? or just plan on useing both from now on?
I normally disable PnP (both ISA and PCI), should I leave it enabled with the newer kernels and this motherboard?

Ultimately, you should have CONFIG_ACPI=y and CONFIG_PNPACPI=y, and you should not have to boot with "noisapnp" or "pnpacpi=off". My guess is that you only need "pnpacpi=off" to work around the current problem.

At http://linux.lang.hm/linux, I see dmesg logs (with tons of kobject debug that's useless to me) from 2.6.22-rc4. It would be useful to have the log from 2.6.22-rc4 with "pnpacpi=off" (which I expect to work), so we could compare it with the "2.6.22-rc4.dmesg" log, which I assume a non-working one.

Quoted 8 lines

Linux PNPACPI currently doesn't manage resources quite the same way Windows does, and that might account for this problem. You might try this:

- boot without "pnpacpi=off" (leave PNPACPI enabled)
- before loading the parport_pc driver, do this:

    # echo "disable" > /sys/devices/pnp0/00:0a/resources
    # echo "enable" > /sys/devices/pnp0/00:0a/resources

Sorry, I meant:

     # echo "disable" > /sys/devices/pnp0/00:0a/resources
     # echo "clear"   > /sys/devices/pnp0/00:0a/resources
     # echo "enable"  > /sys/devices/pnp0/00:0a/resources
#3 lore raw
Quoted 25 lines · Bjorn Helgaas
Quoted 15 lines · Bjorn Helgaas
Quoted 4 lines

should I test the two individually? or just plan on useing both from now on?
I normally disable PnP (both ISA and PCI), should I leave it enabled with the newer kernels and this motherboard?

Ultimately, you should have CONFIG_ACPI=y and CONFIG_PNPACPI=y, and you should not have to boot with "noisapnp" or "pnpacpi=off". My guess is that you only need "pnpacpi=off" to work around the current problem.

At http://linux.lang.hm/linux, I see dmesg logs (with tons of kobject debug that's useless to me) from 2.6.22-rc4. It would be useful to have the log from 2.6.22-rc4 with "pnpacpi=off" (which I expect to work), so we could compare it with the "2.6.22-rc4.dmesg" log, which I assume a non-working one.

Quoted 8 lines

Linux PNPACPI currently doesn't manage resources quite the same way Windows does, and that might account for this problem. You might try this:

- boot without "pnpacpi=off" (leave PNPACPI enabled)
- before loading the parport_pc driver, do this:

    # echo "disable" > /sys/devices/pnp0/00:0a/resources
    # echo "enable" > /sys/devices/pnp0/00:0a/resources
Quoted 5 lines

Sorry, I meant:

     # echo "disable" > /sys/devices/pnp0/00:0a/resources
     # echo "clear"   > /sys/devices/pnp0/00:0a/resources
     # echo "enable"  > /sys/devices/pnp0/00:0a/resources

Ping! David, do you still care about this issue?

#4 lore raw
In reply to Bjorn Helgaas
Quoted 8 lines · Bjorn Helgaas
Quoted 4 lines

should I test the two individually? or just plan on useing both from now on?
I normally disable PnP (both ISA and PCI), should I leave it enabled with the newer kernels and this motherboard?

Ultimately, you should have CONFIG_ACPI=y and CONFIG_PNPACPI=y, and you should not have to boot with "noisapnp" or "pnpacpi=off". My guess is that you only need "pnpacpi=off" to work around the current problem.

these two options are enabled and pnpacpi=off does solve the problem.x

Quoted 5 lines

At http://linux.lang.hm/linux, I see dmesg logs (with tons of kobject debug that's useless to me) from 2.6.22-rc4. It would be useful to have the log from 2.6.22-rc4 with "pnpacpi=off" (which I expect to work), so we could compare it with the "2.6.22-rc4.dmesg" log, which I assume a non-working one.

there's now a dmesg.pnpacpi_off which works, and you are correct that the dmesg that's there is the non working one.

Quoted 9 lines

Linux PNPACPI currently doesn't manage resources quite the same way Windows does, and that might account for this problem. You might try this:

- boot without "pnpacpi=off" (leave PNPACPI enabled)
- before loading the parport_pc driver, do this:

   # echo "disable" > /sys/devices/pnp0/00:0a/resources
   # echo "enable" > /sys/devices/pnp0/00:0a/resources
 - load the parport_pc driver

the parport driver is built-in (and the kernel doesn't include module support), is there a way to accomplish the test without switching this to a module?

David Lang

Quoted 7 lines

That should cause PNPACPI to run _PRS and _SRS. Many BIOSes report that devices are enabled, but don't actually enable them until _SRS is called.

Bjorn

#14 lore raw
In reply to Thomas Renninger
Quoted 6 lines · Thomas Renninger

Hi David,

Could this problem have to do with this one:
https://bugzilla.novell.com/show_bug.cgi?id=180390
Tell me if you have problems accessing the bug, it should be public. Unfortunately the ongoing of the bug stopped a bit for various reasons.

it's requireing a login, and I'm not particularly eager to play 20 guesses to find a userid that's not already in use.

Quoted 6 lines

The first comments pointed in the wrong direction, it's getting interesting when Vojtech joined the conversation and things pointed to acpi, possibly acpipnp.

First a collection of acpidump outputs of affected machines would be great, hopefully other reporters start helping again...

how do I generate an acpidump?

David Lang

Quoted 135 lines

If it is the same bug, it's interesting that 2.6.18-rc3 worked for you (vanilla or gentoo?). Because SLE[DS]10 is 2.6.16 based, we could have backported the bug and that might help finding it?

Thanks,

Thomas

PS: I stripped the CC list, things seem to point to acpi...

PSS: Has there already been a bug at bugzilla.kernel.org opened where dmesg, acpidump and other info can be reviewed? If not this should be done.

Quoted 117 lines · Randy Dunlap

[adding [email protected]]

Quoted 21 lines · On Wed, 27 Jun 2007 00:38:17 -0700 (PDT) [email protected] wrote:
Quoted 12 lines · Randy Dunlap
Quoted 5 lines · On Mon, 25 Jun 2007 15:56:17 -0700 (PDT) [email protected] wrote:

due to the size the files are posted at http://linux.lang.hm/linux

let me know what else I can send to help.

David Lang

I suggest that you test 2.6.22-rcN using one or both of these boot options:

Quoted 6 lines

noisapnp
pnpacpi=off

Somewhere between 2.6.18 and 2.6.22-development, the ACPI config symbol also starting enabling (selecting) PNP. That's one of many differences....

Quoted 5 lines

with the 2.6.22-rc4 kernel that I was useing earlier, adding these two options clears up the problem. Thanks.

should I test the two individually? or just plan on useing both from now on?

Yes, please test them individually. I expect that just one of them will suffice, but I don't know which one.

Quoted 2 lines

I normally disable PnP (both ISA and PCI), should I leave it enabled with the newer kernels and this motherboard?

ACPI recently began enabling (selecting) PNP for you...

How do you normally disable PCI PNP?

What kind of hardware is this? Please show us lspci output.

Quoted 72 lines
Quoted 1 line

I would also disable CONFIG_USB_USS720, at least for testing.

for ease of testing (I got time to reboot the box around midnight) I used the same config as before, so this is still on.

David Lang

Quoted 65 lines
Quoted 65 lines · Randy Dunlap
Quoted 63 lines

Date: Mon, 25 Jun 2007 15:40:28 -0700
From: Randy Dunlap <[email protected]>
To: [email protected]
Cc: Andrew Morton <[email protected]>, [email protected],
[email protected]
Subject: Re: long-term regression

Quoted 41 lines · [email protected] wrote:
Quoted 39 lines · Randy Dunlap

Date: Thu, 21 Jun 2007 08:36:59 -0700
From: Randy Dunlap <[email protected]>
To: Andrew Morton <[email protected]>
Cc: [email protected], [email protected],
[email protected]
Subject: Re: long-term regression

Quoted 19 lines · On Thu, 21 Jun 2007 05:28:07 -0700 Andrew Morton wrote:
Quoted 19 lines · On Sun, 17 Jun 2007 10:57:55 -0700 (PDT) [email protected] wrote:

I haven't had time to bisect this, but I'm having a problem on a AMD64
gentoo system where the printer doesn't work with recent kernels.

2.6.18-rc3 worked
2.6.21.1 doesn't
2.6.22-rc4 doesn't

unfortunantly the system is gooted on 2.6.18 at the moment and I'm out of
town so my ability to test is limited I can provide the 2.6.22-rc4 (attached) and 2.6.18-rc3 configs.

dmesg appears to show the port being detected, but writes to the port
under newer kernels appear to complete, but no data gets to the printer.

Quoted 4 lines
Quoted 1 line

any suggestions other then doing the large bisect?

That would be good, thanks. Please be sure to cc linux-usb-devel on the results.

OK, I'm curious about how someone deduced that this is a problem with a USB printer vs. parallel port printer since the config file has:

CONFIG_PRINTER=y
CONFIG_USB_PRINTER=y

Quoted 6 lines
Quoted 1 line

The kernel boot log should probably be posted also.

here is the dmesg from 2.6.22-rc4 and kern.log showing 2.6.22.-rc4 and 2.6.180rc3

the printer not working is the parallel port.

This email didn't show up on lkml or linux-usb-devel due to size limits (it was 900+ KB).

David, please send your working 2.6.18 config file.

Can you post the kernel log files on the web somewhere?

---

#15 lore raw
Quoted 11 lines · On Sat, 2007-07-21 at 19:04 -0700, [email protected] wrote:
Quoted 6 lines · Thomas Renninger

Hi David,

Could this problem have to do with this one:
https://bugzilla.novell.com/show_bug.cgi?id=180390
Tell me if you have problems accessing the bug, it should be public. Unfortunately the ongoing of the bug stopped a bit for various reasons.

it's requireing a login, and I'm not particularly eager to play 20 guesses to find a userid that's not already in use.

Yes, but posting on a bugzilla server needs an account...

Quoted 8 lines
Quoted 6 lines

The first comments pointed in the wrong direction, it's getting interesting when Vojtech joined the conversation and things pointed to acpi, possibly acpipnp.

First a collection of acpidump outputs of affected machines would be great, hopefully other reporters start helping again...

how do I generate an acpidump?

It's included in acpica sources:
http://developer.intel.com/technology/iapc/acpi/downloads.htm
You probably don't want to compile this..., don't know what distribution you are using, the binary should already be provided ("acpidump"), maybe you need to install a package including it...
then simply run:

Quoted 1 line

acpidump >/tmp/acpidump

and post the output file using plaintext as mime type.

Thomas

Quoted 137 lines

David Lang

Quoted 135 lines

If it is the same bug, it's interesting that 2.6.18-rc3 worked for you (vanilla or gentoo?). Because SLE[DS]10 is 2.6.16 based, we could have backported the bug and that might help finding it?

Thanks,

Thomas

PS: I stripped the CC list, things seem to point to acpi...

PSS: Has there already been a bug at bugzilla.kernel.org opened where dmesg, acpidump and other info can be reviewed? If not this should be done.

Quoted 117 lines · Randy Dunlap

[adding [email protected]]

Quoted 21 lines · On Wed, 27 Jun 2007 00:38:17 -0700 (PDT) [email protected] wrote:
Quoted 12 lines · Randy Dunlap
Quoted 5 lines · On Mon, 25 Jun 2007 15:56:17 -0700 (PDT) [email protected] wrote:

due to the size the files are posted at http://linux.lang.hm/linux

let me know what else I can send to help.

David Lang

I suggest that you test 2.6.22-rcN using one or both of these boot options:

Quoted 6 lines

noisapnp
pnpacpi=off

Somewhere between 2.6.18 and 2.6.22-development, the ACPI config symbol also starting enabling (selecting) PNP. That's one of many differences....

Quoted 5 lines

with the 2.6.22-rc4 kernel that I was useing earlier, adding these two options clears up the problem. Thanks.

should I test the two individually? or just plan on useing both from now on?

Yes, please test them individually. I expect that just one of them will suffice, but I don't know which one.

Quoted 2 lines

I normally disable PnP (both ISA and PCI), should I leave it enabled with the newer kernels and this motherboard?

ACPI recently began enabling (selecting) PNP for you...

How do you normally disable PCI PNP?

What kind of hardware is this? Please show us lspci output.

Quoted 72 lines
Quoted 1 line

I would also disable CONFIG_USB_USS720, at least for testing.

for ease of testing (I got time to reboot the box around midnight) I used the same config as before, so this is still on.

David Lang

Quoted 65 lines
Quoted 65 lines · Randy Dunlap
Quoted 63 lines

Date: Mon, 25 Jun 2007 15:40:28 -0700
From: Randy Dunlap <[email protected]>
To: [email protected]
Cc: Andrew Morton <[email protected]>, [email protected],
[email protected]
Subject: Re: long-term regression

Quoted 41 lines · [email protected] wrote:
Quoted 39 lines · Randy Dunlap

Date: Thu, 21 Jun 2007 08:36:59 -0700
From: Randy Dunlap <[email protected]>
To: Andrew Morton <[email protected]>
Cc: [email protected], [email protected],
[email protected]
Subject: Re: long-term regression

Quoted 19 lines · On Thu, 21 Jun 2007 05:28:07 -0700 Andrew Morton wrote:
Quoted 19 lines · On Sun, 17 Jun 2007 10:57:55 -0700 (PDT) [email protected] wrote:

I haven't had time to bisect this, but I'm having a problem on a AMD64
gentoo system where the printer doesn't work with recent kernels.

2.6.18-rc3 worked
2.6.21.1 doesn't
2.6.22-rc4 doesn't

unfortunantly the system is gooted on 2.6.18 at the moment and I'm out of
town so my ability to test is limited I can provide the 2.6.22-rc4 (attached) and 2.6.18-rc3 configs.

dmesg appears to show the port being detected, but writes to the port
under newer kernels appear to complete, but no data gets to the printer.

Quoted 4 lines
Quoted 1 line

any suggestions other then doing the large bisect?

That would be good, thanks. Please be sure to cc linux-usb-devel on the results.

OK, I'm curious about how someone deduced that this is a problem with a USB printer vs. parallel port printer since the config file has:

CONFIG_PRINTER=y
CONFIG_USB_PRINTER=y

Quoted 6 lines
Quoted 1 line

The kernel boot log should probably be posted also.

here is the dmesg from 2.6.22-rc4 and kern.log showing 2.6.22.-rc4 and 2.6.180rc3

the printer not working is the parallel port.

This email didn't show up on lkml or linux-usb-devel due to size limits (it was 900+ KB).

David, please send your working 2.6.18 config file.

Can you post the kernel log files on the web somewhere?

---

#16 lore raw
Quoted 5 lines · Thomas Renninger
Quoted 4 lines · On Sat, 2007-07-21 at 19:04 -0700, [email protected] wrote:
Quoted 2 lines · Thomas Renninger

Hi David,

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines

Could this problem have to do with this one:
https://bugzilla.novell.com/show_bug.cgi?id=180390
Tell me if you have problems accessing the bug, it should be public. Unfortunately the ongoing of the bug stopped a bit for various reasons.

it's requireing a login, and I'm not particularly eager to play 20 guesses to find a userid that's not already in use.

Yes, but posting on a bugzilla server needs an account...

true, but haivng to go through all that before I can even read details on the bug is annoying (and haven't you read the other rants by people about bugzilla, this is one of the reasons ;-)

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

The first comments pointed in the wrong direction, it's getting interesting when Vojtech joined the conversation and things pointed to acpi, possibly acpipnp.

First a collection of acpidump outputs of affected machines would be great, hopefully other reporters start helping again...

how do I generate an acpidump?

Quoted 8 lines

It's included in acpica sources:
http://developer.intel.com/technology/iapc/acpi/downloads.htm
You probably don't want to compile this..., don't know what distribution you are using, the binary should already be provided ("acpidump"), maybe you need to install a package including it...
then simply run:

Quoted 1 line

acpidump >/tmp/acpidump

and post the output file using plaintext as mime type.

the file is at lang.hm/linux/acpidump.2.6.22-rc4.nopnpacpi_y

David Lang

Quoted 141 lines

Thomas

Quoted 137 lines

David Lang

Quoted 135 lines

If it is the same bug, it's interesting that 2.6.18-rc3 worked for you (vanilla or gentoo?). Because SLE[DS]10 is 2.6.16 based, we could have backported the bug and that might help finding it?

Thanks,

Thomas

PS: I stripped the CC list, things seem to point to acpi...

PSS: Has there already been a bug at bugzilla.kernel.org opened where dmesg, acpidump and other info can be reviewed? If not this should be done.

Quoted 117 lines · Randy Dunlap

[adding [email protected]]

Quoted 21 lines · On Wed, 27 Jun 2007 00:38:17 -0700 (PDT) [email protected] wrote:
Quoted 12 lines · Randy Dunlap
Quoted 5 lines · On Mon, 25 Jun 2007 15:56:17 -0700 (PDT) [email protected] wrote:

due to the size the files are posted at http://linux.lang.hm/linux

let me know what else I can send to help.

David Lang

I suggest that you test 2.6.22-rcN using one or both of these boot options:

Quoted 6 lines

noisapnp
pnpacpi=off

Somewhere between 2.6.18 and 2.6.22-development, the ACPI config symbol also starting enabling (selecting) PNP. That's one of many differences....

Quoted 5 lines

with the 2.6.22-rc4 kernel that I was useing earlier, adding these two options clears up the problem. Thanks.

should I test the two individually? or just plan on useing both from now on?

Yes, please test them individually. I expect that just one of them will suffice, but I don't know which one.

Quoted 2 lines

I normally disable PnP (both ISA and PCI), should I leave it enabled with the newer kernels and this motherboard?

ACPI recently began enabling (selecting) PNP for you...

How do you normally disable PCI PNP?

What kind of hardware is this? Please show us lspci output.

Quoted 72 lines
Quoted 1 line

I would also disable CONFIG_USB_USS720, at least for testing.

for ease of testing (I got time to reboot the box around midnight) I used the same config as before, so this is still on.

David Lang

Quoted 65 lines
Quoted 65 lines · Randy Dunlap
Quoted 63 lines

Date: Mon, 25 Jun 2007 15:40:28 -0700
From: Randy Dunlap <[email protected]>
To: [email protected]
Cc: Andrew Morton <[email protected]>, [email protected],
[email protected]
Subject: Re: long-term regression

Quoted 41 lines · [email protected] wrote:
Quoted 39 lines · Randy Dunlap

Date: Thu, 21 Jun 2007 08:36:59 -0700
From: Randy Dunlap <[email protected]>
To: Andrew Morton <[email protected]>
Cc: [email protected], [email protected],
[email protected]
Subject: Re: long-term regression

Quoted 19 lines · On Thu, 21 Jun 2007 05:28:07 -0700 Andrew Morton wrote:
Quoted 19 lines · On Sun, 17 Jun 2007 10:57:55 -0700 (PDT) [email protected] wrote:

I haven't had time to bisect this, but I'm having a problem on a AMD64
gentoo system where the printer doesn't work with recent kernels.

2.6.18-rc3 worked
2.6.21.1 doesn't
2.6.22-rc4 doesn't

unfortunantly the system is gooted on 2.6.18 at the moment and I'm out of
town so my ability to test is limited I can provide the 2.6.22-rc4 (attached) and 2.6.18-rc3 configs.

dmesg appears to show the port being detected, but writes to the port
under newer kernels appear to complete, but no data gets to the printer.

Quoted 4 lines
Quoted 1 line

any suggestions other then doing the large bisect?

That would be good, thanks. Please be sure to cc linux-usb-devel on the results.

OK, I'm curious about how someone deduced that this is a problem with a USB printer vs. parallel port printer since the config file has:

CONFIG_PRINTER=y
CONFIG_USB_PRINTER=y

Quoted 6 lines
Quoted 1 line

The kernel boot log should probably be posted also.

here is the dmesg from 2.6.22-rc4 and kern.log showing 2.6.22.-rc4 and 2.6.180rc3

the printer not working is the parallel port.

This email didn't show up on lkml or linux-usb-devel due to size limits (it was 900+ KB).

David, please send your working 2.6.18 config file.

Can you post the kernel log files on the web somewhere?

---

#5 lore raw
In reply to [email protected]
Quoted 9 lines · On Saturday 21 July 2007 08:09:11 pm [email protected] wrote:
Quoted 3 lines · Bjorn Helgaas

Ultimately, you should have CONFIG_ACPI=y and CONFIG_PNPACPI=y, and you should not have to boot with "noisapnp" or "pnpacpi=off". My guess is that you only need "pnpacpi=off" to work around the current problem.

these two options are enabled and pnpacpi=off does solve the problem.
...
there's now a dmesg.pnpacpi_off which works, and you are correct that the dmesg that's there is the non working one.

Thanks. Here's what I glean from that. With no arguments, it doesn't work:

parport_pc 00:0a: reported by Plug and Play ACPI
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
parport0: Printer, Brother HL-5040 series
lp0: using parport0 (interrupt-driven).

With pnpacpi=off, it works:

parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
parport0: Printer, Brother HL-5040 series
lp0: using parport0 (polling).

With pnpacpi=off, or a kernel without PNPACPI, we just probe at 0x378 and use the port in polling mode, and it works.

PNPACPI claims the device supports interrupts, so we try to use it in interrupt mode, and it doesn't work. It's possible that ACPI is lying to us, and the interrupt really doesn't work. Or maybe the interrupt *does* work, but the BIOS left it half-configured.

Could you try the attached patch and collect the dmesg log and contents of /proc/interrupts?

Thanks,
Bjorn

drivers/pnp/pnpacpi/core.c +7 -0
Index: w/drivers/pnp/pnpacpi/core.c
===================================================================
@@ -216,6 +216,13 @@
 	pnp_add_device(dev);
 	num ++;
 
+	if (dev->active) {
+		printk("%s: configuring %s (%s)\n", __FUNCTION__, dev->dev.bus_id, dev_id->id);
+		pnp_disable_dev(dev);
+		pnp_init_resource_table(&dev->res);
+		pnp_activate_dev(dev);
+	}
+
 	return AE_OK;
 err1:
 	kfree(dev_id);
#6 lore raw
Quoted 28 lines · Bjorn Helgaas
Quoted 9 lines · On Saturday 21 July 2007 08:09:11 pm [email protected] wrote:
Quoted 3 lines · Bjorn Helgaas

Ultimately, you should have CONFIG_ACPI=y and CONFIG_PNPACPI=y, and you should not have to boot with "noisapnp" or "pnpacpi=off". My guess is that you only need "pnpacpi=off" to work around the current problem.

these two options are enabled and pnpacpi=off does solve the problem.
...
there's now a dmesg.pnpacpi_off which works, and you are correct that the dmesg that's there is the non working one.

Thanks. Here's what I glean from that. With no arguments, it doesn't work:

parport_pc 00:0a: reported by Plug and Play ACPI
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
parport0: Printer, Brother HL-5040 series
lp0: using parport0 (interrupt-driven).

With pnpacpi=off, it works:

parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
parport0: Printer, Brother HL-5040 series
lp0: using parport0 (polling).

With pnpacpi=off, or a kernel without PNPACPI, we just probe at 0x378 and use the port in polling mode, and it works.

Quoted 7 lines

PNPACPI claims the device supports interrupts, so we try to use it in interrupt mode, and it doesn't work. It's possible that ACPI is lying to us, and the interrupt really doesn't work. Or maybe the interrupt *does* work, but the BIOS left it half-configured.

Could you try the attached patch and collect the dmesg log and contents of /proc/interrupts?

done, see the files
2.6.22-rc4.interrupts
2.6.22-rc4.dmesg.test
at http://lang.hm/linux

David Lang

Quoted 22 lines

Thanks,
Bjorn

Index: w/drivers/pnp/pnpacpi/core.c
===================================================================

drivers/pnp/pnpacpi/core.c +7 -0
@@ -216,6 +216,13 @@
 	pnp_add_device(dev);
 	num ++;
 
+	if (dev->active) {
+		printk("%s: configuring %s (%s)\n", __FUNCTION__, dev->dev.bus_id, dev_id->id);
+		pnp_disable_dev(dev);
+		pnp_init_resource_table(&dev->res);
+		pnp_activate_dev(dev);
+	}
+
 	return AE_OK;

err1:

	kfree(dev_id);
#7 lore raw
Quoted 35 lines · On Sunday 29 July 2007 07:22:41 pm [email protected] wrote:
Quoted 33 lines · Bjorn Helgaas
Quoted 9 lines · On Saturday 21 July 2007 08:09:11 pm [email protected] wrote:
Quoted 3 lines · Bjorn Helgaas

Ultimately, you should have CONFIG_ACPI=y and CONFIG_PNPACPI=y, and you should not have to boot with "noisapnp" or "pnpacpi=off". My guess is that you only need "pnpacpi=off" to work around the current problem.

these two options are enabled and pnpacpi=off does solve the problem.
...
there's now a dmesg.pnpacpi_off which works, and you are correct that the dmesg that's there is the non working one.

Thanks. Here's what I glean from that. With no arguments, it doesn't work:

parport_pc 00:0a: reported by Plug and Play ACPI
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
parport0: Printer, Brother HL-5040 series
lp0: using parport0 (interrupt-driven).

With pnpacpi=off, it works:

parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
parport0: Printer, Brother HL-5040 series
lp0: using parport0 (polling).

With pnpacpi=off, or a kernel without PNPACPI, we just probe at 0x378 and use the port in polling mode, and it works.

PNPACPI claims the device supports interrupts, so we try to use it in interrupt mode, and it doesn't work. It's possible that ACPI is lying to us, and the interrupt really doesn't work. Or maybe the interrupt *does* work, but the BIOS left it half-configured.

Quoted 7 lines
Quoted 2 lines

Could you try the attached patch and collect the dmesg log and contents of /proc/interrupts?

done, see the files
2.6.22-rc4.interrupts
2.6.22-rc4.dmesg.test
at http://lang.hm/linux

Thanks, but you booted with "pnpacpi=off", so we didn't learn anything. The port works with "pnpacpi=off" even without the patch. Somebody else tried my "disable/init/activate" patch with terrible results, so that approach will need more work.

This seems an awful lot like this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id=5832

Can you take a look at 5832, and maybe we can combine your problem with that one if you agree they look the same?

Bjorn

#8 lore raw
Quoted 11 lines · Bjorn Helgaas
Quoted 6 lines
Quoted 1 line

of /proc/interrupts?

done, see the files
2.6.22-rc4.interrupts
2.6.22-rc4.dmesg.test
at http://lang.hm/linux

Thanks, but you booted with "pnpacpi=off", so we didn't learn anything. The port works with "pnpacpi=off" even without the patch. Somebody else tried my "disable/init/activate" patch with terrible results, so that approach will need more work.

I did?? I thought I had changed that.

Ok, I'll try again.

David Lang

Quoted 8 lines

This seems an awful lot like this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id=5832

Can you take a look at 5832, and maybe we can combine your problem with that one if you agree they look the same?

Bjorn

#9 lore raw
In reply to Bjorn Helgaas
Quoted 9 lines · Bjorn Helgaas
Quoted 8 lines
Quoted 3 lines

Could you try the attached patch and collect the dmesg log and contents of /proc/interrupts?

done, see the files
2.6.22-rc4.interrupts
2.6.22-rc4.dmesg.test
at http://lang.hm/linux

Quoted 4 lines

Thanks, but you booted with "pnpacpi=off", so we didn't learn anything. The port works with "pnpacpi=off" even without the patch. Somebody else tried my "disable/init/activate" patch with terrible results, so that approach will need more work.

Ok, the new versions are there now.

Quoted 5 lines

This seems an awful lot like this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id=5832

Can you take a look at 5832, and maybe we can combine your problem with that one if you agree they look the same?

yes, it definantly looks like the same thing.

David Lang

Quoted 2 lines

Bjorn

#10 lore raw
Quoted 11 lines · On Sunday 29 July 2007 09:59:18 pm [email protected] wrote:
Quoted 9 lines · Bjorn Helgaas
Quoted 8 lines
Quoted 3 lines

Could you try the attached patch and collect the dmesg log and contents of /proc/interrupts?

done, see the files
2.6.22-rc4.interrupts
2.6.22-rc4.dmesg.test
at http://lang.hm/linux

Quoted 6 lines
Quoted 4 lines

Thanks, but you booted with "pnpacpi=off", so we didn't learn anything. The port works with "pnpacpi=off" even without the patch. Somebody else tried my "disable/init/activate" patch with terrible results, so that approach will need more work.

Ok, the new versions are there now.

I assume the port still didn't work. My current theory is that there's something wrong with parport DMA.

Quoted 7 lines
Quoted 5 lines

This seems an awful lot like this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id=5832

Can you take a look at 5832, and maybe we can combine your problem with that one if you agree they look the same?

yes, it definantly looks like the same thing.

OK, I added you to the cc: list of 5832.

Bjorn

#11 lore raw
Quoted 9 lines · On Sunday 29 July 2007 09:59:18 pm [email protected] wrote:
Quoted 8 lines · Bjorn Helgaas
Quoted 5 lines

This seems an awful lot like this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id=5832

Can you take a look at 5832, and maybe we can combine your problem with that one if you agree they look the same?

yes, it definantly looks like the same thing.

Hi David,

I think 2.6.25 + the patch here:

    http://marc.info/?l=linux-acpi&m=121190728701748&w=2

should fix the parallel port problem you saw. If you have a chance to confirm or disprove that, I'd appreciate hearing about it. I'm trying to get this change in for 2.6.26.

Thanks,
Bjorn

#12 lore raw
Quoted 10 lines · Bjorn Helgaas
Quoted 9 lines · On Sunday 29 July 2007 09:59:18 pm [email protected] wrote:
Quoted 8 lines · Bjorn Helgaas
Quoted 5 lines

This seems an awful lot like this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id=5832

Can you take a look at 5832, and maybe we can combine your problem with that one if you agree they look the same?

yes, it definantly looks like the same thing.

Quoted 8 lines

Hi David,

I think 2.6.25 + the patch here:

   http://marc.info/?l=linux-acpi&m=121190728701748&w=2

should fix the parallel port problem you saw. If you have a chance to confirm or disprove that, I'd appreciate hearing about it. I'm trying to get this change in for 2.6.26.

I'll see what I can do. I've moved twice since running into this and at the moment the printer is hooked to a network dongle, I'll move it to the server and try a couple tests, probably not before thursday though.

David Lang

#13 lore raw
Quoted 17 lines · On Wednesday 28 May 2008 03:19:05 am [email protected] wrote:
Quoted 15 lines · Bjorn Helgaas
Quoted 9 lines · On Sunday 29 July 2007 09:59:18 pm [email protected] wrote:
Quoted 8 lines · Bjorn Helgaas
Quoted 5 lines

This seems an awful lot like this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id=5832

Can you take a look at 5832, and maybe we can combine your problem with that one if you agree they look the same?

yes, it definantly looks like the same thing.

Hi David,

I think 2.6.25 + the patch here:

   http://marc.info/?l=linux-acpi&m=121190728701748&w=2
Quoted 7 lines
Quoted 3 lines

should fix the parallel port problem you saw. If you have a chance to confirm or disprove that, I'd appreciate hearing about it. I'm trying to get this change in for 2.6.26.

I'll see what I can do. I've moved twice since running into this and at the moment the printer is hooked to a network dongle, I'll move it to the server and try a couple tests, probably not before thursday though.

This patch is in 2.6.26-rc6, so I'll assume this problem is fixed unless I hear otherwise.

Bjorn