Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3667193pxj; Tue, 1 Jun 2021 10:21:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlJ8gad+uKNzKqIWmPfvWY6nJA5tkwKHf1Rxvh92hJsshp7IBU2HBAcSJEB3X40W3zZSSi X-Received: by 2002:a05:6e02:ca8:: with SMTP id 8mr9152465ilg.115.1622568084886; Tue, 01 Jun 2021 10:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622568084; cv=none; d=google.com; s=arc-20160816; b=zuyURftk4yZPDPJiyALMvNd/+qqO4H2mbgtgTR/OYxhZiLklOM16cwvthFhs3Xb9qR lCMM4lcw2D51HOvYUWiQUGgW1m/p9HkZLuLQGNB5dmXhgohWtRoEi0aBf/dnZsxsDtCU pO1ssBd+EeIRRGVuqygKwGSMRI5ErpaV4NGRtSPHef2e6HlcaeA9TQhqKOmOsmqJBwcd RdY8FErlAWUI0fR7Pti4EZqnGXw1wvHOC8PdK0qersw77IfJ1IctcqIHj0f/QjkjT+1b aXxyhWRjbdfPkA3vB8CVz4nplAG0yfOH6z4STA6t1OyYnXmUJg8JS0l5i1qcKTbJ6qWD Ikkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=MJFB4lZ8D7TCV+Y/lq+Ynr7CkKu+Rsiwo9YWhOvY4cA=; b=JoCVSDCATqyZKc2EVKhZR1DBhPiQRzUEHupYYkGL/d6u9aN0QFbBg9+Ajr4iyRSJ6E 0CG9UtzKsrET4NleN8W5sisg34TdyCz+ENGVO4mZ6u8kmlbX3/9f2yPGvCZvPlo4mIb6 OxLu2Hmv0M5aPWBsYhznTusDzsHi0CnWPOFqSFzPfDHdprNOsIZaCh98kYUorgo/K7Ai Mhyz6f8Uzd5+KbQGexmBu2QqmlCNXYJtlzXrXhlu8zvXgnzu9i+JJD2QxTL1Qt44Y+NH abjiobCn1/OE20AiOsqDqMqLVwJj9XLf6dyI+YgAuOS9r4ebolr33qviJzMVwsnIRdJ5 TFoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p37si15598768jal.126.2021.06.01.10.21.10; Tue, 01 Jun 2021 10:21:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234495AbhFARVz (ORCPT + 99 others); Tue, 1 Jun 2021 13:21:55 -0400 Received: from www62.your-server.de ([213.133.104.62]:40888 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231918AbhFARVy (ORCPT ); Tue, 1 Jun 2021 13:21:54 -0400 Received: from sslproxy02.your-server.de ([78.47.166.47]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1lo83g-000GKb-Tq; Tue, 01 Jun 2021 19:20:04 +0200 Received: from [85.7.101.30] (helo=linux.home) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lo83g-000LRJ-Ku; Tue, 01 Jun 2021 19:20:04 +0200 Subject: Re: [PATCH 1/1] bpf: avoid unnecessary IPI in bpf_flush_icache To: Yanfei Xu , ast@kernel.org, zlim.lnx@gmail.com, catalin.marinas@arm.com, will@kernel.org, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210601150625.37419-1-yanfei.xu@windriver.com> <20210601150625.37419-2-yanfei.xu@windriver.com> From: Daniel Borkmann Message-ID: <56cc1e25-25c3-a3da-64e3-8a1c539d685b@iogearbox.net> Date: Tue, 1 Jun 2021 19:20:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20210601150625.37419-2-yanfei.xu@windriver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.2/26188/Tue Jun 1 13:07:16 2021) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/1/21 5:06 PM, Yanfei Xu wrote: > It's no need to trigger IPI for keeping pipeline fresh in bpf case. This needs a more concrete explanation/analysis on "why it is safe" to do so rather than just saying that it is not needed. > Signed-off-by: Yanfei Xu > --- > arch/arm64/net/bpf_jit_comp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c > index f7b194878a99..5311f8be4ba4 100644 > --- a/arch/arm64/net/bpf_jit_comp.c > +++ b/arch/arm64/net/bpf_jit_comp.c > @@ -974,7 +974,7 @@ static int validate_code(struct jit_ctx *ctx) > > static inline void bpf_flush_icache(void *start, void *end) > { > - flush_icache_range((unsigned long)start, (unsigned long)end); > + __flush_icache_range((unsigned long)start, (unsigned long)end); > } > > struct arm64_jit_data { >