Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp166337lqj; Wed, 10 Apr 2024 07:13:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXA1culn4acHRhcc6lA4m+N2hdA4dC19D6fAv9CMQxnkrnvBxvInyVxDnkW0sHRo6cAVJNGyoUoHiC2ni1YhFQh9m2OMjzHR3mva+SajQ== X-Google-Smtp-Source: AGHT+IG76GP4b44GtM/A/BkydQpk+dgSA0aqRLEs6EBno2hFTliFdzQ/1Y38146hFctOd33mek/s X-Received: by 2002:a05:620a:1184:b0:78d:735a:216b with SMTP id b4-20020a05620a118400b0078d735a216bmr2707696qkk.18.1712758430102; Wed, 10 Apr 2024 07:13:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712758430; cv=pass; d=google.com; s=arc-20160816; b=ni886UoMTWZZbrfG+EQHhmTDmr6VI5a0mxyl9XBms7DCqTTJ6F3PO0aPRUrcQQezmM 1FdHsu0KedjThgE6gPWfM1rZr775Jl5Td3qpxgVeDExGAt7d+8hCEspjVSXbeLNECOg5 ScD7URMfw0fCAsVF5tfdboAbMdlOhzxA2b0UK/DrCnIQPmm/rolT4lz1yyZ+aLa5cX6T TO0HK8VxgMwAD7tnBz+HFFifmf6FurK3h4qr2S/38KQ2oYcsYE7hcebNdgjiv/poSnZJ XiOX+z6jZrathFpz8ictZjbEfD9jcIwrjewa9VGYeItWshBPZC3CgneSa8oR75SLfLZ7 Ogtg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=CO72y6trryxy50NTOU/N8EnDJgJlxQiVx6gp0CzV/N0=; fh=xknqBu2p1k2YAClUNEARX7jIiIqY/V6u0L1IDma6nIk=; b=RURb4PGaXtDC1/JQu76ZQNu5KGH73Qke10wTySmhPpKt9Rbico9MZyuvC6ITToXyjc 5pSq7XiAQXichNdjINqp6HPEIaJz1bYP6Hlyt2T2GDmeZ//U6dr4MKlrD2hS0eyjpfXu 6hzr/pZUIhKHDilgOKWMn70HIGVJdqTRjgodMCuKg7SiKmceGdKymbB5JgfxWcmBn7su TsjdUw4S+EmYE3cJ2BWJPVUHJjK7BZ9vv+Y6rXDUWzs2nkaQO0A1KEcwhIYoXqQ13QQj T8ZmdGGP4bYwiqG7qZ6tWZGaNn549wmqAlSmIuoTSyrVX39BlnLl3CNmiliGwZo9T3F6 lfMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=msU30hyI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138724-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138724-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z11-20020ae9e60b000000b0078d6349929dsi7296759qkf.458.2024.04.10.07.13.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 07:13:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138724-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=msU30hyI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138724-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138724-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6DA631C26529 for ; Wed, 10 Apr 2024 14:11:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE51716C860; Wed, 10 Apr 2024 14:10:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="msU30hyI" 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 BBBCB15FA80 for ; Wed, 10 Apr 2024 14:10:29 +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=1712758229; cv=none; b=WZymbkK94BXUMP03DW4psmUDUxJNsH2P3r76WWtaMG6Icf0qHwp5L0lT0sauvnA8wbW3LpyGYWoZoZ1TKSuTmzZCNeqYQCmGpDwnVFWq33M/PG8PWiYm6zNYvxc/V81nqDXyktFeZb8ycTJm+CVWtcR40EsEMrb+1lXkp8Q878A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712758229; c=relaxed/simple; bh=pRgnzoGAqN+8AmHMkslGDM2NWRVdlaRT9PhcUTzgJJY=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=CDYOjkY7hBIZG8GuJM+ogT1w16izC5BgfWtzM93/tN5rpMVr7+aL6OWF749LKuvnLpEuN6XJHeWwW4w5s2Kbx0T331I7OFAFe0YhCuMpXyqT6yCDy9H6vIaciR5ZCTC/L4Xx1lVw31NMZR+8LgJkTYME5w1Hutf/C7wvL5K1+Qg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=msU30hyI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 5F286C43394; Wed, 10 Apr 2024 14:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712758229; bh=pRgnzoGAqN+8AmHMkslGDM2NWRVdlaRT9PhcUTzgJJY=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=msU30hyIMeAZQZysjcS6nFd+A1m/bQG/yLGXEvqM3/QhZNHaK92i6sS7+k5ZvJ/J8 rMZb+AEl50BIQWKhEKfN7GJ9KmluajYdrA4EWxqwd+DEE/N7hbT8AU6oWrTwDpL6O9 aMS6lId5NtmTZ2EXnATJ+5KuWlNznBM8r+D1Qi6+RlRFN8AT+9WtkxjEqu/jMWbUGn XdXB42FII76a9l0D/z36dXCZjIjh3W+sbIxPO53ReoZ8vQTsYONHA4X/N+xUr+0yOb ymGobJUfVfKV+TZtTmrcFAaFKVbA6Xi/LbH5JZ1mVSD7nSzu5igqAAWsEUbf61wtTV BdyWDP5KuFDkQ== 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 4DD23D60310; Wed, 10 Apr 2024 14:10:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] RISC-V: only flush icache when it has VM_EXEC set From: patchwork-bot+linux-riscv@kernel.org Message-Id: <171275822931.12683.7449228181407944312.git-patchwork-notify@kernel.org> Date: Wed, 10 Apr 2024 14:10:29 +0000 References: In-Reply-To: To: Yangyu Chen Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, alexghiti@rivosinc.com, conor.dooley@microchip.com, jszhang@kernel.org, andrew@sifive.com Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Wed, 10 Jan 2024 02:48:59 +0800 you wrote: > As I-Cache flush on current RISC-V needs to send IPIs to every CPU cores > in the system is very costly, limiting flush_icache_mm to be called only > when vma->vm_flags has VM_EXEC can help minimize the frequency of these > operations. It improves performance and reduces disturbances when > copy_from_user_page is needed such as profiling with perf. > > For I-D coherence concerns, it will not fail if such a page adds VM_EXEC > flags in the future since we have checked it in the __set_pte_at function. > > [...] Here is the summary with links: - RISC-V: only flush icache when it has VM_EXEC set https://git.kernel.org/riscv/c/542124fc0d5c You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html