#
…

2022-11-01

00:02thelounge7571340 has joined #asahi
00:02thelounge7571340 has quit [Remote host closed the connection]
00:08unicordian has joined #asahi
00:15Etrien__ has joined #asahi
00:19Etrien has quit [Ping timeout: 480 seconds]
00:54Core1050 has joined #asahi
00:58DarkShadow4444 has quit [Remote host closed the connection]
01:01Core9066 has quit [Ping timeout: 480 seconds]
01:04thelounge7571340 has joined #asahi
01:05thelounge7571340 has quit [Remote host closed the connection]
01:47unicordian has quit [Read error: Connection reset by peer]
01:48unicordian has joined #asahi
01:56Dcow_ has quit [Remote host closed the connection]
02:07thelounge7571340 has joined #asahi
02:07thelounge7571340 has quit [Remote host closed the connection]
02:09unicordian has quit [Ping timeout: 480 seconds]
02:09unicordian has joined #asahi
02:10Dcow has joined #asahi
02:19Dcow has quit [Ping timeout: 480 seconds]
02:39riker77 has quit [Ping timeout: 480 seconds]
02:39riker77 has joined #asahi
02:47babble has joined #asahi
02:57babble has quit [Read error: Connection reset by peer]
03:16Stroller has quit [Quit: Stroller]
03:17Stroller has joined #asahi
03:18Stroller has quit []
03:20thelounge7571340 has joined #asahi
03:21thelounge7571340 has quit [Remote host closed the connection]
04:27marvin24_ has joined #asahi
04:28thelounge7571340 has joined #asahi
04:28thelounge7571340 has quit [Remote host closed the connection]
04:30marvin24 has quit [Ping timeout: 480 seconds]
04:33unicordian has quit [Read error: Connection reset by peer]
04:33unicordian has joined #asahi
05:14SSJ_GZ has joined #asahi
05:29kefu has quit [Quit: ciao]
05:30Method_ has quit [Remote host closed the connection]
05:30Method has joined #asahi
05:32kefu_ has joined #asahi
05:34thelounge7571340 has joined #asahi
05:35thelounge7571340 has quit [Remote host closed the connection]
05:51romeoparadis has joined #asahi
05:52romeoparadis has left #asahi [#asahi]
05:54hippo2012 has joined #asahi
05:55hippo2012 has left #asahi [#asahi]
05:55hippo2012 has joined #asahi
05:56hippo2012 has left #asahi [#asahi]
05:57hippo2012 has joined #asahi
05:57hippo2012 has left #asahi [#asahi]
05:58hippo2012 has joined #asahi
05:59marvin24 has joined #asahi
06:03marvin24_ has quit [Ping timeout: 480 seconds]
06:03hippo2012 has quit [Quit: Leaving.]
06:04hippo2012 has joined #asahi
06:09hippo2012 has quit [Quit: Leaving.]
06:19nicolas17 has quit [Quit: Konversation terminated!]
06:21chadmed has quit [Quit: Konversation terminated!]
06:28chadmed has joined #asahi
06:39rvalue has quit [Remote host closed the connection]
06:40rvalue has joined #asahi
06:40thelounge7571340 has joined #asahi
06:41thelounge7571340 has quit [Remote host closed the connection]
06:52VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
07:04unicordian has quit [Ping timeout: 480 seconds]
07:04unicordian has joined #asahi
07:23kwilczynski has left #asahi [#asahi]
07:30Etrien__ has quit [Read error: Connection reset by peer]
07:30Etrien has joined #asahi
07:47thelounge7571340 has joined #asahi
07:47thelounge7571340 has quit [Remote host closed the connection]
07:50amarioguy2 has joined #asahi
07:52jjido has joined #asahi
08:49thelounge7571340 has joined #asahi
08:49thelounge7571340 has quit [Remote host closed the connection]
08:55codingkoopa9 has quit []
08:55mrkajetanp has quit [Remote host closed the connection]
08:55codingkoopa9 has joined #asahi
09:14jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
09:46Dcow has joined #asahi
09:48chengsun has joined #asahi
09:48ihaveamac has quit [Quit: fail]
09:50ihaveamac has joined #asahi
09:51thelounge7571340 has joined #asahi
09:52thelounge7571340 has quit [Remote host closed the connection]
09:54Dcow has quit [Ping timeout: 480 seconds]
09:56chengsun has quit [Ping timeout: 480 seconds]
09:56amarioguy2 has quit [Ping timeout: 480 seconds]
10:01duban6 has quit []
10:02duban6 has joined #asahi
10:05WhyNotHugo`wlan0` isn't showing up any more after updating to latest kernel. dmesg shows "brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4378b1-pcie.apple... failed with error -2".
10:05chengsun has joined #asahi
10:07j`eyWhyNotHugo: those error messages are normal, do you see any more brcmfmac messages after that?
10:07amarioguy2 has joined #asahi
10:08j`ey(the way the firmware loading works is that it searches from specific to generic, for the fw files, so it 'fails' to find some and prints that error, but it's usually harmless)
10:13chengsun has quit [Ping timeout: 480 seconds]
10:15amarioguy2 has quit [Remote host closed the connection]
10:18chengsun has joined #asahi
10:19rayanamukami34 has joined #asahi
10:25rayanamukami3 has quit [Ping timeout: 480 seconds]
10:25rayanamukami34 is now known as rayanamukami3
10:26Dcow has joined #asahi
10:30WhyNotHugoAfter that hci_bcm4377 prints in red "Unable to load firmware; tried brcm/brcmbt43..." (it shows two paths).
10:30WhyNotHugoprobe of 0000:01:00.1 failed with error -2
10:32j`eyhci is the bluetooth stuff, can you just paste the full dmesg?
10:33WhyNotHugoI have no internet on the device... gimme a few minutes to copy it out
10:34Dcow has quit [Ping timeout: 480 seconds]
10:55thelounge7571340 has joined #asahi
10:55thelounge7571340 has quit [Remote host closed the connection]
11:51grange_c has joined #asahi
11:53jjido has joined #asahi
12:00Core9066 has joined #asahi
12:01thelounge7571340 has joined #asahi
12:02thelounge7571340 has quit [Remote host closed the connection]
12:07Core1050 has quit [Ping timeout: 480 seconds]
12:08Dcow has joined #asahi
12:08Dcow has quit [Remote host closed the connection]
12:08Dcow has joined #asahi
12:09jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
12:11eroux has quit [Read error: Connection reset by peer]
12:12eroux has joined #asahi
12:16j`eyWhyNotHugo: do you have /lib/firmware/brcm ?
12:19eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
12:20eroc1990 has joined #asahi
12:25j`eyWhyNotHugo: another thing to try is to downgrade and see if its actually a kernel issue
12:25systwi has quit [Read error: Connection reset by peer]
12:25systwi has joined #asahi
12:38WhyNotHugoThere's none that matches brcmfmac4378
12:39rvalue- has joined #asahi
12:40rvalue has quit [Read error: Connection reset by peer]
12:41svendo you use the official asahi distro?
12:41svenit looks the entire apple firmware is missing
12:46WhyNotHugoWhich package should provide that? Yeah, I'm using asahi. With another bootloader, but still asahi.
12:47j`eyWhyNotHugo: did you pacman -Syu? or just update the kernel?
12:47WhyNotHugopacman -Syu
12:47WhyNotHugoWhich package should provide the missing files?
12:47j`eymarcan: could your changes to fw handling have caused this?
12:48WhyNotHugoCan you do pacman -Qo /lib/firmware/... ?
12:48j`eythe fw isnt in a package
12:48j`ey(because its not redistributable)
12:49Moprius has joined #asahi
12:49svensounds like your own boot loader breaks something tbh
12:50WhyNotHugoThe bootloader puts files inside /lib/firmware in the root partition?
12:50marcanas of now, yes
12:50marcanare you using the official boot stuff?
12:51WhyNotHugoNo, I'm using systemd-boot (aka: gummyboot).
12:51marcanand did you update your initramfs?
12:51WhyNotHugomkinitcpio -p linux-asahi
12:52marcanafter upgrading, and is your bootloader actually using the updated initramfs?
12:53WhyNotHugoThe new initramfs overwrites the previous one.
12:54marcandoes /proc/device-tree/chosen/asahi,efi-system-partition exist?
12:55marcanalso, does /boot/vendorfw/firmware.cpio exist?
12:55marcan(or wherever your ESP is mounted)
12:56WhyNotHugoyes, /proc/device-tree/chosen/asahi,efi-system-partitio exists and shows a uuid (ff94...)
12:56WhyNotHugoyes, /boot/vendorfw/firmware.cpio exists
12:56marcanzcat /boot/initramfs-linux-asahi.img | grep -a vendorfw.manifest
12:56WhyNotHugoIt's a 16mb cpio archive
12:56marcandoes that show a 'cp' command?
12:56marcanto new_root/lib/firmware/vendor
12:57WhyNotHugozcat prints -> cp -r /vendrfw/* /vendorfw/.vendorfw.manifest /new_root/lib/firmware/vendor
12:57marcandoes /lib/firmware/vendor exist?
12:57WhyNotHugoYes, it is empty.
12:57WhyNotHugo(and empty directory)
12:58marcanmount | grep firmware
12:58gladiac has joined #asahi
12:58WhyNotHugoefivar on /sys/firmware/efi/... (doesn't seem relevnat)
12:58marcansomething is broken about your initramfs
12:59marcaneven if firmware loading were to fail, that is supposed to be a tmpfs
12:59marcanif it isn't, something isn't working
12:59marcanrun_latehook() {
12:59marcan msg ":: Asahi: Copying vendor firmware to tmpfs under root filesystem..."
12:59marcan mkdir -p /new_root/lib/firmware/vendor
12:59marcan mount -t tmpfs vendorfw /new_root/lib/firmware/vendor
12:59marcan cp -r /vendorfw/* /vendorfw/.vendorfw.manifest /new_root/lib/firmware/vendor
12:59WhyNotHugoI'm using an encrypted root, could that mess up the copying process somehow?
12:59marcanit shouldn't, in principle
13:00WhyNotHugoIf I copy /boot/vendorfw/* into /lib/firmware/vendor/, should it work all the same?
13:00marcanno, and that defeats the whole purpose of that initramfs
13:01marcanwhich is to not put that stuff in your rootfs to begin with
13:01balrog has quit [Ping timeout: 480 seconds]
13:01marcanyour setup is broken, don't break it further such that then you'll have problems down the road please
13:01WhyNotHugoI meant as a workaround tho, to at least get network on the device while debugging it
13:01marcanah, sure, temporarily you can do that
13:01marcanyou need to unpack firmware.tar into there
13:01marcanjust please don't leave it like that
13:02WhyNotHugoI'lll mount a tmpfs there
13:02marcanonce it's fixed you can umount the tmpfs after a regular boot (firmware will already be loaded anyway) and wipe it
13:02marcanthat works too, but then you have to unload/reload brcmfmac
13:05bcrumb has joined #asahi
13:06WhyNotHugoThere's no /boot/vendorfw/.vendorfw.manifest tho.
13:06thelounge7571340 has joined #asahi
13:06marcanthat's called manifest.txt but it's not necessary anyway
13:07marcanyou need to extract the firmware.tar, not copy it
13:07thelounge7571340 has quit [Remote host closed the connection]
13:07WhyNotHugoThat was my next question :)
13:08balrog has joined #asahi
13:12chengsun has quit [Ping timeout: 480 seconds]
13:13WhyNotHugoOh, it's the run_latehook that matters here.
13:14marcanthat's not /boot/vendorfw, it's /vendorfw in the initramfs
13:14chengsun has joined #asahi
13:15marcanboth matter but the latehook clearly isn't working for you, so start there
13:15marcanI'm trying to figure out debugging, but I get the feeling rdlogger is kind of broken, so give me a sec
13:17WhyNotHugoNeither dmesg nor journalctl show any output that matches "Asahi". Pretty sure output from the hook should show up there.
13:17bcrumb_ has joined #asahi
13:18bestouff has quit [Ping timeout: 480 seconds]
13:18marcanno, it wouldn't
13:18marcanyou need to enable debugging for that
13:19marcanbut rdlogger is broken because I think some daemon holds stdio open
13:19marcanI'm trying to figure out what
13:19bestouff has joined #asahi
13:19marcanbecause I see the latehook getting called but not its output and I think this is why
13:19amarioguy has quit [Quit: Leaving]
13:20marcanargh, no, it's just dumb
13:20marcan[ 0.645064] initramfs: :: running late hook [asahi]
13:20marcan[ 0.658991] printk: init: 3 output lines suppressed due to ratelimiting
13:23bcrumb_anybody know how I can find out the exact specification of arm hardware on my device e.g. armv8 or something like that?
13:24bcrumb_ has quit [Quit: WeeChat 3.7.1]
13:24j`eybcrumb_: you can check proc/cpuinfo, that prints the features that linux knows the CPU has
13:24bcrumb has quit [Ping timeout: 480 seconds]
13:24bcrumb has joined #asahi
13:24WhyNotHugomarcan: I don't see that output tho. Nor anyting from the initramfs.
13:24bcrumbnvm my conn dropped
13:25bcrumbj`ey: thanks
13:28Moprius has quit [Quit: bye]
13:29marcanWhyNotHugo: rd.log=kmsg printk.devkmsg=on
13:29marcanyou need to add those kernel options
13:32bcrumbbtw, we should theoretically be part of the archlinuxarm forums right?
13:33j`eybcrumb: in what sense?
13:33bcrumbon arch linux forums you can't ask questions if you're not not arm
13:33bcrumbi mean you can but if they see you are arm they close the thread
13:34j`eyif it's some generic arm related thing, then yeah i guess it makes sense on the alarm forum
13:38Gaelan has quit [Quit: ZNC 1.8.2 - https://znc.in]
13:39Gaelan has joined #asahi
13:41WhyNotHugoStill nothing logged from the initramfs. Kernel command line: initrd=\initramfs-linux-asahi.img rw rd.log=kmsg printk.devkmsg=on
13:42marcandmesg|grep initramfs shows nothing?
13:43marcanalso how does the initramfs know what your root device is supposed to be without a root= option?
13:43tired has quit [Quit: /]
13:44tired has joined #asahi
13:44Stroller has joined #asahi
13:46marcandid those options actually reach /proc/cmdline?
13:47WhyNotHugoJust "Trying to unpack rootfs image as initramfs..."
13:47WhyNotHugocat /proc/cmdline is initrd=\initramfs-linux-asahi.img rw rd.log=kmsg printk.devkmsg=on
13:48marcanhow does your encrypted root work then?
13:48marcanhow does it find the rootfs?
13:48marcanstart there, because something is weird about this setup
13:48marcanand it sounds like it's ignoring your kernel command line options
13:48marcanor you're using a different initramfs from what you think
13:51WhyNotHugosystemd-boot finds the root partition based on its type UUID. https://systemd.io/DISCOVERABLE_PARTITIONS/
13:52vmeson has quit [Remote host closed the connection]
13:54vmeson has joined #asahi
14:04WhyNotHugoBasically, the partition type has the right UUID, so it's mounted as the rootfs
14:04marcanWhyNotHugo: I just tried systemd-boot (the EFI stub side) and the rd.log stuff works fine
14:06marcanand since the asahi hook should run before any systemd stuff, it not showing up doesn't make any sense to me
14:06marcanthere is something weird about your setup you are missing
14:07marcaneither it's using another initramfs, or you are not using the base mkinitcpio scripts at all, or something
14:08thelounge7571340 has joined #asahi
14:08thelounge7571340 has quit [Remote host closed the connection]
14:10WhyNotHugoThe run_latehook runs _after_ systemd, right? Because systemd does the mounting of the rootfs.
14:11marcanit should
14:11marcanbut again, why are you not getting debug logs?
14:11marcanthat worries me more
14:12WhyNotHugodmesg says "[ 0.001098] ------------[ cut here ]------------"
14:12WhyNotHugoOh, it's not trimmed, there's an eror there. I think it's unrelated tho
14:12j`eyif it's the buggy firmware warning, you can ignore it
14:13bcrumb has quit [Ping timeout: 480 seconds]
14:16marcanjournalctl -b 0 -t initramfs
14:16marcanis supposed to show you the initramfs stuff
14:16WhyNotHugoNo entries
14:18marcanWhyNotHugo: what is your mkinitcpio config?
14:18marcanthe hooks
14:19kloenk has quit [Remote host closed the connection]
14:19marcanoh *facepalm*
14:19marcanthe systemd stuff *replaces* base?!
14:19marcanyeah that's not going to work
14:20marcanyou are throwing away our hook (and the debug stuff, and everything)
14:20kloenk has joined #asahi
14:20marcan"Other hooks with runtime components will need to be ported, and will not work as intended"
14:20marcanit's right there in the docs
14:20marcanWhyNotHugo: systemd in the initrd is unsupported, sorry, you're well on your own here
14:22yrlf has quit [Quit: The Lounge - https://thelounge.chat]
14:22WhyNotHugoThere's been discussion of deprecating the base hook IIRC
14:23WhyNotHugoBecause it duplicates everything the systemd hook provides.
14:23yrlf has joined #asahi
14:24marcansure, and we can provide a unit file to make it work with it
14:24marcanbut right now that doesn't exist, so unless you want to write it... :)
14:25WhyNotHugoHang on, systemd replace udev+usr+resume. "base" is still there.
14:25marcanyes, but systemd overrides it
14:25marcanand makes it useless
14:25marcanit literally replaces /init with systemd
14:25WhyNotHugoOh, the unit files needs to just mount the tmpfs and untar the stuff, right?
14:26marcanyes, and be ordered correctly (which is subtle)
14:26WhyNotHugoYeah, I fear that's the hard part.
14:29marcansounds like the posthook stuff needs to run after initrd-fs.target is reached
14:30marcanand /new_root is called /sysroot in the systemd world
14:31marcanthe pre hook probably needs to run before systemd-udevd.service
14:32marcanbut also, these scripts expect a shell and stuff
14:32marcanwhich apparently systemd doesn't provide? so you still need base
14:45asimpson has joined #asahi
14:53bluetail has joined #asahi
14:53Gaspare has joined #asahi
14:56Method is now known as Method_
15:10thelounge7571340 has joined #asahi
15:10thelounge7571340 has quit [Remote host closed the connection]
15:11nvflash has joined #asahi
15:11nvflashAnyone testing PCI Passthough?
15:13nvflashI can't seem to tell if IOMMU is enabled, I do get IOMMU grooups, but I can't bind vfio-pci to any devices, I just get an error type -22.
15:14nvflashIs there a kernel command line to add to GRUB to enable IOMMU for Arm64 like the one's for AMD and Intel?
15:15unicordian has quit [Read error: Connection reset by peer]
15:15sventhe pci iommu is always enabled in these machines
15:15unicordian has joined #asahi
15:17nvflashsudo dmesg | grep vfio [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-asahi root=UUID=1977b9ca-42c7-4d1e-b414-abd00f14503b rw loglevel=3 quiet vfio_iommu_type1.allow_unsafe_interrupts=1 [ 0.364284] vfio_pci: add [14e4:4425[ffffffff:ffffffff]] class 0x000000/00000000 [ 0.364287] vfio_pci: add [14e4:5f69[ffffffff:ffffffff]] class 0x000000/00000000 [ 0.651983] vfio-pci 0000:01:00.0: Add
15:18nvflashIOMMU Group 0 lspci: -s: Invalid slot number IOMMU Group 0 lspci: -s: Invalid slot number IOMMU Group 1 lspci: -s: Invalid slot number IOMMU Group 2 lspci: -s: Invalid slot number IOMMU Group 3 01:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BRCM4378 Wireless Network Adapter [14e4:4425] (rev 05) IOMMU Group 3 01:00.1 Network controller [0280]: Broadcom Inc. and subsidiaries Device [14e4:5f69] (r
15:22nvflash@sven Always enabled in firmware or Arm64 Linux kernels don't need a command line option to enable IOMMU for the kernel?
15:23Core8788 has joined #asahi
15:25svenpci doesn’t work without the iommu on these devices
15:28Core9066 has quit [Ping timeout: 480 seconds]
15:31Core8788 has quit [Ping timeout: 480 seconds]
15:33nvflash @sven but does IOMMU work for PCI Passthrough?
15:33svenno idea, never used it
15:34svenI don’t see a reason why it shouldn’t though
15:34svenmaybe sone page size issues? are both host and guest 16kb kernels?
15:35nvflashI don't know, so little documention for PCI Passthrough on AAARCH64
15:36nvflashI can't get vfio-pci to bind to a device
15:36svendid you make sure to unbind the kernel driver first?
15:37svenfor bt/pcie you’ll probably have to unbind both
15:37svener, *for bt/wifi
15:37nvflashYes, I black listed the drivers for both so they don't load, but I still get: vfio-pci: probe of 0000:01:00.0 failed with error -22
15:40nvflashBTW, why do we use IRC rather than something rich like Discord?
15:40j`eynvflash: cos we like it!
15:40nicolas17 has joined #asahi
15:41nvflashWhy would you like it, no formating.
15:42svennot the right place to discuss this
15:46nvflashto discus what?
15:46nicolas17chat platforms
15:47nvflashYou're the IRC police?
15:47nicolas17no, sven is though (he has +o)
15:47cylm has joined #asahi
15:49nvflashWhere is the right place to discuss it, IRC sucks because there is no way to format. How readable are logs without formatting?
15:50j`ey#asahi-offtopic
15:55nvflashAnyway, back to the topic of PCI Passthough. I'd be interested to see IOMMU groups from AppleSoC Mac's people are using with Asahi. There is a simple shell script for this here:https://gist.github.com/wention/246fa902a93afff153b373cdce8c582d
15:56svenI can pretty much tell you the groups. WiFi/bt will be in one, usb will be another one and Ethernet will be third one for pci
15:57svenother than that almost every non-pci device will get its own iommu group
15:58sventhat’s also why your lspci above failed: not all iommu groups are for pci devices
15:59duban6 has quit []
16:03nvflashWell on the 2022 MBP M2 13" really only the wifi/bt get exposed as PCIE devices, but there is some interesting stuff in dmegs for iommu:sudo dmesg | grep iommu [sudo] password for jam: [ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-asahi root=UUID=1977b9ca-42c7-4d1e-b414-abd00f14503b rw loglevel=3 quiet vfio_iommu_type1.allow_unsafe_interrupts=1 [ 0.015862] iommu: Default domain type: Tran
16:04nvflashToo long to post here, sorry!
16:05svenyeah, cause that mbp doesn’t have Ethernet or the additional usb-a ports
16:06bluetail has quit [Ping timeout: 480 seconds]
16:11nvflashThat's why I'm interested in seeing the groups, to see what Mx Mac's expose what PCIE devices that could be used for PCI Passthrough. I assume the M1 Mini and the Apple Studio expose USB and Ethernet.
16:12Gaspare has quit [Quit: Gaspare]
16:13svenon these devices almost everything is behind an iommu and can theoretically pass through almost everything
16:13nvflashOn my MBP USB seems to get it's own groups but it's somehow part of the SoC "interconnect bus" rather than PCI?
16:13bluetail has joined #asahi
16:13WhyNotHugomarcan: Are you familiar with `bootctl --print-esp-path`?
16:14svenUsb-c ports on the mini are also not attached via pcie
16:14svenyou could still pass them through if you wanted to
16:14bluetailEven HDMI is attached to USB, right?
16:14svenit’s only the usb a ports that are attached via pcie
16:14nvflashCool, that's good to hear.
16:15svenhdmi on some mbp or something is attached via type-c and unrelated to the dwc3 controller which does usb2/3
16:15svenon the mini hdmi is attached to the internal port that’s normally used for the built in display
16:17nvflash Anyone know how Thunderbolt support is coming along in Asahi?
16:17thelounge7571340 has joined #asahi
16:17thelounge7571340 has quit [Remote host closed the connection]
16:27bcrumb has joined #asahi
16:28bcrumbshould have enough info for ppl to set up
16:29bcrumbi posed in an issue that was mentioning encryption too so it would be nice if someone could add to wiki so ppl can see, probably under sw:distros
16:40zjstraus has joined #asahi
16:41nvflash has quit [Quit: Page closed]
16:42VinDuv has joined #asahi
16:46bcrumbanybody also possibly know a solution to this problem? i've redacted out asahi from that not to get booted on the arm forums because it's probably hardware agnostic - but if anyone can take a look would be cool
16:53bcrumb has quit [Quit: WeeChat 3.7.1]
17:06Gaspare has joined #asahi
17:13Graypup_ has quit [Quit: meow]
17:15marcanWhyNotHugo: no, but it seems highly unlikely to work properly with our setup
17:16Graypup_ has joined #asahi
17:19marcanyeah, it only looks for *an* ESP by looking at common mountpoints, so it's the vague equivalent of what I do in mount_boot_esp, but it's not mount_sys_esp (which is the more important one)
17:26eichin__ has quit [Ping timeout: 480 seconds]
17:26eichin__ has joined #asahi
17:27thelounge7571340 has joined #asahi
17:27taowa__ has quit [Ping timeout: 480 seconds]
17:27saintdev_ has quit [Ping timeout: 480 seconds]
17:27saintdev_ has joined #asahi
17:27thelounge7571340 has quit [Remote host closed the connection]
17:29daniels has quit [Ping timeout: 480 seconds]
17:29marcansven: there is an IOMMU but there is no interrupt remapping, or at least we don't expose it I think (maybe APCI could do it?), so all the vfio stuff will fail by default
17:30peac_ has quit [Ping timeout: 480 seconds]
17:30marcanthat's at the very least one issue
17:30taowa__ has joined #asahi
17:30marcanvfio stuff is complicated, little chance it's going to magically work without someone spending time on it
17:30svendidn’t R write her Bluetooth prototype with irq support using vfio?
17:31jbowen has quit [Ping timeout: 480 seconds]
17:31Puto has quit [Ping timeout: 480 seconds]
17:31jkkm has quit [Ping timeout: 480 seconds]
17:31marcanno idea, but there's vfio_iommu_type1.allow_unsafe_interrupts=1
17:31rwxyz has joined #asahi
17:31_alice has quit [Ping timeout: 480 seconds]
17:31austriancoder has quit [Ping timeout: 480 seconds]
17:31mmarchini____ has quit [Ping timeout: 480 seconds]
17:31stblassitude has quit [Ping timeout: 480 seconds]
17:31rann has quit [Ping timeout: 480 seconds]
17:31svenbut yeah, dunno, I never used vfio before
17:31Gaspare has quit [Quit: Gaspare]
17:32peac_ has joined #asahi
17:32daniels has joined #asahi
17:32Manouchehri has quit [Ping timeout: 480 seconds]
17:32NekomimiScience has quit [Ping timeout: 480 seconds]
17:33svenyup, R used vfio to implement that Bluetooth thing
17:33eric_engestrom has quit [Ping timeout: 480 seconds]
17:33austriancoder has joined #asahi
17:33rann has joined #asahi
17:33_alice has joined #asahi
17:33jbowen has joined #asahi
17:33jkkm has joined #asahi
17:34Puto has joined #asahi
17:34NekomimiScience has joined #asahi
17:34mmarchini____ has joined #asahi
17:34Manouchehri has joined #asahi
17:34stblassitude has joined #asahi
17:35eric_engestrom has joined #asahi
17:38Gaspare has joined #asahi
17:44rwxyzIs there a way to switch between macOS and asahi remotely?
17:46marcannot right now
17:46marcanmacOS->asahi yes (bless), asahi->macOS not yet (needs nvram tooling)
17:47rwxyzOk, thanks.
17:49povikmost of it is on way upstream already
17:49povikbut it pertains to speakers, so low priority
17:49j`eypovik: probably meant for -dev
17:52calcium has joined #asahi
18:05millenialhacker has joined #asahi
18:06gaususwho can i talk in order to run a local asahi linux mirror?
18:07gaususthe one i've been using isn't working:
18:07gaususerror: failed retrieving file 'libmm-glib-1.20.0-1-aarch64.pkg.tar.xz' from mirror.archlinuxarm.org : Failed to connect to gr.mirror.archlinuxarm.org port 80 after 76 ms: Connection refused
18:08nicolas17that's the archlinux-for-ARM repo, not asahi
18:11nicolas17and I can't figure out how to contact them
18:13balrog has quit [Quit: Bye]
18:21balrog has joined #asahi
18:21ChaosPrincessw.r.t nvram tooling - i have something sorta resembling the nvram and bless commands from macos, but it still needs an actual terminal ui and safety features so it is harder to destroy your nvram by accident
18:21mbilker has quit [Quit: Arch Linux Rules]
18:21balrog is now known as Guest175
18:24mbilker has joined #asahi
18:30thelounge7571340 has joined #asahi
18:31thelounge7571340 has quit [Remote host closed the connection]
18:32Gaspare has quit [Quit: Gaspare]
18:37Gaspare has joined #asahi
18:43bluetailgausus I have this too. What helps is wait a day and try 5 times in a row
18:54Gaspare has quit [Quit: Gaspare]
18:54axboe has joined #asahi
18:55axboejust a note that audio seems to work perfectly for me now with current asahi-wip
18:55axboeno half speed stuff anymore
18:55axboe(apple drm still not, but one thing at the time)
18:57axboethanks povik, chadmed, and everyone else involved in this
19:00Gaspare has joined #asahi
19:00millenialhacker has quit [Quit: Konversation terminated!]
19:01millenialhacker has joined #asahi
19:02jannauaxboe: what's the issue with apple-drm? black screen at boot? did you update m1n1 to v1.1.7?
19:06jjido has joined #asahi
19:07millenialhacker has quit [Quit: Konversation terminated!]
19:08millenialhacker has joined #asahi
19:12unicordian has quit [Ping timeout: 480 seconds]
19:12Glanzmann has joined #asahi
19:12Glanzmannmarcan: New kernel works for me without issues on the mini (using Debian).
19:14Glanzmannjannau: I used the DRM the last week, I see only one regression: Resizing windows with fvwm2 lags (with simpledrm the border of the window follows the mouse immediately). I work most of the time full screen or use key combinations for resizing windows, so it took a while until I noticed: https://tg.st/u/VID_20221101_201054073.mp4
19:16qyousef has quit [Ping timeout: 480 seconds]
19:16millenialhacker has quit [Quit: Konversation terminated!]
19:16unicordian has joined #asahi
19:16Puto has quit [Ping timeout: 480 seconds]
19:16jonmasters_ has quit [Ping timeout: 480 seconds]
19:16cptcobalt has quit [Ping timeout: 480 seconds]
19:16risk has quit [Ping timeout: 480 seconds]
19:16axboejannau: either boots into the login screen and stalls when I log in, or I just get a black screen once X starts
19:16maennich_ has quit [Ping timeout: 480 seconds]
19:16axboejannau: should be on 1.1.7, yes
19:17jlinton has quit [Ping timeout: 480 seconds]
19:17Glanzmannjannau: s/DRM/DCP/
19:17taowa__ has quit [Ping timeout: 480 seconds]
19:17sa1 has quit [Ping timeout: 480 seconds]
19:17snek has quit [Ping timeout: 480 seconds]
19:17aeroraptor has quit [Ping timeout: 480 seconds]
19:17msteffen has quit [Ping timeout: 480 seconds]
19:17esden has quit [Ping timeout: 480 seconds]
19:17sjg1 has quit [Ping timeout: 480 seconds]
19:17tardyp has quit [Ping timeout: 480 seconds]
19:17azenla has quit [Ping timeout: 480 seconds]
19:17jesse-s has quit [Ping timeout: 480 seconds]
19:17robher has quit [Ping timeout: 480 seconds]
19:17maennich_ has joined #asahi
19:17axboejannau: let me just update it and be totally sure...
19:17Glanzmannaxboe: Which models are the nvmes you tested in this dell box?
19:18jonmasters_ has joined #asahi
19:18jbowen has quit [Ping timeout: 480 seconds]
19:18axboeGlanzmann: p5800x, 800G
19:18Glanzmannaxboe: Thanks.
19:18axboebrb, updating m1n1
19:18eta has quit [Ping timeout: 480 seconds]
19:18cptcobalt has joined #asahi
19:18Puto has joined #asahi
19:19qyousef has joined #asahi
19:19risk has joined #asahi
19:20jesse-s has joined #asahi
19:20msteffen has joined #asahi
19:20tardyp has joined #asahi
19:20snek has joined #asahi
19:20jbowen has joined #asahi
19:20azenla has joined #asahi
19:21jlinton has joined #asahi
19:21sa1 has joined #asahi
19:21aeroraptor has joined #asahi
19:21taowa__ has joined #asahi
19:21sjg1 has joined #asahi
19:21esden has joined #asahi
19:21robher has joined #asahi
19:22millenialhacker has joined #asahi
19:27axboejannau: updated m1n1, though I think I was on 1.1.7 already
19:28axboejannau: same behavior - login screen showed up this time, but it never finishes the login
19:28eta has joined #asahi
19:28axboelet me know if you want dmesg or anything like that - there's a bunch of dcp/drm messages in there, above my pay grade
19:31millenialhacker has quit [Quit: Konversation terminated!]
19:32millenialhacker has joined #asahi
19:32axboeit's quite possible I'm missing something here (in terms of kernel config, or else), I haven't been following too closely... just enabled APPLE_DRM (and disabled SIMPLE_DRM) and ensured that m1n1 was updated
19:32jannauaxboe: yes, dmesg might be helpful. can you check /sys/kernel/debug/dri/[0-9]/state as well
19:33axboelet me boot into that kernel again and join irc, will check state
19:36jannauaxboe: dmesg looks good, seems to be an issue between dcp and userspace. can you check if switching to vt results in a pickture?
19:37jannauunrelated, you seem to miss the pasemi i2c driver: that's the best explanation I have for "i2c 0-003f: deferred probe pending"
19:37axboejannau: yes switching to vt is fine, that's where I jumped on irc :)
19:38axboejannau: oh, which config is that?
19:38axboejannau: got dri state for you here too, hang on
19:38thelounge7571340 has joined #asahi
19:38thelounge7571340 has quit [Remote host closed the connection]
19:39jannauCONFIG_I2C_APPLE
19:39axboejannau: CONFIG_I2C_APPLE=y
19:40millenialhacker has quit [Quit: Konversation terminated!]
19:40jannauCONFIG_TYPEC_TPS6598X?
19:40axboeCONFIG_TYPEC_TPS6598X=m
19:40millenialhacker has joined #asahi
19:41jannauis tps6598x loaded?
19:41svenI assume you have dwc3? otherwise tps might refuse to probe
19:41axboescardracs: USB_DWC3=y
19:41axboeoops, that was for sven
19:41axboehave the _PCI and HAPS =y as well
19:42svenhrm, no other ideas then
19:42jannauaxboe: if possible post dri/x/state while the black screen is on. it displays the current working vt state
19:43axboejannau: no black screen, just stuck in between login and showing the loaded wm
19:43axboesometimes a black screen, but mostly that whenever I've tried
19:43axboeout of like 10 samples or something like that
19:44axboelet me try again and move to the desktop so I can ssh in
19:44jannauwhich desktop envirenmont do you use?
19:45mpsdcp/drm works for me with latest asahi-wip
19:46mpsonly don't know where to look for display brightness
19:46scardracsaxboe: which desktop manager?
19:46scardracsI assimume gdm
19:47axboelightgdm
19:47j`eymps: display brightness doesnt work still
19:47mpsj`ey: ah, thanks for info
19:47jannaumps: display brightness is work in progress and not included in asahi-wip
19:48mpsok ok, np
19:48bluetail has quit [Ping timeout: 480 seconds]
19:50axboejannau: dri state while either setting waiting on login or after having input credentials (no change between the tw0
19:50mpsaxboe: what is your CONFIG_DRM_SIMPLEDRM_BACKLIGHT
19:50axboemps: I kill DRM_SIMPLEDRM* when I enabled DRM_APPLE
19:50axboedisplay backlight still works though even when sitting stalled like that
19:50mpsI think you need simpledrm but not CONFIG_DRM_SIMPLEDRM_BACKLIGHT
19:50axboeit turns it off and on
19:50jannauthe backlight can not be enabled when apple drm is enabled
19:51axboemps: sure can try that
19:52mpsjannau: so drm can now work without simpledrm?
19:52axboemps: I do get a display, both vt and X
19:52mpsappledrm I meant
19:53axboewithout simpledrm
19:53mpsah, good
19:54mpslets try this here
19:54jannauthis seems to be a compatibility problem between userspace and apple drm. probably either a bug in apple drm or untypical behavior of apple drm
19:54jannaumps: yes, it should have been always possible to use apple drm without simpledrm
19:55mpsjannau: thanks, will try in few minutes
19:55axboexfce4 seems to sit in a loop of doing ppoll, timing out, and then attempting a recvmsg twice from the same fd (3, socket)
19:56jannauthe expected config for non-apple silicon specific distros would simpledrm built-in and all supported HW drivers as modules to avoid having very large kernel image
19:56jannauI'll look it myself
19:57axboejannau: let me know if there's anything I can do
19:59jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
20:00Glanzmannaxboe: I used apple drm in the last week with lightdm and fvwm2 without any issues.
20:00mpsI've got this warning when building asahi-wip https://tpaste.us/Yrgw
20:00Glanzmannaxboe: You're still on Debian testing, aren't you?
20:01axboeGlanzmann: yep I'm on debian testing
20:02Glanzmannaxboe: I never checked apple drm on the m1 air, doing right now.
20:02axboeGlanzmann: where's this DRM_ASAHI from?
20:02mpsjannau: yes, it works fine without simpledrm, thank you
20:03Glanzmannaxboe: That you can ignore, it is the gpu wip driver. It is not in your tree.
20:03jannauaxboe: that's the 3D gpu driver, not yet working on m1 pro/max/ultra
20:03Glanzmannaxboe: Was also not working for me when I tested on the mini.
20:04Glanzmannaxboe: SO your symptoms are, you can see the kernel boot, you see lightdm login prompt and as soon as xfce starts it goes black?
20:04jannauor hangs
20:04Glanzmannhmm. strange.
20:05jannauthis sounds like an xfce4/dcp issue and I'll look into it
20:05axboeGlanzmann: nope, as soon as X starts I either get a black screen (20%? of the time), or I get the login screen
20:05axboebut when I then login, it'll load seemingly half way and then just stall
20:05axboejannau: thanks, yeah sounds like it
20:06mpsnice, everything works with asahi-wip, appledrm, kbd backlight and sensors patch on m1pro
20:06axboejannau: I can try another wm?
20:06millenialhackermps, what sensors patch are you referring to?
20:07Glanzmannaxboe: Maybe try, blackbox, it is lightweight, you can open a terminal and go from there simliar to xfce4.
20:07axboeGlanzmann: beats fvwm2 even if I am nostalgic ;)
20:07Glanzmannaxboe: I try to reproduce your issue with xfce4.
20:07mpsmillenialhacker: 57 pull request, j`ey sent url to you
20:07millenialhackerOh, I thought you were referring to another one
20:08mpsmillenialhacker: old one also works fine
20:08mpsI forgot url of it
20:08Glanzmannaxboe: I'm using fvwm since 1994. I have a lot of shortcuts hardcoded into my brain: https://pbot.rmdir.de/msT1fVlOsYFnx8NGyf239g
20:08millenialhackerI got a really weird behavior on my M1 MbP with Apple DRM, if I use XOrg/XServer, everything works but it's a little slow, however if I try to use Wayland, the desktop looks dark, really dark.
20:08millenialhackerHas anyone experience this problem before?
20:09mpsmillenialhacker: yes, drm is somewhat slower with some things
20:09axboeok blackbox is hardly better...
20:09axboegiving it a go
20:09mpsbut scroll in FF and some other programs is fine
20:09millenialhackerI'm not sure if describe it as dark is the right way, sorry for my lack of vocabulary here, but I see the colors different like when you play with photoshop / gimp and you get a dark image when you play with brightness
20:09Glanzmannmillenialhacker: I only use x. I noticed that resizing windows with apple_drm is slow, everything else is fast for me including watching videos with mpv.
20:10axboejannau: blackbox loads fine
20:10jannaumillenialhacker: using kde? should be fixed in current asahi-wip
20:10millenialhackerYes, using KDE
20:10mpsyes, looks like plane redraw is slower, if I use right term
20:10millenialhackerjannau, give me few minutes to try again, I was using RC2 and experienced the issue
20:10millenialhackerlet me try with RC3
20:10Glanzmannaxboe: Btw. If you reboot a lot and want to quickly login using lightdm, you can do the following: https://pbot.rmdir.de/LHXWVi8ri_yE47yoj7bPpQ
20:10millenialhacker has quit [Quit: Konversation terminated!]
20:11millenialhacker has joined #asahi
20:11axboeGlanzmann: generally don't reboot a lot, only when testing something like this
20:11millenialhacker has quit [Remote host closed the connection]
20:12millenialhacker has joined #asahi
20:12Glanzmannaxboe: I see, I reboot a lot and switch workstations all the time.
20:12mps(when testing kernels and basic things I set boot to console only, and start xorg from cmdline, not autostart DM)
20:12millenialhackerjannau, you're right is now fixed in asahi-wip rc3
20:13Glanzmannaxboe: So I installed xfce4 and it works for me on the mini. So it is probably something on your platform.
20:13millenialhackerjannau, in general, what do you recommend xorg or wayload for apple drm driver?
20:13millenialhackers/wayload/wayland/g
20:14GlanzmannOkay dcp works on my m1 air but is dog slow.
20:14axboejannau: tried adding a new user, and I can log in to xfce4 just fine with that
20:15axboebased on some weak googling that found a guy saying it hangs for him when logging in with his shell set to zsh, but not bash
20:15axboeI'm using fish
20:16axboebut I'm guessing it's loading something off .config/ for me that's causing this stall
20:16* mpsmust only one oldtimer who use tcsh for interactive shell :)
20:17axboemps: some of the kids at work convinced me to try fish a while back, really like it
20:18mpsaxboe: OT but, I tried fish and zsh but switched back to tcsh
20:19Glanzmannjannau: So the scrolling with apple_drm is slow with xterm in tmux. With alcaritty it is fast.
20:19WhyNotHugoWhat's makes tsch special?
20:20nicolas17I tried fish and the inability to write horrible shell script one-liners directly in the prompt kept getting in the way
20:20WhyNotHugoYeah, fish is terrible because lots of common, portable one-liners don't work.
20:21WhyNotHugoI tried it but that was a pain. And it's too different from posix shell for scripts too.
20:21mpsanyway, if anyone need kbd backlight daemon I hacked one simple and ugly here https://www.arvanta.net/2x3d1kfg/kbd-bklght.c works with xorg
20:21axboewe're getting way off topic, but I just use bash for scripts if I need to, but I'm pretty used to it by now
20:25Etrien__ has joined #asahi
20:29Etrien has quit [Ping timeout: 480 seconds]
20:32jannauaxboe: xfce4 works for me as well. not all lost though since I've confirmed the assumed issue with the current backlight code on Xorg
20:33axboejannau: guess I need to enable some logging and figure out which parts hangs for me with my usual login
20:33axboejannau: but good that something useful came out of it :)
20:34jannaumillenialhacker: shouldn't matter much, I think Xorg might be faster wayland for now. I test mostly with wayland
20:36Etrien has joined #asahi
20:39chengsun has quit [Ping timeout: 480 seconds]
20:44Etrien__ has quit [Ping timeout: 480 seconds]
20:46millenialhacker has quit [Quit: Konversation terminated!]
20:46jluthra has quit [Remote host closed the connection]
20:47jluthra has joined #asahi
20:51Etrien__ has joined #asahi
20:54amarioguy has joined #asahi
20:58Etrien has quit [Ping timeout: 480 seconds]
20:58thelounge7571340 has joined #asahi
20:59thelounge7571340 has quit [Remote host closed the connection]
21:18Glanzmann has quit [Quit: n8]
21:20bcrumb has joined #asahi
21:22cylm has quit [Quit: WeeChat 3.7.1]
21:24Stroller has quit [Ping timeout: 480 seconds]
21:48Stroller has joined #asahi
21:55Dcow has quit [Remote host closed the connection]
21:56WhyNotHugomps: Oh, it's already exposed via sysfs? Nice!
21:56Dcow has joined #asahi
21:56j`eyWhyNotHugo: with a patched kernel
21:57mpsWhyNotHugo: what is exposed?
21:57WhyNotHugokeyboard backlight control.
21:57mpsyes, with pwm patch applied
21:57mpsnot with current default asahi distro kernel
21:58mpsafaik, could be wrong
21:58WhyNotHugoReminds me of this tiny thing I made for some pre-T2 intel macbooks https://github.com/WhyNotHugo/kbdlight/blob/master/kbdlight.c
21:58bcrumbbacklights soon? yay
21:59mpsWhyNotHugo: ah, nice. maybe I could copy something from it
22:00mpsbcrumb: yes, I added kbd backlight patch to alpine kernel few days ago
22:00* bcrumbtips le hat
22:06thelounge7571340 has joined #asahi
22:06thelounge7571340 has quit [Remote host closed the connection]
22:10amarioguy has quit [Ping timeout: 480 seconds]
22:13Dcow has quit [Ping timeout: 480 seconds]
22:17bcrumb has quit [Quit: WeeChat 3.7.1]
22:19winter has quit [Quit: The Lounge - https://thelounge.chat]
22:28WhyNotHugomps: Feel free!
22:32Dcow has joined #asahi
22:33IcaroDextris has joined #asahi
22:40Dcow has quit [Ping timeout: 480 seconds]
22:43thelounge7571340 has joined #asahi
22:44thelounge7571340 has quit [Remote host closed the connection]
22:58jess has quit []
22:58Etrien__ has quit [Ping timeout: 480 seconds]
23:02nsklaus_ has joined #asahi
23:06Dcow has joined #asahi
23:07nsklaus has quit [Ping timeout: 480 seconds]
23:12SSJ_GZ has quit [Read error: Connection reset by peer]
23:12amarioguy has joined #asahi
23:12SSJ_GZ has joined #asahi
23:14unicordion has joined #asahi
23:14Dcow has quit [Ping timeout: 480 seconds]
23:23jjido has joined #asahi
23:29rwxyz has quit [Remote host closed the connection]
23:31SSJ_GZ has quit [Ping timeout: 480 seconds]
23:31Gaspare has quit [Quit: Gaspare]
23:45amarioguy has quit [Ping timeout: 480 seconds]
23:51vmeson has quit [Ping timeout: 480 seconds]
23:53thelounge7571340 has joined #asahi
23:53thelounge7571340 has quit [Remote host closed the connection]
23:54unicordion1 has joined #asahi
23:55unicordian has quit [Ping timeout: 480 seconds]
23:56unicordian has joined #asahi
23:57unicordion has quit [Ping timeout: 480 seconds]
23:57unicordion1 is now known as unicordion
23:58unicordian has quit [Read error: Connection reset by peer]
23:58unicordian has joined #asahi
…