dgilmore changed the topic of #fedora-riscv to: Fedora on RISC-V https://fedoraproject.org/wiki/Architectures/RISC-V || Logs: https://libera.irclog.whitequark.org/fedora-riscv || Alt Arch discussions are welcome in #fedora-alt-arches
johnjaye has quit [Ping timeout: 268 seconds]
johnjaye has joined #fedora-riscv
jcajka has joined #fedora-riscv
<warren> I have a sifive unleashed. is this thing usable for anything?
<davidlt[m]> Not really (?).
<davidlt[m]> We have stopped running it, but it has upstream support which is great if you want to use riscv64.
<warren> this is the one that's not really usable without the expansion board, but the expansion board was super expensive?
<davidlt[m]> If you want PCIe and thus high speed IO you need it or an FPGA.
<warren> the hifive unmatched how was its CPU cores comparable to relative to ARM cores?
<davidlt[m]> terrible :) It's the super low cost smartphone level. ~A53 stuff.
<davidlt[m]> And then it depends on what you want. Cache and memory latency is exceptionally terrible.
<davidlt[m]> Memory bandwidth basically doesn't exist.
<warren> wow
<davidlt[m]> PCIe Gen 4 SSD on a traditional desktop system probably can move more data then FU740 to it's memory.
<davidlt[m]> Remember that it was never designed to be in any real product. It exist explicitly to help software ecosystem.
<davidlt[m]> Majority of SoC today don't really have a market, and it's more of test thingie.
<warren> does there exist a general purpose board suitable for real people yet?
<davidlt[m]> JH7110, JH8100-series, TH1520. These are designed like a more proper SoC, but JH7110 doesn't really exist outside SBC market.
<davidlt[m]> That's JH7110-based stuff (VisionFive V2, PINE64 Star64) and soon to be launched TH1520 products (e.g. from Sipeed).
<PrathamPatel[m]> warren: Define "people". End users like console gamers? End users who build their won PCs? End users who have a dedicated, fool-proof arch install script?
<davidlt[m]> Those probably will go for 80-200 USD (but exact prices depend on your region).
<davidlt[m]> Then there are large thing incoming, those are most likely in 1Ks of USD.
<PrathamPatel[m]> If you mean a "usable laptop", quite sometime. No one has the balls to launch a hardware product that doesn't have enough software support. Heck, you see this even on x86. How many vendors offer any linux distro compared to vendors that offer windows?
<warren> star64 for example has only pcie 2.0 x 1 lane =(
<davidlt[m]> Software is not really a problem. Hardware is what stopping us. And lack of some standards (incl. ratification) is slowing down hardware.
<davidlt[m]> That's plenty enough for that SoC.
<davidlt[m]> You could add PCie Gen 4 x8, x16 (whatever), but SoC would not have enough horse power to process that.
<warren> the market for sbc's is killed for arm too right now
<warren> the used market is flooded with liquidations of dirt cheap x86_64 gear
<davidlt[m]> Not really. There are multiple ARM server SoC implementation, and it's quite easy and fast to get access to one.
<davidlt[m]> Also Apple M chips solved the problems for developers.
<PrathamPatel[m]> The context of consumer defines the depth and width of software. For us foss folks, almost everything in the software side is ready. But for wider adoption, things like EDK2 are still WIP. I guess EDK2 recently got support for RISC-V in the virtualization side.
<davidlt[m]> I own non-Apple AArch64 laptop and it's waste of money.
<warren> Thinkpad X13s?
<davidlt[m]> If you can get Apple M1 MacBook Air on sale and run Asahi, that's the way to go.
<PrathamPatel[m]> davidlt[m]: T2? 😢
<davidlt[m]> Significantly better value for the money and significant community momentum.
<warren> Asahi did great work reverse engineering the hardware, and the GPU driver
<davidlt[m]> Pratham Patel: EDK2 worked on riscv64 on FPGAs and FU540. The basics were done by HPE many years ago (in upstream).
<PrathamPatel[m]> I meant it in terms of in-tree support
<davidlt[m]> Now companies are working on finishing it up and bringing up software and standards to the required levels.
<PrathamPatel[m]> AFAIK, EDK2 only has "official support" for a riscv vm
<PrathamPatel[m]> But yes, i am aware of EDK2 on actual hw :)
<davidlt[m]> Realistically the fun begins once RVA23 is ratified and Platform specification follow.
<davidlt[m]> Right now we have what will be called RVA20 with no platform specific standards, and it basically makes SBCs an e-waste.
<PrathamPatel[m]> Yep, I agree
<PrathamPatel[m]> I am not an expert, but the only problem I have with this specification is that something is optional. When anything is optional, it creates confusion for end-users/developers.
<davidlt[m]> Non-ISA specifications that are still to land (needed for platforms) would be things like IOMMU, new interrupt controller, etc.
<davidlt[m]> So RVA20, 22, 23 gives us some restriction (well, a lot of them) on what will be on SoC ISA wise.
<davidlt[m]> There are a few optional extensions, but not too much.
<davidlt[m]> RVA23U64 (draft) has 7 optional extensions.
<davidlt[m]> LIke FP16 (scalar), then vector FP16 support, BF16 FP conversion, and two vector crypto (NIST and ShangMi) algorithms.
<davidlt[m]> That's look good enough for user-side stuff. Not all vendor will need FP16 and not everything needs all vector crypto algos.
<davidlt[m]> For example ShangMi is for Chinese market.
<davidlt[m]> Now for the supervisor: RVA23S64
<davidlt[m]> It's basically Sv48, Sv57, Svadu, Zkr, Sscofpmf.
<davidlt[m]> Then there are a bit more if SoC implements hypervisor.
<davidlt[m]> Now RISC-V Platform spec basically stalled (depends on RISC-V Profiles to land).
<davidlt[m]> Some bits were separated into a separate specification, OS-A SEE: https://github.com/riscv-non-isa/riscv-os-a-see
<davidlt[m]> Basically how to talk to the firmware, etc.
<davidlt[m]> Platform itself is most likely blocked by other work, again like a new interrupt controller, IOMMU, etc.
<davidlt[m]> So. Slowly we are approaching toward RISC-V Platforms specifications (and compliance testing).
<davidlt[m]> Once we have that you basically will be able to install your RISC-V system with a generic Fedora disk image via USB drive :)
<davidlt[m]> I remember when this happened in AArch64 land, and it was epic ;)
<davidlt[m]> Then new problem happened :) No company built SBCs that would match those standards :D
<davidlt[m]> Thus you had to buy a server system, or continue to use SBCs that don't comply.
<warren> is there a fedora image that boots on hifive unleashed?
<davidlt[m]> I don't produce those anymore as I no longer have Unleashed available to me.
<davidlt[m]> Well technically I could probably produce it using QEMU ans sifive_u machine was designed to match SiFive Unleashed.
<warren> qemu is normally painfully slow, but would that be faster than the unleashed? =)
<davidlt[m]> Realistically the next platform that I plan to support is JH7110-based PINE64 Star64 and VisionFive V2. Then TH1520 Sipeed stuff (hopefully) and Intel/SiFive HiFive Pro P550.
<warren> I'm considering who to best give this board to, but from what I'm hearing it doesn't sound useful to anyone.
<davidlt[m]> You can outperform Unmatched and Unleashed with QEMU, but not in all cases.
<warren> hah
<davidlt[m]> I think rwmjones still has 2 of them, but we aren't using them for 1-2 years now (?).
<warren> I found it in a pile of junk at our office. we thought we gave it away years ago. oops.
<davidlt[m]> Here is my personal suggestion:
<davidlt[m]> If you need a good value product and upstream support, buy VisionFive V2 or PINE64 Sar64 (in this specific order).
<davidlt[m]> 6.4 kernel most likely will boot out of the box on JH7110.
<davidlt[m]> Star64 is still not on sale thus DTS for it will show up later on.
<davidlt[m]> If you need a higher performance, epic value product, but you don't care about upstream support being almost ready then look at Sipeed TH1520.
<davidlt[m]> This will be the 1st SoC with OoO cores. Vendor suggest it will be 2x (or more) performance. Most likely in a very specific workloads it will be way faster.
<davidlt[m]> Intel/SiFive Horse Creek in HiFive Pro P550 is also OoO implementation. In some specific workloads (i think) they claimed 20x improvement. I think it was libquadmath.
<davidlt[m]> Also TH1520 has a lot of extension (most have now a matching RVI standard), that could in the future improve performance.
<davidlt[m]> I think T-HEAD claims ~40% if you are running software compiled with their extensions. Have no idea how that number was produced.
<davidlt[m]> Things like bit manipulation extensions are definitely a huge improvement in some workloads.
<davidlt[m]> VRULL has been working on some kernel stuff, LLVM, GCC, binutils, etc.
<davidlt[m]> We don't have an interface for HW probing then and just don't have any IFUNCs in glibc.
<warren> I'm overloaded with current work, I'll check this out later this year
<davidlt[m]> You will definitely have some good options to pick from later this year.
zsun has joined #fedora-riscv
zsun has quit [Quit: Leaving.]
jcajka has quit [Quit: Leaving]
guerby_ has joined #fedora-riscv
cwt[m] has quit [Ping timeout: 248 seconds]
gotmax23 has quit [Ping timeout: 248 seconds]
ahs3[m] has quit [Ping timeout: 248 seconds]
davidlt[m] has quit [Ping timeout: 248 seconds]
guerby has quit [Ping timeout: 248 seconds]
nirik has quit [Ping timeout: 248 seconds]
gotmax23 has joined #fedora-riscv
davidlt[m] has joined #fedora-riscv
ahs3[m] has joined #fedora-riscv
nirik has joined #fedora-riscv
cwt[m] has joined #fedora-riscv
davidlt[m] has quit [Ping timeout: 248 seconds]
davidlt[m] has joined #fedora-riscv