From: Michael Ellerman <mpe@ellerman.id.au>
To: Sam Bobroff <sam.bobroff@au1.ibm.com>
Cc: mikey@neuling.org, azanella@linux.vnet.ibm.com,
linuxppc-dev@lists.ozlabs.org, matt@ozlabs.org
Subject: Re: [PATCH v2 1/4] powerpc/tm: Abort syscalls in active transactions
Date: Sat, 04 Apr 2015 20:14:32 +1100 [thread overview]
Message-ID: <1428138872.19454.0.camel@ellerman.id.au> (raw)
In-Reply-To: <cb32074cdf25c5b5707904ea618f3c375daa6126.1427685637.git.sam.bobroff@au1.ibm.com>
On Mon, 2015-03-30 at 14:20 +1100, Sam Bobroff wrote:
> @@ -145,6 +146,24 @@ END_FW_FTR_SECTION_IFSET(FW_FEATURE_SPLPAR)
> andi. r11,r10,_TIF_SYSCALL_DOTRACE
> bne syscall_dotrace
> .Lsyscall_dotrace_cont:
> +#ifdef CONFIG_PPC_TRANSACTIONAL_MEM
> +BEGIN_FTR_SECTION
> + b 1f
> +END_FTR_SECTION_IFCLR(CPU_FTR_TM)
> + extrdi. r11, r12, 1, (63-MSR_TS_T_LG) /* transaction active? */
> + beq+ 1f
> +
> + /* Doom the transaction and don't perform the syscall: */
> + mfmsr r11
> + li r12, 1
> + rldimi r11, r12, MSR_TM_LG, 63-MSR_TM_LG
> + mtmsrd r11, 0
> + li r11, (TM_CAUSE_SYSCALL|TM_CAUSE_PERSISTENT)
> + tabort. r11
TABORT please, otherwise old toolchains can't build it.
cheers
next prev parent reply other threads:[~2015-04-04 9:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-30 3:20 [PATCH v2 0/4] powerpc/tm: Abort syscalls in active transactions Sam Bobroff
2015-03-30 3:20 ` [PATCH v2 1/4] " Sam Bobroff
2015-04-04 9:14 ` Michael Ellerman [this message]
2015-03-30 3:20 ` [PATCH v2 2/4] selftests/powerpc: Move get_auxv_entry() to harness.c Sam Bobroff
2015-03-30 3:20 ` [PATCH v2 3/4] selftests/powerpc: Add transactional syscall test Sam Bobroff
2015-03-30 3:20 ` [PATCH v2 4/4] powerpc/tm: Correct minor documentation typos Sam Bobroff
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=1428138872.19454.0.camel@ellerman.id.au \
--to=mpe@ellerman.id.au \
--cc=azanella@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=matt@ozlabs.org \
--cc=mikey@neuling.org \
--cc=sam.bobroff@au1.ibm.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;
as well as URLs for NNTP newsgroup(s).