From: David Miller <davem@davemloft.net>
To: mathieu.desnoyers@polymtl.ca
Cc: linux-kernel@vger.kernel.org, mingo@elte.hu
Subject: Re: [PATCH]: Sparc64 immediate values
Date: Tue, 13 May 2008 15:29:49 -0700 (PDT) [thread overview]
Message-ID: <20080513.152949.155579984.davem@davemloft.net> (raw)
In-Reply-To: <20080513123615.GA29334@Krystal>
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.
next prev parent reply other threads:[~2008-05-13 22:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 11:40 David Miller
2008-05-13 12:36 ` Mathieu Desnoyers
2008-05-13 22:29 ` David Miller [this message]
2008-06-19 12:42 ` Mathieu Desnoyers
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=20080513.152949.155579984.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@polymtl.ca \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®