Re: Serious problem with ticket spinlocks on ia64

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tony Luck
Date: Monday, August 30, 2010 - 3:43 pm

On Mon, Aug 30, 2010 at 2:41 PM, Petr Tesarik <ptesarik@suse.cz> wrote:

I don't see that in my kernel - but you raise a good point. The idea in this
code is that invala makes sure that we don't have a matching ALAT entry
on the first iteration of the loop, so we will do the load. Then we loop not
actually doing the access until the ALAT tells us that the location may
have changed, when we load again.  But this assumes that the compiler
didn't decide to re-use the register for something else in the loop. So
things may be a bit fragile if some aggressive optimization happen after
the routine is inlined.

Does Hedi's test fail for you if you drop the fancy ALAT trick?
I.e. just use "serve = *p;" in __ticket_spin_lock()? [& similar in
__ticket_spin_unlock_wait() if you want - but I don't think that
is ever used for siglock]

-Tony
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Aug 27, 6:37 am)
Re: Serious problem with ticket spinlocks on ia64, Hedi Berriche, (Fri Aug 27, 6:48 am)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Aug 27, 7:09 am)
Re: Serious problem with ticket spinlocks on ia64, Hedi Berriche, (Fri Aug 27, 7:31 am)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Aug 27, 7:40 am)
Re: Serious problem with ticket spinlocks on ia64, Hedi Berriche, (Fri Aug 27, 7:52 am)
RE: Serious problem with ticket spinlocks on ia64, Luck, Tony, (Fri Aug 27, 9:08 am)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Aug 27, 9:37 am)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Aug 27, 10:16 am)
Re: Serious problem with ticket spinlocks on ia64, Hedi Berriche, (Fri Aug 27, 11:20 am)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Aug 27, 12:40 pm)
RE: Serious problem with ticket spinlocks on ia64, Luck, Tony, (Fri Aug 27, 1:29 pm)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Aug 27, 1:41 pm)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Aug 27, 2:03 pm)
RE: Serious problem with ticket spinlocks on ia64, Luck, Tony, (Fri Aug 27, 2:11 pm)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Aug 27, 3:13 pm)
RE: Serious problem with ticket spinlocks on ia64, Luck, Tony, (Fri Aug 27, 4:26 pm)
RE: Serious problem with ticket spinlocks on ia64, Luck, Tony, (Fri Aug 27, 4:55 pm)
Re: Serious problem with ticket spinlocks on ia64, Hedi Berriche, (Fri Aug 27, 5:28 pm)
RE: Serious problem with ticket spinlocks on ia64, Luck, Tony, (Fri Aug 27, 10:01 pm)
RE: Serious problem with ticket spinlocks on ia64, Luck, Tony, (Mon Aug 30, 11:17 am)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Mon Aug 30, 2:41 pm)
Re: Serious problem with ticket spinlocks on ia64, Tony Luck, (Mon Aug 30, 3:43 pm)
Re: Serious problem with ticket spinlocks on ia64, Tony Luck, (Tue Aug 31, 3:17 pm)
Re: Serious problem with ticket spinlocks on ia64, Tony Luck, (Wed Sep 1, 4:09 pm)
Re: Serious problem with ticket spinlocks on ia64, Hedi Berriche, (Wed Sep 1, 5:26 pm)
Re: Serious problem with ticket spinlocks on ia64, Tony Luck, (Thu Sep 2, 5:06 pm)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Sep 3, 2:04 am)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Sep 3, 7:35 am)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Fri Sep 3, 7:52 am)
Re: Serious problem with ticket spinlocks on ia64, Tony Luck, (Fri Sep 3, 8:50 am)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Mon Sep 6, 7:47 am)
Re: Serious problem with ticket spinlocks on ia64, Petr Tesarik, (Tue Sep 7, 6:17 am)
Re: Serious problem with ticket spinlocks on ia64, Tony Luck, (Tue Sep 7, 10:35 am)
Re: Serious problem with ticket spinlocks on ia64, Tony Luck, (Wed Sep 8, 8:55 am)
Re: Serious problem with ticket spinlocks on ia64, Dave Jones, (Thu Sep 9, 7:55 pm)