#
…

2023-09-25

01:24derzahl has joined #asahi-dev
01:24derzahli just saw the blog entry about switching to fedora
01:24derzahlcurious, are any redhat folks involved?
01:36derzahl has quit [Remote host closed the connection]
02:00gabuscus has quit []
02:17jeisom has quit [Ping timeout: 480 seconds]
02:41gabuscus has joined #asahi-dev
03:09crabbedhaloablut has joined #asahi-dev
03:30linaeiln: Fake initializing ANE doesn't work. I got it to get through the buffer allocs, but then it actually tries to initialize the ML model and times out on ANE not actually replying...
03:35linaOn the other hand initializing ANE has a nice trivial arbitrary u32 write... so if we ever need to mess with firmware memory and can't do it directly... that's one way... ^^;;
03:38loki_val has joined #asahi-dev
03:38crabbedhaloablut has quit [Read error: Connection reset by peer]
04:00tristan2_ has joined #asahi-dev
04:02tristan2 has quit [Ping timeout: 480 seconds]
04:24linaeiln: OMG I got it to "work" with a horrible hack writing to firmware memory... except now I have exactly the same problem as profile #0
04:24linaSooo.... we need to solve that either way...
04:24lina(the meta thing)
04:26linaI found out the logic changed somewhere in 13.5 (vs 13.2 which I was looking at) and it only enables MLVNR for certain platforms... so I tried clobbering the platform ID in firmware data directly, and restoring it after the config set so we don't break too much, and it worked. Just like profile #0, no MLVNR, no buffer allocs... but still fails on the meta thing.
04:52linaeiln: I think it's just a bug in the buffer logic in the driver... it looks like we only submit one buffer on startup.
04:56linaI tried making it submit more and now it looks like we don't get frames back...
04:56linaI think there's another problem in the buffer callback logic
04:57linaaaaaaa the top bits difference!!!!
05:01linaI think I got some frames... ^^;;
05:01linaNow it crahshes probably because the way I hacked up the buffer logic is wrong...
05:02linaI can probably fix this on wednesday ^^
05:05elvishjerricco has quit [Remote host closed the connection]
05:07elvishjerricco has joined #asahi-dev
05:49jjanzic has quit [Ping timeout: 480 seconds]
05:59pg12 has quit [Ping timeout: 480 seconds]
06:00pg12 has joined #asahi-dev
06:04refi64 has quit [Quit: The Lounge - https://thelounge.chat]
06:06refi64 has joined #asahi-dev
06:08nepeat has joined #asahi-dev
06:35qyliss has quit [Quit: bye]
06:37qyliss has joined #asahi-dev
06:39qyliss has quit []
06:43qyliss has joined #asahi-dev
06:48pg12 has quit [Ping timeout: 480 seconds]
06:49pg12 has joined #asahi-dev
06:56gladiac has quit [Quit: k thx bye]
07:01jannegsven: did your kernel recipes talk get rescheduled into the void? I remember seeing it scheduled for today at 16:00 (CEST) but currently I don't see it at all on the schedule page
07:20le_petit_segfault has joined #asahi-dev
07:47hightower2 has quit [Ping timeout: 480 seconds]
07:48le_petit_segfault has quit [Ping timeout: 480 seconds]
08:18hightower2 has joined #asahi-dev
08:30jjanzic has joined #asahi-dev
08:36c10l9 has quit []
08:36c10l has joined #asahi-dev
08:45chadmed has quit [Remote host closed the connection]
09:21chadmed has joined #asahi-dev
09:21svenI’m sick in bed with a fever, so yeah :/
09:21chadmedpovik, janneg: the ucm2 files are fucked up on many many levels
09:22chadmedill fix them and submit a PR
09:24ellyqget well soon, sven!
09:45AnuthaDev has joined #asahi-dev
10:24cylm_ has quit [Ping timeout: 480 seconds]
10:28AnuthaDev has quit [Ping timeout: 480 seconds]
10:30pg12_ has joined #asahi-dev
10:31pg12 has quit [Ping timeout: 480 seconds]
10:38pg12_ has quit [Ping timeout: 480 seconds]
10:41pg12 has joined #asahi-dev
10:45jeisom has joined #asahi-dev
10:46leioI reinstalled Fedora now (though the ESP mount just needed a sudo for diskutil), took the ESP uuid for the m1n1 append from the pre-installed stage1 console output, but still all the same - no working keyboard, stuck at finding the rootfs and can't intervene with keyboard. guest kernel time I guess
10:55leiojanneg: Sep 18 00:00:05 fedora dracut-pre-udev[500]: Warning: :: Asahi: Timed out waiting for NVMe device
10:55leioSo I just don't have a NVMe device to find a rootfs from
10:58leiooh... dracut-pre-udev[508]: modprobe: FATAL: Module nvme-apple not found in directory /lib/modules/6.5.0-asahi+
10:58* leiogoes updates the initramfs to be the same, sorry for the noise
11:00jannegsven: oh. I hope you'll get better soon
11:02jannegchadmed: even more? I already fixed 1 1/5 issues last week breaking speaker detection
11:06jannegchadmed: I don't think you should hardcode the CardId
11:06chadmedyeah im not going to, thats just for debug right now
11:06chadmedpipewire is doing this annoying thing where its not hiding the speakers when the jack is plugged in, but the jack disappears if theres nothing plugged into it
11:07chadmedi dont think that's a particularly bad thing since it lets users switch between the two pcms at will, but wp folks are telling me its not supposed to do that so...
11:08jannegI suppose that would be a use case covered by "Pro Audio"
11:09chadmedi got blasted for using Pro Audio outside of its intended use case so we have to make this work
11:09chadmedwim and george will not upstream anything that relies on abusing pro audio
11:14jannegno, I mean using both speakers and headphones at the same time is a "Pro Audio" feature, or I'm misunderstanding what ConflictingDevice does
11:14Dementor has quit [Remote host closed the connection]
11:16chadmedits supposed to make the devices mutually exclusive
11:17chadmedso if the headphones are plugged in, speakers should disappear as an option and vice versa
11:17chadmed has quit [Remote host closed the connection]
11:18chadmed has joined #asahi-dev
11:19leioas a personal note - I hate this behaviour, I want to be able to switch between my headset and speakers without having to pull the cable out and add it back in all the time, just choosing the device in GNOME UI
11:19chadmedyeah thats why i dont really care if it stays like this, its a feature
11:19chadmedbut im being told its not _supposed_ to so idfk
11:19leiomy Y splitter is already broken after 8 months from all this cable pulling 6 times a day
11:21leiothough from the Mac Studio I'm hoping I can just switch between HDMI and headset in the plug, not internal speakers, but that's that and just me
11:21leio(as I don't have separate line out and headset on there like on a PC)
11:21leio(hence got to use the sound output from the monitor for the external speakers)
11:22povikchadmed: i did my best *shrug*
11:23chadmedpovik: yeah thats fine, no one handles ucm sanely anyway which is why i was hoping to just use pro audio and not care about any of this
11:24povikthere are pitfalls every step of the way, was my experience writing the ucm we have
11:25povikand some i didn't know i fell into until jannau came around and fixed them
11:26chadmedyeah its awful, and like with everything alsa theres like... negative documentation
11:27jannegI'm not seeing anything which would explain why the headphones fail on some system but work on others
11:28jannegI detected the pitfall only via a typo. I deleted random things and it started working aafter I typoed "spk" as "skp"
11:31ella-0 has quit [Remote host closed the connection]
11:31dubiousness has quit [Remote host closed the connection]
11:31pldtf has quit [Remote host closed the connection]
11:31dk_ has quit [Remote host closed the connection]
11:31alethkit has quit [Remote host closed the connection]
11:31cds has quit [Remote host closed the connection]
11:31akspecs has quit [Remote host closed the connection]
11:31d4ve has quit [Write error: connection closed]
11:31signaryk has quit [Remote host closed the connection]
11:31probie has quit [Remote host closed the connection]
11:31tsujp has quit [Remote host closed the connection]
11:31coder_kalyan has quit [Remote host closed the connection]
11:31amada95 has quit [Remote host closed the connection]
11:31handlerug has quit [Remote host closed the connection]
11:31rosefromthedead has quit [Remote host closed the connection]
11:31okt has quit [Remote host closed the connection]
11:31dk_ has joined #asahi-dev
11:31coder_kalyan has joined #asahi-dev
11:31handlerug has joined #asahi-dev
11:31rosefromthedead has joined #asahi-dev
11:31ella-0 has joined #asahi-dev
11:31dubiousness has joined #asahi-dev
11:31alethkit has joined #asahi-dev
11:31cds has joined #asahi-dev
11:31pldtf has joined #asahi-dev
11:31signaryk has joined #asahi-dev
11:31probie has joined #asahi-dev
11:31tsujp has joined #asahi-dev
11:31akspecs has joined #asahi-dev
11:31amada95 has joined #asahi-dev
11:31d4ve has joined #asahi-dev
11:31okt has joined #asahi-dev
11:31jannegthere is https://github.com/alsa-project/alsa-tests/tree/master/python/ucm-validator but after seeing that the alsa-ucm-config repo fails validation I didn't bother looking at it
11:32le_petit_segfault has joined #asahi-dev
11:35svenellyq / janneg: thanks!
11:37leioget well!
11:50leiojanneg: I am skipping the initramfs, made all relevant stuff I could find for NVMe builtin instead of module and it just doesn't see a nvme at all still; any chance it could be something with dtb still?
11:58le_petit_segfault has quit [Ping timeout: 480 seconds]
12:20leioshould I see anything about nvm in /sys/firmware/devicetree/base ?
14:12jannegleio: there should be a soc@22000.../nvme@3... directory
14:14leiols -R /sys/firmware/devicetree/base |grep nvm was silent
14:16jannegthat's strange, does it contain anything at all? it should also match on "nvmem"
14:17leiochecking; waiting for the timeout to hit to get emergency console
14:18leiodracut does complain about not finding nvme modules and such, but I have them builtin in the kernel and it doesn't find anything with rootwait and no initramfs either
14:18leio(the modules path doesn't match with what's in the initramfs, just using it now to get a shell)
14:20jannegis there anything in /sys/kernel/debug/devices_deferred ?
14:20leioI do have it in the soc stuff, I'm confusing something from before with other checks
14:20leiothe debug folder is empty
14:21leiothere is a /sys/firmware/devicetree/base/soc@2200000000/nvme@34bcc0000 folder
14:21jannegyou have to mount debugfs yourself in the emergency shell
14:23leiodevices_deferred is empty
14:23jannegis there anything matching nvme-apple or nvme0 inthe kernel log?
14:23leiono, there's nothing, dmesg |grep -i nvm only gives my kernel cmdline
14:26jannegAre all of NVME_APPLE, APPLE_MBOX, APPLE_RTKIT, APPLE_SART built-in?
14:32hightower2 has quit [Ping timeout: 480 seconds]
14:33dsharshakov has joined #asahi-dev
14:34dsharshakovchadmed: UCM proper should probably allow switching between those two at will when headset is in. Look at Audio in KDE System Settings and there's "port" config. Works for me on HDA
14:35dsharshakovmaybe that could be implemented in Asahi UCM config
14:35jeisom has quit [Ping timeout: 480 seconds]
14:36leiosorry, was grabbing dinner
14:37leiojanneg: yes, all those are built-in in my config (i just went and made all *APPLE* builtin I could, there's CONFIG_APPLE_RTKIT_HELPER=m though)
14:42jannegother nvme configs? NVME_CORE and BLK_DEV_NVME? the first is probably a dependency
14:43jjanzic has quit [Remote host closed the connection]
14:46jjanzic has joined #asahi-dev
14:59leiojanneg: yes, they are builtin; I also have /sys/modules/nvme{,_core} for example
15:00leiothe mtp_fabric pm_genpd_init failure is ok?
15:01hightower2 has joined #asahi-dev
15:14dsharshakov has quit [Quit: Page closed]
15:20fredmb has quit [Remote host closed the connection]
15:43AnuthaDev has joined #asahi-dev
16:12lsep has quit [Ping timeout: 480 seconds]
16:24eiln has joined #asahi-dev
16:28eilnam slightly sick too. was whining about the heat a week ago and now the cold has gotten me. woke up at midnight rn
16:28eilnlina: the platform_id clobbering is a disgusting hack, I love it. don't we install 13.5 as default though?
16:28eilnwill look at the buffer logic in a bit. that bit has always been hacky, but got even hackier with the single planar hack
16:35cylm has joined #asahi-dev
16:41eilnas a last resort I think I can kick up the ane for this sake. we're not calling face detection, we just need the client up. not sure how the hell that's gonna work in v4l2 though
17:20jeisom has joined #asahi-dev
17:27cylm has quit [Ping timeout: 480 seconds]
18:13le_petit_segfault has joined #asahi-dev
18:21jannegleio: pushed changes #180 to fix hdmi turning off without pd_ignore_unused
18:23jannegdo you have APPLE_DART built-in? missing log messages for that, not related to nvme though
18:25leiojanneg: yup, CONFIG_APPLE_DART=y
18:30jannegare you 100% sure you're booting the correct kernel? do you have /sys/module/nvme_apple/ (should be even there if built-in)
18:31janneg`ls -d /sys/devices/platform/soc*/*iommu`
18:32leiothat wasn't there last I tried (/sys/module/nvme_apple)
18:33leiopicture does stick around now without pd_ignore_unused
18:34leiobut it doesn't update said picture to the dracut steps as before
18:34leiowhile I see that over m1n1-sec
18:39eilnwe should be able to trace meta though
18:49leiothe timeout and maintenance login did appear on the monitor though, so not sure what's up with that behaviour now
18:52leiojanneg: don't think I'm running the right kernel, it doesn't recreate a Image.gz anymore after changes, just Image...
18:53leioI think that must have been a mishap with the kernel config change and then run_guest_kernel preferred the old arch config Image.gz or something :(
18:56leionot preferred, only supports that
18:56le_petit_segfault has quit [Remote host closed the connection]
18:57loki_val has quit []
19:00AnuthaDev has quit [Quit: AnuthaDev]
19:00leioso in that case I can't be sure #192 alone couldn't have helped with the disappearing picture without pd_ignore_unused, but looks like you found improvements to dtb already that helped too
19:04jeisom has quit [Quit: Leaving]
19:13Dementor has joined #asahi-dev
19:16jannegthe device tree was broken, #192 was due to other oddities in the devicetree not necessary but is now. I can simulate the setup on a m2 pro mini
19:18jannegregarding the black screen in the beginning. is it possible that your display is slow to show I picture after initializing/configuring it? I have one as well and booting is so fast that the display only shows a picture when linux is already booting
19:20leioI'm not sure about a black screen in the beginning; I was saying that the monitor didn't get log entries shown for a while that did end up in the m1n1-sec output, unlike before
19:21leiobasically systemd messages aren't reaching vt1 anymore after the latest dtb updates, just initial kernel stuff and then eventually the emergency shell (I need to correct my root partition)
19:21leiowhile before I saw all on VT1, including the dracut-initqueue pages of spam before it drops to emergency shell
19:22leio"[ OK ] Reached target basic.target - Basic System." and such, that isn't visible anymore and I believe all I changed was update #180 patchset (and use old kernel image still) - same after re-doing Image.gz too.
19:22leiomaybe that's more correct even, dunno, just observation
19:28jannegthat sounds more like it's things controlled by your initrd and boot kernel cmdline parameters
19:30leioyeah, very weird, it's like it started behaving 1 boot before it should have like that (still with old kernel afaik)
19:32leiobut yeah, it looks like now I'm just fighting with further missing modules and the wrong initramfs for my kernel compile; I shall overcome that with a bunch more builtins, get into Fedora proper and build a clean patched kernel there
19:34leioand now when I re-enabled plymouth, I started seeing systemd messages on monitor again; just too much magic to understand that :)
19:34leio(but no plymouth screen, just took away the plymouth disabling kernel cmdlines)
19:40leioand I have a "Welcome to Fedora Linux Asahi Remix 38!" screen \o/
19:41leio(without keyboard or mouse to do anything in it :( )
19:47jannegwhere is your intrd comming from? is it based on the fedora initrd on the system? You need hooks in there to load and install the firmware in /lib/firmware/vendor. see https://github.com/AsahiLinux/asahi-scripts/tree/main/dracut/modules.d/99asahi-firmware
19:50leioit's some previous minimal fedora installs initramfs, grabbed from the zip with loop mounted boot.img
19:50leio(now I have 2 days newer fedora gnome install)
19:55jannegthat should have fw handling, you could unpack $ESP/vendorfw/firmware.{tar.cpio} to /lib/firmware/vendor/
19:56leioit even already says Sep 18 00:00:01 fedora dracut-pre-udev[503]: :: Asahi firmware unpacked successfully
19:57leioright, so I don't have the module for asmedia, and I probably can't builtin it as firmware isn't there by then
19:57leiothe /lib/firmware/vendor/asmedia/*bin is already there
19:57janneghave you build a 4k or 16k kernel? see CONFIG_ARM64_PAGE_SHIFT
19:58leioCONFIG_USB_XHCI_PCI_ASMEDIA already was built-in
19:59jannegPCIE_APPLE? any pcie messages in kernel log?
20:00leiolots of platform:2a2400000.smc--platform:580000000.pcie stuff
20:01leiobut also a Failed to find module 'of:NpcieTpciCapple,t6020-pcie', but it's built-in by now
20:03eiln has quit [Quit: WeeChat 4.0.4]
20:03jannegsounds like a kernel config or wrong binary issue on your side
20:04leioit's supposed to be able to grab the firmware from initrd with builtin asmedia?
20:04leio(fedora asahi remix kernel config has it as builtin)
20:05jannegyour problem sounds like pcie is completely broken
20:05leioor it's a different thing than CONFIG_USB_XHCI_PCI_ASMEDIA that uses the fw?
20:06leioit (udev) looks to be processing pcie stuff quite a lot quite fine though
20:10kaazoo has joined #asahi-dev
20:10jannegthis has become off-topic here quite a while ago let's move to #asahi
21:03darkapex has quit [Remote host closed the connection]
21:03darkapex has joined #asahi-dev
21:15skoobasteeve has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
21:15eiln has joined #asahi-dev
21:15skoobasteeve has joined #asahi-dev
21:16skoobasteeve has quit []
21:17eilnupdate we can decode with the firmware. trigger "mailbox" by literally writing to nvic with the physaddr it jumps to. I just really, really don't want to do it this way. I'm gonna fuzz the params to try to get the intermediate passes
21:17chadmed has quit [Remote host closed the connection]
21:17skoobasteeve has joined #asahi-dev
21:28skoobasteeve has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
21:33skoobasteeve has joined #asahi-dev
22:01eiln has quit [Quit: WeeChat 4.0.4]
22:17Adilpickles has joined #asahi-dev
23:20Adilpickles has quit [Remote host closed the connection]
…