From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DC60C433E0 for ; Tue, 19 May 2020 03:21:55 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EC58A206D4 for ; Tue, 19 May 2020 03:21:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=neuling.org header.i=@neuling.org header.b="m4WfQPBN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EC58A206D4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=neuling.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49R1Q76Lj9zDqQy for ; Tue, 19 May 2020 13:21:51 +1000 (AEST) Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49R1NC3jgnzDqnM for ; Tue, 19 May 2020 13:20:11 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=neuling.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=neuling.org header.i=@neuling.org header.a=rsa-sha256 header.s=201811 header.b=m4WfQPBN; dkim-atps=neutral Received: from neuling.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 49R1NB5ZNZz9sTT; Tue, 19 May 2020 13:20:10 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=neuling.org; s=201811; t=1589858410; bh=3qHsOTSG7TkxlDU5tHr3S2esCt8I+uWhI8TSuSsGQm8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=m4WfQPBNvXg2ARkSFCXNqDD9Gcj4aGHKev2WxcBhlYso0T8scDdxr75IB9eRdM6X5 qV/g/kle8YQszZq5dqmxem/vnms925gyy+vxU9/nyAOZRwfLmiIsvFPi0QXJi32rKn rsEHjCN9BybLGWrZFyUSPxSTlaxXvhPVRecYHAVAhKVriiFDDeka7Noq/eatrRl+bx w6sk92OOR2XMXVVoCl8zAmf43oAbh5InyuDKCNFJMSyLP6ZZOY94BtSyl7AbhtECiR VQWVxQvJPDWFN9CV/IJoSJtO+QxwqruzKu1jrGZn+R8ke6Qzw+xPHkb7GzulXPO57G J8NvCZTDg/Y3g== Received: by neuling.org (Postfix, from userid 1000) id 8B31D2C04C2; Tue, 19 May 2020 13:20:10 +1000 (AEST) Message-ID: <725901ebb965bf65f861369c8cea17af9d3d47c6.camel@neuling.org> Subject: Re: [PATCH v2 1/7] powerpc: Add new HWCAP bits From: Michael Neuling To: Alistair Popple , linuxppc-dev@lists.ozlabs.org Date: Tue, 19 May 2020 13:20:10 +1000 In-Reply-To: <20200519003157.31946-2-alistair@popple.id.au> References: <20200519003157.31946-1-alistair@popple.id.au> <20200519003157.31946-2-alistair@popple.id.au> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: npiggin@gmail.com, aneesh.kumar@linux.ibm.com Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, 2020-05-19 at 10:31 +1000, Alistair Popple wrote: > POWER10 introduces two new architectural features - ISAv3.1 and matrix > multiply accumulate (MMA) instructions. Userspace detects the presence > of these features via two HWCAP bits introduced in this patch. These > bits have been agreed to by the compiler and binutils team. >=20 > Signed-off-by: Alistair Popple I've test booted this series + powerpc/next (30df74d67d) on top of powervm = and OPAL on a P10 simulator. In both cases, it enables MMA and prefix instructions and advertises them v= ia HWCAP2 MMA + ISA 3.1. Hence: Tested-by: Michael Neuling > --- > arch/powerpc/include/uapi/asm/cputable.h | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/arch/powerpc/include/uapi/asm/cputable.h > b/arch/powerpc/include/uapi/asm/cputable.h > index 540592034740..2692a56bf20b 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 sta= te > */ > +#define PPC_FEATURE2_ARCH_3_1 0x00040000 /* ISA 3.1 */ > +#define PPC_FEATURE2_MMA 0x00020000 /* Matrix Multiply Accumulate > */ > =20 > /* > * IMPORTANT!