#
…

2022-10-27

00:03Dcow has quit [Remote host closed the connection]
00:04Dcow has joined #asahi-dev
00:04Etrien has quit [Ping timeout: 480 seconds]
00:13thelounge7571340 has joined #asahi-dev
00:14thelounge7571340 has quit [Remote host closed the connection]
00:32Dcow has quit [Remote host closed the connection]
00:36Dcow has joined #asahi-dev
00:44Dcow has quit [Ping timeout: 480 seconds]
00:47Dcow has joined #asahi-dev
00:55chadmed has joined #asahi-dev
00:55Dcow has quit [Ping timeout: 480 seconds]
01:09Etrien has joined #asahi-dev
01:16thelounge7571340 has joined #asahi-dev
01:17thelounge7571340 has quit [Remote host closed the connection]
01:22Dcow has joined #asahi-dev
01:24Etrien__ has joined #asahi-dev
01:29Etrien has quit [Ping timeout: 480 seconds]
01:30Dcow has quit [Ping timeout: 480 seconds]
01:49chadmed has quit [Quit: Konversation terminated!]
02:19LunaFoxgirlVT has joined #asahi-dev
02:27thelounge7571340 has joined #asahi-dev
02:27thelounge7571340 has quit [Remote host closed the connection]
02:44chadmed has joined #asahi-dev
02:46chadmed has quit []
03:06kazuki has joined #asahi-dev
03:07chadmed has joined #asahi-dev
03:22kazuki has quit [Quit: Konversation terminated!]
03:24kazuki has joined #asahi-dev
03:31thelounge7571340 has joined #asahi-dev
03:31thelounge7571340 has quit [Remote host closed the connection]
03:34chadmed has quit [Quit: Konversation terminated!]
04:08Etrien__ has quit [Read error: Connection reset by peer]
04:08Etrien has joined #asahi-dev
04:21Etrien has quit [Ping timeout: 480 seconds]
04:31SSJ_GZ has joined #asahi-dev
04:32chadmed has joined #asahi-dev
04:44thelounge7571340 has joined #asahi-dev
04:44thelounge7571340 has quit [Remote host closed the connection]
04:53Etrien has joined #asahi-dev
04:53chadmed has quit [Quit: Konversation terminated!]
04:56chadmed has joined #asahi-dev
05:43Etrien has quit [Read error: No route to host]
05:48Etrien has joined #asahi-dev
05:51thelounge7571340 has joined #asahi-dev
05:51thelounge7571340 has quit [Remote host closed the connection]
06:00chadmed has quit [Quit: Konversation terminated!]
06:09LunaFoxgirlVT has quit [Read error: Connection reset by peer]
06:16Etrien has quit [Ping timeout: 480 seconds]
06:25Etrien has joined #asahi-dev
06:27mps has quit [Quit: Lost terminal]
06:31marcanhuh, I'm having the weirdest issue...
06:31marcanI got rid of update-vendor-firmware and just inlined an uncpio in the initramfs hook
06:31marcanand now it just... panics when it runs init
06:31marcanbut as far as I can tell from break=postmount, everything is fine
06:32marcanis this some systemd nonsense?
06:34marcanoh wait. uhh...
06:34marcanit's the `set -e` isn't it
06:34marcanyeah... I think the rdlogger_stop just has failing commands...
06:36marcanit ends on a kill 2>/dev/null that may fail so... yeah.
06:36Etrien has quit [Read error: Connection reset by peer]
06:37Etrien has joined #asahi-dev
06:37marcanyeah, works now :)
06:38marcanalright, update-vendor-firmware is no more
06:39will[m] has quit [Write error: connection closed]
06:39nyanpasu64 has quit [Write error: connection closed]
06:43marcanpushed to asahi-dev, shouldn't cause any visible changes
06:44marcanalso I managed to hit the NVMe startup timeout on the M1 MBA too (stage1 m1n1). I should push an update for everything soon, people are installing known-broken stage1s...
06:44marcan(this happens on some unclean shutdowns; the workaround is to just hold down power until the options menu shows up, then do a clean shutdown)
06:54marcanalso my MBA ate its macOS container... I think it was a botched resize
06:54marcanseems the size of the APFS container increased, but not the size of the actual GPT partition
06:54marcanI tried to recreate it from Linux as the larger size, but it seems I just made it worse...
06:55marcannothing *too* critical on this machine, but I'd love not to lose those installs... :/
06:56marcanoh, bad start align
06:56thelounge7571340 has joined #asahi-dev
06:57marcanlet's see, gdisk I think did it right
06:57thelounge7571340 has quit [Read error: Connection reset by peer]
06:57kazuki has quit [Quit: Konversation terminated!]
06:57marcanand we're back!
06:58marcanso, um... my guess is doing an APFS resize and interrupting it ends up it not committing the GPT expansion? that's *bad*
06:58marcanmaybe someone thought "commit after because shrinking" but for expansion it should be the *other* way
06:59kazuki has joined #asahi-dev
07:00marcanlooks like it really was just the partition size, fsck says it's good
07:15r0ni has quit [Quit: Leaving]
07:22_jannau_notch hiding works now in dcp. I think I'll keep using it. I had a panel/global menu at the top so the notch wasn't interfering with screen contents
07:23_jannau_but in non-dark mode the panel was too bright and I found no way change its color within 5 minutes
07:27marcan_jannau_: do you have an updated branch I should pull?
07:28marcanI'm going to see about building that alternate kernel package
07:33_jannau_marcan: pull request for bits/200-dcp
07:35greguu has joined #asahi-dev
07:35marcancool, thanks :)
07:44marcan_jannau_: that just goes on top, right? so I can just merge via github?
07:46_jannau_the fixup commits can be squashed but that can wait until the next rebase
07:46marcanyeah, no rush
07:58Etrien__ has joined #asahi-dev
07:58kazuki has quit [Quit: Konversation terminated!]
08:05Etrien has quit [Ping timeout: 480 seconds]
08:06Etrien has joined #asahi-dev
08:07thelounge7571340 has joined #asahi-dev
08:07thelounge7571340 has quit [Remote host closed the connection]
08:11Etrien__ has quit [Ping timeout: 480 seconds]
08:54r0ni has joined #asahi-dev
08:59greguu has quit [Quit: WeeChat 3.0]
09:06chadmed has joined #asahi-dev
09:08thelounge7571340 has joined #asahi-dev
09:08thelounge7571340 has quit [Remote host closed the connection]
09:09chadmedmarcan: so update-vendor-firmware should no longer be necessary as long as the /lib/firmware/vendor handling stuff is in place in the initramfs?
09:16_jannau_I might need something for installer images, not sure how the appending to cpio is going to work there
09:19chadmedi was thinking we could just write that functionality into the dracut hook itself
09:20chadmedand only have it run if /lib/firmware/vendor doesnt exist on the root we're trying to pivot to
09:21jannauyes, that case does not need update-vendor-firmware but can be simpler, no need check the manifest if the initramfs has no firmware at all
09:25chadmedwell the idea behind the cpio is that the firmware is already sorted and arranged, so if we can just open that and dump its contents into the target root pre-pivot then we shouldnt need to check the manifest ever, right?
09:25chadmedand that would work for installer images that we ship since they will presumably be built with this hook
09:30_jannau_yes, the point was trying to make is that we can't rely on the firmware being always already in the initramfs through cpio concatenation
09:32chadmedoh yeah of course, but we can skirt around that without update-vendor-firmware and like you said just use a way simpler check in the hook
09:32chadmedjust wanna make sure the fedora folks are happy with it before committing, it would suck if we had to duplicate efforts
09:39marcan_jannau_: the initramfs has fallback logic to load the cpio from the ESP if it was not loaded by the bootloader. I expect that part to stay.
09:40marcanthat was just previously using update-vendor-firmware; I changed it to just uncpio the cpio
09:40marcanso someone loads the cpio either way, then the logic to copy it to a tmpfs on /new_root is the same in both cases
09:41IcaroDextris has joined #asahi-dev
09:41marcan*ideally* we'd figure something out so whatever $bootloader is involved can load the firmware from the system-ESP regardless of what ESP we boot from, but that's a yak that can be shaved later
09:42marcaneither way the current solution is strictly better than the old (racy) one and than the interim one we never shipped (which was not buggy but still relied on mutating the rootfs)
10:08chadmedoh i see in the hook now
10:08chadmedso theres no need to persist the firmware past the initramfs?
10:10thelounge7571340 has joined #asahi-dev
10:10thelounge7571340 has quit [Remote host closed the connection]
10:10chadmed has quit [Quit: Konversation terminated!]
10:18chadmed has joined #asahi-dev
10:22mps has joined #asahi-dev
10:35r0ni has quit [Quit: Leaving]
10:46r0ni has joined #asahi-dev
11:12thelounge7571340 has joined #asahi-dev
11:12thelounge7571340 has quit [Remote host closed the connection]
11:19Dcow has joined #asahi-dev
11:21Dcow_ has joined #asahi-dev
11:24jannaumarcan: is kwin preference for XRGB2101010 in 5.26? dcp's 30-bit format might be RGBA1010102, colors looked slightly off on the system which is already updated to 5.26
11:27Dcow has quit [Ping timeout: 480 seconds]
11:35marcanjannau: it's in the current version yeah, I repro'd the problem with an 8888 framebuffer
11:35marcanso it could be that we have differences in processing between 10b/8b
11:38jannauI didn't really verified it. colors looked not broken, I saw macos use it during boot and assumed it's the same format as the boot framebuffer
11:39mpsjannau: fyi, I have this warning when building latest asahi-wip branch on alpine linux https://tpaste.us/LelW
11:41jannauI noticed yesterday that kde updated to 5.26 looked a little weird, similar to displaying full range yuv as limited range
11:42jannauI think the 2 alpha bits being LSB instead of MSB could explain it
11:50IcaroDextris has quit [Quit: Connection closed for inactivity]
11:54r0ni has quit [Quit: Textual IRC Client: www.textualapp.com]
12:06sneak has joined #asahi-dev
12:06kazuki has joined #asahi-dev
12:13thelounge7571340 has joined #asahi-dev
12:13thelounge7571340 has quit [Remote host closed the connection]
12:47Dcow has joined #asahi-dev
12:53Dcow_ has quit [Ping timeout: 480 seconds]
13:05yamii has quit [Remote host closed the connection]
13:06yamii has joined #asahi-dev
13:16thelounge7571340 has joined #asahi-dev
13:16thelounge7571340 has quit [Remote host closed the connection]
13:42sneak has quit [Quit: ZNC 1.7.5 - https://znc.in]
13:45sneak has joined #asahi-dev
14:07mrkajetanp has joined #asahi-dev
14:11mrkajetanp has quit [Remote host closed the connection]
14:13mrkajetanp has joined #asahi-dev
14:23thelounge7571340 has joined #asahi-dev
14:24thelounge7571340 has quit [Remote host closed the connection]
14:28kazuki has quit [Quit: Konversation terminated!]
14:35DementorHi marcan conan Kudo from the Fedora asahi matrix room asked me to ping you since he's not on irc and they were looking for you
14:35Gaspare has joined #asahi-dev
14:50marcansorry, I wanted to get more kernel work done today but I just spent 6 hours arguing with the two simpledrm maintainers over how to fix a regression for what should've been a 30 minute discussion, and I'm all out of spoons for today :(
14:51marcanjannau: that is the same format as the boot FB
14:51marcanit's just possible the color conversion isn't exactly what KDE and/or the kernel do
14:51marcanoh wait, the actual DCP fourcc?
14:51marcanyeah, it could be a shift I guess?
14:51marcanI'll have to see it myself
14:52marcanthough a whole 2 bit shift would be pretty drastic
14:52marcanand cause some really weird clamping
14:52marcanso it should've looked pretty bad
14:52_jannau_I have a list with detailed fourcc information from macos
14:52marcananyway, I think I'm going to sleep soon, that discussion really, really exhausted me
14:53marcandisagreeing with polite people who are wrong and won't budge is the worst, you can't just ragequit and you get stuck in an endless loop... :(
14:53marcan(though they did get someone else to ragequit)
14:55_jannau_No worries, I'll look at the dcp issue tonight. should be easy to verify now that I know what to look for and that there was an external change
14:56_jannau_shift seems like since light gray looked blown out towards white
14:58rmkmarcan: what is your understanding of the changes needed to get the macsmc stuff into mainline? I got lost in that massive discussion about what the actual points that needed addressing were.
14:58marcan_jannau_: if the bits are just chopped off I would expect wraparound. is it possible that the format is right, but some constants need to be changed (e.g. gamma tables) when the format has more bits?
14:58rmkI think we need to move it from drivers/platform to drivers/mfd
14:58marcanrmk: I'm honestly not sure, don't really have the time to look at it right now, sorry. I never understood what he wanted about breaking up the mfd driver.
14:58_jannau_I found it surprising that "do not do more unoptimised pixel format conversion than necessary" was controversial
14:58rmkmarcan: that makes two of us then :)
14:59marcanhaving the actual mfd core just be a dumb stub in drivers/mfd invoked by a driver in drivers/platform makes *no* sense to me
14:59marcanso I have no idea why he would want that, or how I would do it in a way that makes sense
14:59marcanand IIRC he never replied to my question about that
15:00marcanI also never got a reply to my comment to the cypress dude who introduced a broadcom firmware file with a cypress name... given that, I think I'm going to send a fixup patch to rename it, and he can choose to complain, or not, because I don't want precedent that broadcom chips are now cypress chips unless someone from those companies confirms they are actually a rebrand and not just a subset
15:00rmkOk, I'll try to do what I think makes sense and post a new patch series - if stuff has been missed then IMHO that's the fault of people making such a long thread about it and not summarising it towards the end.
15:00marcanrmk: thank you :)
15:01marcanoh also, I fixed some stuff up in there in my tree, though I think I squashed it. let me summarize if you don't mind it ad hoc?
15:01rmkgo ahead
15:02marcansmc_rtkit.c increase SMC_RECV_TIMEOUT to 500 (this is mostly an issue with the hypervisor, but I suspect mailbox shenanigans and I want to play it safe)
15:02marcanand I don't remember if this applied to smc or it was already there, but: in the Kconfig, if there are bare COMPILE_TESTs, use (COMPILE_TEST && 64BIT) since that driver won't build on 32bit properly
15:02marcanoh and there was a linter thing
15:03marcanah no, not on this one I think
15:03marcanthat should be it then, if I didn't forget anything
15:04rmkthe && 64BIT thing should be on the APPLE_PLATFORMS menuconfig?
15:04marcanah wait, I can get a patch out
15:05marcanforgot about the include
15:05marcan(also only hits some random kernel test bot builds)
15:05rmkthanks.
15:05rmkalso, there's the usual linux/ includes before asm/ includes :)
15:05marcanah, didn't know about that convention
15:07rmkok, thanks, got all those updates in place now.
15:07marcanthank you!
15:07marcanI think I'll get some early sleep today (early = midnight...)
15:08rmkmarcan: I was stabbed with pfizer on tuesday... wednesday was utter crap so I had an early night.
15:08marcanoof. that's another thing on my list, I need to schedule my second booster...
15:10mazhuh, that's tomorrow's job for me... guess I'll have a fine weekend...
15:10mkurz has joined #asahi-dev
15:11svenjust sent bluetooth v4 since v3 silently disappeared from patchwork...
15:12mkurzHi! What's the progress on USB 3 support on Macbook Pros (Pro cpu)? Any chance this is coming soon? How is working on that?
15:12svenfinally another one!
15:13* svenadds another month to the release date
15:13_jannau_it's not coming x months later
15:13_jannau_wasn't it exponential?
15:13_jannau_s/now/now/
15:13_jannau_s/not/now/
15:13svenah, true. forgot about that again
15:13* _jannau_shouldn't type
15:18nicolas17 has joined #asahi-dev
15:23mkurz has quit [Quit: Leaving]
15:26amarioguy2 has joined #asahi-dev
15:26thelounge7571340 has joined #asahi-dev
15:26thelounge7571340 has quit [Remote host closed the connection]
15:28chadmed has quit [Remote host closed the connection]
15:38amarioguy2 has quit [Remote host closed the connection]
15:46mrkajetanp has quit [Remote host closed the connection]
16:23Gaspare has quit [Quit: Gaspare]
16:28___nick___ has joined #asahi-dev
16:28___nick___ has quit []
16:30___nick___ has joined #asahi-dev
16:31thelounge7571340 has joined #asahi-dev
16:31thelounge7571340 has quit [Remote host closed the connection]
16:45nela has quit [Ping timeout: 480 seconds]
16:59Dcow_ has joined #asahi-dev
17:06Dcow has quit [Ping timeout: 480 seconds]
17:17alyssa has quit [Quit: leaving]
17:34Gaspare has joined #asahi-dev
17:34balrog_ has quit []
17:35balrog has joined #asahi-dev
17:35thelounge7571340 has joined #asahi-dev
17:35thelounge7571340 has quit [Remote host closed the connection]
18:35cy8aer has quit [Remote host closed the connection]
18:35cy8aer has joined #asahi-dev
18:39thelounge7571340 has joined #asahi-dev
18:39thelounge7571340 has quit [Remote host closed the connection]
19:03r0ni has joined #asahi-dev
19:19jluthra_ has quit [Remote host closed the connection]
19:19jluthra_ has joined #asahi-dev
19:29nela has joined #asahi-dev
19:41thelounge7571340 has joined #asahi-dev
19:41thelounge7571340 has quit [Remote host closed the connection]
19:47Dcow has joined #asahi-dev
19:54Dcow_ has quit [Ping timeout: 480 seconds]
20:07___nick___ has quit [Ping timeout: 480 seconds]
20:14thelounge7571340 has joined #asahi-dev
20:14thelounge7571340 has quit [Remote host closed the connection]
20:38Chol has joined #asahi-dev
20:45Chol has quit [Quit: Leaving]
20:56uur has joined #asahi-dev
21:06uur has quit []
21:09Etrien__ has joined #asahi-dev
21:13Etrien has quit [Ping timeout: 480 seconds]
21:17thelounge7571340 has joined #asahi-dev
21:17thelounge7571340 has quit [Remote host closed the connection]
21:20DarkShadow44 has quit [Quit: ZNC - https://znc.in]
21:20DarkShadow44 has joined #asahi-dev
21:24DarkShadow4444 has joined #asahi-dev
21:25DarkShadow4444 has quit []
21:27DarkShadow4444 has joined #asahi-dev
21:27Etrien__ has quit [Read error: Connection reset by peer]
21:27Etrien has joined #asahi-dev
21:30DarkShadow44 has quit [Ping timeout: 480 seconds]
21:38uur has joined #asahi-dev
21:47kevans91kettenis: hey, is there anywhere I can find additional context on your fpu rewrite? (https://github.com/openbsd/src/commit/b83a19dd9c2195f11121de7fba7a36fcd6a004f2)
21:48kevans91i'm curious how you arrived there, i'm seeing an issue of sorts when we attempt to restore vfp state and write to fpsr/fpcr in freebsd
21:49kevans91cpu just kinda falls off a cliff, and I get a different failure mode when run under the hypervisor so it's a bit difficult to debug
21:52uur has quit [Remote host closed the connection]
21:54Etrien has quit [Ping timeout: 480 seconds]
21:57SSJ_GZ has quit [Ping timeout: 480 seconds]
22:08rmkkevans91: are you getting an exception (which exception?) while restoring the vfp state ?
22:16Gaspare has quit [Ping timeout: 480 seconds]
22:17Etrien has joined #asahi-dev
22:18thelounge7571340 has joined #asahi-dev
22:18thelounge7571340 has quit [Remote host closed the connection]
22:40millenialhacker has joined #asahi-dev
22:43kevans91rmk: nothing obvious, no
22:44kevans91it's an apparent stall, quite annoyingly when we first fire up init(8)
22:45millenialhackerI tried compiling kernel in asahi-wip today to test DCP driver, but even when I marked dcp as built-in module and cannot get it load with kernel, I also tried marked it as loadable module but modprobe complains about bad exec format. am I missing something?
22:53millenialhacker has quit [Ping timeout: 480 seconds]
22:54Etrien__ has joined #asahi-dev
22:57Glanzmann has joined #asahi-dev
22:58Etrien has quit [Ping timeout: 480 seconds]
23:05Glanzmann has quit [Quit: EOF]
23:08kevans91I guess it's our earlier write to q0 that's hanging, not fpsr/fpcr. afaik we set up cpacr_el1 correctly to disable traps, not sure what else I'm missing
23:21thelounge7571340 has joined #asahi-dev
23:21thelounge7571340 has quit [Remote host closed the connection]
…