#asahi · 2022-11-01 16:28
bcrumbhttps://github.com/b-crumb/asahi-luks-notes/blob/main/ASAHILUKS.md#asahi · 2022-11-01 16:17
nvflash Anyone know how Thunderbolt support is coming along in Asahi?#asahi · 2022-11-01 16:15
svenon the mini hdmi is attached to the internal port that’s normally used for the built in display #asahi · 2022-11-01 16:15
svenhdmi on some mbp or something is attached via type-c and unrelated to the dwc3 controller which does usb2/3#asahi · 2022-11-01 16:14
nvflashCool, that's good to hear.#asahi · 2022-11-01 16:14
svenno#asahi · 2022-11-01 16:14
svenit’s only the usb a ports that are attached via pcie #asahi · 2022-11-01 16:14
bluetailEven HDMI is attached to USB, right?#asahi · 2022-11-01 16:14
svenyou could still pass them through if you wanted to#asahi · 2022-11-01 16:14
svenUsb-c ports on the mini are also not attached via pcie #asahi · 2022-11-01 16:13
WhyNotHugomarcan: Are you familiar with `bootctl --print-esp-path`?#asahi · 2022-11-01 16:13
svenyes#asahi · 2022-11-01 16:13
nvflashOn my MBP USB seems to get it's own groups but it's somehow part of the SoC "interconnect bus" rather than PCI?#asahi · 2022-11-01 16:13
svenon these devices almost everything is behind an iommu and can theoretically pass through almost everything #asahi · 2022-11-01 16:11
nvflashThat'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.#asahi · 2022-11-01 16:05
svenyeah, cause that mbp doesn’t have Ethernet or the additional usb-a ports #asahi · 2022-11-01 16:04
nvflashToo long to post here, sorry!#asahi · 2022-11-01 16:03
nvflashWell 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#asahi · 2022-11-01 15:58
sventhat’s also why your lspci above failed: not all iommu groups are for pci devices #asahi · 2022-11-01 15:57
svenother than that almost every non-pci device will get its own iommu group #asahi · 2022-11-01 15:56
svenI 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 #asahi · 2022-11-01 15:55
nvflashAnyway, 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#asahi · 2022-11-01 15:51
nvflashty #asahi · 2022-11-01 15:50
j`ey#asahi-offtopic#asahi · 2022-11-01 15:49
nvflashWhere is the right place to discuss it, IRC sucks because there is no way to format. How readable are logs without formatting?#asahi · 2022-11-01 15:47
nicolas17no, sven is though (he has +o)#asahi · 2022-11-01 15:47
nvflashYou're the IRC police?#asahi · 2022-11-01 15:46
nicolas17chat platforms#asahi · 2022-11-01 15:46
nvflashto discus what?#asahi · 2022-11-01 15:42
svennot the right place to discuss this #asahi · 2022-11-01 15:41
nvflashWhy would you like it, no formating.#asahi · 2022-11-01 15:40
j`eynvflash: cos we like it!#asahi · 2022-11-01 15:40
nvflashBTW, why do we use IRC rather than something rich like Discord?#asahi · 2022-11-01 15:37
nvflashYes, 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#asahi · 2022-11-01 15:37
svener, *for bt/wifi#asahi · 2022-11-01 15:37
svenfor bt/pcie you’ll probably have to unbind both #asahi · 2022-11-01 15:36
svendid you make sure to unbind the kernel driver first?#asahi · 2022-11-01 15:36
nvflashI can't get vfio-pci to bind to a device#asahi · 2022-11-01 15:35
nvflashI don't know, so little documention for PCI Passthrough on AAARCH64#asahi · 2022-11-01 15:34
sven*some#asahi · 2022-11-01 15:34
svenmaybe sone page size issues? are both host and guest 16kb kernels?#asahi · 2022-11-01 15:34
svenI don’t see a reason why it shouldn’t though#asahi · 2022-11-01 15:33
svenno idea, never used it #asahi · 2022-11-01 15:33
nvflash @sven but does IOMMU work for PCI Passthrough?#asahi · 2022-11-01 15:25
svenpci doesn’t work without the iommu on these devices #asahi · 2022-11-01 15:22
nvflash@sven Always enabled in firmware or Arm64 Linux kernels don't need a command line option to enable IOMMU for the kernel?#asahi · 2022-11-01 15:18
nvflashIOMMU 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#asahi · 2022-11-01 15:17
nvflashsudo 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#asahi · 2022-11-01 15:15
sventhe pci iommu is always enabled in these machines #asahi · 2022-11-01 15:14
nvflashIs there a kernel command line to add to GRUB to enable IOMMU for Arm64 like the one's for AMD and Intel?