#
✕ nick:marcan
#asahi · 2023-11-07 13:30
marcansince half the reason to kexec is speed
#asahi · 2023-11-07 13:30
marcanbut that's also useless
#asahi · 2023-11-07 13:30
marcanoh sure :p
#asahi · 2023-11-07 13:29
marcankexec always felt like a hack that is only useful for very restricted bootloader-type use cases and for kernel panic dumping purposes, not as a general-purpose thing
#asahi · 2023-11-07 13:29
marcanno way kexec works with that
#asahi · 2023-11-07 13:29
marcanI have to load an out of tree module to get vfio passthrough to work more than once
#asahi · 2023-11-07 13:28
marcanlike I have an AMD machine with a Radeon and it absolutely doesn't know how to reset that upstream
#asahi · 2023-11-07 13:28
marcandoes it even work properly for full consumer hw use cases anyway?
#asahi · 2023-11-07 13:27
marcan(and kernel configs etc, like fedora uses selinux on by default)
#asahi · 2023-11-07 13:27
marcanand then you have a problem with modules
#asahi · 2023-11-07 13:27
marcanapple style ;)
#asahi · 2023-11-07 13:26
marcanyou could implement kexec by setting some environment/file flags and putting the new kernel/initramfs somewhere in the ESP and rebooting with a flag that tells u-boot to load that instead
#asahi · 2023-11-07 13:26
marcanthis is why apple reboots after the boot picker, they *can't* do it any other way
#asahi · 2023-11-07 13:23
marcanhanding that off is insanity
#asahi · 2023-11-07 13:23
marcanar: "being configured" = sharing memory with the kernel
#asahi · 2023-11-07 13:22
marcanGPU is a lost cause
#asahi · 2023-11-07 13:22
marcanwe already do a hideous handoff hack for the keyboard in u-boot and I'm not particularly keen on also implementing that for kexec
#asahi · 2023-11-07 13:22
marcanI mean you might be able to once we have PSCI, just forget about GPU, video encoder, touchpad/keyboard (on M2+), and a few other things if the first kernel loaded any of those drivers
#asahi · 2023-11-07 13:20
marcanthere is no way to fully reset any of the coprocessors to its boot state, because its boot state is loaded by iBoot
#asahi · 2023-11-07 13:20
marcanar: before m1n1
#asahi · 2023-11-07 13:20
marcanrkr11: as far as I can tell u-boot does not currently have drivers for any of the ethernet chipsets apple uses, no
#asahi · 2023-11-07 13:18
marcanit took you this long to figure that out? :p
#asahi · 2023-11-07 13:17
marcanthis is a platform limitation
#asahi · 2023-11-07 13:17
marcanthere is no way to reinitialize firmware
#asahi · 2023-11-07 13:17
marcanPaulFertser: no, kexec is not supported and never will be
#asahi · 2023-11-07 13:16
marcanwhat device?
#asahi · 2023-11-07 13:15
marcanwlan = wireless lan
#asahi · 2023-11-07 13:14
marcanoh but you said wlan?
#asahi · 2023-11-07 13:14
marcan(mostly for our own sanity)
#asahi · 2023-11-07 13:14
marcanwe are using u-boot and not edk2 for a reason
#asahi · 2023-11-07 13:14
marcanyes, I was about to say, down that path lies edk2
#asahi · 2023-11-07 13:13
marcanand dare I say there should never be
#asahi · 2023-11-07 13:13
marcanthere is no wlan stack in u-boot at all as far as I know
#asahi · 2023-11-07 13:12
marcanif you want to netboot the only practical options that could be supported are wired ethernet (internal or usb)
#asahi · 2023-11-07 13:12
marcanwe also aren't going to provision wifi firmware for u-boot like we do for aspeed
#asahi · 2023-11-07 13:11
marcanforget about it
#asahi · 2023-11-07 13:11
marcanu-boot absolutely does not have a brcmfmac driver
#asahi · 2023-11-07 12:41
marcannor firmware
#asahi · 2023-11-07 09:39
marcanthere's so much broken in that driver...
#asahi · 2023-11-07 09:31
marcanincluding the custom apple ones (awdl)
#asahi · 2023-11-07 09:31
marcantoo lazy to reboot with debug right now :p
#asahi · 2023-11-07 09:30
marcanyes I'm pretty sure it would show up
#asahi · 2023-11-07 09:28
marcanbut there are strings that look like a feature list: https://mrcn.st/p/NPsQ7A0l
#asahi · 2023-11-07 09:27
marcanyeah I think they don't do that for apple
#asahi · 2023-11-07 09:26
marcanthere are hits for 'sae' elsewhere
#asahi · 2023-11-07 09:25
marcan<UCODE-TAG>path=.../dot11_firmware/branches/OlympicAXUcodeTwig_1478_26400@44762 major=1478 minor=26400 diff_ct=0 prebuilt=0 build=/var/xbs/bwa/F6C191EE-9DD2-479E-A1E3-445222C22A78/BCMFirmware_4387_all-343/srcroot/build/dongle/4387c2-roml/config_pcie_perf_udm_nosar/ucode_build
#asahi · 2023-11-07 09:25
marcan<FW-TAG>4387c2-roml/config_pcie_perf_udm_nosar Version=20.96.31.0.8.7.148 Date=2023-05-27T02:22:01Z FWID=01-1f7d4484
#asahi · 2023-11-07 09:22
marcanotherwise we're just doing their job for them and walking on eggshells
#asahi · 2023-11-07 09:22
marcanand it doesn't seem anyone cares, so it's probably a good idea to *actively* break some people and see if anyone notices
#asahi · 2023-11-07 09:22
marcanthey've ignored all my emails

plus ›