Re: [PATCH 2/2] sparc64: flush vmalloc ranges from the D-cache on map and unmap

From: Stian Halseth

Date: Mon Sep 28 2026 - 10:20:37 EST


Hi Imre,

>
> Thanks for chasing this down. Confirmed the path: dcache_size is
> still 0 there, so the old code took the "exceeds cache size" branch
> into flush_dcache_all() every time, and the mondo block PA is 0
> until init_IRQ() runs, so the cross-call landed on physical address
> 0 instead of a real mondo queue. Skipping non-vmalloc/module
> addresses is the right fix.
>
> v2 with your check and your Tested-by follows.
>

ofc, and thanks for the patch!

Makes me happy to see so many SPARC fixes.

Hoping to more of them in mainline / stable backports soon. 

Poor Andreas will have his hands full now ;-)

Best regards,
Stian

Attachment: signature.asc
Description: This is a digitally signed message part