From: "Eugeny S. Mints" <emints@ru.mvista.com>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: Daniel Walker <dwalker@mvista.com>, Ingo Molnar <mingo@elte.hu>,
Thomas Gleixner <tglx@linutronix.de>,
LKML <linux-kernel@vger.kernel.org>,
Sven Dietrich <sdietrich@mvista.com>,
Russell King - ARM Linux <linux@arm.linux.org.uk>
Subject: Re: Preempt Real-time for ARM
Date: Thu, 10 Feb 2005 11:21:00 +0300 [thread overview]
Message-ID: <420B196C.2030202@ru.mvista.com> (raw)
In-Reply-To: <20050209194401.A8810@flint.arm.linux.org.uk>
Russell King wrote:
> On Wed, Feb 09, 2005 at 09:41:10AM -0800, Daniel Walker wrote:
>
>> All I want to do is integrate the common IRQ threading code. To do that
>>I need things , from Russell, like per descriptor locks .. And I need
>>things , from Ingo, like pulling out the IRQ threading code..
>
>
> I've said why per-IRQ locks are incorrect for the non-RT cases on ARM,
> but unfortunately just repeating the reasons why it's wrong isn't
> getting me anywhere either. So shrug, all I can to is explain why
> it's wrong, and if people choose not to listen there's nothing more
> I can do.
Lets summarize your main arguments from two threads -
"irq_controller_lock" and this one:
(sorry, I summarized since I somehow accidently lost traack of
"irq_controller_lock" thread and want to be sure I haven't missed anything)
1) if we drop ide_controller_lock we need to add per-chip lock due to
read-modify-write issue
true
2) per-descriptor lock will not bring gains since
a) SMP - almost nonexistent at the moment
As Daniel said - why not look to the future - did anybody expect 3 month
ago RT enchancement for Linux?! progress is too quick - and again from
the perspective of SMP - irq_controller_lock is defective.
b) lots of contention on request_irq/free_irq - rare
seems true
c) multiple devices on the same interrupt line - rare
seems true
But in a whole it's not so unambiguously what outweighs - b)&c) against
contra a)
3) per chip lock in combination with per descriptor lock
a) decreases peformance
why not to lock per-chip lock only for chips indeed require this (i.e.
with read/modify/write/) and drop the locking otherwise?!
b) (quoatition):
"Yes, and then audit that no one uses different irqchip structures
covering the same register (consider a read-modify-write mask
register where some IRQs are edge and others are level riggered.)"
such a register and a chip have ono-to-one relationship, do they? chip
lock is something connected to _the_ chip. The above situation is
definitly up to a developer and his own _fault_.
4) ARM IRQs are already "threaded"
As you said: can we _please_ get the terminology right? As Nicolas
pointed you were talking about completely different "threaded".
Eugeny
prev parent reply other threads:[~2005-02-10 8:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-05 18:36 Preempt Real-time for ARM Daniel Walker
2005-02-09 11:28 ` Thomas Gleixner
2005-02-09 11:31 ` Ingo Molnar
2005-02-09 11:53 ` Thomas Gleixner
2005-02-09 12:50 ` Russell King
2005-02-09 14:07 ` Thomas Gleixner
2005-02-09 17:41 ` Daniel Walker
2005-02-09 19:44 ` Russell King
2005-02-10 8:21 ` Eugeny S. Mints [this message]
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=420B196C.2030202@ru.mvista.com \
--to=emints@ru.mvista.com \
--cc=dwalker@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mingo@elte.hu \
--cc=rmk+lkml@arm.linux.org.uk \
--cc=sdietrich@mvista.com \
--cc=tglx@linutronix.de \
/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.