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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 41EE0C4345F for ; Fri, 12 Apr 2024 20:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=X+3qIrgMWGEq2jPnrp1jKWTIoAMgTT1yOtwRSVg4ZsM=; b=Bvk1YBDagOAopi cftTkyVSWosB3HDO5bloHbG6vHtvaOD9nwdDpHNOfimXyu6lcMSIGJs+2viNt1p6AAgdM2WW1y1rb DiUgTPWIenFouvK/MzYTCZ+x/136q3vTAlhGJWwX2YvusYaqXgD0c4k8AC5hDvrcyKnec/ZX+lt0H qGaFf7mR94xYO6Yd/rBlUFUutX7tKhn8L5WOefY6dwhGepYjF3EVJw61Zo1USniYRpb+yjDHFZ8bV 0dbZkFjdGAd2NJFWuMoibYfIh6YDWPawU8pX44VPWnun+qfGtxh8B52Ql7QtWZtA4hDV5cATxCmtY cMhKvPqE6hZQjx4vVlOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvNtf-00000001H1Q-2XXM; Fri, 12 Apr 2024 20:53:19 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvNtc-00000001GyK-1J8d for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2024 20:53:17 +0000 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6ed267f2936so1109689b3a.3 for ; Fri, 12 Apr 2024 13:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712955188; x=1713559988; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=kuI1xDSDY3wZqRxOoGKgeFXQbOBRCo2OPPgj3TfcWU4=; b=VpCRZAOekpvX72em/uvVnoBGUda6w3UXTcI/kPkh4SeGgCfDKVncrrV6BK6+PcAQHT s4Ndy652ixs3HLwiFGawhqxxAwwM/DcM62E/6rUaGpPw7hHVrVz+OYevIglStF/7m8yD mXtNAAtqXXZ5dB8R/nCvsVEYytuqNL0sF42ndGP9pbvdj6n9CM8He7J4ruhUgV6a+PjG RKTmLN7t6FDM9g85RzVFWaEwcTpsL4r24HD5GuftFXsc37/6k3x24pycjNsKEQNY9NWc Mjxtqu61cGXrzJbPYTdJD+4ASs9/5q3dX9ZGXYJd28VPPUUrcpDVd98YZe40jhxm+VBd RIng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712955188; x=1713559988; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kuI1xDSDY3wZqRxOoGKgeFXQbOBRCo2OPPgj3TfcWU4=; b=OFjQ2TGsQ08wWy/FOS7hnk6ztivhRzT22mnZE1/xZGFCT7LbP7Z4N0mYfPKbxU0+8F oDnGOZi4bv55ut9EnTVLO1dq6pRp7LgIi2gj6SZJI+tGUwsKvBnwalISljkPXK56HYj7 MrTzbjOegyNAN5Vv93Pu35fvsje7Dp6uEr8zHAfCi8ewhz4Mu77qUpF74Af54AWMrvRU g9jX0eo1+RiFWlelO0mv2hpyUOsx3JHAx3hNWZnTw8Gx2IiJ59gtMBsDeeRuPkodOKWF nT73ioBzsQ0+xCSGdnqN9VIqxSlcT/pqRtkTE/Im35uIpypnXpbYgrQ0xsar6aMXqk/G ZNkg== X-Forwarded-Encrypted: i=1; AJvYcCVSZ/4Pd0DaOBR3CmbmE2fMIZyIPXIRHCeRerUcERMF6AEEuUChMTSuKxx/dCnNEjnsDyuEVoB8V1FgqIQdHwk3RG1wkKvLAvYne6cEihHhAXhZW0Q= X-Gm-Message-State: AOJu0Yz234frLCtT4zn2NOnHyXQ2AJny21zvBItwoYjG9/ZpsRJiM+1s ilksWrE6wfIiToDr9jqE1UYfcECpNZWDLd302drjt/YsyYlRExroMhWaOfjbnUo= X-Google-Smtp-Source: AGHT+IHrp3HzycZe7Jfb+XseUZGp1zZGIQ3nFRwoibOMYKPLe2QkUbH6yPsYO0522TOlVaFgwYmSxw== X-Received: by 2002:a05:6a00:1798:b0:6ea:bdbc:6a4 with SMTP id s24-20020a056a00179800b006eabdbc06a4mr4030047pfg.13.1712955187671; Fri, 12 Apr 2024 13:53:07 -0700 (PDT) Received: from ghost ([50.145.13.30]) by smtp.gmail.com with ESMTPSA id j16-20020a62b610000000b006ecceed26bfsm3264351pff.219.2024.04.12.13.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 13:53:07 -0700 (PDT) Date: Fri, 12 Apr 2024 13:53:03 -0700 From: Charlie Jenkins To: Conor Dooley Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Evan Green , =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Jonathan Corbet , Shuah Khan , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 12/19] riscv: Create xtheadvector file Message-ID: References: <20240411-dev-charlie-support_thead_vector_6_9-v1-0-4af9815ec746@rivosinc.com> <20240411-dev-charlie-support_thead_vector_6_9-v1-12-4af9815ec746@rivosinc.com> <20240412-thirty-sacrament-db052c7fe6fe@wendy> <20240412-displease-sensually-33d91fc3fe63@spud> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240412-displease-sensually-33d91fc3fe63@spud> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240412_135316_368460_3AF96280 X-CRM114-Status: GOOD ( 28.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Apr 12, 2024 at 08:00:46PM +0100, Conor Dooley wrote: > On Fri, Apr 12, 2024 at 11:24:35AM -0700, Charlie Jenkins wrote: > > On Fri, Apr 12, 2024 at 12:30:32PM +0100, Conor Dooley wrote: > > > On Thu, Apr 11, 2024 at 09:11:18PM -0700, Charlie Jenkins wrote: > > > > These definitions didn't fit anywhere nicely, so create a new file to > > > > house various xtheadvector instruction encodings. > > > > > > > > Signed-off-by: Charlie Jenkins > > > > --- > > > > arch/riscv/include/asm/xtheadvector.h | 25 +++++++++++++++++++++++++ > > > > 1 file changed, 25 insertions(+) > > > > > > > > diff --git a/arch/riscv/include/asm/xtheadvector.h b/arch/riscv/include/asm/xtheadvector.h > > > > new file mode 100644 > > > > index 000000000000..348263ea164c > > > > --- /dev/null > > > > +++ b/arch/riscv/include/asm/xtheadvector.h > > > > @@ -0,0 +1,25 @@ > > > > +/* SPDX-License-Identifier: GPL-2.0-only */ > > > > + > > > > +/* > > > > + * Vector 0.7.1 as used for example on T-Head Xuantie cores, uses an older > > > > + * encoding for vsetvli (ta, ma vs. d1), so provide an instruction for > > > > + * vsetvli t4, x0, e8, m8, d1 > > > > + */ > > > > +#define THEAD_VSETVLI_T4X0E8M8D1 ".long 0x00307ed7\n\t" > > > > +#define THEAD_VSETVLI_X0X0E8M8D1 ".long 0x00307057\n\t" > > > > + > > > > +/* > > > > + * While in theory, the vector-0.7.1 vsb.v and vlb.v result in the same > > > > + * encoding as the standard vse8.v and vle8.v, compilers seem to optimize > > > > + * the call resulting in a different encoding and then using a value for > > > > + * the "mop" field that is not part of vector-0.7.1 > > > > + * So encode specific variants for vstate_save and _restore. > > > > > > This wording seems oddly familiar to me, did Heiko not write this? > > > > Yeah, I wasn't sure how to attribute him. He wrote almost all of the > > lines in this file, but I put it together into this file. What is the > > standard way of doing that? > > The original patches have his sob and authorship, so I would at least > expect co-developed-by. Perfect, thank you for pointing me in the right direction. - Charlie _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel