#asahi-dev · 2023-04-26 18:38
povikon the other hand this made the errors go away#asahi-dev · 2023-04-26 18:38
povikjannau: i might be messing something up in the installation of a patched u-boot version (this is on a nixos install), but it's unlikely, i tried changing the font size and that took effect#asahi-dev · 2023-04-26 18:24
axboejannau: yeah agree, would love to know what it is, just trying to proportion the time spent on this particular issue...#asahi-dev · 2023-04-26 18:23
povikhuh#asahi-dev · 2023-04-26 18:23
jannaupovik: I think I tested sio with u-boot after I bumped LMB_MAX_REGIONS and didn't see any errors#asahi-dev · 2023-04-26 18:21
jannauaxboe: if you're (un)lucky the suspend issue reproduces on on the m2 max. I still think it's useful to find out what causes it but can understand if you don't can/want spend time on it#asahi-dev · 2023-04-26 18:19
povikthough there doesn't seem to be anything that prohibits the overlap of the /memory node and the reserved regions, the devicetree spec even has an example that's overlapping, so still not sure what the u-boot error is about#asahi-dev · 2023-04-26 18:17
povikah, of course the devicetree spec itself discusses /memory#asahi-dev · 2023-04-26 18:15
marcankaazoo: FYI all the t802x bringup stuff is already merged into the regular m1n1/linux branches (except the GPU stuff lina is working on), so disregard the bringup ones#asahi-dev · 2023-04-26 18:14
jannaunot sure if what I started doing for dcp is as intended/correct#asahi-dev · 2023-04-26 18:13
jannauDocumentation/devicetree/bindings/reserved-memory/reserved-memory.yaml#asahi-dev · 2023-04-26 18:12
jannaubut adjusting top_of_memory should take care of that#asahi-dev · 2023-04-26 18:12
povikare the semantics of the memory@ node documented somewhere?#asahi-dev · 2023-04-26 18:12
jannauat least not in the setup we use#asahi-dev · 2023-04-26 18:11
povikok, that's easy then :)#asahi-dev · 2023-04-26 18:11
jannaupovik: the memory@80000000 should not cover the reserved mem#asahi-dev · 2023-04-26 18:11
povikand i guess moving dt_set_memory in m1n1's kboot.c behind the sio setup is all one needs to do to cut out the sio reserved regions from the memory@ node...#asahi-dev · 2023-04-26 18:01
povikwhich seem to be the only ones that fall within the span of the memory@80000000 node#asahi-dev · 2023-04-26 18:01
povikit complains about the four sio-firmware-data@... reserved nodes#asahi-dev · 2023-04-26 18:00
povikhere are the relevant devicetree nodes: https://tpaste.us/wxa5#asahi-dev · 2023-04-26 17:59
povik^ that's in u-boot#asahi-dev · 2023-04-26 17:46
povikok, upping both LMB_MAX_REGIONS and LMB_RESERVED_REGIONS to 64 doesn't make the SIO reservation errors go away#asahi-dev · 2023-04-26 17:41
mazj`ey: quite. I sense trouble...#asahi-dev · 2023-04-26 17:14
j`eyoh no#asahi-dev · 2023-04-26 17:10
mazoops, I may have "accidentally" ended-up with a m2 pro mini... oh well...#asahi-dev · 2023-04-26 14:07
axboeI can just run the previous kernel until then#asahi-dev · 2023-04-26 14:07
axboepresumably the m2 max is going to be useful soon, so might just be worth scrapping spending any time on this if it's specific to some weirdness with my setup#asahi-dev · 2023-04-26 14:05
axboeyeah that's basically identical outside of adding serial#asahi-dev · 2023-04-26 14:03
axboehmm#asahi-dev · 2023-04-26 13:52
jannauhaven't tried yet to boot through u-boot#asahi-dev · 2023-04-26 13:52
jannauaxboe: https://www.jannau.net/asahi/suspend.config derived from your config, mostly toolchain induced changes. enabled serial for debugging#asahi-dev · 2023-04-26 13:35
axboejannau: what's your .config, I could give that a whirl just in case it's some weird interaction#asahi-dev · 2023-04-26 13:34
axboesuspended and drove to the office, open the laptop to a rebooted state...#asahi-dev · 2023-04-26 13:33
axboesuspended twice this morning before heading to the office, just 10 second ones, and it was fine#asahi-dev · 2023-04-26 13:33
axboejannau: wlan is ready at boot as it is, but I killed LOADER_USER_HELPER but it doesn't change any wrt suspend/resume#asahi-dev · 2023-04-26 09:22
kaazoojannau: OK, thanks. I will try to add that into u-boot.#asahi-dev · 2023-04-26 08:48
jannauno, m1n1 doesn't use mtp, it needs to do the same as the linux driver. see 612cb2861e4c ("soc: apple: rtkit: Implement OSLog buffers properly")#asahi-dev · 2023-04-26 08:44
kaazooAre there any details documented about oslog messages? What should u-boot do with those? Just ack them the same way as m1n1 does?: https://github.com/AsahiLinux/m1n1/blob/t602x/bringup/src/rtkit.c#L448#asahi-dev · 2023-04-26 08:44
kaazooYes, I guess that 'apple_rtkit_poll: unexpected endpoint 8' means oslog from https://github.com/AsahiLinux/m1n1/blob/t602x/bringup/src/rtkit.c#L27#asahi-dev · 2023-04-26 08:35
_jannau_the kernel has at least one change which needs to be done on u-boot side as well: adjusting/fixing rtkit oslog handling#asahi-dev · 2023-04-26 08:34
_jannau_I think nobody has looked so far at the u-boot mtp code. it works with linux as direct linux payload#asahi-dev · 2023-04-26 08:31
kaazooKernel log: https://paste.debian.net/1278504/#asahi-dev · 2023-04-26 08:31
kaazoodockchannel-hid gets loaded but MTP fails with 'rtkit-helper 2a9400000.mtp: error -ETIME: Failed to wake up coprocessor'#asahi-dev · 2023-04-26 08:31
kaazooHI, did anybody look into MTP support with FW 13.3 on j414s / M2 Pro 14" yet? U-boot complains about not being able to reserve some fdt memory regions: https://pasteboard.co/nI0QZsaCGQzJ.jpg#asahi-dev · 2023-04-26 07:07
jannaunot sure that is the same issue though given that axboe used ssh#asahi-dev · 2023-04-26 06:11
jannaususpend/resume is rock solid after disabling CONFIG_FW_LOADER_USER_HELPER but I'm not sure how that would explain issues after more than a few minutes of uptime#asahi-dev · 2023-04-26 06:00
jannauhttps://gist.github.com/jannau/006a1e6be7fa95c9e95c657dedd6d1dd#asahi-dev · 2023-04-26 06:00
jannauI hit however a SError, unsure if it strictly is suspend + CONFIG_FW_LOADER_USER_HELPER in progress related or if it was something I did because it stopped after file system sync#asahi-dev · 2023-04-26 05:51
jannauor at least delays entering suspend#asahi-dev · 2023-04-26 05:48
jannauthe ongoing wifi firmware loading appears to break suspend here