public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: "irq 11: nobody cared" after S3
@ 2004-08-03  1:12 Li, Shaohua
       [not found] ` <B44D37711ED29844BEA67908EAF36F03768BD0-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Li, Shaohua @ 2004-08-03  1:12 UTC (permalink / raw)
  To: Nathan Bryant
  Cc: stefandoesinger-RbZlAiThDcE,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I don't think your patch works, and even it works for your system, it
will break other systems. The goal of 'setonboot' is to prevent setting
LINK device's IRQ every time, which we added last year. Without it, many
systems will break. IIRC, its goal is to resolve a bug in bugzilla. But
currently I don't remember the exact bug number.

Thanks,
Shaohua
>-----Original Message-----
>From: Nathan Bryant [mailto:nbryant-p32f3XyCuykqcZcGjlUOXw@public.gmane.org]
>Sent: Monday, August 02, 2004 10:18 PM
>To: Li, Shaohua
>Cc: stefandoesinger-RbZlAiThDcE@public.gmane.org; acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [ACPI] "irq 11: nobody cared" after S3
>
>Li, Shaohua wrote:
>> I guess the bug is: ACPI sets LNKE's IRQ from 10 to 11 in boot time.
>> LNKE's register is at LPC bridge offset 0x68, but current PCI config
>> space save/restore code only handles first 0x40 bytes. After resume,
>> LNKE's register doesn't recover. So LNKE will actually route to 10,
but
>> ACPI still thinks it routes to 11. Then you will get such error. I
guess
>> such error is unavoidable unless LPC bridge driver exists (it can
>> save/restore all affected config space instead of first 0x40 bytes).
>
>Hi,
>
>I agree with you, but I suspect a better fix is something like the
>attached diff, from my local tree. (My machine has similar problems,
but
>this is not tested yet. Will test tonight and then send a patch to Len
>if it works out.)


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: "irq 11: nobody cared" after S3
@ 2004-08-03  1:43 Li, Shaohua
  0 siblings, 0 replies; 10+ messages in thread
From: Li, Shaohua @ 2004-08-03  1:43 UTC (permalink / raw)
  To: Nathan Bryant
  Cc: stefandoesinger-RbZlAiThDcE,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Actually current ACPI drivers don't support resume/suspend. :(. I also
consider adding a workaround to support Link device suspend/resume, but
you know it's just a workaround. Some guys may not agree to add a
workaround for the special case. For long term, LPC bridge driver should
do this.

Thanks,
Shaohua

>-----Original Message-----
>From: Nathan Bryant [mailto:nbryant-p32f3XyCuykqcZcGjlUOXw@public.gmane.org]
>Sent: Tuesday, August 03, 2004 9:28 AM
>To: Li, Shaohua
>Cc: stefandoesinger-RbZlAiThDcE@public.gmane.org; acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [ACPI] "irq 11: nobody cared" after S3
>
>Li, Shaohua wrote:
>
>>I don't think your patch works, and even it works for your system, it
>>will break other systems. The goal of 'setonboot' is to prevent
setting
>>LINK device's IRQ every time, which we added last year. Without it,
many
>>systems will break. IIRC, its goal is to resolve a bug in bugzilla.
But
>>currently I don't remember the exact bug number.
>>
>>
>Thanks for the feedback. It works for my system--but only for devices
>that call pci_device_enable(). Therefore I am currently reinstating the
>"setonboot" flag and reworking the patch along the lines of the
attached:


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: "irq 11: nobody cared" after S3
@ 2004-08-02  6:47 Li, Shaohua
       [not found] ` <B44D37711ED29844BEA67908EAF36F0376876A-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Li, Shaohua @ 2004-08-02  6:47 UTC (permalink / raw)
  To: stefandoesinger-RbZlAiThDcE; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

I guess the bug is: ACPI sets LNKE's IRQ from 10 to 11 in boot time.
LNKE's register is at LPC bridge offset 0x68, but current PCI config
space save/restore code only handles first 0x40 bytes. After resume,
LNKE's register doesn't recover. So LNKE will actually route to 10, but
ACPI still thinks it routes to 11. Then you will get such error. I guess
such error is unavoidable unless LPC bridge driver exists (it can
save/restore all affected config space instead of first 0x40 bytes). 

Thanks,
Shaohua

>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
>admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of stefandoesinger-RbZlAiThDcE@public.gmane.org
>Sent: Monday, August 02, 2004 12:50 AM
>To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: [ACPI] "irq 11: nobody cared" after S3
>
>Hello,
>I have a really odd problem with acpi interrupts and ipw2100.
>
>I use 2.6.8-rc2 + acpi-20040715 and the system works fine after S3 as
long
>no
>driver uses IRQ11. But if I have ipw2100 loaded before I suspend or
load it
>afterwards, irq11 and irq10 are disabled.
>
>The odd thing is that it worked for 2 days with the (hopefully) same
>configuration. Then I tried to make a clear patch which calls
>acpi_leave_sleep_state before resuming the devices which is needed on
my
>notebook(see pci device resume too early?). I recombiled the kernel and
my
>nice setup stopped working. Returning to the original code didn't help.
>
>The problem occurs when ipw2100(or ndiswrapper) is loaded before I
>suspend(see
>dmesg.loadbefore) or if I load it after resume(see dmesg.loadlater. In
both
>cases IRQ11 and IRQ10 are disabled. IRQ10 works nicely as long IRQ11 is
not
>used. The IRQ crash occues eighter when PIT is resumed or when ipw2100
>registers the irq line.
>
>This is my /proc/interrupts with a normally booted system(no S3):
>           CPU0
>  0:    1508252          XT-PIC  timer
>  1:       2953          XT-PIC  i8042
>  2:          0          XT-PIC  cascade
>  5:      19552          XT-PIC  uhci_hcd, eth0
>  8:          2          XT-PIC  rtc
>  9:        168          XT-PIC  acpi
> 10:      94435          XT-PIC  ehci_hcd, uhci_hcd, uhci_hcd,
>radeon@PCI:1:0:0, Intel ICH4
> 11:       1166          XT-PIC  wlan0
> 12:       5382          XT-PIC  i8042
> 14:      14433          XT-PIC  ide0
>NMI:          0
>LOC:    1508373
>ERR:          0
>MIS:          0
>
>After this crash, 11 hase a count of exactly 100000.
>I tried with  and without APIC, IOAPIC, hpet, power management timer.
>If I reverse the patch from http://bugme.osdl.org/show_bug.cgi?id=2643,
the
>messages disappear, but the interrupts still do not work.
>
>Any ideas?
>Best regards,
>Stefan


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com

^ permalink raw reply	[flat|nested] 10+ messages in thread
* "irq 11: nobody cared" after S3
@ 2004-08-01 16:50 Stefan Dösinger
       [not found] ` <200408011850.25991.stefandoesinger-RbZlAiThDcE@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Dösinger @ 2004-08-01 16:50 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 1845 bytes --]

Hello,
I have a really odd problem with acpi interrupts and ipw2100.

I use 2.6.8-rc2 + acpi-20040715 and the system works fine after S3 as long no 
driver uses IRQ11. But if I have ipw2100 loaded before I suspend or load it 
afterwards, irq11 and irq10 are disabled.

The odd thing is that it worked for 2 days with the (hopefully) same 
configuration. Then I tried to make a clear patch which calls 
acpi_leave_sleep_state before resuming the devices which is needed on my 
notebook(see pci device resume too early?). I recombiled the kernel and my 
nice setup stopped working. Returning to the original code didn't help.

The problem occurs when ipw2100(or ndiswrapper) is loaded before I suspend(see 
dmesg.loadbefore) or if I load it after resume(see dmesg.loadlater. In both 
cases IRQ11 and IRQ10 are disabled. IRQ10 works nicely as long IRQ11 is not 
used. The IRQ crash occues eighter when PIT is resumed or when ipw2100 
registers the irq line.

This is my /proc/interrupts with a normally booted system(no S3):
           CPU0
  0:    1508252          XT-PIC  timer
  1:       2953          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  5:      19552          XT-PIC  uhci_hcd, eth0
  8:          2          XT-PIC  rtc
  9:        168          XT-PIC  acpi
 10:      94435          XT-PIC  ehci_hcd, uhci_hcd, uhci_hcd, 
radeon@PCI:1:0:0, Intel ICH4
 11:       1166          XT-PIC  wlan0
 12:       5382          XT-PIC  i8042
 14:      14433          XT-PIC  ide0
NMI:          0
LOC:    1508373
ERR:          0
MIS:          0

After this crash, 11 hase a count of exactly 100000.
I tried with  and without APIC, IOAPIC, hpet, power management timer.
If I reverse the patch from http://bugme.osdl.org/show_bug.cgi?id=2643, the 
messages disappear, but the interrupts still do not work.

Any ideas?
Best regards,
Stefan

[-- Attachment #2: dmesg.loadbefore.bz2 --]
[-- Type: application/x-bzip2, Size: 4670 bytes --]

[-- Attachment #3: dmesg.loadlater.bz2 --]
[-- Type: application/x-bzip2, Size: 4635 bytes --]

[-- Attachment #4: acpidump.out.bz2 --]
[-- Type: application/x-bzip2, Size: 12275 bytes --]

[-- Attachment #5: config.bz2 --]
[-- Type: application/x-bzip2, Size: 8267 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-08-03 15:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-03  1:12 "irq 11: nobody cared" after S3 Li, Shaohua
     [not found] ` <B44D37711ED29844BEA67908EAF36F03768BD0-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-03  1:27   ` Nathan Bryant
2004-08-03  2:21   ` Nathan Bryant
  -- strict thread matches above, loose matches on Subject: below --
2004-08-03  1:43 Li, Shaohua
2004-08-02  6:47 Li, Shaohua
     [not found] ` <B44D37711ED29844BEA67908EAF36F0376876A-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-02 14:17   ` Nathan Bryant
2004-08-01 16:50 Stefan Dösinger
     [not found] ` <200408011850.25991.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-08-02  4:21   ` Nathan Bryant
     [not found]     ` <410DC163.1090109-p32f3XyCuykqcZcGjlUOXw@public.gmane.org>
2004-08-03 14:29       ` Stefan Dösinger
     [not found]         ` <200408031629.19466.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-08-03 15:32           ` Nathan Bryant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox