Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3828650ybi; Fri, 5 Jul 2019 15:03:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4siI4pK+KrLrwf0r4BQZF0tfLmo3X8EctnX6ut1eM5SQdmUKvXyqEa24ithJyDMblLY9D X-Received: by 2002:a63:211c:: with SMTP id h28mr7740051pgh.438.1562364203673; Fri, 05 Jul 2019 15:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562364203; cv=none; d=google.com; s=arc-20160816; b=V9WfMAkiJlKf7O5K+8GNGjMLjCVSk6ocd6Ib/mvlPWrdpl058jftfXDNp2yJlfmPKu /yDs0WlclG0UDi9a1YttJYBLRYLiWL9WALO8eBcn5ZoytunOyAIxClsjo98ccTAC11px ARxzAMoh6AeSHMQzY/Zci4ZP4gFOGZHzi1oe6zIS5UVuexdftMaBdMRyi3Q70Ll7pf2l 49hx9UKasabHRszLWPfMvhmK78NV/Qy6ZnYnY2nfiFst4Ui0152PPXX4TxmYICKk3/ql 5Ae1HXRYwrpqJML53A6x83ZDGTL7rtasc8U5MFxvzjUqvfbI35ULApuVa62insv5JTXP 9H5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=zIli9B/uKHPQ/1lY0t7NjhaOmHkqtpoiXWu7MpktRqM=; b=kY2M1ROwxZ5J0SFtLBRc2VqAoQB6Qr6YuDceiAT72CQUv3C2z3ViBsl3sfUbrj0A3O u/rIumIvN2+saI7xGrSu9Y3zMvj6WuVkUdcR4J4QWJ8hX59WWahM5Biowbb9FxzWUWsq 1ojN4pldu4AKYHYnVlz1pOcZm7zejulWKrg4hYdvNaDNT2lZQxX//CXLAkHSF8S0pcZh 3mji4VrKt2VdsDYlovEogJXPWBI5q+Za4qNG6/s6hlKPWsFIHOdGs/G9bPzzuE1eMZ6l ztRTWzO652Qd/Wn/ddItXfiKNX1/rkAkyJM69g0bt1EmlnEtfj3/G7bP/2OUVIJMTJia 5s6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6si8954943pjq.108.2019.07.05.15.03.08; Fri, 05 Jul 2019 15:03:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728215AbfGEWBT (ORCPT + 99 others); Fri, 5 Jul 2019 18:01:19 -0400 Received: from www62.your-server.de ([213.133.104.62]:53296 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbfGEWBT (ORCPT ); Fri, 5 Jul 2019 18:01:19 -0400 Received: from [88.198.220.130] (helo=sslproxy01.your-server.de) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1hjWGZ-0003Tn-0E; Sat, 06 Jul 2019 00:01:15 +0200 Received: from [178.193.45.231] (helo=linux.home) by sslproxy01.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1hjWGY-0004Kx-MV; Sat, 06 Jul 2019 00:01:14 +0200 Subject: Re: [PATCH bpf-next] Enable zext optimization for more RV64G ALU ops To: Luke Nelson , linux-kernel@vger.kernel.org Cc: Luke Nelson , Song Liu , Jiong Wang , Xi Wang , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org References: <20190705001803.30094-1-luke.r.nels@gmail.com> From: Daniel Borkmann Message-ID: Date: Sat, 6 Jul 2019 00:01:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20190705001803.30094-1-luke.r.nels@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.100.3/25501/Fri Jul 5 10:01:52 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/05/2019 02:18 AM, Luke Nelson wrote: > commit 66d0d5a854a6 ("riscv: bpf: eliminate zero extension code-gen") > added the new zero-extension optimization for some BPF ALU operations. > > Since then, bugs in the JIT that have been fixed in the bpf tree require > this optimization to be added to other operations: commit 1e692f09e091 > ("bpf, riscv: clear high 32 bits for ALU32 add/sub/neg/lsh/rsh/arsh"), > and commit fe121ee531d1 ("bpf, riscv: clear target register high 32-bits > for and/or/xor on ALU32") > > Now that these have been merged to bpf-next, the zext optimization can > be enabled for the fixed operations. > > Cc: Song Liu > Cc: Jiong Wang > Cc: Xi Wang > Signed-off-by: Luke Nelson Applied, thanks!