From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
To: David Miller <davem@davemloft.net>
Cc: linux-kernel@vger.kernel.org, mingo@elte.hu
Subject: Re: [PATCH]: Sparc64 immediate values
Date: Thu, 19 Jun 2008 08:42:53 -0400 [thread overview]
Message-ID: <20080619124253.GA13433@Krystal> (raw)
In-Reply-To: <20080513.152949.155579984.davem@davemloft.net>
Hi David,
I'm picking this patch up in my LTTng patchset for testing.
Thanks,
Mathieu
* David Miller (davem@davemloft.net) wrote:
> From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
> Date: Tue, 13 May 2008 08:36:15 -0400
>
> > However, it does not protect from having a thread preempted in the
> > middle of this instruction sequence and therefore to see incoherent
> > values.
>
> Yes, that makes such schemes unworkable, how hum...
>
> > Are there non-maskable interrupts on sparc64 ?
>
> Yes, and no. When the PSTATE_IE bit is cleared in the
> processor state register, no interrupts whatsoever are
> recognized by the processor. This is off only during
> trap entry/exit sequences, and some other special bits
> of code.
>
> > The one thing we could do to allow such updates without using
> > stop_machine is to create something similar to the read seqlock using
> > immediate values.
>
> Yes I saw such suggestions in the comments of the immediate code,
> you don't have to describe such things all over again.
>
> Doing something so heavy like this in the "fast path" is completely
> pointless in my opinion.
>
> Better to keep brainstorming on a scheme that works without adding any
> instructions to the immediate load sequence. If you add instructions,
> fetching the instructions themselves become just as expensive, if not
> moreso, than the load we are eliminating.
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
prev parent reply other threads:[~2008-06-19 12:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 11:40 [PATCH]: Sparc64 immediate values David Miller
2008-05-13 12:36 ` Mathieu Desnoyers
2008-05-13 22:29 ` David Miller
2008-06-19 12:42 ` Mathieu Desnoyers [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=20080619124253.GA13433@Krystal \
--to=mathieu.desnoyers@polymtl.ca \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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.