ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
slicey has quit [Quit: zzz]
slicey has joined #asahi-dev
maor26 has quit [Ping timeout: 480 seconds]
Jawse has joined #asahi-dev
<Jawse> Getting an SError Interrupt on CPU3(new 8 core M1 pro), any get the kernel to boot on this model? I'm using the T6000 codebase.
Jawse has quit [Quit: Leaving]
X-Scale` has joined #asahi-dev
X-Scale has quit [Ping timeout: 480 seconds]
Dcow_ has quit [Read error: Connection reset by peer]
Dcow has joined #asahi-dev
Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
riker77_ has joined #asahi-dev
riker77 has quit [Ping timeout: 480 seconds]
riker77_ is now known as riker77
robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phiologe has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
squags_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
kov has quit [Quit: Coyote finally caught me]
user982492 has joined #asahi-dev
slicey has quit [Quit: zzz]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi-dev
user982492 has quit []
slicey has joined #asahi-dev
slicey has quit []
<marcan> I was thinking about asking if anyone had the 8 core models, since we probably need to do something there
<marcan> but it looks like Jawse left :/
<marcan> if anyone else has an 8-core, I'd appreciate an ADT dump (in m1n1/proxyclient: `python -m m1n1.adt -r adt.bin > adt.txt` and note that it might contain your wifi password; remove the huge `nvram-proxy-data` line if you want to get rid of that)
slicey has joined #asahi-dev
robinp[m] has joined #asahi-dev
maor26 has joined #asahi-dev
the_lanetly_052___ has joined #asahi-dev
d4ve has quit [Remote host closed the connection]
d4ve has joined #asahi-dev
slicey has quit [Quit: cya]
Dcow has joined #asahi-dev
curlyqueue_ has quit [Remote host closed the connection]
rkt has joined #asahi-dev
robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robinp[m] has joined #asahi-dev
kov has joined #asahi-dev
<marcan> ha, while messing with the HV I caught m1n1 booting the primary core from RVBAR (i.e. through what normally is the secondary entry) and then blowing up on the spinlocks not working
<marcan> that was when macos went to sleep
<marcan> so indeed the CPUs come back through RVBAR, but the more interesting question is how did this happen....
aleasto has joined #asahi-dev
robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<marcan> ah, it sets [0] Disable WFI Return. fair.
yrlf has quit [Quit: The Lounge - https://thelounge.chat]
yrlf has joined #asahi-dev
nsklaus_ has joined #asahi-dev
nsklaus has quit [Ping timeout: 480 seconds]
pg12_ has quit [Ping timeout: 480 seconds]
gabuscus has quit [Remote host closed the connection]
<marcan> maz: since we're *eventually* going to have to support this suspend dance, what's your thinking? right now for arm64 there is only PSCI and ACPI.
<marcan> either we do an Apple-specific driver, or we add a non-hvc/smc PSCI interface and make m1n1 into a PSCI provider
gabuscus has joined #asahi-dev
<marcan> doing it the PSCI way should also allow m1n1 to handle the deep cpuidle stuff instead of having to write a driver for that too
<marcan> but calling from the kernel into m1n1 has some, er, interesting consequences (e.g. does the kernel 1:1 map m1n1 in the low address space for this, or do the called functions have to be position-independent and callable at any random vaddr the kernel feels like using, or do we turn the MMU off?)
<marcan> (how does EFI do this, I wonder...)
<marcan> apparently there is a SetVirtualAddressMap thing, heh
the_lanetly_052__ has joined #asahi-dev
the_lanetly_052___ has quit [Ping timeout: 480 seconds]
<maz> marcan: yeah, EFI provides its own address map (which is a 1:1 mapping IIRC), which we use when calling into it.
<maz> marcan: ardb had some idea on how to fake this up, though this will require some buy-in from the usual suspects.
<maz> marcan: I'm obviously partial to the PSCI solution, as it avoids reinventing another wheel, even if that's not a very nice wheel.
<marcan> fair enough
<marcan> in other news, all the pmgr-pwrstate instances for t6001 are ~2000 lines of DT
<marcan> I'm thinking that should at least go in an include :-)
<marcan> on the plus side, the extra stuff in t6001 vs t6000 is neatly in a separate PMGR instance, so I can keep my "t6000.dtsi includes t6001.dtsi and removes stuff" thing and all it takes is one node deletion
<kettenis> marcan: the UEFI memory map basically indicates memory ranges that need to be preserved for runtime services
<kettenis> these are 1:1 mappings, but they can be relocated by calling SetVirtualAddressMap
black_dragon has joined #asahi-dev
nskl has joined #asahi-dev
nsklaus_ has quit [Ping timeout: 480 seconds]
Jawse has joined #asahi-dev
<Jawse> Here is the ADT dump from the 8-core
<_jannau_> Jawse: thanks. did you retry with an updated m1n1? marcan pushed a related fix to m1n1 a couple of hours ago
<Jawse> jannau: working on that this morning, will let you know how it works
<marcan> ok, so CPU nodes just disappear
<marcan> I think the fix I pushed should just work then
<_jannau_> which kernel repo/branch do you use? M1 Pro/Max is currently only supported by https://github.com/AsahiLinux/linux/tree/t6000/bringup-work
<Jawse> jannau: Yes that's the one I used.
robinp[m] has joined #asahi-dev
rkt has left #asahi-dev [#asahi-dev]
<kettenis> marcan: I believe you need to remove the cpu nodes from the device tree in m1n1 instead of disabling them
<marcan> ah, linux doesn't listen to the disabled prop on CPUs?
<kettenis> yeah, there are (broken) DTs out there that have all but the primary CPU node disabled
<marcan> sigh
<kettenis> so I remember removing the check of the "status" property on OpenBSD for that
<kettenis> and as far as I can follow the code path Linux doesn't check on arm64
<marcan> lovely
<kettenis> I may be misreading the code though
Jawse has quit [Remote host closed the connection]
Jawse has joined #asahi-dev
gladiac has quit [Quit: k thx bye]
gladiac has joined #asahi-dev
<marcan> pushed a change to delete the nodes
<kettenis> great; that'll help OpenBSD when I get around to supporting the new SoCs
Jawse has quit [Read error: No route to host]
robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yuyichao_ has quit [Ping timeout: 480 seconds]
robinp[m] has joined #asahi-dev
robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yuyichao_ has joined #asahi-dev
WhyNotHugo has quit [Read error: No route to host]
WhyNotHugo has joined #asahi-dev
Jawse has joined #asahi-dev
dsrt^ has quit [Remote host closed the connection]
Jawse has quit [Read error: Connection reset by peer]
Jawse has joined #asahi-dev
Jawse has quit [Remote host closed the connection]
Jawse has joined #asahi-dev
<marcan> so I added all the pmgr pwrstates to the DT, and set the ones that obviously break things to always on...
Jawse has quit [Remote host closed the connection]
<marcan> and now it boots, except it randomly reboots
<marcan> methinks I'm shutting down something that breaks the SMC or similar, and that causes a panic later
<marcan> ISTR sven might've seen this before?
<sven> that happened when i half-enabled the thunderbolt coprocessors
<sven> but that was more than just PMGR
Jawse has joined #asahi-dev
Jawse has quit []
<marcan> okay yeah, pretty sure it was the SPMI interfaces and indeed it was crashing SMC
Dcow_ has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
pg12 has joined #asahi-dev
black_dragon has quit [Read error: Connection reset by peer]
King_InuYasha has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
King_InuYasha has joined #asahi-dev
yuyichao has joined #asahi-dev
yuyichao_ has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
HardWall has joined #asahi-dev
aidenfoxivey has joined #asahi-dev
Dcow has joined #asahi-dev
squags has joined #asahi-dev
Dcow_ has quit [Ping timeout: 480 seconds]
aleasto has quit [Remote host closed the connection]
aidenfoxivey has quit [Quit: aidenfoxivey]
aidenfoxivey has joined #asahi-dev
steffen[m] has joined #asahi-dev
HardWall has quit [Read error: Connection reset by peer]
maor26 has quit [Ping timeout: 480 seconds]