#
✕ nick:kettenis
#asahi-dev · 2021-12-21 09:16
kettenisso I pushed that change
#asahi-dev · 2021-12-21 09:16
kettenisok, disabling the PSCI_RESET code makes all the other PSCI code in u-boot go away
#asahi-dev · 2021-12-21 09:12
kettenismarcan: with that m1n1 change things work again
#asahi-dev · 2021-12-21 08:53
kettenismarcan: what actually happens on the M1 when you issue an smc instruction?
#asahi-dev · 2021-12-21 08:50
kettenistpw_rules: it looks like some PSCI functionality is incorrectly enabled in u-boot right now
#asahi-dev · 2021-12-21 08:37
ketteniswhat do you mean with the "real" country code...
#asahi-dev · 2021-12-20 20:47
kettenisso it is the unconditional RVBAR setting that screws things up
#asahi-dev · 2021-12-20 20:39
kettenismy serial connection is just too flaky at 1500000 :(
#asahi-dev · 2021-12-20 20:35
kettenislooks like fetching the ADT over serial is the problem
#asahi-dev · 2021-12-20 20:33
kettenisand maybe u-boot needs to be told where to store those variables
#asahi-dev · 2021-12-20 20:33
kettenisshould be possible to set them from u-boot itself or from an EFI bootloader, but I haven't tested that yet
#asahi-dev · 2021-12-20 20:32
kettenisruntime support is almost impossible, so setting them from Linux won't work
#asahi-dev · 2021-12-20 20:31
kettenisdon't think it is
#asahi-dev · 2021-12-20 20:29
kettenisnow on f2eac15 but chainloading still hangs
#asahi-dev · 2021-12-20 20:17
kettenisthe m1n1 I have is c2c6da3 from August, so I guess it is getting a bit long in the tooth
#asahi-dev · 2021-12-20 20:15
kettenisit's the last commit that breaks things
#asahi-dev · 2021-12-20 19:58
kettenisand then times out
#asahi-dev · 2021-12-20 19:58
kettenisFetching ADT (0x00058000 bytes)...
#asahi-dev · 2021-12-20 19:58
kettenistrying to chainload a new m1n1 over serial, and it hangs at
#asahi-dev · 2021-12-20 19:57
kettenishmm, did something change in an incompatible way in m1n1 recently?
#asahi-dev · 2021-12-20 19:20
kettenisI'm ok with either name; just don't change it again ;)
#asahi-dev · 2021-12-20 19:19
kettenisah, right
#asahi-dev · 2021-12-20 19:14
kettenisnot sure we settled the discussion on that ;)
#asahi-dev · 2021-12-20 19:11
kettenisheh
#asahi-dev · 2021-12-20 19:10
kettenistrue again
#asahi-dev · 2021-12-20 19:09
kettenistrue
#asahi-dev · 2021-12-20 19:09
kettenisjust in case Apple decides to source a different module at some point for a particular model
#asahi-dev · 2021-12-20 19:09
kettenismy thinking was that we might as well just take the instance from the ADT
#asahi-dev · 2021-12-20 19:07
kettenismarcan: do you already have a diff for m1n1 to populate the wifi instance/antenna properties?
#asahi-dev · 2021-12-20 17:23
kettenismaybe printing the message takes that much time ;)
#asahi-dev · 2021-12-20 17:08
kettenisyeah, reboot is exactly where you really want to flush!
#asahi-dev · 2021-12-20 17:04
kettenisactually the same is true for upstream since my watchdog driver for u-boot hasn't been merged yet
#asahi-dev · 2021-12-20 17:01
kettenisthe u-boot from my branch doesn't use the watchdog except for resetting the system
#asahi-dev · 2021-12-20 16:58
kettenisnot sure if Linux tries to reboot using EFI runtime services, or if it resets using the watchdog driver
#asahi-dev · 2021-12-20 16:56
kettenisnot that I'm aware of
#asahi-dev · 2021-12-20 16:49
kettenisbad apple
#asahi-dev · 2021-12-20 11:56
kettenisprintf works at the point where things go wrong, so I *should* be able to figure this out...
#asahi-dev · 2021-12-20 11:52
kettenisit should be possible to make it work; my code that switches things around runs before the MMU gets enabled
#asahi-dev · 2021-12-20 11:46
kettenisunsuccessfully so far...
#asahi-dev · 2021-12-20 11:46
kettenisplayed a little bit with swapping the u-boot memory map based on the model
#asahi-dev · 2021-12-20 11:46
ketteniscool, that'll help adding u-boot support
#asahi-dev · 2021-12-20 11:44
kettenisbtw, is there a single memory "bank"?
#asahi-dev · 2021-12-20 10:53
kettenisso they start running before the firmware has set up other bits that they depend on...
#asahi-dev · 2021-12-20 10:35
kettenismarcan: sorry, no; asked patrick
#asahi-dev · 2021-12-20 10:28
kettenisso that suggests that method is supported by a wide range of hardware and firmwares
#asahi-dev · 2021-12-20 10:27
kettenissys/dev/ic/bwfm.c:bwfm_set_key_cb()
#asahi-dev · 2021-12-20 10:26
kettenisand I think we're already using the binary data
#asahi-dev · 2021-12-20 10:26
kettenisok, OpenBSD already has the memset ;)
#asahi-dev · 2021-12-20 10:24
kettenismarcan: yes; you should claim a CVE for this ;)
#asahi-dev · 2021-12-20 10:22
kettenismarcan: love how you worked a memset() in there

plus ›