545 points · by tpush · 4y ago · 187 comments
* an excellent POC of Rust drivers on Linux
* the dev live-streamed almost every minute of development
* the dev is a virtual anime girl
So far I'm LOVING 2022.
I think Alyssa Rosenzweig and Asahi Lina both did pretty substantial work on this?
(Both of them deserve a ton of praise, of course.)
Ultimately, though, does it matter at all?
Who had "skilled Linux kernel vtuber writes reverse engineered drivers for Apple hardware" on their 2022 bingo cards?
Is there an archive of this dev work?
Who's running this operation.
A random stream: https://www.youtube.com/watch?v=jbVQWo0kh9Q
Stoical irony.
Edit: Look: you can be excited by some tech advance, but no - 2022 remains part of an ongoing global disaster. The above quoted sentence is hardly manageable. The best it deserves is to be read like some twisted humour.
Which of the several dozen currently ongoing global disasters are you referring to, and, bluntly, why should we care?
Because you are living in it. (At least that.)
But what I wrote is not "that you should care" - it was that you would better avoid expressions that read naïve and possibly uselessly provocative. When somebody communicates something like "Oh sweet were the times under the iron fist", it better be for a good clear reason.
You should care about your audience - and avoid lacking respect.
Life is good and only getting better :- Not sure where this “global disaster”, but then again I’m not a Doomer.
Is it?
> drawElements (dEQP) is a very robust and comprehensive set of open-source tests for GLES2, GLES3+ and EGL. They provide a huge net of coverage for almost every GL API feature.
So this is some CSS Acid test for OpenGL Embedded Systems (GLES).
https://github.com/KhronosGroup/VK-GL-CTS/blob/main/external...
It’s tough out there in the culture wars.
Rest in peace Near you magnificent person.
I agree that it makes the videos hard to watch for me, but it's their choice to use and and my choice if I want to watch.
I have already been reading the state of running x86 vms on macos on an m1, it is slow but my friends claim usable. Add it on an early linux impl on native m1, then x86 vm.
Why am I torturing myself? I want to get back to having a great fanless system like I used to have on a google pixel laptop, where they had underclocked x86 but running without a fan was great.
Since Rosetta for Linux was coerced to run on non-Apple ARM Linux systems almost as soon as it shipped in developer preview builds of the upcoming macOS, it would not be surprising if Asahi ends up making use of it outside of a VM context (though that may not comply with the license).
https://developer.apple.com/documentation/virtualization/run...
You can run a GUI but it would currently run on the CPU not GPU. Reports are that the UI is quite snappy running on the CPU. The basic Asahi install is Arch with KDE. Linus apparently put Fedora on his travel laptop. What Linus was complaining about is Chrome support, which is coming or maybe is already available - https://twitter.com/asahilinux/status/1507263017146552326?la...
Personally, after a long time Thinkpad and Dell XPS user, I am so happy about my Macbook, which is my first, they will have to try hard to win me back. And I am saying this as non Apple user (never had an iPad, MacBook, iPhone, whatever). Asahi + Macbook Pro is really really great and IMHO, even in it's early stage and IMHO for Linux enthusiastics will be the killer device in the upcoming years.
BTW: I bought the Macbook in April and gave macOS a serious chance (after being a pure Linux user since 15 years). Tried to set it up for my needs... But I gave up in July, I just can't handle it, for me it's like a toy. It's good for people (like my wife) who browse the internet and do some office work, but for software devs that need to get shit done fast and like to have an open system its... kind of crap (just my pesonal opionion).
The total number of people who will be doing this will number in the hundreds. Not to diminish what an interesting achievement it is.
https://lwn.net/Articles/638908/
> So in mid-2012 he decided to do something about it. He was working for TI at the time, so PowerVR-based GPUs (as used by TI) were off-limits. He found some hardware that had an Adreno 220 and started to reverse engineer it. He began work on a Gallium driver in November 2012. By early 2013, he had most of the "normal stuff" working. He could run GNOME Shell and some games on the hardware.
So it's been done before, but of course Freedreno's Rob Clark is undoubtedly exceptionally good as well.
You have to wonder if the M1 situation would be different if he had been working for another company... (M1 GPU is PowerVR descendant and there hasn't been a open source driver for that lineage historically)
For me it's a bit surprising that there are not more people working on it, the M1 having been out for 2 years already and this having wider appeal than the Freedreno initial users audience.
But, maybe the 1 person way is better, since the Nouveau history seems to be people coming and going and work progressing in fits and starts: https://lwn.net/Articles/269558/
(Also the nouveau people were first to start, so they cleared way and paid a lot of dues saved by subsequent projects)
edit: also nouveau history is somewhat chronicled in the early newsletters starting from the early 2006 days: https://people.freedesktop.org/~mslusarz/nouveau-wiki-dump/N...
Indirectly. Apple made some changes in the past that were likely geared towards helping them. Was on kernel not gpu though I think:
https://twitter.com/marcan42/status/1471799568807636994
Don't think they got active help in the "here's the docs" sense
Conpared to other reverse engineering projects, the M1 macs are not a moving target and they dont have to encounter new lockdowns every time, unlike other reverse engineering scenarios lile the cracking scene or emulators
This seems quite a big deal for Apple - and said as a long time Apple user.
And since then, it's been radio silence from Cupertino HQ. Nobody ever confirmed why they did this. Was it serendipity or loving compassion? Nobody can say for sure, but if it's the latter then Apple seems to be very conservative with their blessings upon the community.
The one hitch in that was the brief period where Macs used a chopped down A-series SoC in place of traditional x86 motherboard components (T1/T2 chips), but they provided Windows drivers for those making the difficulties Linux had with them an issue of drivers rather than inability to boot.
And then there's the issue of the stack itself. It's hard enough getting Wine and DXVK to run on hardware designed to run Windows/DirectX respectively, but running it through Rosetta/Box86, on Asahi, using half-finished video drivers, is probably not great for stability. Just my $0.02.
Edit: I thought you were talking about Asahi gaming. The state of Proton on MacOS is hopeless (Valve devs abandoned it after the Catalina announcement), but you can definitely run it in a VM if you're so-inclined. Wouldn't necessarily be any faster than using Windows in a VM, but it's still an option.
It's already possible to do what you want, with Parallels and any modern arm64 Linux distro, as long as the games are compiled for arm64 / you're willing to take the performance hit of emulation.
It doesn't make any strides unfortunately.
> Perhaps some kind of "headless" Linux VM
Linux narrowly supports the Steam Deck's goals. It doesn't make sense to use on a device like a Mac.
> Can someone with more knowledge than me explain if that is feasible in the coming months/years?
An end user is best served by Parallels. Overall, it doesn't make sense to run Windows-only games on a Mac.
1. A Linux VM which has steam installed on it. 2. A project like virglrenderer[1] for macOS and which processes Vulkan commands from the VM with virtio-gpu and sends data back. (I don't exactly know how it's done.)
This would allow games on the Linux VM's steam run at near-native GPU performance. On the CPU side, there still a need for instruction emulation like QEMU. Or, Apple posted somewhere that you can run x86_64 Linux binaries inside the VM with the help of Rosetta. or an ARM64 Linux VM with Steam running via FEX-Emu.
If so that seems to be shaping up REALLY well!
https://arstechnica.com/information-technology/2019/09/devel...
This project is designed to provide an open-source replacement for macOS's GPU drivers in order to boot Linux bare-metal, so it solves an entirely different problem. Maybe some of the knowledge will carry over -- especially the userspace side of things Alyssa was working on -- but as far as I know this is not automatically transferrable.
This is why everyone else (non-developers) are waiting for a reliable release first rather than trying it out, something goes wrong and another person will find out and say: 'it's not ready for general use.'