AMD/Xilinx Versal TRNG support
Status from this message: Applied to target-arm.next, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest3 patches 1 replyApplied
- v43 patches 6 repliesSuperseded
- v33 patches 4 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 3 patches | 1 reply | Superseded | |
| v1 | 3 patches | 6 replies | Superseded |
Changes in v5 from the cover letter
1) Patch #1
Use host-endian uint32 array to seed GRand to ensure consistent sequence generated in different host endian.
2) Patch #3
a) Remove incorrect time-wait for checking status register update by device-under-test.
b) Use g_assert_no_error() instead of g_error() to report failed tests.
c) Rename FAILED macro to TRNG_FAILED to build for Windows.
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | hw/misc: Introduce AMD/Xilix Versal TRNG devicehw/ hw/ hw/ +1 more | +781 | 0 replies | |
| 2/3 | hw/arm: xlnx-versal-virt: Add AMD/Xilinx TRNG devicehw/ hw/ include/ | +22 | 0 replies | |
| 3/3 | tests/qtest: Introduce tests for AMD/Xilinx Versal TRNG devicetests/ tests/ | +486 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Francisco Iglesias | Peter Maydell |
|---|---|---|
| 1/3 | ||
| 2/3 | R-b | R-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/3] AMD/Xilinx Versal TRNG support
This series adds support for the True Random Number Generator (TRNG) in the AMD/Xilinx Versal family of devices.
The series starts by introducing a non-cryptographic grade model of the TRNG controller in the Versal family of devices, followed by instantiating the model in Xilinx Versal machine.
The series ends with a q-test for sanity check of the TRNG model in the Xilinx Versal machine.
V4 => V5
1) Patch #1
Use host-endian uint32 array to seed GRand to ensure consistent sequence generated in different host endian.
2) Patch #3
a) Remove incorrect time-wait for checking status register update by device-under-test.
b) Use g_assert_no_error() instead of g_error() to report failed tests.
c) Rename FAILED macro to TRNG_FAILED to build for Windows.
V3 => V4
1) Patch #1
a) Simplify the data given to g_rand_set_seed_array() as an array of guint32.
b) Use qemu_guest_getrandom_nofail() as the entropy source when the device is configured in TRNG (mode 3).
c) Allow 0 and (2^32-1) as valid output of the generator
d) Add output-related context to VMSTATE.
2) Patch #3
Remove test's assumption of PRNG output != TRNG output.
V2 => V3
1) Patch #1 Use DEFINE_PROP to define a property with custom action on set
2) Patch #1 Remove duplicated version-check on writing to CTRL4 register
3) Patch #2 Defer adding TRNG to machine's device-tree to a future patch
4) Patch #3 Code style fix: group all local vars definitions together
V1 => V2
1) Change patch #1 only
2) Use g_rand_*() PRNG from glib to replace V1's custom PRNG.
3) Implement ResettableClass for device-reset.
4) Add device-mode description to commit-message.
Best regards,
Tong Ho
Tong Ho (3):
hw/misc: Introduce AMD/Xilix Versal TRNG device hw/arm: xlnx-versal-virt: Add AMD/Xilinx TRNG device tests/qtest: Introduce tests for AMD/Xilinx Versal TRNG device
hw/arm/Kconfig | 1 + hw/arm/xlnx-versal.c | 16 + hw/misc/Kconfig | 3 + hw/misc/meson.build | 3 + hw/misc/xlnx-versal-trng.c | 717 ++++++++++++++++++++++++++++ include/hw/arm/xlnx-versal.h | 5 + include/hw/misc/xlnx-versal-trng.h | 58 +++ tests/qtest/meson.build | 2 +- tests/qtest/xlnx-versal-trng-test.c | 485 +++++++++++++++++++ 9 files changed, 1289 insertions(+), 1 deletion(-) create mode 100644 hw/misc/xlnx-versal-trng.c create mode 100644 include/hw/misc/xlnx-versal-trng.h create mode 100644 tests/qtest/xlnx-versal-trng-test.c
Signature · 1 line
2.25.1