9 ms·
RISC-V port merged into Linux 4.15
- deleted 9y ago[deleted]
- nickik 9y agoI love how once this exists in all the standard tools, anybody can just make a new chip and practically instantly run huge amounts of software on it and have the right base to add to it. A free ISA is a great interfacing point, innovation can go on above and below mostly independently, no licences or anything required. A good example of permission less innovation. The road is long for RISC-V but I think the project is progressing about as fast as one can hope for. Thanks to everybody who helps with this.
- madez 9y agoWhile it is true that a lot of software is available immediately, there is also software which is not. For example PC games are nearly always restricted to x86. Performance of common non-x86 hardware might not be enough to run the latest, demanding games, but. I don't see why games like Factorio, Stardew Valley, Lethal League, Don't Starve or Bastion couldn't run on less powerful hardware. Great games do not require demanding hardware. One problem is that games are usually closed source and are rarely freed. Another problem is that there are no open graphics driver for common single board computers. The latter problem is being worked on by the amazing Mesa project. What can be done about the former? I worry that games will be abandoned and never be freed. The copyright of movies eventually expires and they become a common good. What about closed binaries compiled for obsolete hardware and software?
- deleted 9y ago[deleted]
- cyphar 9y agoThere are quite a few communities around creating free engines for games, such as OpenMW[1] (there are plenty more). With a free engine all of those problems can be resolved. As for movie copyright, this is the true purpose of DRM -- to try to make copyright eternal by locking away the content behind strong-enough encryption and then licensing the keys. And of course, breaking DRM (even if the content itself is no longer protected by copyright) is a felony. [1]: https://openmw.org/en/ https://openmw.org/en/
- madez 9y agoWow. So DRM is a technical hack of copyright law. Is there any other way than adjusting the law to enforce release?
- zanny 9y agoThis is going to be one of the most embarassing chapters of world history in a few centuries. "Oh yeah, all those old folk at the turn of the milennia had this thing called copyright and all their code was proprietary so we no longer can run or use 99% of software written between 1970 and 20XX". "And there are these files where it was a felony to be able to access them!" Wow those guys were sure dumb. Now all our information is open and shared and makes the world a better place and anyone can use it or improve it! All I can is lets hope its only until a 20XX that we get over the facade of IP being worth the cost.
- squarefoot 9y ago"This is going to be one of the most embarassing chapters of world history in a few centuries." And it won't be that far from archaeologists being prevented to decipher any ancient language. If today's copyright laws existed in historic times we wouldn't have precious documents copied by monks nor the Rosetta Stone. It's just dumb crazy how this works.
- pkaye 9y agoIs having copyright a concern? Even Linux has a copyright. And all GNU software. Do you want all forms of copyright not to exist?
- zanny 9y agoI am a general IP abolitionist, but the real solution to the problem of source code lost forever is in the domain of right to repair. Since the advent of software the right to repair, which used to be respected for almost anything you could buy, has been completely abandoned. Requiring access to the sources to modify code you buy (or in a post-IP world, receive in binary form) would go a long way to stopping the software culture death of source code never being released and rotting on hard drives until its irretrievable. The problem is the current dominant culture is either completely apathetic or actually hostile to right to repair for software. Its why I say "I hope its only 20XX" because I don't see the path to fixing that mindset. That being said, it is important to distinguish that while I spoke about how future historians will see both draconian IP and the lack of right to repair as barbaric and antiquated, they are distinct but related concepts.
- imtringued 9y agoI have switched to opensource alternatives primarily because of the freedom to recompile it to different architectures. >Another problem is that there are no open graphics driver for common single board computers. The latter problem is being worked on by the amazing Mesa project. What can be done about the former? Can you tell me more about this?
- madez 9y agoI phrased it incorrectly. The work is not done necessarily by the mesa project, but within its framework. The degree of activity of each project varies. Mali 400 (Allwinner A20) https://github.com/yuq/mesa-lima https://github.com/yuq/mesa-lima Adreno 2xx, 3xx, 4xx https://github.com/freedreno https://github.com/freedreno https://mesamatrix.net/ https://mesamatrix.net/ VC4 (Raspberry Pi) https://github.com/anholt/mesa/wiki/VC4 https://github.com/anholt/mesa/wiki/VC4 If the VC4 or Mali driver mature, then that'd be a huge step forward.
- phkahler 9y agoI've said it before, but I'd like to see LLVMpipe get a risc-v back end. And when the vector extensions are ready, support for that. This way all the SoC vendors should be able to implement basic frame buffer support with HDMI and use extra risc-v cores in place of a GPU. It wouldn't be fast, but it should be enough for things like a composited desktop and would provide minimal OpenGL support. Also, some guys have done a 500 core risc-v chip so maybe it doesn't have to be a poor performer. Intel got decent performance from Larabee right? edit: the point is that many companies don't have any graphics IP, so this would give them a compromise.
- jabl 9y agoIsn't a contemporary nvidia GPU essentially a vector machine with predication and scatter/gather? In CUDA it's just hidden behind the "SIMT" programming model. If so, there's no fundamental reason why you couldn't make a decent GPU based on risc-v + the vector extension. Just make the cores themselves relatively modest, no reason to waste die area on OoO logic, and have lots of hardware threads to drive memory parallelism. Oh, and gobs of memory BW. Though IIRC Intel had to have some fixed function blocks, and IIRC other GPU's also have some of them left. I also recall reading about Larrabee suffering from a lot of internal BW being wasted on cache coherency traffic, but with risc-V having a weaker memory consistency model perhaps that would be less of a problem for a hypothetical "risc-v gpu"?
- ekianjo 9y agoI know its not ideal but x86 can run on arm via a x86 processor emulator, and then WINE to convert windows systems calls and directx calls to Linux and OpenGL. So nothing will really be lost as long as WINE lives on as a project.
- monocasa 9y agoOne issue is that RISC-V has a weaker memory model than x86, so even qemu-user wouldn't work unless single threaded or pinned to one core.
- pjc50 9y agoWhat about the boot sequence and driver enumeration? How is this handled in RISC-V? This has traditionally been one of the major obstacles to ARM - you need different kernels for two ARM devices with nominally the same core because of initialisation differences. Devicetree makes this better but not 100% as simple as the old "legacy" PC boot sequence was. Ironically these days PCs are quite hard to boot too with UEFI.
- nickik 9y agoThere are still many issues left and it will not be easy to figure out all these things. It will have many of the same problems as ARM but hopefully the community can work on these.
- rwmj 9y agoFor servers, they're looking at ARM SBSA as a model. There's already some starting work on UEFI for RISC-V (done by HPE).
- Zaak 9y ago> There's already some starting work on UEFI for RISC-V That makes me deeply sad.
- rwmj 9y agoWhy? UEFI is open source. It's standardized, and provides standard interfaces to boot-time device drivers and to operating systems above. It provides a reasonable command line (TBH much preferable to u-boot). It works well with Linux and Windows. It's complicated, but it's solving a complicated problem.
- jabl 9y agoParts of this presentation has some explanation: https://schd.ws/hosted_files/osseu17/84/Replace%20UEFI%20with%20Linux.pdf https://schd.ws/hosted_files/osseu17/84/Replace%20UEFI%20wit... (obviously you can ignore Intel x86 specific stuff like the ME). OpenPOWER apparently does something similar, i.e. a minimal firmware that loads a Linux kernel + simple userspace from flash.
- jjawssd 9y agoIt is impressive to see a new architecture already have so much support for existing software with a relatively simple hardware support layer. It is already standing on the shoulders of giants with millions of man-hours invested in software development to bring it to its current state. Related Question: Why is Google developing a new operating system for their devices from scratch? Will this operating system be incompatible with all existing software? Or will it be compatible with software and hardware platforms like this one through some sort of compatibility layer? https://news.ycombinator.com/item?id=13649523 https://news.ycombinator.com/item?id=13649523 https://news.ycombinator.com/item?id=15041567 https://news.ycombinator.com/item?id=15041567 https://news.ycombinator.com/item?id=15059349 https://news.ycombinator.com/item?id=15059349 https://news.ycombinator.com/item?id=14002386 https://news.ycombinator.com/item?id=14002386 https://news.ycombinator.com/item?id=15058351 https://news.ycombinator.com/item?id=15058351
- pedroaraujo 9y agoFuschia will be a capability-based operative system [1], a new security model for computing. I guess Google wants to experiment with a new software system for secure IoT devices. [1] https://en.wikipedia.org/wiki/Capability-based_security https://en.wikipedia.org/wiki/Capability-based_security
- snvzz 9y agoLinux, while very successful, is still essentially based on a design (UNIX) from ~1970. Much has rained since then in OS design.
- jjawssd 9y agoLinux has evolved considerably in design since the 1970s!
- phantom_oracle 9y agoCan someone explain what having RISC-V support in the kernel means for Linux OSes ? Also, how is this different to: https://wiki.debian.org/RISC-V https://wiki.debian.org/RISC-V ?
- consp 9y agoSince the status log includes the patch request and news about it, I think none. It seems originated from the combined efforts of the RISC-V community at large and supported by the distribution. Pull request: http://lkml.iu.edu/hypermail/linux/kernel/1711.1/04263.html http://lkml.iu.edu/hypermail/linux/kernel/1711.1/04263.html
- dtech 9y agoIt's been merged into the main kernel (i.e. the one maintained by Linus). Distributions can apply their own patches against the main kernel, which Debian did for RISC-V support. They don't have to apply the patches anymore. Functionality wise, what's been merged is only a subset.
- davidlt 9y agoStable ABI. We have done ~Fedora 25 in late 2016 - https://fedoraproject.org/wiki/Architectures/RISC-V https://fedoraproject.org/wiki/Architectures/RISC-V and you can even boot that in your browser - https://bellard.org/jslinux/ https://bellard.org/jslinux/ ABIs have changed after we did this. We get the first long-term stable ABI with 4.15 kernel and glibc 2.27 (hopefully). At that point Fedora, Debian, and others can reboot efforts.
- phkahler 9y agoThat was great work and it made RISC-V look that much more viable to me. To think that thousands of programs are ready to go whenever the hardware arrives is really amazing. It's unfortunate that some of it has to be repeated after the ABI changes, but that seems a small price to pay in the grand scheme of things. But then I'm not the one who did it or has to redo it ;-) Anyway, great job guys!
- mmjaa 9y agoI'd really like to jump on the RISC-V bandwagon. Does anyone have any recommendations for hardware that would be .. somewhat .. future-proof for hacking/experimenting on this platform? I'd love to have a board or two akin to the rPi-Zero in form-factor, if such a thing were available ..
- kbeckmann 9y agoAs far as I know, only the Freedom E310[1] chip is available for purchase by normal consumers. It's a microcontroller and only has 16kB of RAM so it's probably not really what you are looking for. But if you are still interested in it, you can pick up a HiFive1 devkit at crowdsupply[2] and possibly elsewhere. There's also the cheaper LoFive[3] which is a very bare breakout board for this chip, but I'm not sure if it's possible to buy it anymore. [1] https://www.sifive.com/products/freedom-e310/ https://www.sifive.com/products/freedom-e310/ [2] https://www.crowdsupply.com/sifive/hifive1/ https://www.crowdsupply.com/sifive/hifive1/ [3] https://groupgets.com/campaigns/353-lofive-risc-v https://groupgets.com/campaigns/353-lofive-risc-v
- vhodges 9y agoNothing available yet capable of running Linux. SiFive has a SOC coming soon (https://www.sifive.com/products/risc-v-core-ip/u54-mc/ https://www.sifive.com/products/risc-v-core-ip/u54-mc/) that will be. Speculation is that dev boards will be available 1st quarter 2018. My guess is that they'll announce (likely on crowdsupply) around Christmas for delivery sometime next yet... but just a guess. The other option that is coming is from lowrisc.org, but they are a small team so it's taking a long time and have no idea when they might be thinking of delivering hardware.
- deleted 9y ago[deleted]
- srcmap 9y agoAlso, is there any (low cost?) FPGA board that is capable of running RISC-V + Linux? That would be a fun thing to to do.
- 9y ago
- deleted 9y ago[deleted]
- ramshorns 9y agoHere's an archive mirror that works without JavaScript: https://archive.fo/kVvQZ https://archive.fo/kVvQZ
- acoye 9y agoWith Google's new war on Intel's ME this is not a coincidence.
- thisispete 9y agoRISC is good. https://www.youtube.com/watch?v=wPrUmViN_5c https://www.youtube.com/watch?v=wPrUmViN_5c