2021-10-10
00:05doggkruse has joined #asahi
00:07hspak2 has quit [Quit: bye]
00:11hspak2 has joined #asahi
00:12timetheory[m]What’s the current usability status of Asahi Linux?
00:15hspak2 has quit []
00:18hspak2 has joined #asahi
00:29hspak2 has quit [Quit: bye]
00:42doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:47doggkruse has joined #asahi
01:17timetheory[m]Am I being ignored or is the matrix bridge broken?
01:18timetheory[m]marcan: I'll take that as being ignored ;)
01:19marcanI just released a detailed progress report mentioning what works and what doesn't the other day, does that help?
01:19timetheory[m]marcan: Hmm, I can't find it on the homepage or with a quick search, do you have a link handy by any chance?
01:21timetheory[m]Thank you so much!
01:23timetheory[m]When you state that "M1 Macs are actually usable as desktop Linux machines", does that mean that you'd actually recommend using Asahi as a daily driver or is it not stable enough yet?
01:24timetheory[m]Whoops I missed that part
01:24timetheory[m]Though yeah the project has been coming along really quickly so I wish you guys best of luck
01:25timetheory[m]s/really/surprisingly/
01:25marcanI think we're doing a pretty good job at keeping things stable; I expect a bit of a longer tail there in graphics since that has a much larger bug surface, but otherwise things basically just work once they're implemented
01:27timetheory[m]marcan: Honestly that's kinda the reason I want to use Linux instead of macOS; macOS seems to break when you do weird stuff but Linux seems pretty stable even when you break it
01:28timetheory[m]What are your thoughts about this continuing to work on next-gen macs? I saw some thoughts on reddit the other day that Apple may change courses and not allow custom OSs on their second generation like Sony
01:30marcanapple put together like a whole team of people to develop the boot policy system to make this happen
01:30timetheory[m]Wonder why they didn't release any docs at all :|
01:43chadmedi would also think that apple trying to lock down the bootloader of ostensibly desktop-class devices would open up a regulatory can of worms for them. it would be an incredibly significant break from the last 30-odd years of computer tradition and i cant see regulatory bodies like the EU taking too kindly to such locking down
01:44chadmedespecially considering the accelerating support for right to repair and device ownership among legislators and the like. maybe RMS will get his wish and tivoisation will eventually be outlawed
01:55doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:01robinp_ has joined #asahi
02:08robinp has quit [Ping timeout: 480 seconds]
02:09marcancorporate is unlikely to make any official statements or guarantees, but they also have no reason to make things harder for us
02:11arahael1That's curious, and imho flies against the trends in Apple. However, that means it's very hopeful and promising that we might have a *fantastic* ARM-based laptop for us to use for linux. :)
02:11timetheory[m]marcan: I mean if they want to make Mac a closed system (like iOS, App Store revenues are huge) they absolutely would have a reason to make things harder
02:12arahael1 is now known as Arahael
02:13marcanyou can have bad stuff come from the top, but there's only so many things management can concern themselves with, if nothing else
02:13chadmedfeudal capitalism like people think exists in big tech isnt really a thing outside of east asia. sure, large corporations can be shitty and evil but most of this is enabled and even somewhat created by people _outside_ the company manifesting it. think of reddit's opinions on apple as nothing but a marketing factory. patently false as anyone who has spent any time with their more recent devices can tell you.
02:13i509vcb[m]marcan: It is definitely easy to assign some label of the fat cat but really all companies are made up of people who do have things they need to achieve in order to sustain themselves and their livelihoods
02:13i509vcb[m]This however does not justify bad decisions execs make to be fair.
02:13ArahaelIt's quite probable that the perspective you have from well, being part of this project, and being more involved with the _desktop_ OS is quite different to what I've seen as an iOS dev and dealing with the App Store.
02:14marcani509vcb[m]: it does not, but what I'm saying is that you can't assume the company is one homogeneous mechanism and you can extrapolate its behavior from highly visible decisions
02:15chadmedi doubt tim cook is personally edge-case testing kmutil and going "hang on couldnt they use this to boot linux? stop this immediately!"
02:15marcanthey want people to be safe so they are making it *annoying* to bypass things (e.g. unsigned code)
02:15marcanthat's why our installer will never quite be as friction-free as I'd like it to, but I understand the reasons why
02:15ArahaelThat's interesting. Honestly, sometimes I wish they did, would make IT teams in corporate less likely to install antivirus cruft.
02:16timetheory[m]I’m primarily worried that they’re looking to make an App Store for macOS though
02:16i509vcb[m]chadmed: to be fair there are people who have gotten linux to run on some very bizzare hardware
02:16timetheory[m]Sorry I meant App Store only
02:17marcanthat is *amazing*; I doubt corporate came up with that, it was probably driven from engineering, but I have no idea
02:17Arahaeltimetheory[m]: Strictly speaking, iOS isn't app-store-only. You can distribute and deploy your iOS apps on a website and have people install them that way. (It just costs more)
02:17marcanmacs are the only platform where you can have full freedom to run your own OS *and* the ability to run a locked down DRM system, with a simple reboot
02:17timetheory[m]Arahael: How? PWAs on iOS are not exactly implemented in a good way
02:18marcanso you can have a full secure macOS install, capable of running iOS apps and watching Netflix in 4K
02:18chadmedi509vcb[m]: true but my point is more that i doubt corporate gives a damn about the technical minutiae of the device, especially if its stuff like this that engineering can sneak through as necessary for development. as marcan has said in the past, its not an accident that the macs behave the way they do.
02:18timetheory[m]Arahael: What are you talking about then?
02:19chadmedits as if theres a trail of breadcrumbs left by the engineers for us to follow. im sure they themselves would love to have linux on these devices too
02:19timetheory[m]Arahael: You can’t run those though without hacks
02:20timetheory[m]How? You either need to sign them via AltStore (which is kind of a hack) or have a jailbroken phone, right?
02:20timetheory[m]timetheory[m]: W/o a paid account you can only install 3 AltStore apps anyways
02:20Arahaeltimetheory[m]: Nope. You can also get an Enterprise developer account, with an Enterprise certificate and use enterprise distribution methods. It's generally intended for internal apps for the enterprise.
02:21brentr123[m]Gotta love fastboot oem unlock
02:21chadmedyeah you absolutely can sideload apps on ios as long as you have the certificate for it. company i used to work for used some ghoulish bespoke job ticket app that i had to install and maintain on my own device. awful stuff.
02:21brentr123[m]What a wonderful command that is
02:22timetheory[m]Arahael: Having to pay $300 a year extra on top of the phone doesn’t exactly count as open
02:22Namidairoranging from not having it at all, making you sign requests on a web page, imposing 2 week delays, degrading devices by wiping out calibration partitions (bye bye camera), etc.
02:23timetheory[m]That’s often an entire half of the phone’s price and it’s also not possible to distribute to end users
02:23chadmedi had an HTC 10. shame that HTC were such arseholes about unlocking it because it was truly a fantastic phone, best integrated DAC in a smartphone at that time. but even after unlocking it there were sections of the bootloader that were totally locked down. im guessing this was to protect some rootkit/firmware killswitch they had
02:23brentr123[m]marcan: Ever heard of magiskhide?
02:23brentr123[m]It bypasses safetynet
02:23timetheory[m]marcan: Why though?
02:23marcanbrentr123[m]: there is no way to bypass safetynet on modern devices with TZ-tied signing that knows about unlock state
02:23brentr123[m]Also isn’t safetynet only flagged with root? Not with boot loader unlock
02:25timetheory[m]marcan: Forgot that IRC doesn’t show replies, was replying to the statement of Apple using Linux for silicon validation
02:25marcantimetheory[m]: because Linux is easy-ish to port and makes for a very good hardware test case
02:26timetheory[m]Don’t they already have XNU though?
02:27PhilippvK has joined #asahi
02:27marcanit's also a good test of ARM spec compat (*cough* and they already broke that with E2H=1 *cough*)
02:28timetheory[m]marcan: do they really care if it’s compatible with the spec though since it’s not like they’re officially intending for anyone to be writing bare metal code
02:29timetheory[m]And stuff has to be ported to macOS anyways for user space
02:29chadmedwell it is ostensibly a condition of their architecture license that any core design they bill as "arm" has to be compatible. dunno why they were allowed to break spec in this case but im guessing theyve likely been warned internally not to do it again.
02:30timetheory[m]chadmed: They haven’t really been advertising it as ARM though, they’ve been calling it Apple Silicon
02:30Arahaelchadmed: And I don't think we know the specifics of their license, do we? They were technically one of the original founders, weren't they?
02:30marcanapple are definitely pushing things with impdef extensions not allowed by the spec, but as far as I know the only actual compat break so far is the E2H thing
02:31phiologe has quit [Ping timeout: 480 seconds]
02:31chadmedtimetheory[m]: youre thinking too small as well. its "fine" for desktop macos but apple has big plans for their silicon, namely HEDT and server (the latter being rumours but seems logical). if they want to be taken seriously in these spaces they cant be breaking arm spec
02:31marcantimetheory[m]: it's not about the branding; to be able to implement the ARM instruction set they need a license
02:32ArahaelIn any case, I'm excited for the future in computer hardware, oddly enough. I felt we had stagnated with the Intel monopoly of all this.
02:32chadmedalso what marcan just said. billing something as "arm" isnt about the marketing, its about having the right to implement the instruction set. it is not openly licensed, and apple wouldve signed a massive massive contract to acquire their perpetual architecture license that says arm can revoke it if apple break the spec.
02:33marcan(note that the E2H break is about hypervisor mode, so it doesn't apply to VMs, which is why they work)
02:33timetheory[m]I still never understood why archs can be copyrighted
02:33chadmedthis is similar to how SPARC is/used to be licensed. you couldnt legally produce a "SPARC" core unless it passed validation tests and conformed to the ISA as set out in the manual. if your core broke this spec the SPARC Consortium (basically just Oracle) would not validate your core
02:34timetheory[m]ARM is patented?
02:35timetheory[m]Would that mean that 64 bit x86 is expiring in 2 years?
02:35timetheory[m]Since according to Wikipedia it was introduced in 2003
02:35marcanthe way this works is they keep adding extensions, so you can't release a modern x86 CPU since people expect things like AVX to work
02:36marcansimilarly, I'm pretty sure ARM can't stop you from releasing an ARM7 compatible CPU or something, though they might try
02:38chadmedtheyve reached an agreement to do so for ~$40bn US, but the UK, EU, US and Chinese governments are in the process of putting a stop to it
02:38ArahaelA shame how nvidia has turned out. I remember more than 15 years ago I actually liked Nvidia.
02:39chadmedleather jacket man is easily one of the most disingenous and awful people in the industry
02:39i509vcb[m]at least amd caught up in raster performance this gen, although good luck getting a gpu
02:40ArahaelWell, 15 years ago I was a kid, really, but they seemed to have better drivers in those days.
02:40chadmedand just this week there have been grumblings from AIBs that theyre trying to resurrect the GeForce Partner Program to lock AIBs out of making good intel cards
02:45i509vcb[m]intel trying to enter the high end gpu space is definitely interesting to watch
02:46chadmedim interested only insofar as how much they will focus on improving their linux drivers and if their flooding of the market will shatter the gpu scalper bubble
02:56chadmed has quit [Remote host closed the connection]
03:09sorearphire: avx is disabled by fuse in Pentium-branded parts for market segmentation reasons -> software can't rely on it -> baseline ISA patents expiring soon ... huge own goal by itnel if i've understood it correctly
03:09nepeat has quit [Ping timeout: 480 seconds]
03:11phirebut in general most applcations/games keep the SSE4 codepath around, if not an SSE2 codepath
03:30marvin24_ has joined #asahi
03:33marvin24 has quit [Ping timeout: 480 seconds]
03:36nepeat has joined #asahi
04:10tomtastic_ has quit [Quit: ZNC - https://znc.in]
04:10tomtastic has joined #asahi
04:31chadmed has joined #asahi
04:51doggkruse has joined #asahi
05:25myon98 has joined #asahi
05:35kode54Bonus: Mac software can't rely on avx either, especially as rosetta 2 doesn't implement it
05:37kode54it does, however, implement an incredibly slow 80 bit softfpu in case you're stupid enough to use x87 opcodes
06:17hspak has quit [Quit: The Lounge - https://thelounge.chat]
06:17hspak has joined #asahi
06:27tomtastic has quit [Quit: ZNC - https://znc.in]
06:27tomtastic has joined #asahi
07:09amw has quit [Quit: WeeChat 2.3]
07:58ihaveamac has quit [Quit: fail]
08:00amw has joined #asahi
08:00ihaveamac has joined #asahi
08:32doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:45aleasto has joined #asahi
08:45aleasto has quit []
08:46aleasto has joined #asahi
08:48aleasto has quit [Remote host closed the connection]
08:48aleasto has joined #asahi
08:49aleasto has quit [Remote host closed the connection]
08:51aleasto has joined #asahi
09:12darkapex2 has joined #asahi
09:13darkapex1 has quit [Ping timeout: 480 seconds]
09:21sorear has quit [Ping timeout: 480 seconds]
09:21jabashque has quit [Ping timeout: 480 seconds]
09:21NekomimiScience has quit [Ping timeout: 480 seconds]
09:21tom-w has quit [Ping timeout: 480 seconds]
09:21enomem has quit [Ping timeout: 480 seconds]
09:21guan has quit [Ping timeout: 480 seconds]
09:21aeroraptor has quit [Ping timeout: 480 seconds]
09:21ZLSA has quit [Ping timeout: 480 seconds]
09:21brinly has quit [Ping timeout: 480 seconds]
09:21tom-w has joined #asahi
09:21stblassitude_ has joined #asahi
09:22Chainsaw_ has joined #asahi
09:22austriancoder_ has joined #asahi
09:22kendfinger has quit [Ping timeout: 480 seconds]
09:22cptcobalt has quit [Ping timeout: 480 seconds]
09:22Chainsaw has quit [Ping timeout: 480 seconds]
09:22Chainsaw_ is now known as Chainsaw
09:23ovf has quit [Ping timeout: 480 seconds]
09:23austriancoder has quit [Ping timeout: 480 seconds]
09:23kendfinger has joined #asahi
09:23cptcobalt has joined #asahi
09:23austriancoder_ has quit []
09:24philpax has quit [Ping timeout: 480 seconds]
09:24Ariadne has quit [Ping timeout: 480 seconds]
09:24stblassitude has quit [Ping timeout: 480 seconds]
09:24stblassitude_ is now known as stblassitude
09:25austriancoder has joined #asahi
09:25philpax has joined #asahi
09:28Ariadne has joined #asahi
09:29eichin has quit [Remote host closed the connection]
09:29nkaretnikov has quit [Remote host closed the connection]
09:29cptcobalt has quit [Remote host closed the connection]
09:29eric_engestrom_ has quit [Remote host closed the connection]
09:30steev has quit [Read error: Connection reset by peer]
09:30Vaughn has quit [Remote host closed the connection]
09:30jkkm has quit [Remote host closed the connection]
09:32jkkm has joined #asahi
09:33ZLSA has joined #asahi
09:33cptcobalt has joined #asahi
09:33eichin has joined #asahi
09:33brinly has joined #asahi
09:33sorear has joined #asahi
09:33nkaretnikov has joined #asahi
09:33eric_engestrom_ has joined #asahi
09:33steev has joined #asahi
09:33guan has joined #asahi
09:33NekomimiScience has joined #asahi
09:33jabashque has joined #asahi
09:33Vaughn has joined #asahi
09:33enomem has joined #asahi
09:33aeroraptor has joined #asahi
09:42ovf has joined #asahi
10:04jacoxon has joined #asahi
10:13jacoxon has quit []
10:13jacoxon has joined #asahi
10:17j_eyI'm not sure if this regmap stuff will end up being a bit of a hack. I think we only want to cache if it's an output register
10:35ZLSA_ has joined #asahi
10:35nsklaus_ has quit [Quit: WeeChat 3.2]
10:35jabashque has quit [Ping timeout: 480 seconds]
10:35ovf has quit [Ping timeout: 480 seconds]
10:36eichin has quit [Ping timeout: 480 seconds]
10:36sorear has quit [Ping timeout: 480 seconds]
10:37steev has quit [Ping timeout: 480 seconds]
10:38ZLSA has quit [Ping timeout: 480 seconds]
10:38ZLSA_ is now known as ZLSA
10:39cptcobalt has quit [Ping timeout: 480 seconds]
10:39NekomimiScience has quit [Ping timeout: 480 seconds]
10:39brinly has quit [Ping timeout: 480 seconds]
10:39enomem has quit [Ping timeout: 480 seconds]
10:39jkkm has quit [Ping timeout: 480 seconds]
10:39guan has quit [Ping timeout: 480 seconds]
10:39jkkm_ has joined #asahi
10:39Vaughn has quit [Ping timeout: 480 seconds]
10:39aeroraptor has quit [Ping timeout: 480 seconds]
10:39eric_engestrom_ has quit [Ping timeout: 480 seconds]
10:39nkaretnikov has quit [Ping timeout: 480 seconds]
10:39brinly has joined #asahi
10:41NekomimiScience has joined #asahi
10:41aeroraptor has joined #asahi
10:49ovf has joined #asahi
10:49eichin has joined #asahi
10:50sorear has joined #asahi
10:51jabashque has joined #asahi
10:55steev has joined #asahi
10:55cptcobalt has joined #asahi
10:55Vaughn has joined #asahi
10:56eric_engestrom_ has joined #asahi
10:56nkaretnikov has joined #asahi
10:58guan has joined #asahi
10:58enomem has joined #asahi
11:06nsklaus has joined #asahi
11:18gabuscus has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
11:19gabuscus has joined #asahi
11:21jacoxon has quit []
11:44turbotum has quit []
12:08chadmed has quit [Remote host closed the connection]
12:09chadmed has joined #asahi
12:14BlitzWorks has quit [Quit: Gateway shutdown]
12:24BlitzWorks has joined #asahi
12:56ServerStatsDiscoverertraveler4 has joined #asahi
13:00marcanthough this fabric is nGnRnE so writes stall too, but not as badly since they have no deps
13:04j_eyI'm trying to figure out the best way of doing that, there doesn't seem to be a regmap_read_no_cache function.
13:05j_eyI can (so far that I've found), either turn off caching for the entire map (so maybe need some locking), or using a callback function I can say if a register is volatile or not (and only say its volatile if its an input reg)
13:09alyssasteev: Mali GPUs can implement full opengl with varying amounts of hacks. Arm does not do so. Panfrost does a partial "as-is" OpenGL 3.1 implementation (not conformant but good enough for common linux software)
13:36jvoisin has quit [Remote host closed the connection]
13:51j_eyoh.. I just realised I can do a normal readl in the non-cache case, and dont use regmap for that one call
14:06j_eyother GPIOs hw are different in that the registers are split differently. in apple's pinctrl a register has all its value in one place. other GPIO/pinctrl have registers like: GPIO_DATA where each bit corresponds to the output data of pin n
14:12___nick___ has joined #asahi
14:29j_eymarcan: here's what I have right now (untested) https://paste.gg/p/anonymous/8ce383b0d2b84f82a99b7fcd466f4b1d
14:43j_ey(at least corelliums keyboard code seems to call get() on an output reg, but that might just be wrong, will look at more examples)
14:55kov has joined #asahi
15:15povik has joined #asahi
15:25jacoxon has joined #asahi
15:29chadmed has quit [Remote host closed the connection]
15:29chadmed has joined #asahi
15:40jacoxon has quit []
15:49povik has quit [Remote host closed the connection]
16:55tomtastic has quit [Ping timeout: 480 seconds]
16:58tomtastic has joined #asahi
17:10___nick___ has quit []
17:21bytesize0[m] has joined #asahi
17:25povik has joined #asahi
17:30tomtastic has quit [Ping timeout: 480 seconds]
17:31tomtastic has joined #asahi
17:54marcanpovik: I2S probably depends on the SIO power domain, you'd better add that power-domain especially if you don't have console on UART (which would also keep it alive)
18:04tomtastic has quit [Ping timeout: 480 seconds]
18:06tomtastic has joined #asahi
18:06jkkm_ is now known as jkkm
18:23povik has quit [Remote host closed the connection]
18:23alyssasteev: The only big feature missing for GL3.3 is geometry shaders which are unlikely to ever be supported... I don't /think/ alacritty uses them
18:24alyssaIn theory you could set env var `PAN_MESA_DEBUG=gl3` and get GL3.3 that'll crash if you try to use geometry shaders or whatever
18:25alyssaIn practice that'll work for alacritty but break some other things so don't tell me if you do it, only do it on an app-specific basis (there is never a good reason to put PAN_MESA_DEBUG in a system-wide environment), and don't complain if it breaks ;-)
18:34dottedmagalyssa: Does macos also skip this bit of OpenGL in their macos->metal translation layer?
18:54j_eywell all the PCIe stuff I dont have, but I meant there's one particular change that I would like to try
18:56alyssatechnically you should have wifi on airs with lots of patches, and that would exercise pcie, but..
19:19manjaro-mate has joined #asahi
19:20manjaro-mate has left #asahi [#asahi]
19:21joske has joined #asahi
20:19joske has quit [Ping timeout: 480 seconds]
20:20linearcannon has quit [Ping timeout: 480 seconds]
20:25jn has quit [Quit: No Ping reply in 180 seconds.]
20:25steevalyssa: seriously though, thanks. i had to do that with freedreno (or a similar) before we got full 3.3, but you're right, alacritty doesn't, it just claims to need it
20:26jn has joined #asahi
20:26jacoxon has joined #asahi
20:30psykosehttps://github.com/alacritty/alacritty/issues/128 this might have more things of interest
20:31psykosethere's a patch near the bottom that lets you drop the debug var.. but it's gonna be the same
20:41i509vcb[m]Not sure if alacritty needing 3.3+ is a making of alacrity or glium
20:43steevthere used to be a fork that had gles2 and gles3, but sadly, that person deleted their github, and the archive stuff doesn't build correctly
20:46linearcannon has joined #asahi
20:48ahmad has joined #asahi
21:04phireWell, 2d acceleration hardware doesn't exist anymore. If you want a fast terminal, you need to use 3d acceleration
21:07steevmy big thing is, i already have an alacritty config i use everywhere else, i don't feel like customizing foot like that
21:08ahmad has quit [Remote host closed the connection]
21:09phireAnd can actually increase the execution speed of programs that dump a lot of output to stdout
21:12phireThough, IMO the vim (and other editors) scrolling speed should be solved by creating modern escape codes that tell the terminal to move whole blocks of the screen.
21:16jacoxon has quit []
21:16jacoxon has joined #asahi
21:44tomtastic has quit [Quit: ZNC - https://znc.in]
21:45tomtastic has joined #asahi
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:01yrlf has joined #asahi
22:11jacoxon has quit []
22:46l3k[m] has joined #asahi
22:54l3k[m] has left #asahi [#asahi]
23:08aleasto has quit [Quit: Konversation terminated!]
23:51klangeIn everything. ^[[S and ^[[T are literally the escape sequences for moving whole blocks of the screen and that's how vim and everything else scrolls.