Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3207022lqo; Tue, 21 May 2024 09:40:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDJkXZ4t1lKsC+kvAlRDdeIaIpPUra9c6/n4K3+rELL9qVXeRKNGYTe7HOSEDy+aAcHRtczfZEw9dS/4pgOm/pE+V0XzDexnkOc5gGzw== X-Google-Smtp-Source: AGHT+IFKIjYMaU2qzy/lxfs2pzX5Ar9QXGkqzogOqnMhs7yaJuqDlXgUHtEuf1T5VIJFyNU700Lu X-Received: by 2002:a25:27c2:0:b0:deb:43a9:e228 with SMTP id 3f1490d57ef6-dee4f506987mr40101388276.53.1716309609536; Tue, 21 May 2024 09:40:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716309609; cv=pass; d=google.com; s=arc-20160816; b=UF1nudNB8HxiYGqV0zVOLWTnKh7gE8sri7KLmcbhPN76aoIrtSGYSV5a5zF55/BlAC W7s0yuKlyiqXV6UerEtIKYDKgyBGLgtuFFz72xl+kixxIM9pr+/K6HwNwZjwFRoDocNn 5UjznH7Ai+SyvZwAjpOC4hUwLyxe93XoOqEYjJJC8zKrO4kuORzF6vaKAj5gcKv7MqiS J6/24lWCaE2D5Aj3xOKr/W0oX198muxGWEJNo6QRvCgkJrqT/OIwq0Pj8bbMnAfA9yNn 33LecOC/gQdc3OfH/6fAYMb3LL2e56eGjiZ4CDav8HyctWadl17sig2tvnxSfEumn9Mb 6AXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=DVQA79nAV89v/vOYQVh9+5YPKXdr+s2r4gOfo9ZPLpc=; fh=ZQGsr6BbK7KFqVVw5SMWF+ASd/vYI7iry5TFhcsn35M=; b=t7c1A+AGnSwg5whHM3VMuAoFRWoYDmCz8Ckvcwk/Fj3gwHrt81hqjaFKyKGuaw0cr5 0aoUHUvH/ts70kX5woR4eCx32WbucIuHCAht2JlZSTfEpfY1GNU8P7MXtde5FlEluOzY WY4KQEMHVV418uDVPekPbQ8Plyc5Xo57umibyiJaWbs1D59D4zHcOqSRRz8H2JYTZ3KO 1GBy6OruvU5S9ezf6idz3P59snbD/z1Bl5zn9aqHlzZNNnDDzuCgtU7ei+twxquZCjwx 3UnJEdB3XVDfbSQKTDQpWPQXeFbF4qIZHMwvEIPVqXTaBp+vzl25O4VhqGOxaQ1XhgzB xWJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KWzoU0PZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185225-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ab78a98a0fsi9956016d6.65.2024.05.21.09.40.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:40:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KWzoU0PZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185225-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185225-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3CD911C20906 for ; Tue, 21 May 2024 16:40:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71ED5146D71; Tue, 21 May 2024 16:40:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KWzoU0PZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D8AB1CA80; Tue, 21 May 2024 16:40:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716309600; cv=none; b=e0C338iPyLdTUN/qILc/vdIjWK9pTgwQnaI7fPGyHH5WO2wPLY35JPYvnRiC7eJnCZNxPcAkmITXAOLZsFWhnaBiM3KQdJAG5/fdBirjzQRm3K/DaousxJ/pQNerVO5fEiGz3ydX60Ddlqub5AqZ30Fa3W76gGo6Av7mouLNZh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716309600; c=relaxed/simple; bh=DVQA79nAV89v/vOYQVh9+5YPKXdr+s2r4gOfo9ZPLpc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=URjMECeaIbkAOCIZoHVNmXyY3s+JYpBa4RFf1vfdASEi4bmYWttP2IxsnaKqwBhSThKRJ97fQrT6DqDCduEgWOGz0AWDdpBPxvsJb7T2HGcSCgVh5cm6xqw/zg/IkEcBW27xodGagqtjo0AB59zUD7kj4sPz2YQnlltowjlTJE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KWzoU0PZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85C43C2BD11; Tue, 21 May 2024 16:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716309600; bh=DVQA79nAV89v/vOYQVh9+5YPKXdr+s2r4gOfo9ZPLpc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KWzoU0PZy2xmR2e8CBeSJLQmhF/d1L+1C+0YQj2XyBqFYvJ17jZL7lrKjrI9qkYBw ttqikMltUBSFM+kdw5gTV/KOn63eq776q6j6RWaFnN//Dq4IFCe/8tBkcQ0mR5CCLx A+mqNZtxTpDzEmVPzAApsWjLg1BgnIYxMY69WH2FdHWMG4gKwQ7m+fiQ8RCpLhirCc 7P8b9jj1WXz5hc+Earjs/zDbIjIDkCVo+rEqZOD2qM8Q7MN0BRkigcJtCsK9midVFx kb+hQD5d1jPgzJcYqqpE3xSlbptbR+XxiWpwKL3RF7DZo1/EVnSIcL5zEvV/BnQe4O 3mGSkZw6dxQWQ== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Xiao Wang , paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, luke.r.nels@gmail.com, xi.wang@gmail.com Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, pulehui@huawei.com, haicheng.li@intel.com, Xiao Wang Subject: Re: [PATCH] riscv, bpf: Introduce shift add helper with Zba optimization In-Reply-To: <20240520071631.2980798-1-xiao.w.wang@intel.com> References: <20240520071631.2980798-1-xiao.w.wang@intel.com> Date: Tue, 21 May 2024 18:39:56 +0200 Message-ID: <874jardspv.fsf@all.your.base.are.belong.to.us> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Xiao Wang writes: > Zba extension is very useful for generating addresses that index into arr= ay > of basic data types. This patch introduces sh2add and sh3add helpers for > RV32 and RV64 respectively, to accelerate pointer array addressing. > > Signed-off-by: Xiao Wang This is dependent on [1], and given it hasn't been accepted yet, I'd make this patch part of that series. Bj=C3=B6rn [1] https://lore.kernel.org/linux-riscv/20240516090430.493122-1-xiao.w.wang= @intel.com/