Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3681892pxj; Tue, 1 Jun 2021 10:42:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy2VaOn3bJzssZnHktUj2IV9tcs0iO1254lwzNu2PZXkysoTCH9AdNBBqipExlFY/hwSfE X-Received: by 2002:a92:c7d0:: with SMTP id g16mr2226003ilk.296.1622569355540; Tue, 01 Jun 2021 10:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622569355; cv=none; d=google.com; s=arc-20160816; b=EaNExzzaxs3kVoe9WGsUFnktK9S8he9f3KRivSXEJHJcxIPwAGx+Sy5caNJOAZOXR2 yiFOQcSwbp7ZgvmpmgWrAVQanA4WCNPiPbBD+flqhbauzNaKqn3zKS21gHdwQVPMNlrU J0K9t/RAC8ZNTxrdklqmrpg2QwBZ1KBag/+sqGEeAIawJKnP7fQb3Nk6JTSYwj7+G/Uh ghedPrAMM1Vc7SxRU2qEO556DPbXb2LYJn3PRxqQE89/eGeQKRHL5j21O4lq8UMgV6m0 KBPZY+TyoohmjAXlmDgI87opXTStIr6Tf8UJh/W99z1xFAjOVGNgYAN8ZqeHdu+wn4Z/ cY9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=iMSS/Q0C4URQhiY128czkoR6b9vgArnSvmeCv/1SbxM=; b=G1YDcjpg6F1cmfPfY7Dcrdvu9C5gsKZGv5N6voNPhi5tfhf0SafpIfnr0nhPI/blPX 7UNWXhUGHSoCJhks1yTIxFQd3JrIcLt/DADfkHcdXNcL5k9c/62GbkIUIzPkUedNqepb WTAMNoi2JALPKp8TdVRIp0QNBGOGWrJmlk3+6GyDHGAFsZIOQtl4qoKymyWwb3vQ89x/ qgC6EZQWqIgfdKqwtsAOtUPK4RHWVrMJJ8pBgHfDXK6q0wNKJfrOnLUKn2+aS83y0cRk SzBbK1XJF29fWqZ19YzdBIQkynrGwOga3a8v05r4dk/lfDZNNKTvYlPsHwLhFxVH115I dcqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j0b+3rm9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si19626841ilv.99.2021.06.01.10.42.19; Tue, 01 Jun 2021 10:42:35 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j0b+3rm9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234513AbhFARnE (ORCPT + 99 others); Tue, 1 Jun 2021 13:43:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:33574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231331AbhFARnC (ORCPT ); Tue, 1 Jun 2021 13:43:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5027761042; Tue, 1 Jun 2021 17:41:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622569280; bh=2IFDrzvsvhbzI9SgMn3XalE8GIMt01IatSD60Qc5Gmo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j0b+3rm95SfAaBVuhPEnN6N/bHDGpbZlvxz2MUhN1Y8tQzui/fmCb3FS0lS+GWJsQ o5SpVaWWiRcwHIMsgnYCMr1uyzecIfP0dNToJXvWZyviw0eAcBG6yr/PHYBXDPw5kI 9paSMIESAuJs6QhCY7lixIZoZCJBJAKF//LiCQaOVIhwqO0K3WzdKCm47f0+Lbenu5 cG1ACuHAogEa7+XnqlGLqgQ4LXIrv3D0Ogud3q1BT/+9UailhDuUfP5vXtYGj8zYOs JgP4t2aIfOSDQ+TPBNX6fOuo9VmG1RaNDA58ch6RfILS4S+yPLhdfRj/fi3cN7BLka Shwv9Yu7a6S2Q== Date: Tue, 1 Jun 2021 18:41:15 +0100 From: Will Deacon To: Daniel Borkmann Cc: Yanfei Xu , ast@kernel.org, zlim.lnx@gmail.com, catalin.marinas@arm.com, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] bpf: avoid unnecessary IPI in bpf_flush_icache Message-ID: <20210601174114.GA29130@willie-the-truck> References: <20210601150625.37419-1-yanfei.xu@windriver.com> <20210601150625.37419-2-yanfei.xu@windriver.com> <56cc1e25-25c3-a3da-64e3-8a1c539d685b@iogearbox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56cc1e25-25c3-a3da-64e3-8a1c539d685b@iogearbox.net> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 01, 2021 at 07:20:04PM +0200, Daniel Borkmann wrote: > 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. Agreed. You need to show how the executing thread ends up going through a context synchronizing operation before jumping to the generated code if the IPI here is removed. Will