312 points · by pabs3 · 3y ago · 146 comments
We already have riscv64-linux builds of Zig enabled with every CI run[1]. Happy to see that they might finally be utilized by more users soon.
Fully open systems are an entirely ideological win at this point with a now sub-$50 entry point setups available today. Please also do not get me wrong, working around copy protection and binary blobs serve as amazing learning tools for tinkerers, but not for true beginners.
Some people learn from hands on breaking it and putting it back together, but others learn by knowing that there is a fully documented dearth of information within a mere quandary of any part of the system.
These two worlds are not antagonistic, but in fact entirely complementary to each other. To fully understand and master a system, you have to break it and know how to fix it. While on the same hand knowing how to see what part broke and see an exact way to fix it in the completely free entirety of information available until time itself forgets it, gives you the confidence that there isn't anything you don't know or knowing instantly where to find it if you don't.
That free and open standard will lend itself to future chip designs, broader software options for those designs, and start to make computers adopt there new role as segregated fully autonomous systems loosely networked together into the same status that all 99th percentile that all previous technology has adopted throughout history.
The nerds won, we made computers into a skilled labor.
You're welcome.
ISA is the easy part. Even if you need to RE it, you only need to do it once.
Now hopefully with RISC V companies will be even more inclined to just upstream their drivers from the start (and not do the abominations that happen way too often on ARM side), but the ISA never was a problem for that.
That's not going to change with RISC-V. If you've got silicon that has to conform with FCC regulations it's going to have non-modifiable firmware. No matter how open the rest of the system is, your WiFi and Bluetooth (and any other radios) will have closed firmware.
https://github.com/u-boot/u-boot/blob/master/arch/riscv/dts/...
> If you've got silicon that has to conform with FCC regulations it's going to have non-modifiable firmware.
Can you explain 'why?' or maybe throw me a link or two? Thanks!
Non-modifiable - by whom and to what degree? One-time-programmable memory? Accepting only signed updates from the vendor? Where are these things specified in enumerated FCC regulations?
Artificial indeed.
It's not entirely ideological. The advantage an open, license-free, RISC-V brings to the table is ISA flexibility and freedom, the ability for people to bring innovation in terms of extensions, create their own flavours.
And where we'll hopefully see this innovation is in realms like AI and graphics and vector. e.g. bringing compute back in from the GPU, by chip producers bundling extensions into their custom RISC-V implementations and then providing the requisite add-ons for llvm, SDKs, etc.
We've already seen the excellent things Apple was able to do with ARM because they had the chip under their own control and were no longer beholden to ARM^H^H^HIntel (or Motorola/IBM before that). I am hopeful we'll see similar excellence around RISC-V. (EDIT: I had typo'd "ARM" here but meant to write Intel)
Though this will all come at the cost of some amount of fragmentation, at least the base instruction set is standardized, and a standard method for extension put in place.
Sorry? Apple remains an Arm licensee and everything they have done will be consistent with the terms of their license.
My understanding is Apple has an architectural license, broader than what some other licensees have, and it permits them to make architectural changes that people without that license cannot. And while I don't know the current business terms of this, I would speculate that by them being part of the original joint venture that created ARM in the first place they have at least some remaining better pricing on that than others would?
In any case, correct me if I'm wrong on that... but there's also the fact that by controlling the whole software stack Apple is also able to initiate changes that would be difficult for any other hardware vendor.
RISC-V gives all people a level of power that is even higher then what Apple had with ARM.
As somebody from Esperanto said when making their Esperanto said it. If we had asked ARM it would have been 'pay of a couple million and then you can't do X,Y and Z'.
I own a VisionFive 2 and can recommend it.
There's also the TH1520, a newer chip that's a bit faster and has pre-spec V extension. This is available in the Sipeed Lichee Pi4A, but the support for this chip is very green still.
CPU-wise, JH7110 performs between rpi3 and rpi4. TH1520 is faster than rpi4.
Else (GPU, I/O, cryptographic acceleration, hardware video codec acceleration and other peripherals), they are both significantly faster than rpi4.
ADD: TH1520 is about twice as fast as JH7110, but as best I can tell, StarFive (JH7110) is more proactive about upstreaming support.
I hope they set up a webpage to track what's going on with upstreaming efforts, similar to JH7110 has.
Notably, boards with TH1520 are just starting to ship, whereas boards with JH7110 were shipping in volume in February.
In reality closer to a rpi3
> Else (GPU, I/O, cryptographic acceleration, hardware video codec acceleration and other peripherals), they are both significantly faster than rpi4.
if you can the GPU working, right now on Vision2 it's only usable in very few applications
Not true even with generic rv64gc code[0].
0. https://cdn.cnx-software.com/wp-content/uploads/2022/12/Dhry...
Very similar in nature to a raspi, but still a bit rough around the edges:
- getting debian up an running is not yet straightforward
- this is not exactly a speed demon (it's actually dog slow compared to an rpi 4)
- some feature aren't in the kernel yet (eg some USB devices don't work)
- support for HDMI is still clunky
- [EDIT]: one very nice thing, it has an NVME port and you can choose (via dip switches) to boot from either of NVME, Flash, EMMC or UART (see page 46 of [2])
Mine boots from NVME and it's really sweet, it's one major mission feature for the rpi family.BUT: it's a very usable computer, and great if you want to play with RISCV assembly on actual metal (outside of a qemu box, that is).
[1] https://www.starfivetech.com/en/site/boards
[2] https://doc-en.rvspace.org/VisionFive2/PDF/VisionFive2_QSG.p...
For most development smaller SBCs are enough, and I'd recommend waiting for RVA22/23 profile supporting hardware before spending a lot of money, because most current chips use the non standard vector isa and don't support all profile extensions, because they where created before everything was ratified.
Here is a list of risc-v SBCs: http://krimsky.net/articles/riscvsbc.html
The next batch we are aware of (Ventana Veyron, Tenstorrent Ascalon, SiFive P470/P670/U84, XuanTie C908) implement RVA22+V. The extensions included were largely ratified in December 2021.
Plug "site:lore.kernel.org TH1520" into your search engine of choice to see what hardware is in the process of being upstreamed to the bleeding edge Linux kernel-next. Which is probably about a year away from being in a longterm suported Linux kernel.
ref: https://github.com/ThomasKaiser/sbc-bench/blob/master/Result...
I'm hoping for desktop grade stuff instead. I don't mind if the CPU is soldered but it would be nice to have memory and pci-e expansion slots. Something to match the POWER Raptor machines as open source but not as expensive.
Are they building for the base riscv with no isa extensions? This might be addressed somewhere in the debian docs but I didn't see it.
Anyway, I did find this on the Debian website[1]. So it seems they mean rv64gc.
[1] https://wiki.debian.org/RISC-V#Hardware_baseline_and_ABI_cho...
There's a lot in there which RV64GC (ratified in 2019, I understand unchanged since 2017) lacks.
Some of the new extensions e.g. vector and bit manipulation do have a significant effect in performance.
This is going to confuse the hell out of the potential customer base and it would be a crying shame, wasting a golden opportunity to get out of the oxygen-choking clutches of proprietary ISA vendors (who at this point are purely rent-seeking and add exactly zero actual economic value to the ecosystem).
Not following the profiles will be possible but will cause issues.
There's a whole lot of build infrastructure for Debian; by default the package maintainer doesn't need to do anything specific, building for all architectures will happen by default.
If you're working at a high enough level you're probably fine. Like the difference between being an auto mechanic and using the app to hail a ride.
Special packages (for example, compilers generating native code) enumerate supported architectures. For these packages, source change is needed, at least adding the name of the new architecture to the enumeration. But usually that's not the difficult part.
The real future is riscv64 assembly written software with a very conservative usage of a preprocessor (or we will end up with c++ syntax grade preprocessing), and software written with very high level languages which interpreters are written in riscv64 assembly with a very conservative usage of a preprocessor (python? javascript? etc). That because risc-v is meant to be the CPU ISA standard.
I really hope risc-v will be a success.
In the context of Debian, let us hope people aren't flashing a BSP³ in the hope of improved board support ;)
¹ https://wiki.debian.org/RISC-V#Hardware
RISC-V makes it possible to have Open CPU or even OpenSOC on an OpenBoard. That basically wasn't even possible before. We are even getting to a point where there are open PDKs. There are libraries of analog IPs that are open. Now that there are lots of options for OpenCpu people are going after the missing stuff. Open Ethernet PHI and so on. There is also now a big movement in regard to making the tooling open source to compete with commercial tooling. OpenROAD, OpenLane, Verilator and so on.
The benefits of this are amazing. Project like Core-V, OpenTitan and so on simply wouldn't have happened.
You have things like RISC-V International, the Chips Alliance, LowRisc, Google and many others working on all aspects to make a fully open ecosystem possible.
But that doesn't change the fact that most SoC and most board in the world will be property, RISC-V or no RISC-V.
> RISC V is not extension free
Not sure what this means. Exertions are part of RISC-V. The waste majority of extensions used in the real world are all part of the same standard put forward by RISC-V International.
Most of the non-standard extensions came about before there was a standard for them, and most are converging to the standard pretty fast.
RISC-V is inevitable[1].
Only one I didn’t see was Apple, hell even Raspberry Pi is there.
Closed source = extra cost, licensing red tape & so on. However small, it's a bother.
Need an OS? Grab open source one. Want that + 'secret sauce'? Grab BSD flavour OS & add your secret sauce. Want OS with custom user interface? Grab open source OS & add custom UI shell.
Going closed source for anything where open source does the job, just means extra development effort, or paying 3rd party $$ while (often) not necessary. And eg. $0.05 royalties / device matters when it's a part with $3 production cost.
On the hardware side this is a much slower moving train. But same principle.
There's a reason people pay for ARM tools. There's a reason people pay SiFive and StarFive to use the rocket core generator for them. (heck, there's a reason I still use WDC65C02's in new designs.)
While I'm generally a fan of open source software, open source hardware is a different beast. The cost of copying an open source hardware design is noticeably higher than the cost of copying open source software.
You always pay for what you get. If you're lucky, you pay in cash.