mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@linux.intel.com>
To: Wencheng Yang <east.moutain.yang@gmail.com>,
	Dave Hansen <dave.hansen@intel.com>
Cc: x86@kernel.org, Thomas Gleixner <tglx@kernel.org>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Andy Lutomirski <luto@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	"Mike Rapoport (Microsoft)" <rppt@kernel.org>,
	Vishal Moola <vishal.moola@gmail.com>,
	"Lorenzo Stoakes (ARM)" <ljs@kernel.org>,
	Coiby Xu <coiby.xu@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/mm: Allow clflush_cache_range() to flush large ranges
Date: Tue, 1 Dec 2026 07:24:47 -0800	[thread overview]
Message-ID: <ca62f487-86d7-4f0e-a2e8-f9ec0fda6cda@linux.intel.com> (raw)
In-Reply-To: <CALrP2iWN2rLSOvJjAnOHvnzF0RvDqmWOKEFiOsKUaCin+s0SHQ@mail.gmail.com>


On 12/1/2026 5:40 AM, Wencheng Yang wrote:
> Yes. In my driver, I call clflush_cache_range() with a size greater than 4 GiB,
> which causes the size argument to be truncated and only part of the intended
>   range to be flushed.
>
> I don't see a reason why this API should limit the size to less than 4 GiB,
> as flushing a memory range larger than 4 GiB is also a valid use case.

do you happen to have a public reference to the (GPL of course) source 
code to this driver?

it's common to show both sides of the issue for API changes

> ms?

      reply	other threads:[~2026-12-01 15:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  6:57 Yang Wencheng
2026-11-30 15:02 ` Dave Hansen
2026-12-01 13:40   ` Wencheng Yang
2026-12-01 15:24     ` Arjan van de Ven [this message]

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=ca62f487-86d7-4f0e-a2e8-f9ec0fda6cda@linux.intel.com \
    --to=arjan@linux.intel.com \
    --cc=bp@alien8.de \
    --cc=coiby.xu@gmail.com \
    --cc=dave.hansen@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=east.moutain.yang@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ljs@kernel.org \
    --cc=luto@kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rppt@kernel.org \
    --cc=tglx@kernel.org \
    --cc=vishal.moola@gmail.com \
    --cc=x86@kernel.org \
    /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®