linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Add new HWCAP bits
@ 2020-03-31  9:42 Alistair Popple
  2020-03-31 15:12 ` Tulio Magno Quites Machado Filho
  0 siblings, 1 reply; 4+ messages in thread
From: Alistair Popple @ 2020-03-31  9:42 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: mikey, Alistair Popple

Two new future architectural features requiring HWCAP bits are being
developed. Once allocated in the kernel firmware can enable these via
device tree cpu features.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
---
 arch/powerpc/include/uapi/asm/cputable.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/powerpc/include/uapi/asm/cputable.h b/arch/powerpc/include/uapi/asm/cputable.h
index 540592034740..8888c6fe10b2 100644
--- a/arch/powerpc/include/uapi/asm/cputable.h
+++ b/arch/powerpc/include/uapi/asm/cputable.h
@@ -50,6 +50,8 @@
 #define PPC_FEATURE2_DARN		0x00200000 /* darn random number insn */
 #define PPC_FEATURE2_SCV		0x00100000 /* scv syscall */
 #define PPC_FEATURE2_HTM_NO_SUSPEND	0x00080000 /* TM w/out suspended state */
+#define PPC_FEATURE2_ARCH_3_10		0x00040000 /* ISA 3.10 */
+#define PPC_FEATURE2_MMA		0x00020000 /* Matrix Multiply Accumulate */
 
 /*
  * IMPORTANT!
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc: Add new HWCAP bits
  2020-03-31  9:42 [PATCH] powerpc: Add new HWCAP bits Alistair Popple
@ 2020-03-31 15:12 ` Tulio Magno Quites Machado Filho
  2020-03-31 22:47   ` Michael Neuling
  0 siblings, 1 reply; 4+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2020-03-31 15:12 UTC (permalink / raw)
  To: Alistair Popple, linuxppc-dev; +Cc: , Alistair Popple, mikey

Alistair Popple <alistair@popple.id.au> writes:

> diff --git a/arch/powerpc/include/uapi/asm/cputable.h b/arch/powerpc/include/uapi/asm/cputable.h
> index 540592034740..8888c6fe10b2 100644
> --- a/arch/powerpc/include/uapi/asm/cputable.h
> +++ b/arch/powerpc/include/uapi/asm/cputable.h
> @@ -50,6 +50,8 @@
>  #define PPC_FEATURE2_DARN		0x00200000 /* darn random number insn */
>  #define PPC_FEATURE2_SCV		0x00100000 /* scv syscall */
>  #define PPC_FEATURE2_HTM_NO_SUSPEND	0x00080000 /* TM w/out suspended state */
> +#define PPC_FEATURE2_ARCH_3_10		0x00040000 /* ISA 3.10 */

I think this should have been:

#define PPC_FEATURE2_ARCH_3_1		0x00040000 /* ISA 3.1 */

-- 
Tulio Magno

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc: Add new HWCAP bits
  2020-03-31 15:12 ` Tulio Magno Quites Machado Filho
@ 2020-03-31 22:47   ` Michael Neuling
  2020-03-31 23:27     ` Alistair Popple
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Neuling @ 2020-03-31 22:47 UTC (permalink / raw)
  To: Tulio Magno Quites Machado Filho, Alistair Popple, linuxppc-dev

On Tue, 2020-03-31 at 12:12 -0300, Tulio Magno Quites Machado Filho wrote:
> Alistair Popple <alistair@popple.id.au> writes:
> 
> > diff --git a/arch/powerpc/include/uapi/asm/cputable.h
> > b/arch/powerpc/include/uapi/asm/cputable.h
> > index 540592034740..8888c6fe10b2 100644
> > --- a/arch/powerpc/include/uapi/asm/cputable.h
> > +++ b/arch/powerpc/include/uapi/asm/cputable.h
> > @@ -50,6 +50,8 @@
> >  #define PPC_FEATURE2_DARN		0x00200000 /* darn random number insn */
> >  #define PPC_FEATURE2_SCV		0x00100000 /* scv syscall */
> >  #define PPC_FEATURE2_HTM_NO_SUSPEND	0x00080000 /* TM w/out suspended
> > state */
> > +#define PPC_FEATURE2_ARCH_3_10		0x00040000 /* ISA 3.10 */
> 
> I think this should have been:
> 
> #define PPC_FEATURE2_ARCH_3_1		0x00040000 /* ISA 3.1 */

Agreed. That's the new name.

Sorry Al I should have caught that earlier.

Mikey

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc: Add new HWCAP bits
  2020-03-31 22:47   ` Michael Neuling
@ 2020-03-31 23:27     ` Alistair Popple
  0 siblings, 0 replies; 4+ messages in thread
From: Alistair Popple @ 2020-03-31 23:27 UTC (permalink / raw)
  To: Michael Neuling; +Cc: Tulio Magno Quites Machado Filho, linuxppc-dev

On Wednesday, 1 April 2020 9:47:03 AM AEDT Michael Neuling wrote:
> On Tue, 2020-03-31 at 12:12 -0300, Tulio Magno Quites Machado Filho wrote:
> > Alistair Popple <alistair@popple.id.au> writes:
> > > diff --git a/arch/powerpc/include/uapi/asm/cputable.h
> > > b/arch/powerpc/include/uapi/asm/cputable.h
> > > index 540592034740..8888c6fe10b2 100644
> > > --- a/arch/powerpc/include/uapi/asm/cputable.h
> > > +++ b/arch/powerpc/include/uapi/asm/cputable.h
> > > @@ -50,6 +50,8 @@
> > > 
> > >  #define PPC_FEATURE2_DARN		0x00200000 /* darn random number insn */
> > >  #define PPC_FEATURE2_SCV		0x00100000 /* scv syscall */
> > >  #define PPC_FEATURE2_HTM_NO_SUSPEND	0x00080000 /* TM w/out suspended
> > > 
> > > state */
> > > +#define PPC_FEATURE2_ARCH_3_10		0x00040000 /* ISA 3.10 */
> > 
> > I think this should have been:
> > 
> > #define PPC_FEATURE2_ARCH_3_1		0x00040000 /* ISA 3.1 */
> 
> Agreed. That's the new name.
> 
> Sorry Al I should have caught that earlier.

No worries, I missed it too. Will send v2.

- Alistair

> Mikey





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-31 23:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31  9:42 [PATCH] powerpc: Add new HWCAP bits Alistair Popple
2020-03-31 15:12 ` Tulio Magno Quites Machado Filho
2020-03-31 22:47   ` Michael Neuling
2020-03-31 23:27     ` Alistair Popple

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).