7 ms·
Keeping POWER relevant in the open source world
- andrewf 5y agoAt least Linux POWER can go little endian! Being big endian seems pretty lonely in 2022 - AIX, Solaris and stuff on System Z? https://community.ibm.com/community/user/ibmz-and-linuxone/blogs/javier-perez1/2021/01/19/endianness-guidance-for-open-source-projects https://community.ibm.com/community/user/ibmz-and-linuxone/b...
- gnufx 5y agoI counted other big endian processors (probably looking at GCC support) a while ago, but I don't remember what they were, and probably only embedded processors.
- Lammy 5y ago> "Old Macs are big-endian, just as network processors from NXP. Some Power developers still want big-endian systems to keep the dream alive. But support for big-endian systems is mostly gone from Linux distributions, and when it comes to developing common utilities or even programming languages, most developers are no more even aware that a world exists outside of little-endian. As much as I love the PowerPC laptop project, I see it now as a dead end: producing hardware for an ever shrinking software ecosystem." Note that PowerPC itself is bi-endian and always has been since the PPC601, configurable via a special register. POWER gained this capability in POWER3 when it subsumed the PowerPC ISA. Old PowerPC Macs are explicitly big-endian because they needed to maintain compatibility with everything written for the earlier MC680x0-based Macs whose CPUs were big-endian-only. Windows NT ran on PowerPC in little-endian mode! https://www.cs.umd.edu/~meesh/cmsc411/website/projects/outer/memory/archs.htm https://www.cs.umd.edu/~meesh/cmsc411/website/projects/outer... https://catfox.life/2018/11/03/clearing-confusion-regarding-modern-powerpc-endianness/ https://catfox.life/2018/11/03/clearing-confusion-regarding-...
- gnufx 5y agoOne of the problems with the systems seems to be IBM support, at least for people with Sierra/Summit-like nodes who are averse to trying to talk to Livermore and Oak Ridge. That includes dropping support for what seemed to be the major selling point for our system before it got going. (Admittedly it probably only needs someone who needs it with some get-up-and-go to do the work, but still.) It is different with the IBM GCC maintainers, who you don't talk to through IBM, of course.
- einpoklum 5y ago> in most parts software support for Power 9 is now in par with x86 and ARM. I very much doubt this. > we need affordable Power hardware quickly to keep and expand the momentum. Possibly, but the POWER architecture would get (a lot ?) more traction if the entities behind it made VMs with OS distros easily available for ensuring FOSS builds and works on them. This is much less of a challenge than making cheap hardware available. Travis CI - the way it used to be anyway before they started asking for money even from FOSS developers - is a good example of how this could be offered. It was very easy to set this up for your FOSS repository (on GitHub at least - but IBM would need be more welcoming than that), and from that point it wasn't that hard. For some larger projects, direct interaction may be even more readily effective, e.g. getting in touch with maintainers of Linux and with BSD distributions, with the Document Foundation for LibreOffice support (maybe it's already supported?) etc. --- If this happens in parallel (or before) reasonably-cheap hardware is available, then I would expect more "buy-in", figuratively and literally.
- dandotway 5y agoBig Endian POWER isn't bug-for-bug compatible with buggy Javascript usage of typed arrays that assumes little endianness, and thus browsers/nodejs/deno on POWER will be exposed to bugs that don't affect little endian x86-64/ARM. After so many years of endianness bugs in C/C++ code, it's perplexing that the web standards committee voted to put typed arrays in Javascript in such a way that exposes platform byte order to Javascript programmers who can't generally be expected to have low-level C/C++/ASM experience with memory layout issues: function endianness () { let u32arr = new Uint32Array([0x11223344]); let u8arr = new Uint8Array(u32arr.buffer); if (u8arr[0] === 0x44) return 'Little Endian'; else if (u8arr[0] === 0x11) return 'Big Endian'; else return 'WTF (What a Terrible Failure)'; } EDIT: my old Power Mac was big endian, but I just read POWER has an endianness toggle. So in little endian mode it ought run endian-buggy JS with bug-for-bug compatibility.
- classichasclass 5y agoSpoiler alert: it does (typing this in Firefox 96 on a little-endian POWER9). In TenFourFox, which ran exclusively big, we had code to byteswap typed arrays to make them look little-endian to scripts. This partially worked (enough for many `asm.js` scripts to run).
- Abishek_Muthian 5y agoCan someone who's using a PowerPC workstation for day-to-day tasks tell where its better than x86_64 or ARM?
- redwood 5y agoSqueezed out my ARM frankly since it's captured the imagination as the next server platform
- h2odragon 5y agoIf i had a "different" ISA to market, I'd think the very first priority would be to have excellent free compilers for it, be they FOSS or not. Write our own and give them away if we gotta. Remove every barrier to people using your product that you can. IBM doesn't think that way. They're probably using "the longhair hippies can't use this hardware" as a selling point.
- detaro 5y agoTIL LLVM and gcc are not excellent free compilers and useless for longhair hippies. What do your hippies use?
- h2odragon 5y agoI know nothing of the support for the POWER arch out there now... if you do, would you say it could be improved? is "corporate whim" stifling open support for them? Last I messed with POWER i couldn't find docs for what I needed and so just stuck with Intel Sparc and Alpha. (The last two were still viable market presences then; to give an idea of how long ago this was)
- detaro 5y ago... so you "know nothing", but started the discussion by making a strong claim to the contrary, seriously? The article already lays out the field: The infrastructure groundwork is done (compilers, linux distros, ...), in no small part thanks to IBM funding such efforts. The main limit is hardware availability and overall mindshare, not infrastructure. If you have a reason to develop for POWER it's easy and reasonably well documented in my experience, the problem for the ecosystem is that few people have such reasons. (i.e. you're either an enterprise supplier like SAP or a bunch of nerds at an uni or with a raptor box at home, little inbetween)
- nix23 5y ago>Last I messed with POWER i couldn't find docs You can use google nowadays.
- 5y ago
- goodpoint 5y agoIBM had the opportunity of being the royalty-free ISA that RISC-V is. Or even release the cores "IP". They squandered it.
- google234123 5y agoAnything to back up this assertion? Like some key dates/moments?
- smarx007 5y ago"squandered [..] the opportunity of being the royalty-free ISA" Last time I checked, IBM was a business. I don't think losing an "opportunity" to give away the ISA for free sounds like a loss to them.
- tyingq 5y agoThey open sourced the ISA in 2019. https://openpowerfoundation.org/the-next-step-in-the-openpower-foundation-journey/ https://openpowerfoundation.org/the-next-step-in-the-openpow...
- classichasclass 5y agoThe ISA is open and royalty free. There are at least three open cores, all IBM funded or designed: https://github.com/antonblanchard/microwatt https://github.com/antonblanchard/microwatt https://github.com/openpower-cores/a2o https://github.com/openpower-cores/a2o https://github.com/openpower-cores/a2i https://github.com/openpower-cores/a2i The last two are older but they work. Microwatt is developing by leaps and bounds.
- goodpoint 5y agoI'm aware. The problem is that the ecosystem has been opened up too late, while the RISC-V ship has sailed and also missing the opportunity to disrupt datacenters and phones.
- ashirviskas 5y agoCan someone tell me where I can read more on what Power exactly is?
- ngcc_hk 5y agohttps://www.geeksforgeeks.org/powerpc-architecture/ https://www.geeksforgeeks.org/powerpc-architecture/ Geek for geek. Otherwise try wiki. https://en.m.wikipedia.org/wiki/PowerPC https://en.m.wikipedia.org/wiki/PowerPC Used in old apple before replaced by intel. In one console.
- sidpatil 5y agoPowerPC is a derivative of the original POWER architecture by IBM. https://en.m.wikipedia.org/wiki/IBM_POWER_instruction_set_architecture https://en.m.wikipedia.org/wiki/IBM_POWER_instruction_set_ar...
- chasil 5y agoAlso used in the Xbox 360, and an exotic variant was also in the PlayStation 3.
- classichasclass 5y agoAnd GameCube, and Wii/Wii U.
- Nursie 5y agoPower is a processor architecture produced by IBM. It's been pretty popular at times - server side it was up there with Sun Sparc in popularity, before Linux on x86 ate the server market for lunch. Client side, variants of it were in every console for one of the generations - Wii/PS3/Xbox360. As pointed out by another poster, the PowerPC variant used to be in apple hardware too. Variations of standard Power chips are also what runs IBM's mainframes. For quite a long time they beat Intel in raw performance on some benchmarks. The problem is it was 10x the price. The workstations and servers were always crazy expensive compared to x86 hardware and that's one reason they remained pretty niche. Within IBM, Power systems were most frequently used to run IBM's Unix - AIX. https://en.wikipedia.org/wiki/IBM_Power_microprocessors https://en.wikipedia.org/wiki/IBM_Power_microprocessors
- marcodiego 5y agoDon't forget that POWER10 is no longer ryf-certifiable. Of course the ryf certification may be questionable but it is an established bar, POWER9 was able to cross it, POWER10 probably won't: https://www.talospace.com/2020/08/power10-sounds-really-great-but.html https://www.talospace.com/2020/08/power10-sounds-really-grea... https://twitter.com/RaptorCompSys/status/1435510763402244105?ref_src=twsrc%5Etfw https://twitter.com/RaptorCompSys/status/1435510763402244105...
- unixhero 5y agoAny reference to the ryf certification?
- Jasper_ 5y agoThey're referring to the FSF's "Respects Your Freedoms" programme, a frankly absurd specification that encourages vendors to lock down closed source firmware into ROM rather than actually make it free. RYF doesn't care about the hardware designs themselves being open (no computer would qualify in that case), so they treat closed-source firmware ROM images as identical to closed-source hardware, which is fine. But store that firmware on some sort of RAM, or flashable ROM, and all of a sudden it's now closed-source firmware, which is bad. The end result is that systems that are the most locked down are those which "Respects Your Freedoms".
- detaro 5y agoRYF allows various "tricks" of hiding blobs, so it is not what I'd use as the benchmark here. Raptor's standards are likely higher than what RYF would require...
- mkj 5y agoAt the other end of the scale, if anyone wants to play you can run a little openpower CPU on an FPGA with completely open source. https://github.com/antonblanchard/microwatt https://github.com/antonblanchard/microwatt It's capable of running Linux, some example docs are https://shenki.github.io/boot-linux-on-microwatt/ https://shenki.github.io/boot-linux-on-microwatt/ The toolchain consists of "apt install gcc-powerpc64le-linux-gnu" on Debian, no funny downloads. And if you want to target a Lattice ECP5 board even the FPGA tools are also all open, thanks to Yosys and friends. All the openpower ISA spec PDFs are available for perusing on the openpower site.
- berlinquin 5y agoThanks for sharing. I've looked at getting a PowerPC dev board, but didn't find anything at a reasonable price. I never made the connection that microwatt plus and FPGA would get me there.
- mkj 5y agoWe've now got a walkthrough up for getting Microwatt going on an OrangeCrab ECP5 board. https://codeconstruct.com.au/docs/microwatt-orangecrab/ https://codeconstruct.com.au/docs/microwatt-orangecrab/
- deleted 5y ago[deleted]
- huks 5y agoMy experience using Voidlinux, on a Raptor POWER9 system, has been excellent. The software support has just gotten better and better. It would be a shame to lose this momentum. Affordability and availability are major pain points. I've shared my excitement about OpenPOWER with many and their excitement evaporates when they are told what a modest system costs. I am strong believer in FOSS and fully open owner controlled hardware. I think this is far more important than it appears at first glance. It sounds like tinfoil hat stuff, but the reality is we're backed into a corner. The less control owners/users have, the more vulnerable they are. --edit typo s/that/than/..
- AlbertoGP 5y agoMy main workstation is too a Raptor Power9 running Void since November 2019, and I’m very happy with it although as the article mentions, “My experience with firmware is that open source does not mean necessarily better, rather the opposite”. OpenBMC (the firmware for the little ARM-based embedded computer that boots the big one) has a number of rough edges. From time to time I submit patches to software to make it work (or work better) on this machine, last week it was these two trivial ones: https://github.com/ciao-lang/ciao/pull/45 https://github.com/ciao-lang/ciao/pull/45 https://github.com/janet-lang/janet/pull/915 https://github.com/janet-lang/janet/pull/915 Typically that’s all that’s needed, in some cases it’s just more of it: https://github.com/oneapi-src/oneDNN/pull/767 https://github.com/oneapi-src/oneDNN/pull/767 But for most things, since it’s Linux, it’s just those small changes: (one of my customers runs the software I write on AIX and that’s a little more work) https://github.com/IntelRealSense/librealsense/pull/5586 https://github.com/IntelRealSense/librealsense/pull/5586 https://sourceforge.net/p/speed-dreams/tickets/1022/ https://sourceforge.net/p/speed-dreams/tickets/1022/ For Rust programs, many packages used i8 for C strings (to interface with OpenGL for instance) which broke when running on ppc64 and had to be changed to c_char, but that’s not a problem these days, I guess because many people now test on ARM. https://github.com/femtovg/femtovg/pull/5 https://github.com/femtovg/femtovg/pull/5 Before Power10 was done, IBM actually asked us Raptor users about proposals for useful machine code instructions to add to it. I replied that I’d like to have hardware UTF-8 de-/encoding but they wanted a more detailed proposal and I never got around to write it. I’m not even sure that this would be worthwhile, but I see UTF-8 de-/encoding everywhere in the code I write and would like it to approach memory read/write speeds. I was very disappointed to learn that they had gone more proprietary with Power10 so I would not have been able to use those instructions anyway. What a pity! This machine still covers my needs so I’m not planning to replace it any time soon.
- hulitu 5y agoWhat was interesting at Power is that it used SDRAM at half the processor speed which made processing of data from memory faster unlike traditional PC when you read data in bursts.
- DannyBee 5y agoIBM has had this argument internally for eons. When i was there, two decades ago, people were making presentations internally saying the same thing - "without affordable volume machines that random people can buy and use to develop, this ecosystem will fail" Then, like now, there were even organizations/companies people thought might eventually take care of doing this that weren't IBM (Spoiler alert: They didn't) Given that it has been at least two decades, i'm not sure whether that makes the doomsayers wrong or right. But I am sure of one thing: IBM didn't care to do it then, and doesn't seem likely to start caring to do it now
- chasil 5y agoThis is starting to feel a lot like the DEC Alpha, at least from the perspective of the 3rd party motherboards. The ubiquity of x86 and ARM does not leave much room for the Power architecture in the general market.
- nix23 5y agoOr is it the Power architecture who is not bringing much on the table for the price? (except radiation hardened chips, where money is not important)
- chithanh 5y agoWarning: rant (sorta) I remember discussing with an IBM representative at one of the last CeBIT shows (was it 2016?) that the community who did open source development on non-x86 were gravitating away from POWER/PowerPC towards ARM. The affordable hardware was a major selling point. His offered "solution" was that IBM granted free access to its POWER cloud. But that is of course not interesting for someone who runs a home lab and works on Linux distros. And even so, the blog post still does not aim to where they need to aim. Raptor systems are far from "affordable" for your average CS undergraduate or hobbyist. Power Pi's $250 target price is still off by almost an order of magnitude. The $250+ market is served by second-hand POWER servers, which are ok for home labs. Unfortunately, Ubuntu and IBM in their infinite wisdom decided to drop POWER8 support from upcoming releases, which will drive away home labs and the open source community further from Power. https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-22.04-LTS-POWER9 https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-2...
- markphip 5y agoThe most compelling argument for POWER was to make sure there is competition to amd64/x86 and we do not develop a monoculture. I think arm and risc-v have filled that hole nicely and taken over for POWER. Without readily available and affordable hardware I do not see much of a future for POWER in open-source. It seems entirely dependent on IBM to keep it going unless this changes.
- classichasclass 5y agoI'm not sure I agree about RISC-V. ARM is now indisputably in the same performance ballpark as x86_64 (M1 most obviously but there are others), as is Power, but RISC-V has a ways to go before it can compete on the same turf. It hasn't even really competed with ARM in embedded, despite its advantages there (though it has all but killed the zombie corpse of neo-MIPS). I do agree that without other processor makers, however, the Power ecosystem is crucially overdependent on IBM policy. This is not a new problem but it hasn't gotten any better with OpenPOWER.
- markphip 5y agoI did not mean to imply that I thought RISC-V was a challenger to x86 and ARM right now. Just that it is accessible to those that want it which can let them make sure software runs on it. Even that, I do not think is really true yet but it seems like it is the direction things are heading. With POWER, I just do not see the motivation, outside of IBM, for doing any work with it anymore.