public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Karol Kozimor <sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [20030321] Failed to acquire semaphore
Date: Sun, 23 Mar 2003 21:30:25 +0100	[thread overview]
Message-ID: <20030323203025.GA13039@hell.org.pl> (raw)

Hi,
I recently managed to compile a (hopefully) stable 2.4.21-pre5 with latest
ACPI. Since this kernel required heavy loads of manual patching (the XFS
patch comes only for 2.4.20, swsusp-beta19 was for earlier ACPI, CPUfreq
doesn't get on well with the latter), and furthermore, I wasn't always sure
of what I was doing, I'm curious whether the error below is something
specific. I'm particularly interested in the following changes I made to
drivers/acpi/system.c. It was originally
#v+ (around line 340)
        /* disable interrupts and flush caches */
        ACPI_DISABLE_IRQS();
        ACPI_FLUSH_CPU_CACHE();

        /* perform OS-specific sleep actions */
        if(swsusp) { /* we just ignore acpi architecture for the moment */
                software_suspend_pending(); /* when we return, this is
resume */
                status = AE_OK;
        } else {
        status = acpi_system_suspend(state);

        /* Even if we failed to go to sleep, all of the devices are in an
 * suspended
         * mode. So, we run these unconditionaly to make sure we have a
         * usable system
         * no matter what.
         */
        acpi_leave_sleep_state(state);
        acpi_system_restore_state(state);

        /* make sure interrupts are enabled */
        ACPI_ENABLE_IRQS();
#v-

And what I changed was:
#v+
        if(swsusp) { /* we just ignore acpi architecture for the moment */
                software_suspend_pending(); /* when we return, this is
resume */
+                acpi_leave_sleep_state(state);
                status = AE_OK;
        } else {
        status = acpi_system_suspend(state);

        /* Even if we failed to go to sleep, all of the devices are in an
 * suspended
         * mode. So, we run these unconditionaly to make sure we have a
         * usable system
         * no matter what.
         */
        acpi_leave_sleep_state(state);
        acpi_system_restore_state(state);
+        }

        /* make sure interrupts are enabled */
#v-

Ad.1 swsusp-beta19 expects this, but since the patch is against a previous
version, and the code has changed, I had to do it that way. I don't know if
it's the right way...
Ad.2 The code won't compile without the bracket.

Well, the particular error I'm seeing at boot time is:
#v+
Mar 23 20:12:30 nadir kernel: Transparent bridge - Intel Corp. 82801BAM/CAM PCI Bridge
Mar 23 20:12:30 nadir kernel: schedule_task(): keventd has not started
Mar 23 20:12:30 nadir kernel: ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 10
Mar 23 20:12:30 nadir kernel: ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 11
Mar 23 20:12:30 nadir kernel: ACPI: PCI Interrupt Link [LNKG] enabled at IRQ 10
Mar 23 20:12:30 nadir kernel: ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 5
Mar 23 20:12:30 nadir kernel: Initializing RT netlink socket
Mar 23 20:12:30 nadir kernel:      osl-0888 [24] os_wait_semaphore     : Failed to acquire semaphore[cfff74c0|1|0], AE_TIME
Mar 23 20:12:30 nadir kernel:   utmisc-0743 [23] ut_acquire_mutex      : Thread 0 could not acquire Mutex [ACPI_MTX_Events] AE_TIME
#v-

Occasionally (e.g. upon a notify or event), the two last lines reappear,
and ACPI events are not handled otherwise (i.e. acpid fails to notice
them). Furthermore, resuming from S1 floods the screen with the above
messages, but the system is working nonetheless. All the ACPI subsystem I
rely on (i.e. performance / cooling method switching, readings, etc.) seems
to be working fine besides that.
I'll be grateful for any help, TIA, best regards,

-- 
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

             reply	other threads:[~2003-03-23 20:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-23 20:30 Karol Kozimor [this message]
     [not found] ` <20030323203025.GA13039-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-03-24  3:30   ` [20030321] Failed to acquire semaphore Joshua Legbandt
2003-03-25 14:27   ` Karol Kozimor
  -- strict thread matches above, loose matches on Subject: below --
2003-03-25 21:13 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A847E96D5B-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-03-25 21:52   ` bperkins-ooduxAEi7gVg9hUCZPvPmw
2003-03-25 22:01   ` Karol Kozimor
2003-03-26 16:30 Moore, Robert
     [not found] ` <B9ECACBD6885D5119ADC00508B68C1EA0D19BBFF-LkGsggTGxVmSsB6bSF6DdVDQ4js95KgL@public.gmane.org>
2003-03-26 20:35   ` Karol Kozimor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030323203025.GA13039@hell.org.pl \
    --to=sziwan-detuoxkzssqrdjvtcaxf/a@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox