Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1486099

Re: [PATCH v14 13/15] selftests/powerpc: Add ptrace tests for TM SPR registers

From Simon Guo <wei.guo.simon@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v14 13/15] selftests/powerpc: Add ptrace tests for TM SPR registers
Date 2016-09-19 04:40 +0200
Message-ID <siWEV-83L-1@gated-at.bofh.it> (permalink)
References <sgu0p-fL-3@gated-at.bofh.it> <sgu0p-fL-11@gated-at.bofh.it> <shaCl-4tt-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Sep 14, 2016 at 03:04:12PM +1000, Cyril Bur wrote:
> On Mon, 2016-09-12 at 15:33 +0800, wei.guo.simon@gmail.com wrote:
> > From: Anshuman Khandual <khandual@linux.vnet.ibm.com>
> > 
> > This patch adds ptrace interface test for TM SPR registers. This
> > also adds ptrace interface based helper functions related to TM
> > SPR registers access.
> > 
> 
> I'm seeing this one fail a lot, it does occasionally succeed but fails
> a lot on my test setup.
> 
> I use qemu on a power8 for most of my testing:
> qemu-system-ppc64 --enable-kvm -machine pseries,accel=kvm,usb=off -m
> 4096 -realtime mlock=off -smp 4,sockets=1,cores=2,threads=2 -nographic
> -vga none
Hi Cyril,

Sorry for the late response. I am just back from a vacation.
Strangely the case always succeed in my machine. I will try to 
reproduce it with your configuration.

> > +	if ((regs->tm_texasr != TM_SCHED) && (regs->tm_texasr !=
> > TM_KVM_SCHED))
> > +		return TEST_FAIL;
> 
> The above condition fails, should this test try again if this condition
> is true, rather than fail?
If you have the value of "regs->tm_texasr" in hand, please let
me know.

Thanks for the elaborated comment in other mails and I will 
work on that.

BR,
- Simon

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v14 13/15] selftests/powerpc: Add ptrace tests for TM SPR registers wei.guo.simon@gmail.com - 2016-09-12 09:40 +0200
  Re: [PATCH v14 13/15] selftests/powerpc: Add ptrace tests for TM  SPR registers Cyril Bur <cyrilbur@gmail.com> - 2016-09-14 07:10 +0200
    Re: [PATCH v14 13/15] selftests/powerpc: Add ptrace tests for TM SPR  registers Simon Guo <wei.guo.simon@gmail.com> - 2016-09-19 04:40 +0200

csiph-web