#asahi-dev · 2023-08-02 19:52
cy8aerI am just looking at the m1n1-update script. Is the AsahiLinux kernel shipped with the dtbs? Because I take them from the source.#asahi-dev · 2023-08-02 19:46
svenusually by the time we manage to get them upstream (with some minor exceptions)#asahi-dev · 2023-08-02 19:46
sveneventually the dtbs will be stable enough that you can mix and match then with kernels #asahi-dev · 2023-08-02 19:45
jannauhttps://src.fedoraproject.org/rpms/asahi-scripts/blob/rawhide/f/asahi-scripts.spec#_90 but it doesn't trigger on m1n1 updates#asahi-dev · 2023-08-02 19:43
j`eydo you know update-m1n1 is run in fedora?#asahi-dev · 2023-08-02 19:43
mpscy8aer: I can boot kernel 5.19 with latest m1n1 and u-boot, ofc DCP or GPU doesn't work#asahi-dev · 2023-08-02 19:43
cy8aerthank you.#asahi-dev · 2023-08-02 19:43
cy8aerwow it is really the upstream fedora. I thought there were some repo beside...#asahi-dev · 2023-08-02 19:42
jannauAsahiLinux handles it but having just 1 kernel installed, Fedora doesn't handle it#asahi-dev · 2023-08-02 19:42
j`eyhttps://src.fedoraproject.org/group/asahi-sig#asahi-dev · 2023-08-02 19:42
j`eycy8aer: https://src.fedoraproject.org/rpms/m1n1/blob/rawhide/f/m1n1.spec for example#asahi-dev · 2023-08-02 19:40
cy8aerThat makes sense. But there is still the problem when you want to startup an older kernel. I have both kernels installed - 6.4-1 and, say 6.4-3. There is a dtp update between. I am not able to just reboot into grub and select the older kernel because of a different dtb. How is this handled in AsahiLinux/Fedora? And: are the fedora package sources somewhere?#asahi-dev · 2023-08-02 19:36
jannauyes, update-m1n1 is triggered by post install hooks of the relevant packages#asahi-dev · 2023-08-02 19:35
cy8aeras hook?#asahi-dev · 2023-08-02 19:34
cy8aerjannau: you mean this cat in the Glanzmann script not inside the package but as a post install script or after installing a kernel?#asahi-dev · 2023-08-02 19:24
jannauI'd strongly recommend the model used in AsahiLinux/Fedora Asahi remix which decouple updates of the packages and assembles the 2nd stage loader on demand after updates via update-m1n1#asahi-dev · 2023-08-02 19:22
cy8aer(sorry dtb of course)#asahi-dev · 2023-08-02 19:22
jannaum1n1 / u-boot itself are mostly decoupled from specific kernel versions. the stronger coupling happens due to the bundling of m1n1 with the kernel dtb for the 2nd stage loader#asahi-dev · 2023-08-02 19:21
cy8aeryou can see these dependencies in https://git.zerfleddert.de/git/m1-debian file m1n1_uboot_kernel.sh#asahi-dev · 2023-08-02 19:20
tarzeaubut for interested parties: https://wiki.debian.org/Teams/Bananas#asahi-dev · 2023-08-02 19:20
tarzeaucy8aer: i'm sorry i only have rpi4 arm64 so i can't say much about it. trying to get real m1 for allowing public access to developers. appears to be difficult to get together the machine or (950.- or 2000.- for a m1/8/24 or m2pro/12/32)#asahi-dev · 2023-08-02 19:19
tarzeautobhe: ^#asahi-dev · 2023-08-02 19:18
cy8aerBut of course it is promising#asahi-dev · 2023-08-02 19:17
cy8aerLooks dangerous. I am building m1n1/u-boot-asahi for my own in debian now (from the Glanzmann sources). And it depends on the kernel it boots: From 6.4-1 to 6.4-3 was a dcp change and m1n1 with the dcp of 6.4-1 does not boot 6.4-3. I needed to recompile m1n1. So without the kernel m1n1 makes no sense?#asahi-dev · 2023-08-02 19:09
tarzeaudebian asahi team (we call it different), already has m1n1 and u-boot-asahi in new queue https://ftp-master.debian.org/new.html#asahi-dev · 2023-08-02 19:09
tarzeauhey congrats for the fedora/asahi collaboration announce, marcan. just to let you know debian is also interested in collaborating#asahi-dev · 2023-08-02 13:18
eilnI can't keep them always-on either. they have to be reset before kicking the firmware, which is fine for the first boot. on the second boot asc dies (unbootable, interrupts stuck, not even "last resort" EDPRCR works) & dart gets stuck in translation fault when trying to recycle pages.#asahi-dev · 2023-08-02 13:17
eilncalling reset without the 0xf0017ff/0x7ff intermediate states (so just w32 0x0) makes the isp range inaccessible, so I get a MMIO fault on the deassert#asahi-dev · 2023-08-02 13:17
eilnisp pds aren't described in the device tree, just a fat range [0x23b700000, 0x8C000] (the entire pmgr range) in the isp node from which the h13cam kext works with. btw there's 12 power domains#asahi-dev · 2023-08-02 13:17
eilnmarcan: the first three isp power domains need bespoke handling. the three need 0xf0017ff, 0xf0017ff, and 0x7ff written before powering off (as normal) with 0x0.#asahi-dev · 2023-08-02 07:14
marcanneeever mind#asahi-dev · 2023-08-02 07:14
marcanyeah, I'm really confused here#asahi-dev · 2023-08-02 07:08
marcanam I really confused here?#asahi-dev · 2023-08-02 07:08
marcan... why do I supposedly have macOS 12.1 on this MBA M2 13"? that makes *no* sense. guess that was the shipping firmware? but then why is this not the main Macintosh HD partition, and why do I have a m1n1 with the same version?#asahi-dev · 2023-08-01 20:11
kettenisThey claim it isn't a problem though: https://uapi-group.org/specifications/specs/discoverable_partitions_specification/#doesnt-this-break-multi-boot-scenarios#asahi-dev · 2023-08-01 20:11
kettenisYeah, I don't think that bit makes sense#asahi-dev · 2023-08-01 19:42
jannauthat tries to discover and auto mount partitions based on special GPT partition type GUIDs#asahi-dev · 2023-08-01 19:41
jannaunice find. for one use case it doesn't seem to help: https://uapi-group.org/specifications/specs/discoverable_partitions_specification/#asahi-dev · 2023-08-01 19:25
kettenisran across that today; LoaderDevicePartUUID might be one of the missing pieces to support multiple ESPs#asahi-dev · 2023-08-01 19:25
kettenishttps://systemd.io/BOOT_LOADER_INTERFACE/#asahi-dev · 2023-08-01 16:52
heydathanks j`ey!#asahi-dev · 2023-08-01 16:51
j`eyheyda: https://github.com/AsahiLinux/linux/issues/72#asahi-dev · 2023-08-01 16:50
heydawhat's the best place to bug report for mesa-asahi-edge? I looked at the gitlab but didn't see an issues area#asahi-dev · 2023-08-01 10:10
sid-linuxso kvm would have to emulate that#asahi-dev · 2023-08-01 10:10
sid-linux(if accessed in the VM)#asahi-dev · 2023-08-01 10:09
sid-linuxthanks sven ! regarding the broken virtual GIC -- yes I was looking at the kernel source code. all accesses to the interrupt ack register ICH_IAR1_EL1 are trapped#asahi-dev · 2023-08-01 09:52
sventhey also have a (somewhat broken) virtual GIC but that’s only relevant for VMs#asahi-dev · 2023-08-01 09:51
svenyeah, and just to confirm: the root interrupt controller is the AIC on apple machines #asahi-dev · 2023-08-01 09:49
sid-linuxfigured it out -- the `33:` etc. numbers in /proc/interrupts corresponds to the logical irq number in linux#asahi-dev · 2023-08-01 06:11
sid-linuxNow I'm trying to understand that this is something that GIC offers or is this a property of the CPU (that may or may not have GIC as apple doesn't seem to have)