Page MenuHomeFreeBSD

riscv: zicbom extension support
ClosedPublic

Authored by br on Wed, Apr 16, 3:00 PM.
Tags
None
Referenced Files
F115888165: D49852.diff
Wed, Apr 30, 1:09 AM
Unknown Object (File)
Mon, Apr 28, 9:10 AM
Unknown Object (File)
Sun, Apr 27, 2:12 AM
Unknown Object (File)
Fri, Apr 25, 11:50 AM
Unknown Object (File)
Wed, Apr 23, 10:10 AM
Unknown Object (File)
Wed, Apr 23, 10:06 AM
Unknown Object (File)
Wed, Apr 23, 7:00 AM
Unknown Object (File)
Tue, Apr 22, 9:17 AM
Subscribers

Details

Summary

Detect zicbom extension and install cache invalidation handlers

Test Plan

The extension found on Codasip X730 and required by AXI DMA engine driver

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

br requested review of this revision.Wed, Apr 16, 3:00 PM
sys/conf/kern.mk
166 ↗(On Diff #153732)

You shouldn't just do that unconditionally. Just .option push; .option arch, +zicbom ... .option pop in asm that needs it.

sys/riscv/riscv/cbo.c
48

0 can be dropped for all these, and does the singular operand really need to be named? %0 is fine, surely?

sys/riscv/riscv/identcpu.c
228–229

Obsolete?

354–357

OF_getencprop can fail. But also why not just pass sizeof(desc->foo) and let it check the length for you?

handle return code of OF_getencprop() correctly

This revision was not accepted when it landed; it landed in state Needs Review.Tue, Apr 22, 9:07 AM
This revision was automatically updated to reflect the committed changes.