From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Viktor Rosendahl <Viktor.Rosendahl@nokia.com>,
ext Tony Lindgren <tony@atomide.com>,
"Moiseichuk Leonid (Nokia-D/Helsinki)"
<leonid.moiseichuk@nokia.com>,
"Kallioinen Juha (Nokia-D/Helsinki)" <juha.kallioinen@nokia.com>,
"Siamashka Siarhei (Nokia-D/Helsinki)"
<siarhei.siamashka@nokia.com>,
"Tamminen Eero (Nokia-D/Helsinki)" <eero.tamminen@nokia.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.arm.linux.org.uk"
<linux-arm-kernel@lists.arm.linux.org.uk>
Subject: Re: [PATCH] ARM fix syscall trace return value
Date: Tue, 17 Feb 2009 19:40:40 +0000 [thread overview]
Message-ID: <20090217194040.GA14613@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20090217193015.GB18353@Krystal>
On Tue, Feb 17, 2009 at 02:30:15PM -0500, Mathieu Desnoyers wrote:
> I had the same result as you with the ccnt-based clock I am currently
> developing, so I went back to a more "solid" and atomic
> atomic_add_return clock. But I noticed that we still had entry/exit with
> the same timestamps, so I was really unsure about what was happening,
> because there is no trace corruption and because I have never, ever,
> seen that kind of problem on any other architecture (x86, powerpc,
> mips...). So I fixed the syscall_trace exit parameter,
Correction: you broke syscall_trace exit by corrupting the syscall number
stored in the thread_info.
> which now makes sure there is a dependency on the return value.
I've no idea what dependency you're talking about. ARM is for the most
part a very simple architecture and doesn't really have any dependencies.
The only kind it has are those which are automatically fixed up by the
hardware (so a load followed by an immediate use causes a pipeline stall.)
So I really can't figure out what you're going on about. On top of that
you're trying to make things do stuff in ways they weren't designed. Your
bug report makes zero sense to me.
> But I want to find out
> why the atomic add return failed to be atomic in that particular
> condition. I suspect there is a missing memory barrier in atomic.h.
In a single CPU context, memory barriers to the same location on ARM
don't have any effect as far as program accesses are concerned.
So again we disagree.
So, how about you tell me exactly what you're doing, give me pointers to
whatever test is failing, tell me about your hardware that you're testing
on.
Until that happens, I'm disinclined to believe any of this reported "bug".
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
next prev parent reply other threads:[~2009-02-17 19:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-17 18:18 [PATCH] ARM fix syscall trace return value Mathieu Desnoyers
2009-02-17 19:02 ` Russell King
2009-02-17 19:22 ` Viktor Rosendahl
2009-02-17 19:30 ` Mathieu Desnoyers
2009-02-17 19:40 ` Russell King [this message]
2009-02-17 20:08 ` 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=20090217194040.GA14613@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=Viktor.Rosendahl@nokia.com \
--cc=eero.tamminen@nokia.com \
--cc=juha.kallioinen@nokia.com \
--cc=leonid.moiseichuk@nokia.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@polymtl.ca \
--cc=siarhei.siamashka@nokia.com \
--cc=tony@atomide.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox