From: Andi Kleen <ak@linux.intel.com>
To: Daniel Walker <dwalker@mvista.com>
Cc: linux-acpi@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Peter Zijlstra <peterz@infradead.org>,
Len Brown <len.brown@intel.com>,
Robert Moore <robert.moore@intel.com>
Subject: Re: [PATCH 2/4] acpi: add real mutex function calls
Date: Sat, 16 Aug 2008 04:16:58 +0200 [thread overview]
Message-ID: <48A6389A.5020604@linux.intel.com> (raw)
In-Reply-To: <1218841806.6166.96.camel@dhcp32.mvista.com>
> "To prevent deadlocks, wherever more than one synchronization object
> must be owned, the synchronization
> objects must always be released in the order opposite the order in which
> they were acquired."
>
> I think the ASL compiler should (does?) validate that.
Bob should comment, but before we could rely on that it would also
need to be ensured that _all_ AML compilers do that, including
the one from Microsoft.
> With all that, and the fact that I don't see much of a reason to have
> deep synchronization inside these AML's ,
I'm sure BIOS writers come up with things we never thought about.
> I think it's going to be a
> very rare occasion that we find a lockdep warning inside the AML ..Even
> if we did find a problem, that's something we would want to know about
> and/or try to get fixed I would think.
I don't see a clear path to fix those if they happen. And just
processing them would already tie up precious bughandling resources.
It borders towards Steinbach's rule.
Now one possibility would be to figure out how to disable lockdep
for them (perhaps optional with default to off).
But on the other hand your patch is non trivial amount of code.
Without the checking (which would seem more like a disadvantage in this case)
the only advantage I can see of the mutexes would be PI handling in RT
kernels, but that's clearly an out of tree usage right now (and also
since AML is not executed in normal operation it's unlikely
that PI for those is really critical for anyone)
Any other reasons right now we would want that in tree?
-Andi
next prev parent reply other threads:[~2008-08-16 2:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 20:14 [PATCH 0/4] acpi semaphore removal v3 Daniel Walker
2008-08-15 20:14 ` [PATCH 1/4] add mutex_lock_timeout() Daniel Walker
2008-08-15 20:14 ` [PATCH 2/4] acpi: add real mutex function calls Daniel Walker
2008-08-15 20:14 ` [PATCH 3/4] acpi: add lockdep magic Daniel Walker
2008-08-15 20:14 ` [PATCH 4/4] acpi: semaphore removal Daniel Walker
2008-08-15 22:17 ` Andi Kleen
2008-08-16 0:18 ` Daniel Walker
2008-08-16 2:06 ` Andi Kleen
2008-08-16 4:15 ` Daniel Walker
2008-08-15 22:16 ` [PATCH 2/4] acpi: add real mutex function calls Andi Kleen
2008-08-15 23:10 ` Daniel Walker
2008-08-16 2:16 ` Andi Kleen [this message]
2008-08-16 4:11 ` Daniel Walker
-- strict thread matches above, loose matches on Subject: below --
2008-08-26 18:59 [PATCH 1/4] mutex: add mutex_lock_timeout() Daniel Walker
2008-08-26 18:59 ` [PATCH 2/4] acpi: add real mutex function calls Daniel Walker
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=48A6389A.5020604@linux.intel.com \
--to=ak@linux.intel.com \
--cc=dwalker@mvista.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=robert.moore@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.