* RE: No APIC interrupts after ACPI suspend
@ 2004-06-28 6:20 Li, Shaohua
[not found] ` <B44D37711ED29844BEA67908EAF36F032D566A-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-06-28 20:50 ` Hamie
0 siblings, 2 replies; 13+ messages in thread
From: Li, Shaohua @ 2004-06-28 6:20 UTC (permalink / raw)
To: Hamie
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi,
I attached a new patch to handler all level triggered IRQs after resume
for 8259 in http://bugme.osdl.org/show_bug.cgi?id=2643. Please try and
attach your test result on it.
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 Hamie
>Sent: Monday, June 28, 2004 4:27 AM
>Cc: Alexander Gran; linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; acpi-
>devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [ACPI] No APIC interrupts after ACPI suspend
>
>Hamie wrote:
>
>> Alexander Gran wrote:
>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Am Sonntag, 27. Juni 2004 19:57 schrieb Hamie:
>>>
>>>
>>>> FWIW the sound & networking appear to run fine for a while after
>>>> resuming. But I just started a DVD. It ran fine for about 30
seconds
>>>> and
>>>> then the sound went. About 30 seconds later the video froze and the
app
>>>> (xine) has frozen also. (kill -9 time...).
>>>>
>>>
>>> <>
>>> I can confirm that here:
>>> after resuming, network completely works (yeah!).
>>> Sound doesn't.
>>> unloading/reloading the sound driver does not help.
>>> USB works jumpy (perhaps 5-10hz)
>>> Reloading does the trick for usb.
>>>
>>
>> Since it sounds like a different bug to 2643, (Similiar but the patch
>> that fixes the ethernet doesn't appear to doa lot for the sound).
>> I've opened a new one... #2965.
>>
>
>Seeing as sound was on IRQ5 and the patch for 2643 fixed the ethernet,
I
>added a
>(big hack here :) call to
>
> acpi_pic_sci_set_trigger(5, acpi_sci_flags.trigger);
>
>in acpi_pm_finish(u32 state); just after the call to set the IRQ
trigger
>for
>the acpi irq...
>
>Results in (kern.log)
>
>Jun 27 21:15:28 ballbreaker kernel: ACPI: IRQ9 SCI: Edge set to Level
>Trigger.
>Jun 27 21:15:28 ballbreaker kernel: ACPI: IRQ5 SCI: Edge set to Level
>Trigger.
>
>
>and then sound works after resume... Obviously not a very good fix as
it
>won't
>fix anything that uses somethign other than IRQ5.
>
>So... What should the correct fix be? Obviously some IRQ's triggers
aren't
>surviving the resume... But why... The timer (IRQ 0) obviously does...
>
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by Black Hat Briefings & Training.
>Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
>digital self defense, top technical experts, no vendor pitches,
>unmatched networking opportunities. Visit www.blackhat.com
>_______________________________________________
>Acpi-devel mailing list
>Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/acpi-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
^ permalink raw reply [flat|nested] 13+ messages in thread[parent not found: <B44D37711ED29844BEA67908EAF36F032D566A-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>]
* Re: No APIC interrupts after ACPI suspend
[not found] ` <B44D37711ED29844BEA67908EAF36F032D566A-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2004-06-28 8:48 ` Hamie
2004-06-28 9:18 ` [ACPI] " Luca Capello
0 siblings, 1 reply; 13+ messages in thread
From: Hamie @ 2004-06-28 8:48 UTC (permalink / raw)
To: Li, Shaohua
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Li, Shaohua wrote:
>Hi,
>I attached a new patch to handler all level triggered IRQs after resume
>for 8259 in http://bugme.osdl.org/show_bug.cgi?id=2643. Please try and
>attach your test result on it.
>
>
>
Uh.... That might work.... Except that after applying the patch &
restarting. Then suspend-resume I get another small problem... My
thinkpad (r50p) uses the power button to wake up from suspend... The
system wakes, but with this latest patch, acpid then kicks in & says
'Ohh! I saw him press the power button' and promptly shuts down...
here's my acpid logfile
[Mon Jun 28 09:39:27 2004] received event "button/sleep SLPB 00000080
00000001"
[Mon Jun 28 09:39:27 2004] executing action "/etc/acpi/sleep.sh"
[Mon Jun 28 09:39:27 2004] BEGIN HANDLER MESSAGES
ERROR: Module i810_audio does not exist in /proc/modules
Stopping hotplug subsystem:
input
net
pci
usb
done
ERROR: Module bluetooth is in use by rfcomm,l2cap
Starting hotplug subsystem:
input
net
pci
usb
** can't synthesize root hub events
done
/dev/hda:
setting standby to 240 (20 minutes)
[Mon Jun 28 09:39:43 2004] END HANDLER MESSAGES
[Mon Jun 28 09:39:43 2004] action exited with status 0
[Mon Jun 28 09:39:43 2004] completed event "button/sleep SLPB 00000080
00000001"
[Mon Jun 28 09:39:43 2004] received event "button/power PWRF 00000080
00000001"
[Mon Jun 28 09:39:43 2004] executing action "/etc/acpi/powerbtn.sh"
[Mon Jun 28 09:39:43 2004] BEGIN HANDLER MESSAGES
[Mon Jun 28 09:39:43 2004] END HANDLER MESSAGES
[Mon Jun 28 09:39:43 2004] action exited with status 0
[Mon Jun 28 09:39:43 2004] completed event "button/power PWRF 00000080
00000001"
[Mon Jun 28 09:40:07 2004] exiting
[Mon Jun 28 09:41:08 2004] starting up
[Mon Jun 28 09:41:08 2004] 3 rules loaded
ballbreaker:/var/log#
Sleeps, wakes & a shutdown... Should acpid do that? (i.e. shouldn't it
eat the power button event that woke it up as a wakeup? Should it even
get that?) Or is it the previous patch for drivers/acpi/sleep/main.c
resetting the IRQ9 to edge triggered that's killing me? (I'll try
removing that now).
TIA
Hamish.
>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 Hamie
>>Sent: Monday, June 28, 2004 4:27 AM
>>Cc: Alexander Gran; linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; acpi-
>>devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>>Subject: Re: [ACPI] No APIC interrupts after ACPI suspend
>>
>>Hamie wrote:
>>
>>
>>
>>>Alexander Gran wrote:
>>>
>>>
>>>
>>>>-----BEGIN PGP SIGNED MESSAGE-----
>>>>Hash: SHA1
>>>>
>>>>Am Sonntag, 27. Juni 2004 19:57 schrieb Hamie:
>>>>
>>>>
>>>>
>>>>
>>>>>FWIW the sound & networking appear to run fine for a while after
>>>>>resuming. But I just started a DVD. It ran fine for about 30
>>>>>
>>>>>
>seconds
>
>
>>>>>and
>>>>>then the sound went. About 30 seconds later the video froze and the
>>>>>
>>>>>
>app
>
>
>>>>>(xine) has frozen also. (kill -9 time...).
>>>>>
>>>>>
>>>>>
>>>><>
>>>>I can confirm that here:
>>>>after resuming, network completely works (yeah!).
>>>>Sound doesn't.
>>>>unloading/reloading the sound driver does not help.
>>>>USB works jumpy (perhaps 5-10hz)
>>>>Reloading does the trick for usb.
>>>>
>>>>
>>>>
>>>Since it sounds like a different bug to 2643, (Similiar but the patch
>>>that fixes the ethernet doesn't appear to doa lot for the sound).
>>>I've opened a new one... #2965.
>>>
>>>
>>>
>>Seeing as sound was on IRQ5 and the patch for 2643 fixed the ethernet,
>>
>>
>I
>
>
>>added a
>>(big hack here :) call to
>>
>> acpi_pic_sci_set_trigger(5, acpi_sci_flags.trigger);
>>
>>in acpi_pm_finish(u32 state); just after the call to set the IRQ
>>
>>
>trigger
>
>
>>for
>>the acpi irq...
>>
>>Results in (kern.log)
>>
>>Jun 27 21:15:28 ballbreaker kernel: ACPI: IRQ9 SCI: Edge set to Level
>>Trigger.
>>Jun 27 21:15:28 ballbreaker kernel: ACPI: IRQ5 SCI: Edge set to Level
>>Trigger.
>>
>>
>>and then sound works after resume... Obviously not a very good fix as
>>
>>
>it
>
>
>>won't
>>fix anything that uses somethign other than IRQ5.
>>
>>So... What should the correct fix be? Obviously some IRQ's triggers
>>
>>
>aren't
>
>
>>surviving the resume... But why... The timer (IRQ 0) obviously does...
>>
>>
>>
>>
>>
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [ACPI] No APIC interrupts after ACPI suspend
2004-06-28 8:48 ` Hamie
@ 2004-06-28 9:18 ` Luca Capello
0 siblings, 0 replies; 13+ messages in thread
From: Luca Capello @ 2004-06-28 9:18 UTC (permalink / raw)
To: acpi-devel; +Cc: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
on 06/28/04 10:48, Hamie wrote:
> Li, Shaohua wrote:
>> I attached a new patch to handler all level triggered IRQs after resume
>> for 8259 in http://bugme.osdl.org/show_bug.cgi?id=2643. Please try and
>> attach your test result on it.
> Uh.... That might work.... Except that after applying the patch &
> restarting. Then suspend-resume I get another small problem... My
> thinkpad (r50p) uses the power button to wake up from suspend... The
> system wakes, but with this latest patch, acpid then kicks in & says
> 'Ohh! I saw him press the power button' and promptly shuts down...
<cut>
> Sleeps, wakes & a shutdown... Should acpid do that? (i.e. shouldn't it
> eat the power button event that woke it up as a wakeup? Should it even
> get that?) Or is it the previous patch for drivers/acpi/sleep/main.c
> resetting the IRQ9 to edge triggered that's killing me? (I'll try
> removing that now).
this is a known /bug/, I experienced the same on my ancient ASUS M3N. It
has nothing to do with 'acpid'. Please refer to this thread:
http://marc.theaimsgroup.com/?l=acpi4linux&m=107291320113621&w=2
For the moment, you can use the workaround I proposed here
http://marc.theaimsgroup.com/?l=acpi4linux&m=107333070225744&w=2
Thx, bye,
Gismo / Luca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFA3+JiVAp7Xm10JmkRAoioAJ0Wm/HoUcW0CH2yePQvjB4YGJDs/gCdHd8S
NHmS97q0bfg8JOec6H7fFKs=
=J5E+
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ACPI] No APIC interrupts after ACPI suspend
2004-06-28 6:20 No APIC interrupts after ACPI suspend Li, Shaohua
[not found] ` <B44D37711ED29844BEA67908EAF36F032D566A-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2004-06-28 20:50 ` Hamie
1 sibling, 0 replies; 13+ messages in thread
From: Hamie @ 2004-06-28 20:50 UTC (permalink / raw)
To: Li, Shaohua; +Cc: linux-kernel, acpi-devel
Li, Shaohua wrote:
>Hi,
>I attached a new patch to handler all level triggered IRQs after resume
>for 8259 in http://bugme.osdl.org/show_bug.cgi?id=2643. Please try and
>attach your test result on it.
>
>
>
[Sorry if some see this twice... It bounced when I sent it before]
Uh.... That might work.... Except that after applying the patch &
restarting. Then suspend-resume I get another small problem... My
thinkpad (r50p) uses the power button to wake up from suspend... The
system wakes, but with this latest patch, acpid then kicks in & says
'Ohh! I saw him press the power button' and promptly shuts down...
here's my acpid logfile
[Mon Jun 28 09:39:27 2004] received event "button/sleep SLPB 00000080
00000001"
[Mon Jun 28 09:39:27 2004] executing action "/etc/acpi/sleep.sh"
[Mon Jun 28 09:39:27 2004] BEGIN HANDLER MESSAGES
ERROR: Module i810_audio does not exist in /proc/modules
Stopping hotplug subsystem:
input
net
pci
usb
done
ERROR: Module bluetooth is in use by rfcomm,l2cap
Starting hotplug subsystem:
input
net
pci
usb
** can't synthesize root hub events
done
/dev/hda:
setting standby to 240 (20 minutes)
[Mon Jun 28 09:39:43 2004] END HANDLER MESSAGES
[Mon Jun 28 09:39:43 2004] action exited with status 0
[Mon Jun 28 09:39:43 2004] completed event "button/sleep SLPB 00000080
00000001"
[Mon Jun 28 09:39:43 2004] received event "button/power PWRF 00000080
00000001"
[Mon Jun 28 09:39:43 2004] executing action "/etc/acpi/powerbtn.sh"
[Mon Jun 28 09:39:43 2004] BEGIN HANDLER MESSAGES
[Mon Jun 28 09:39:43 2004] END HANDLER MESSAGES
[Mon Jun 28 09:39:43 2004] action exited with status 0
[Mon Jun 28 09:39:43 2004] completed event "button/power PWRF 00000080
00000001"
[Mon Jun 28 09:40:07 2004] exiting
[Mon Jun 28 09:41:08 2004] starting up
[Mon Jun 28 09:41:08 2004] 3 rules loaded
ballbreaker:/var/log#
Sleeps, wakes & a shutdown... Should acpid do that? (i.e. shouldn't it
eat the power button event that woke it up as a wakeup? Should it even
get that?) Or is it the previous patch for drivers/acpi/sleep/main.c
resetting the IRQ9 to edge triggered that's killing me? (I'll try
removing that now).
[Note, I've recieved a note regarding the wakeup & shutdown problem...
It's a bug perhaps? Does anyone know whether the bug is that acpi
shouldn't get the power button event after the resume? Or is it a bug
that acpid itself doesn't eat the event as we've just resumed (How does
it know the button was to wakeup & wasn't really to shutdown?) or is the
bug in the scripts (unlikely... The 'workaround' I was pointed at
scrapes the log to find out if we've just resumed... But what if the
logfilesystem is full... No log & we'll shutdown anyway, so I'd suspect
acpid myself... Anyone confirm which area is actually responsible?
TIA
Hamish.
^ permalink raw reply [flat|nested] 13+ messages in thread
* No APIC interrupts after ACPI suspend
@ 2004-06-25 10:48 Matthew Garrett
2004-06-26 0:05 ` Hamie
2004-06-26 16:42 ` [ACPI] " David Eriksson
0 siblings, 2 replies; 13+ messages in thread
From: Matthew Garrett @ 2004-06-25 10:48 UTC (permalink / raw)
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
If I do an S3 suspend, my machine resumes correctly (Thinkpad X40,
acpi_sleep=s3_bios passed on the command line). If I have the ioapic
enabled, however, I get no interrupts after resume. Hacking in a call to
APIC_init_uniprocessor in the resume path improves things - I get edge
triggered interrupts, but anything flagged as level triggered doesn't
work. How can I get the ioapic fully initialised on resume?
--
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: No APIC interrupts after ACPI suspend
2004-06-25 10:48 Matthew Garrett
@ 2004-06-26 0:05 ` Hamie
2004-06-26 16:42 ` [ACPI] " David Eriksson
1 sibling, 0 replies; 13+ messages in thread
From: Hamie @ 2004-06-26 0:05 UTC (permalink / raw)
To: Matthew Garrett; +Cc: linux-kernel, acpi-devel
Matthew Garrett wrote:
>If I do an S3 suspend, my machine resumes correctly (Thinkpad X40,
>acpi_sleep=s3_bios passed on the command line). If I have the ioapic
>enabled, however, I get no interrupts after resume. Hacking in a call to
>APIC_init_uniprocessor in the resume path improves things - I get edge
>triggered interrupts, but anything flagged as level triggered doesn't
>work. How can I get the ioapic fully initialised on resume?
>
>
I have an identical problem with an r50p. But I'm running PIC...
(Because the r50p doesn't seem to do APIC). Not sure if it's identical,
but after resuming, I get maybe 10 seconds of sound, OR 30 odd minutes
of networking (I know... Sounds strange)... Then neither...
H
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ACPI] No APIC interrupts after ACPI suspend
2004-06-25 10:48 Matthew Garrett
2004-06-26 0:05 ` Hamie
@ 2004-06-26 16:42 ` David Eriksson
2004-06-26 18:03 ` Hamie
1 sibling, 1 reply; 13+ messages in thread
From: David Eriksson @ 2004-06-26 16:42 UTC (permalink / raw)
To: Matthew Garrett; +Cc: linux-kernel, acpi-devel
On Fri, 2004-06-25 at 12:48, Matthew Garrett wrote:
> If I do an S3 suspend, my machine resumes correctly (Thinkpad X40,
> acpi_sleep=s3_bios passed on the command line). If I have the ioapic
> enabled, however, I get no interrupts after resume. Hacking in a call to
> APIC_init_uniprocessor in the resume path improves things - I get edge
> triggered interrupts, but anything flagged as level triggered doesn't
> work. How can I get the ioapic fully initialised on resume?
Maybe you've found this bug?
http://bugme.osdl.org/show_bug.cgi?id=2643
--
-\- David Eriksson -/- www.2GooD.nu
"I personally refuse to use inferior tools because of ideology."
- Linus Torvalds
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [ACPI] No APIC interrupts after ACPI suspend
2004-06-26 16:42 ` [ACPI] " David Eriksson
@ 2004-06-26 18:03 ` Hamie
[not found] ` <40DDBA7A.6010404-CM5YN7r2dWBr4tq51QLIbdBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 13+ messages in thread
From: Hamie @ 2004-06-26 18:03 UTC (permalink / raw)
To: David Eriksson; +Cc: Matthew Garrett, linux-kernel, acpi-devel
David Eriksson wrote:
>On Fri, 2004-06-25 at 12:48, Matthew Garrett wrote:
>
>
>>If I do an S3 suspend, my machine resumes correctly (Thinkpad X40,
>>acpi_sleep=s3_bios passed on the command line). If I have the ioapic
>>enabled, however, I get no interrupts after resume. Hacking in a call to
>>APIC_init_uniprocessor in the resume path improves things - I get edge
>>triggered interrupts, but anything flagged as level triggered doesn't
>>work. How can I get the ioapic fully initialised on resume?
>>
>>
>
>Maybe you've found this bug?
>
>http://bugme.osdl.org/show_bug.cgi?id=2643
>
>
>
I think you're right... I've applied the patch to 2.6.7, and I'm still
running after a boot-suspend-resume cycle. Hopefully it isn't just a
fluke :)
The original patch seems to have been logged at the time of 2.6.6. Was
it just too late to make 2.6.7? Will it be fixed in 2.6.8?
Thanks.
Hamish.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2004-06-29 21:19 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-28 6:20 No APIC interrupts after ACPI suspend Li, Shaohua
[not found] ` <B44D37711ED29844BEA67908EAF36F032D566A-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-06-28 8:48 ` Hamie
2004-06-28 9:18 ` [ACPI] " Luca Capello
2004-06-28 20:50 ` Hamie
-- strict thread matches above, loose matches on Subject: below --
2004-06-25 10:48 Matthew Garrett
2004-06-26 0:05 ` Hamie
2004-06-26 16:42 ` [ACPI] " David Eriksson
2004-06-26 18:03 ` Hamie
[not found] ` <40DDBA7A.6010404-CM5YN7r2dWBr4tq51QLIbdBPR1lH4CV8@public.gmane.org>
2004-06-27 17:57 ` Hamie
[not found] ` <40DF0A98.9040604-CM5YN7r2dWBr4tq51QLIbdBPR1lH4CV8@public.gmane.org>
2004-06-27 18:49 ` Herman Sheremetyev
[not found] ` <1088362159.2163.38.camel-l85cmlzfk8I@public.gmane.org>
2004-06-29 21:19 ` Pavel Machek
2004-06-27 18:52 ` Alexander Gran
[not found] ` <200406272052.43326-qgpBcDF1kIxsXm07kNcISIFwBlHcXKVlHZ5vskTnxNA@public.gmane.org>
2004-06-27 19:16 ` Hamie
[not found] ` <40DF1D22.2010406-CM5YN7r2dWBr4tq51QLIbdBPR1lH4CV8@public.gmane.org>
2004-06-27 20:27 ` Hamie
2004-06-27 19:22 ` Alexander Gran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox