From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KWzoU0PZ" 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/