Re: [PATCH] x86/mm: Allow clflush_cache_range() to flush large ranges
From: Arjan van de Ven
Date: Tue Dec 01 2026 - 10:24:59 EST
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?