Page MenuHomeFreeBSD

Rockchip RNG
Needs RevisionPublic

Authored by titus_edc.ro on Nov 16 2023, 7:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 8:31 PM
Unknown Object (File)
Mon, Apr 22, 9:58 AM
Unknown Object (File)
Wed, Apr 10, 3:03 AM
Unknown Object (File)
Wed, Apr 10, 2:52 AM
Unknown Object (File)
Feb 26 2024, 8:33 AM
Unknown Object (File)
Jan 5 2024, 10:35 PM
Unknown Object (File)
Dec 27 2023, 6:13 AM
Unknown Object (File)
Dec 27 2023, 4:43 AM

Details

Reviewers
andrew
manu
markm
Group Reviewers
arm64
csprng
Summary

rockchip rng support, similar with bcm2835_rng
random data generated is passed to
random_harvest_queue

v1 and v2 supported only v2 tested
randomness of data generated only tested with the 'eye test'

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

manu requested changes to this revision.Nov 17 2023, 7:25 AM
manu added a subscriber: manu.

Haven't reviewed yet but this needs to be hooked into the build (and also have a module with PNP_INFO).

This revision now requires changes to proceed.Nov 17 2023, 7:25 AM

Generally speaking, lot of style issues.

arm64/rockchip/rk_rng.c
106 ↗(On Diff #130216)

Style

137–138 ↗(On Diff #130216)

Style.

157 ↗(On Diff #130216)

Style.

182 ↗(On Diff #130216)

Style.

204 ↗(On Diff #130216)

Why do you use "| 0"? What is the point?

216 ↗(On Diff #130216)

Style.

222 ↗(On Diff #130216)

Style.

228 ↗(On Diff #130216)

Style.

270 ↗(On Diff #130216)

Style.

275 ↗(On Diff #130216)

I suggest to free bus resources when one of the following errors appear.

285 ↗(On Diff #130216)

Style.

299 ↗(On Diff #130216)

Style.

301 ↗(On Diff #130216)

Style.

308 ↗(On Diff #130216)

Style.

347 ↗(On Diff #130216)

Style.

fixed some styling

to build add in
/sys/conf/files.arm64
arm64/rockchip/rk_rng.c optional fdt rk_rng
/sys/arm64/conf/std.rockchip
device rk_rng # RockChip TRNG

fixed some styling

to build add in
/sys/conf/files.arm64
arm64/rockchip/rk_rng.c optional fdt rk_rng
/sys/arm64/conf/std.rockchip
device rk_rng # RockChip TRNG

This needs to be in the review.
Also please add a module for it.

manu requested changes to this revision.Nov 27 2023, 7:09 AM
This revision now requires changes to proceed.Nov 27 2023, 7:09 AM
andrew added inline comments.
sys/arm64/rockchip/rk_rng.c
232 ↗(On Diff #130256)

RANDOM_PURE_BROADCOM?

titus_edc.ro updated this revision to Diff 130602.

remove broadcom, added rockchip

Looks like you've updated a partial diff, please fix this so someone (tm) can review your changes.

manu requested changes to this revision.Dec 25 2023, 4:53 PM
This revision now requires changes to proceed.Dec 25 2023, 4:53 PM
markm requested changes to this revision.Jan 1 2024, 6:50 PM
markm added a subscriber: markm.

Incomplete change.