Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1896427rdb; Mon, 9 Oct 2023 06:30:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMMvIsxg5VdGR3L8OQI5qwUHO/Pp2kc/wbiwP6gYC8bu8Rv2YghLu635Oxuytuo0561jul X-Received: by 2002:a05:6a20:9699:b0:161:2bed:6b36 with SMTP id hp25-20020a056a20969900b001612bed6b36mr12623367pzc.31.1696858243528; Mon, 09 Oct 2023 06:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696858243; cv=none; d=google.com; s=arc-20160816; b=WoVOWNmdYF1I0lVabTZ1lGl6bhhBnQtLyjqROP+WCnov43TqVA98LpEKxqzNacp8Rl uSa+yl74g4svYHujBGkKZvZL2OxvnMmvdb7iQblZhcQWf24JpkxwbZAAeG0owoybOre5 9RkdQ5a7f5jOnrlc2CdfrTxwGK1F0dpGIq2Ly/4ZOYM/cDEk4hFm8aJeV8TSgFDOtzor advs99Udtsbn78y6X2S0MQBrJ9PnUT3E5A95qTwPUr2X6dekfFeBhFbH54U1phWvHoUd EmGLwXs9QrhkX05QnAVygoccFdt8Kb4z5yXF+CXSRWPOxDAN4EQ0jXA60U0jW2iyFqM8 iLOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=QMIAR6faDzjxj5Wq0xZOl9AAzSaJlIJLKMtHkBOVBvI=; fh=KABUWpLWBLx9esiuzYMS9Tc6ATaHsOLeL6I+5dQz1yg=; b=kIWsMXUAagBSejdEW0+YilF2mczeDxYhg4RO9ncxzqp4IXcu/Nia528yuWd0Li8WZG aNwI6Wt08sDl2wJqYoRxu4gdCPiIW3zzKkcAPBnenfi/fL58jpTYhGjbg+dwK88j7FPL 82kexzJ4gnYFKaw9wPlv5fRjDVTrUVz4vnnUKykIY+TotO/bLUwrieGe+vrF66seoEn4 PSNfAfj6ltK4cHwjB44YRxES6tRIf3DsGtqLckWV0Y5YVcKQaD8LiD1CxfFuES3NETqh ddlvZgJKkbpuTyiNqEx1GvNIxlgkiSdeuMngW2CPUHmTGWWqzv2OoD9T2RVGI4zybVFi 3UIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KXDAW8bq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id kt4-20020a170903088400b001c60c5726b8si9044856plb.5.2023.10.09.06.30.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 06:30:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KXDAW8bq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3068A80EA78F; Mon, 9 Oct 2023 06:30:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377014AbjJINaa (ORCPT + 99 others); Mon, 9 Oct 2023 09:30:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376901AbjJINa1 (ORCPT ); Mon, 9 Oct 2023 09:30:27 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69AEAB7 for ; Mon, 9 Oct 2023 06:30:26 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPS id 1135BC433CB; Mon, 9 Oct 2023 13:30:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696858226; bh=C39SPpzW99vurbXbnnvIqZlQvyv6UcGtJqYlt3AsiaU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=KXDAW8bqXCIGms7jk5QAOFHZd2FZbviViTXgR5WMHGGl8Qxd5MXTHhJGS+27kOzC2 vXuPUOi3QVwJWRBH87coO+uUp8ifGFD4thAJoTtyxwxck3Bgg+mwPR1YB35rPl7C/5 ypRUmyLRSuwc4CWpa7XVXIQWrVsr03NMXAcXA6Tja6liZGY2BDou003VnYJd6FMnvx Qd+tmyXnPR5oB36DVJqOVqi4+P/pg4QEoYnMpgjW0e/xrV8LAznH+c1kf48cC8xgyd TvxBmz/OB7BeZUwCdUksPIw+wvpSjV6CSyn9lYh94ocSq30j4VsWlpslNzE8hThmf0 ruAWACqdmhm0Q== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id E7E12E11F46; Mon, 9 Oct 2023 13:30:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH bpf 0/2] riscv, bpf: Properly sign-extend return values From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169685822594.15728.14523871698572342357.git-patchwork-notify@kernel.org> Date: Mon, 09 Oct 2023 13:30:25 +0000 References: <20231004120706.52848-1-bjorn@kernel.org> In-Reply-To: <20231004120706.52848-1-bjorn@kernel.org> To: =?utf-8?b?QmrDtnJuIFTDtnBlbCA8Ympvcm5Aa2VybmVsLm9yZz4=?=@ci.codeaurora.org Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, pulehui@huawei.com, bjorn@rivosinc.com, linux-kernel@vger.kernel.org, luke.r.nels@gmail.com, xi.wang@gmail.com, linux-riscv@lists.infradead.org X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 06:30:39 -0700 (PDT) X-Spam-Level: ** Hello: This series was applied to bpf/bpf.git (master) by Daniel Borkmann : On Wed, 4 Oct 2023 14:07:04 +0200 you wrote: > From: Björn Töpel > > The RISC-V architecture does not expose sub-registers, and hold all > 32-bit values in a sign-extended format [1] [2]: > > | The compiler and calling convention maintain an invariant that all > | 32-bit values are held in a sign-extended format in 64-bit > | registers. Even 32-bit unsigned integers extend bit 31 into bits > | 63 through 32. Consequently, conversion between unsigned and > | signed 32-bit integers is a no-op, as is conversion from a signed > | 32-bit integer to a signed 64-bit integer. > > [...] Here is the summary with links: - [bpf,1/2] riscv, bpf: Sign-extend return values https://git.kernel.org/bpf/bpf/c/2f1b0d3d7331 - [bpf,2/2] riscv, bpf: Track both a0 (RISC-V ABI) and a5 (BPF) return values https://git.kernel.org/bpf/bpf/c/7112cd26e606 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html