mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rik van Riel <riel@surriel.com>
To: Bing Jiao <bingjiao@google.com>,
	x86@kernel.org, linux-mm@kvack.org,
	Dave Hansen <dave.hansen@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	 Thomas Gleixner	 <tglx@kernel.org>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	 "H. Peter Anvin"	 <hpa@zytor.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Huang Ying	 <ying.huang@linux.alibaba.com>,
	Sebastian Andrzej Siewior	 <bigeasy@linutronix.de>,
	Juergen Gross <jgross@suse.com>,
	Hou Wenlong	 <houwenlong.hwl@antgroup.com>,
	Chuyi Zhou <zhouchuyi@bytedance.com>,
	Xie Yuanbin <qq570070308@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH 1/2] x86/mm/tlb: Skip batch->cpumask updates when X86_FEATURE_INVLPGB is enabled
Date: Tue, 01 Dec 2026 22:35:27 -0500	[thread overview]
Message-ID: <8292b17b1ba085c97a62be401552da0d10ca2070.camel@surriel.com> (raw)
In-Reply-To: <20261103012626.2699661-2-bingjiao@google.com>

On Tue, 2026-11-03 at 01:26 +0000, Bing Jiao wrote:
> Commit 72a920eacd8a ("x86/mm: Use broadcast TLB flushing in page
> reclaim")
> and commit 0b7eb55cb706 ("x86/mm: Only do broadcast flush from
> reclaim if
> pages were unmapped") changed arch_tlbbatch_flush() to flush all
> non-global TLB entries via invlpgb_flush_all_nonglobals() when
> X86_FEATURE_INVLPGB is enabled.
> 
> However, arch_tlbbatch_add_pending() still unconditionally ORs
> mm_cpumask(mm) into batch->cpumask on every unmapped page even when
> X86_FEATURE_INVLPGB is enabled.
> 
> Guard the batch->cpumask update in arch_tlbbatch_add_pending() with
> !cpu_feature_enabled(X86_FEATURE_INVLPGB) to avoid unnecessary bitmap
> operations on every unmapped page.
> 
> Signed-off-by: Bing Jiao <bingjiao@google.com>
> 

Reviewed-by: Rik van Riel <riel@surriel.com>

-- 
All Rights Reversed.

  reply	other threads:[~2026-12-02  3:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03  1:26 [RFC PATCH 0/2] x86/mm/tlb: Skip stale and lazy CPUs in batched TLB flushes Bing Jiao
2026-11-03  1:26 ` [RFC PATCH 1/2] x86/mm/tlb: Skip batch->cpumask updates when X86_FEATURE_INVLPGB is enabled Bing Jiao
2026-12-02  3:35   ` Rik van Riel [this message]
2026-11-03  1:26 ` [RFC PATCH 2/2] x86/mm/tlb: Skip stale and lazy CPUs in arch_tlbbatch_flush() Bing Jiao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8292b17b1ba085c97a62be401552da0d10ca2070.camel@surriel.com \
    --to=riel@surriel.com \
    --cc=akpm@linux-foundation.org \
    --cc=bigeasy@linutronix.de \
    --cc=bingjiao@google.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=houwenlong.hwl@antgroup.com \
    --cc=hpa@zytor.com \
    --cc=jgross@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=luto@kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=qq570070308@gmail.com \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    --cc=ying.huang@linux.alibaba.com \
    --cc=zhouchuyi@bytedance.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®