#
✕ nick:jannau
#asahi-dev · 2023-04-27 05:34
jannautrying to think if it's possible if specific watchdog drivers could do something better than stopping the watchdog on suspend but I can't think of anything which would work for s2idle
#asahi-dev · 2023-04-27 05:31
jannauI was asking myself that as well. the core watchdog device has suspend/resume callbacks to stop/start its thread and ping the watchdog on suspend
#asahi-dev · 2023-04-26 22:07
jannauI've had hoped to get the m2 mini to light something up this weekend which is dcpext(int)UINT32_MAX support, that's of course != released
#asahi-dev · 2023-04-26 20:50
jannaumarcan: https://github.com/AsahiLinux/linux/pull/140
#asahi-dev · 2023-04-26 20:44
jannauif the system stays 60 seconds in suspend without it's fixed
#asahi-dev · 2023-04-26 20:43
jannauaxboe: it was the watchdog, https://github.com/jannau/linux/commit/5ec32cdb6555bf935fd621ef8923410a1f51b5b9 fixes it
#asahi-dev · 2023-04-26 19:49
jannauI have the feeling it is just the watchdog, armed by u-boot, feeded by linux and not disarmed on suspend
#asahi-dev · 2023-04-26 19:42
jannaupovik: short description how I boot kernels with modules tethered https://gist.github.com/jannau/24089ca9dd93cdcbb712a95d5ef83803
#asahi-dev · 2023-04-26 19:37
jannautry experiments/dart_dump.py $name and see if it makes sense
#asahi-dev · 2023-04-26 19:33
jannaumisses 'G's
#asahi-dev · 2023-04-26 19:29
jannauinstance property
#asahi-dev · 2023-04-26 19:27
jannaueverything we support on t8113
#asahi-dev · 2023-04-26 19:16
jannauPCIE_APPLE is not set in u-boot's config
#asahi-dev · 2023-04-26 19:15
jannauand fails to create device links for 2920a1300.spmi:pmu@f:rtc_nvmem@1400 and 2920a1300.spmi:pmu@f:legacy_nvmem@6000
#asahi-dev · 2023-04-26 19:14
jannauit shouldn't have PCIe enabled but linux complains about "pcie-apple 590000000.pcie: invalid resource"
#asahi-dev · 2023-04-26 19:03
jannauI use https://github.com/AsahiLinux/m1n1/pull/268 with a few tricks to still boot from frommy dev system
#asahi-dev · 2023-04-26 19:03
jannaupovik: config with most of the non-essential drivers (including sio) as modules. so probably close to your full-fledged OS install
#asahi-dev · 2023-04-26 18:59
jannauaxboe: reproduced when booting via u-boot
#asahi-dev · 2023-04-26 18:45
jannauI must have either overlooked the errors, didn't test it or something else
#asahi-dev · 2023-04-26 18:43
jannaumakes sense, allocation for the display happens (if it happens) is at m1n1's init
#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: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
jannauat least not in the setup we use
#asahi-dev · 2023-04-26 18:11
jannaupovik: the memory@80000000 should not cover the reserved mem
#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 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 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
#asahi-dev · 2023-04-26 05:44
jannauaxboe: if you want to have wlan ready at boot instead of waiting for it a couple of minutes you need to disable CONFIG_FW_LOADER_USER_HELPER
#asahi-dev · 2023-04-26 05:38
jannaususpend doesn't seem to work at all with axboe's config (+ samsung serial)
#asahi-dev · 2023-04-26 05:27
jannauaxboe: you want to compress the u-boot payload. unrelated to the suspend issue but if you switch to the standard chainloading setup a compressed u-boot is required to allow reading appended variables
#asahi-dev · 2023-04-26 05:19
jannauI don't see how userspace would make a difference unless it arms the watchdog
#asahi-dev · 2023-04-26 05:18
jannaudifference is kernel config and m1n1 payload. I boot kernel and initrd directly instead of u-boot
#asahi-dev · 2023-04-26 05:16
jannauovernight suspend/resume worked as well, not surprising if the issue is triggered by suspend
#asahi-dev · 2023-04-25 19:41
jannaucan you think of anything out of the ordinary? you're using xfce4 if I remember correctly and I gather you suspend/resume by closing/opening the lid
#asahi-dev · 2023-04-25 19:34
jannauaxboe: I haven't been able to reproduce yet :(
#asahi-dev · 2023-04-25 17:51
jannauI'll try to reproduce with serial on j314c (14" m1 max)
#asahi-dev · 2023-04-25 11:36
jannauI see the same on ultra, macos (12.3) doesn't use the p-cores with clpc=0. without it does
#asahi-dev · 2023-04-25 11:14
jannaumarcan: it does, might be even a little faster than cbd9b7b9e1724244 with cpuidle disabled. thanks
#asahi-dev · 2023-04-25 10:43
jannaucpuidle makes linux boot under HV slow. with cpuidle.off=1 in the commandline it's 2-3 times faster
#asahi-dev · 2023-04-25 07:52
jannaumight be a little bit faster with cbd9b7b9e1724244 but not much so I might misremember
#asahi-dev · 2023-04-25 07:39
jannaudid the sleep/shutdown tracing made the system slower under the hypervisor? boot timing seems to be much slower than I remember and macos felt slow as well

plus ›