RFR: 8367137: RISC-V: Detect Zicboz block size via hwprobe [v3]
Fei Yang
fyang at openjdk.org
Wed Sep 10 01:03:19 UTC 2025
On Tue, 9 Sep 2025 14:58:25 GMT, Robbin Ehn <rehn at openjdk.org> wrote:
> I checked with kernel/cpu guy, apperently "cache blocks size" is instruction dependent in cmo spec. It have nothing todo with cache line size. (in theory, but in practice to implement these in a high performance way they do) So you could have zic64b, with cboz size of 32 and zicbom size of 128.
Ah, that could mean a bug in `MacroAssembler::zero_dcache_blocks` which assumes that CBO.ZERO would zero a cache line instead of a cache block. We should use Zicboz block size detected here instead if it's not zero. (Also note that UseZicboz is experimental for now and it is only enabled in VM_Version::rivos_features())
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27155#issuecomment-3272833150
More information about the hotspot-dev
mailing list