RISC-V Business: Testing StarFive's VisionFive 2 SBC
jeffgeerling.com
jeffgeerling.com
I noticed a few mistakes/omissions. From the top of my mind:
- There's mention of bad cryptography performance. But there is a cryptography acceleration engine. This is not enabled in the current test kernels, but yet patch is being reviewed by Linux upstream. In contrast, the Broadcom SoCs in the other boards VF2 was compared against have no such hardware.
- There's mention of unusably slow youtube, but again, there's a hardware video decode block that's still not usable, yet it is considerably more capable than the one in the Broadcom SoCs.
- Related, Firefox is very slow because JS is interpreted. A RISC-V JIT implementation landed recently and will be present in the 111 release due in a few weeks.
- The SoC GPU is glossed over, but it did deserve more attention. Claimed to be 4x the performance of RPi4's SoC, Imagination Technologies is working on an open driver. This is a public effort as of early 2022, with some code already in Mesa3d upstream.
I am happy that the author did stress that this is early days, and that if the review/benchmarks were to be repeated in the future, the results would be very different.
Get this board (I love mine) if you're curious about and want to play with RISC-V. There's currently nothing faster than the VF2 available at any price, and yet VF2 is available at ~$100.
Absolutely, but he does (for the cryptography example) mention that future chips will do better in this regard.
Why would he do this, and not mention the cryptography engine present in this very SoC?
What's most likely is he managed to overlook this SoC has this hardware.
>I want to buy a board for what it can do now
This board clearly isn't for you.
>kernel updates that are not guaranteed.
Having kernel patches already sent upstream for review[0] is a much better situation than potentially having nothing.
Then buy something else.
My VF2 boards (one 8 GB and one 4 GB) were very clearly sold as "Early Bird" and "Super Early Bird", respectively, and Jeff's will have been too.
They are for early adopters and for developers to use to fill in the missing software support. It is not practically possible to do this without a board in your hands.
It is NOT for the average user right now. In 3 or 6 months it will be.
No, as in not having the hypervisor extension.
Yes, as in the modes it does have (M,S,U) being sufficient for the implementation of efficient virtual machines.
I wonder if Amazon would consider using a RISC-V CPU for such a device?
https://devices.amazonaws.com/detail/a3G0h000007djMLEAY/M5St...
I am not sure of the exact relationship AWS has with FeeRTOS, but the FAQ says they have ‘taken stewardship’ of the open source project.
It’s not GPL, so it’s open to embrace, extend, extinguish. We shall see.
It's been a long time since I could beat the compiler at optimizing assembly on x86, yet in the end merely unrolling a loop and keeping an eye on write-read stalls I managed to get a simple "multiply array by const" about 56% less time (more than twice as fast):
https://github.com/gnuradio/volk/pull/619
And that's with hardware that doesn't even have vector instructions! I'd understand GCC not supporting that yet.
Some other quickstart docs and hot takes from me on this hardware: https://blog.habets.se/2023/01/VisionFive-2-quickstart.html
Edit: Oh yeah, if you can decipher my tables then you can compare some performance ray tracing with pov-ray here: https://qpov.retrofitta.se/stats
Beware the CPU does not have the scalar or vector cryptographic extensions, but the SoC has a cryptography acceleration module.
It is not supported in the current image's kernel, but the patch to support it is being reviewed upstream for merging.
The VF2 board is a development board. The Raspberry Pi is "small computer".
Is a development board also a computer? Yes, but they are not for the same purpose.
This is a test fire, to get hardware to developers and get the hardware-software cycle started.
But no toxic IP on the ISA is the way to go (and it seems the ISA has CPU internal design simplicity in mind, of course there will be trade off).
Hope RISC-V is a success.
There's no such trade-off. The ISA is designed to scale from the smallest embedded microcontrollers to the top supercomputers.
It has the advantage of being designed from a clean slate, decades after the incumbent ISAs, with careful consideration put into every decision made and the hindsight of every other ISA to draw from.
The (relatively cheap) book "RISC-V Reader" presents a good introduction to the ISA and its design, with chapters covering each extension and comparing with incumbent ISAs.
The incumbent ISAs end up looking very bad. Note that the book is written by the main architects of the ISA, so it is of course very biased. They do however manage to keep it reasonably objective and to make really good points.
Unless it was designed in 2030 - which would be an impressive feat given we are in 2023 - it was not designed decades after current incumbent ISAs.
https://github.com/litex-hub/linux-on-litex-vexriscv
The CPU will likely have a clock speed around 100Mhz, far slower than the 1.5Ghz 64bit cores on the VisionFive 2 or Pi4. The FPGA might still be useful if you want to customize the CPU or integrate other custom hardware.
But anyway there is a sort of standard set of extensions that "application processors" (I guess CPUs that want to run precompiled code) should support:
https://github.com/riscv/riscv-profiles/blob/main/profiles.a...
The 22 indicates the year.
RISC-V's wiki specification status page[0] is about as good as it gets.
It isn't, but it is the first one that's made at scale.
>This experience sounds horrible.
Barely launched, it's a much better experience than the average ARM SBC, and the review makes a point to stress this fact.
That's a very generous interpretation of what he said.
He stressed out that the documentation is much better, yes, but the user experience is currently much much worse.