aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason J. Herne <jjherne@linux.vnet.ibm.com>2017-02-21 09:00:54 -0500
committerChristian Borntraeger <borntraeger@de.ibm.com>2017-04-26 08:15:39 -0400
commitb112a2df28e6b5238ae4e68821ddd706a476d28c (patch)
tree9770df53c393a40311fa6fe28ec8076714c6d1ab
parent97da3854c526d3a6ee05c849c96e48d21527606c (diff)
s390/cpacf: query instructions use unique parameters for compatibility with KMA
The new KMA instruction requires unique parameters. Update __cpacf_query to generate a compatible assembler instruction. Signed-off-by: Jason J. Herne <jjherne@linux.vnet.ibm.com> Acked-by: Harald Freudenberger <freude@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
-rw-r--r--arch/s390/include/asm/cpacf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/include/asm/cpacf.h b/arch/s390/include/asm/cpacf.h
index e2dfbf280d12..175a5d773306 100644
--- a/arch/s390/include/asm/cpacf.h
+++ b/arch/s390/include/asm/cpacf.h
@@ -149,8 +149,8 @@ static inline void __cpacf_query(unsigned int opcode, cpacf_mask_t *mask)
149 149
150 asm volatile( 150 asm volatile(
151 " spm 0\n" /* pckmo doesn't change the cc */ 151 " spm 0\n" /* pckmo doesn't change the cc */
152 /* Parameter registers are ignored, but may not be 0 */ 152 /* Parameter regs are ignored, but must be nonzero and unique */
153 "0: .insn rrf,%[opc] << 16,2,2,2,0\n" 153 "0: .insn rrf,%[opc] << 16,2,4,6,0\n"
154 " brc 1,0b\n" /* handle partial completion */ 154 " brc 1,0b\n" /* handle partial completion */
155 : "=m" (*mask) 155 : "=m" (*mask)
156 : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (opcode) 156 : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (opcode)