[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 2/2] target/s390x: support SHA-512 extensions
From: |
Jason A. Donenfeld |
Subject: |
Re: [PATCH v4 2/2] target/s390x: support SHA-512 extensions |
Date: |
Wed, 3 Aug 2022 14:47:40 +0200 |
On Wed, Aug 03, 2022 at 02:14:58PM +0200, Jason A. Donenfeld wrote:
> s.even = (unsigned long)src;
> s.odd = (unsigned long)src_len;
> asm volatile(
> " lgr 0,%[fc]\n"
> " lgr 1,%[pba]\n"
> "0: .insn rre,%[opc] << 16,0,%[src]\n"
> " brc 1,0b\n" /* handle partial completion */
> : [src] "+&d" (s.pair)
> : [fc] "d" (func), [pba] "d" ((unsigned long)(param)),
> [opc] "i" (CPACF_KIMD)
> : "cc", "memory", "0", "1");
>
> So I guess that means it'll just loop until it's done? Or do I need to
> return "1" from HELPER(msa)?
Looks like returning 3 did the trick. v5 incoming...
Jason
- Re: [PATCH v3] target/s390x: support PRNO_TRNG instruction, (continued)
- Re: [PATCH v3] target/s390x: support PRNO_TRNG instruction, Christian Borntraeger, 2022/08/02
- Re: [PATCH v3] target/s390x: support PRNO_TRNG instruction, David Hildenbrand, 2022/08/02
- Re: [PATCH v3] target/s390x: support PRNO_TRNG instruction, Jason A. Donenfeld, 2022/08/02
- Re: [PATCH v3] target/s390x: support PRNO_TRNG instruction, David Hildenbrand, 2022/08/02
- Re: [PATCH v3] target/s390x: support PRNO_TRNG instruction, Jason A. Donenfeld, 2022/08/02
- [PATCH v4 0/2] MSA EXT 5 for s390x, Jason A. Donenfeld, 2022/08/02
- [PATCH v4 1/2] target/s390x: support PRNO_TRNG instruction, Jason A. Donenfeld, 2022/08/02
- [PATCH v4 2/2] target/s390x: support SHA-512 extensions, Jason A. Donenfeld, 2022/08/02
- Re: [PATCH v4 2/2] target/s390x: support SHA-512 extensions, David Hildenbrand, 2022/08/03
- Re: [PATCH v4 2/2] target/s390x: support SHA-512 extensions, Jason A. Donenfeld, 2022/08/03
- Re: [PATCH v4 2/2] target/s390x: support SHA-512 extensions,
Jason A. Donenfeld <=
- [PATCH v5 1/2] target/s390x: support PRNO_TRNG instruction, Jason A. Donenfeld, 2022/08/03
- [PATCH v5 2/2] target/s390x: support SHA-512 extensions, Jason A. Donenfeld, 2022/08/03
- [PATCH 1/2] target/s390x: support PRNO_TRNG instruction, Jason A. Donenfeld, 2022/08/03
- [PATCH 2/2] target/s390x: support SHA-512 extensions, Jason A. Donenfeld, 2022/08/03
- [PATCH v6 1/2] target/s390x: support PRNO_TRNG instruction, Jason A. Donenfeld, 2022/08/03
- [PATCH v6 2/2] target/s390x: support SHA-512 extensions, Jason A. Donenfeld, 2022/08/03
- Re: [PATCH v6 2/2] target/s390x: support SHA-512 extensions, David Hildenbrand, 2022/08/05
- Re: [PATCH v6 2/2] target/s390x: support SHA-512 extensions, Jason A. Donenfeld, 2022/08/05
- [PATCH v7 1/2] target/s390x: support SHA-512 extensions, Jason A. Donenfeld, 2022/08/09
- [PATCH v7 2/2] target/s390x: support PRNO_TRNG instruction, Jason A. Donenfeld, 2022/08/09