#
…

2023-05-08

00:53eiln has joined #asahi-dev
01:12nsklaus has quit [Ping timeout: 480 seconds]
01:27eiln has quit [Remote host closed the connection]
02:00gabuscus has quit []
02:02pthariensflame has joined #asahi-dev
02:03pthariensflame has quit []
02:15gabuscus has joined #asahi-dev
03:01Armlin has joined #asahi-dev
03:07sarucchi has joined #asahi-dev
03:38greguu has quit [Ping timeout: 480 seconds]
03:52mlp_ has joined #asahi-dev
04:00mlp_ has quit [Quit: Page closed]
04:08martinl has joined #asahi-dev
04:08martinl is now known as mlp
04:09mlp has quit []
04:10martinl has joined #asahi-dev
04:10martinl has quit []
04:11mlp has joined #asahi-dev
04:25Armlin has quit [Ping timeout: 480 seconds]
04:30mlp has quit [Ping timeout: 480 seconds]
04:40cylm_ has quit [Quit: WeeChat 3.6]
04:58mlp has joined #asahi-dev
05:00jannauchadmed: updates only when display brightness is changed sounds like what I would expect under X11
05:04jannaudoes the preview work for you? there should be noticeable changes while you hold the slider / "Color emperature preview" is displayed
05:24cylm has joined #asahi-dev
05:41chadmed_jannau: no the preview only updates when i change the brightness. then when it does, the cololur shifts to that lurid yellow-green that it has when it's active. this is at 2500K.
05:49cylm has quit [Quit: WeeChat 3.6]
05:54jannauare you sure it's plasma/wayland? I'm not aware how you could disable atomic_swaps with plasma/wayland. you should see 1 dcp_flush for each screen update
05:55chadmed_unless running dbus-run-session startplasma-wayland actually launches xorg then yeah its wayland :P
05:59jannaucan you check? I guess it's fine if it launches kwin_wayland. kwin 5.27.4.1 here
06:01chadmed_yeah its definitely kwin_wayland
06:03Armlin has joined #asahi-dev
06:12bps has joined #asahi-dev
06:29chadmed_ has quit [Quit: Page closed]
06:44Armlin has quit [Quit: Konversation terminated!]
06:44bps has quit [Ping timeout: 480 seconds]
07:17jannauchadmed: strange. can you try to start the session via sddm, gdm, ...? not sure why that would make a difference though.
07:18jannaunight color on my intel work notebook looks different, older KDE there tough
07:20svendamnit.. rebased the thunderbolt mess to 6.4 and broke something and now I’m back to the first plug just not working
07:20sventhe second time i
07:20sven*the second time works though
07:20sven(and any further attempt as well)
07:33sarucchi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:46bps has joined #asahi-dev
07:47psykose has quit [Remote host closed the connection]
07:49pbsds is now known as Guest810
07:49pbsds has joined #asahi-dev
07:52Guest810 has quit [Ping timeout: 480 seconds]
07:56brolin has joined #asahi-dev
08:01timokrgr has quit [Quit: Ping timeout (120 seconds)]
08:04brolin has quit [Ping timeout: 480 seconds]
08:11marcansven: unsupported kernel BS aside, someone on Reddit mentioned some 10gbps device not working (works via a 5gbps hub)
08:12marcanit's starting to smell like the audio codec issues we had, i.e. something is fundamentally broken in a way that causes races or undefined behavior, and that randomly gets better or worse with different kernels and configs
08:15svenyeah, I think the atcphy vs dwc3 setup is in the wrong order in asahi-dev right now
08:16marcansounds like the codec shutdown vs clock shutdown was in the wrong order :D
08:16marcan(I'm actually surprised that worked as often as it did)
08:16svenwhich probably also explains that commented out part in atcphy that’s waiting for some bit that never clears with my code
08:16marcanyeah that might explain some things
08:17marcanI encourage you to use as many horrible hacks as you want to make it work, because at this point it's more valuable to 1) make everything work, then 2) figure out how to fix the Linux subsystem mess once we know exactly how it has to work
08:18svenyeah, my plan is to just skip typec-altmode
08:18marcanactually from what I saw of ASoC, it might be an interesting model to look at for how to design an abstraction that somehow works for a million disparate SoCs and codecs
08:18sventhat entire thing is not a great fit for these SoCs
08:18marcanmodulo us getting stuff wrong it actually looks pretty decent as kernel abstractions go
08:19svenand google does something similar hidden away in platform for some chromebook(?) thing
08:19marcanheh, lovely
08:19marcanI wonder if this is going to be another mailbox or it actually makes sense to unify it at some point
08:19sventypec itself is fine, typec-altmode isn’t a great fit
08:20svenbecause that subsystem assumes that the cpu does all the negotiation with these usb pd messages
08:20marcanis that the one that's mostly intended for x86 machines with firmware doing everything?
08:20marcanoh the other way around
08:20marcandoesn't really work here
08:20svenyeah, and chrome just skips all that and directly uses the typec mux/switch stuff
08:20sventhat will also work for us
08:21svenand the typec maintainer even reviewed all of that so I don’t even see many issues getting it upstream
08:22marcanand yeah I'm getting the feeling very few other platforms handle this and they're all too particular to unify sanely anyway
08:22marcanyou know we have those retimers on i2c right?
08:22marcansome day we're going to have to poke them for something I bet
08:22svennot more than what typec mux/switch already does, yeah
08:22marcanit's just going to be more and more of a mess and hard to abstract out more
08:23marcanALSA also has that layer (macaudio which ties everything together and makes it sane)
08:23svenwe just need something like typec mux/switch for thunderbolt as well but that’s easy enough
08:23svento essentially notify pcie, dwc3 and dcpext when a tunnel state changes
08:23marcanI love how apple just gets to not design anything and just invented DT-specified function calls for this
08:23sventhat’s all automatically done for x86 but here we have to do it manually
08:23marcanneed a hook from driver A to driver B? no problem, add a function!
08:24svenyeah :D
08:24svenor how that gpu mmu is a separate adt node with essentially a stub kext that just calls back into the main kext iirc
08:24marcanI don't think people appreciate just how much clunkier and underdesigned xnu is compared to linux
08:25marcaneven with linux's bad subsystems sometimes
08:25marcanthe amounts of hacks in there...
08:25svenit helps that they run xnu on like 20 different configuration and just compile it separately for those
08:25marcansven: yeah and I bet that's so the rtkit driver can use it for buffers
08:25marcanwell it's 4 on ARM right now but yeah
08:25marcanwell 5 with vmapple
08:26marcanthey haven't figured out how to stop using #ifdef everywhere :p
08:26svenah, right, same kernel for all t8103 models, etc.
08:26marcanmac13g, mac13j, mac14g, mac14j
08:26svenwell, there’s also the iPhone/iPad SoCs
08:26marcanyeah of course
08:26chadmed has quit [Quit: Konversation terminated!]
08:26svenso maybe 10 or so different variants?
08:26marcanand then there's that raspberry pi target :D
08:27marcanI'm still annoyed the hypervisor is sekrit, like not even distributed as object files
08:27marcanself-compiled XNU = no hv
08:27marcanbut I can sort of understand why, because they save/restore all the secret registers in there lol
08:28marcanARM HVs are boring enough a significant part of the entire HV is touching secret stuff
08:28marcan(and then of course it calls into pmap/gl to actually switch to the guest etc)
08:29chadmed has joined #asahi-dev
08:29marcanwas nice confirming basically everything we already knew though, I didn't find anything unexpected in there other than a pile of official register names for registers we'd already roughly identified
08:30marcanall the extra SPRR stuff is curious but likely nobody cares enough to figure out what exactly it all does, since it doesn't really affect us
08:31chadmedjannau: is it at all possible that we are advertising the wrong colour space or pixel format to plasma
08:31chadmedcolour management is just completely broken which sucks but i cant think of much else to cause it to look this subtly off while still "working"
08:32j`eymarcan: I'm working on the PIE/POE stuff which is SPRR but official
08:32marcanooh nice :D
08:33marcanI do wonder, once official versions of these things get supported, how likely it is we can convince upstream to take alternate codepaths for the pre-standard ARM versions
08:33marcan*Apple versions
08:33marcanespecially for stuff that we really care about
08:35marcanI was going to stream speakers today but maybe I should try to add a prctl for TSO?
08:35marcanI'm sure that will greatly annoy maz and make the FEX folks very happy :p
08:35marcan(TSO is confirmed to be a *big* deal for FEX so we are definitely implementing it, sorry maz)
08:36mazmarcan: why should I care?
08:36marcanI thought you didn't want impdef arch stuff ;)
08:36j`eymarcan: stream prctl! (Im sure it wouldn't take more than an hour or something, youre fast)
08:36mazmarcan: as long as this stuff never gets near my machines and that I don't have to support it...
08:37marcanmaz: well obviously we'll be pushing this upstream because it's a *BIG* performance deal
08:37marcanhence annoy you
08:37marcan(you know I'm not a fan of having to do this, but the benefits are too big to ignore)
08:39marcanOTOH it's not exactly the ugliest thing ever, it's flipping a bit in a documented, IMPDEF-defined register (ACTLR_EL1)
08:39mazmarcan: you don't have to sell it to me, only to the arm64 maintainers. the one thing I don't want is to expose something that isn't architectural to *guests*.
08:39marcanoh yeah I don't care about KVM, at least not yet
08:39marcanin a hypothetical future where FEX runs as a 4K guest we can revisit that idea, though for that it would be sufficient to enable TSO guest-wide for most purposes
08:39marcanbut that future may never come
08:40marcanso you're safe for now ;)
08:40j`eylooks like KVM ignores writes to ACTLR_EL1 currently
08:40mazwe already save/restore ACTLR_EL1, so this has zero impact on KVM.
08:40marcanas in save/restore the host's value, right?
08:41mazj`ey: sure? thad'be a bug.
08:41j`eymaz: not sure! just looking at access_actlr, and it has if (p->is_write..
08:42marcanapple actually has ACTLR_EL12 as an impdef, so the guest wouldn't even see the host's ACTLR I think (it got the VHE treatment)
08:42marcanbut that shouldn't affect KVM much, since I think TIDCP makes it trap anyway
08:43mazmarcan: I don't think actlr_el12 in the TIDCP range.
08:43marcanoh a guest wouldn't even see that one
08:43marcanI mean ACTLR_EL1 from a guest should trap I think
08:43marcan(which maps to apple's IMPDEF ACTLR_EL12 from EL2)
08:45mazbut j`ey is correct, we seem to be missing ACTLR_EL1's save/restore, descpite what I said earlier.
08:45mazI wonder whether that's a regression.
08:48maznah, TACR.
08:48mazthat's why.
08:48mazso enabling it wouldn't be a big deal, and probably easy enough to track if the VMM enables it.
08:49bisko has joined #asahi-dev
08:49maz(enables the feature requiring context switching in the guest, that is).
08:50marcanah it's a separate bit for that one, yeah
08:53bps2 has joined #asahi-dev
08:53bps has quit [Read error: Connection reset by peer]
09:01nsklaus has joined #asahi-dev
09:04jn has quit [Quit: No Ping reply in 180 seconds.]
09:06jn has joined #asahi-dev
09:06mlp has quit [Read error: Connection reset by peer]
09:07mlp has joined #asahi-dev
09:20chadmed_ has joined #asahi-dev
09:27mlp has quit [Ping timeout: 480 seconds]
10:14hightower2 has joined #asahi-dev
12:00chadmed_ has quit [Ping timeout: 480 seconds]
12:02psykose has joined #asahi-dev
12:04psykose has quit [Remote host closed the connection]
12:57gordonfreeman has joined #asahi-dev
12:58korreckj328 has joined #asahi-dev
13:01chadmed has quit [Remote host closed the connection]
13:02marcanlina: hey, didn't you do a collab with someone writing an OS in Rust?
13:02marcanI was just thinking about howe we need xHCI support in m1n1 and I remembered that...
13:09bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:17chadmed has joined #asahi-dev
13:18chadmed has quit [Remote host closed the connection]
13:19chadmed has joined #asahi-dev
13:21linaAh! Yeah, that was hikalium ^^
13:21linaLet me see if I can find it...
13:23marcannice lol
13:23marcanand it's even MIT licensed :D
13:23marcanwell there's a collab idea for you, port that to m1n1 ;)
13:24linaI'll ask her about it!
13:35sarucchi has joined #asahi-dev
13:53brolin has joined #asahi-dev
14:09korreckj328 has quit [Remote host closed the connection]
14:11kettenisyou'll need usb mass storage class support as well
14:12marcanUSBMS (the old style) is pretty trivial IIRC
14:12marcanmore importantly we'll need hub support
14:28nepeat has quit [Quit: ZNC - https://znc.in]
14:28nepeat has joined #asahi-dev
14:41kettenisbtw, I think I have a way now to provide OpenBSD support in the Asahi installer
14:58bps2 has quit [Ping timeout: 480 seconds]
15:31roxfan has joined #asahi-dev
15:34roxfan2 has quit [Ping timeout: 480 seconds]
15:44cylm has joined #asahi-dev
16:07Armlin has joined #asahi-dev
16:11brolin has quit [Ping timeout: 480 seconds]
16:13Armlin has quit [Quit: Konversation terminated!]
16:25brolin has joined #asahi-dev
16:27Tomdownsouth has joined #asahi-dev
16:34Tomdownsouth has quit [Remote host closed the connection]
17:00roxfan2 has joined #asahi-dev
17:05roxfan has quit [Ping timeout: 480 seconds]
17:12brolin has quit [Ping timeout: 480 seconds]
17:14chadmed_ has joined #asahi-dev
17:14chadmed has quit [Ping timeout: 480 seconds]
17:41wonjongbot has joined #asahi-dev
17:58Dementor0 has joined #asahi-dev
17:59Dementor has quit [Read error: Connection reset by peer]
17:59Dementor0 is now known as Dementor
18:09gordonfreeman has quit [Remote host closed the connection]
18:21jannauchadmed_: 2500K look yellower than for me and I just remembered what might be different. You probably don't have https://gitlab.freedesktop.org/asahi/mesa/-/merge_requests/5 and thus use xrgb8888 instead of xrgb2101010
18:23jannaudon't ask me why that would make a difference though
18:26wonjongbot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:33wonjongbot has joined #asahi-dev
18:38roxfan2 has quit [Ping timeout: 480 seconds]
18:42roxfan has joined #asahi-dev
19:01mlp has joined #asahi-dev
19:38wonjongbot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:55brolin has joined #asahi-dev
19:56korreckj328 has joined #asahi-dev
20:17brolin has quit [Ping timeout: 480 seconds]
20:31korreckj328 has quit [Remote host closed the connection]
20:35mlp has quit [Ping timeout: 480 seconds]
20:46mlp has joined #asahi-dev
20:55chadmed_jannau: ah yup figured it might be some pixfmt shenanigans. ill test and confirm later
20:56chadmed_ is now known as chadmed
20:56povikre the ASoC model, i have been thinking myself about the approach taken there, that the interfaces are a bit underspecified and that the focus is on codec/DSP/platform combinations that actually see the day of light somewhere
20:56povikon the other hand, 'us getting stuff wrong' seems to me to be the result of the relaxed model
20:57poviki.e. that there are details in play that you can't get anywhere else but dvelving into the code, which there is a nontrivial amount of
20:57povikbut in a way the model could be serving its purpose
20:58chadmedi still remember the DPCM discussion on the mailing list. i dont think what you ended up having to do is actually documented anywhere
20:59povikyeah, that for sure wasn't documented
20:59povikknowing the code it makes sense
21:00chadmedyeah of course but it would be handy to have even a "the correct way to implement these devices is with this framework, which is exemplified by [driver]"
21:00povikmost likely
21:05brolin has joined #asahi-dev
21:16mlp has quit [Ping timeout: 480 seconds]
21:21mlp has joined #asahi-dev
21:22wonjongbot has joined #asahi-dev
21:30mlp has quit [Ping timeout: 480 seconds]
21:33wonjongbot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:38mlp has joined #asahi-dev
21:47mlp has quit [Ping timeout: 480 seconds]
21:50bps2 has joined #asahi-dev
21:56mlp has joined #asahi-dev
21:58wonjongbot has joined #asahi-dev
22:10mlp has quit [Ping timeout: 480 seconds]
22:18mlp has joined #asahi-dev
22:27eiln has joined #asahi-dev
22:32Hibyehello has quit [Ping timeout: 480 seconds]
22:34mlp has quit [Ping timeout: 480 seconds]
22:56wonjongbot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:05nsklaus has quit [Ping timeout: 480 seconds]
23:07roxfan has quit [Ping timeout: 480 seconds]
23:12bps2 has quit [Ping timeout: 480 seconds]
23:17roxfan has joined #asahi-dev
23:35psykose has joined #asahi-dev
23:36psykose has quit [Remote host closed the connection]
23:46brolin has quit [Ping timeout: 480 seconds]
…