#
…

2021-11-15

00:13slicey has quit [Quit: zzz]
00:37slicey has joined #asahi-dev
00:56maor26 has quit [Ping timeout: 480 seconds]
01:08Jawse has joined #asahi-dev
01:13JawseGetting 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.
01:21Jawse has quit [Quit: Leaving]
01:29X-Scale` has joined #asahi-dev
01:33X-Scale has quit [Ping timeout: 480 seconds]
01:57Dcow_ has quit [Read error: Connection reset by peer]
01:57Dcow has joined #asahi-dev
02:21Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
02:27riker77_ has joined #asahi-dev
02:31riker77 has quit [Ping timeout: 480 seconds]
02:31riker77_ is now known as riker77
03:46robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:47phiologe has joined #asahi-dev
03:50PhilippvK has quit [Ping timeout: 480 seconds]
04:05squags_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
04:05kov has quit [Quit: Coyote finally caught me]
04:49user982492 has joined #asahi-dev
05:12slicey has quit [Quit: zzz]
05:13user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:18user982492 has joined #asahi-dev
05:20user982492 has quit []
05:33slicey has joined #asahi-dev
05:36slicey has quit []
05:44marcanI was thinking about asking if anyone had the 8 core models, since we probably need to do something there
05:44marcanbut it looks like Jawse left :/
05:46marcanif 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)
06:01slicey has joined #asahi-dev
06:34robinp[m] has joined #asahi-dev
07:06maor26 has joined #asahi-dev
07:31the_lanetly_052___ has joined #asahi-dev
07:45d4ve has quit [Remote host closed the connection]
07:45d4ve has joined #asahi-dev
08:06slicey has quit [Quit: cya]
09:30Dcow has joined #asahi-dev
09:32curlyqueue_ has quit [Remote host closed the connection]
09:36rkt has joined #asahi-dev
09:41robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:41robinp[m] has joined #asahi-dev
09:57kov has joined #asahi-dev
10:20marcanha, 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
10:20marcanthat was when macos went to sleep
10:21marcanso indeed the CPUs come back through RVBAR, but the more interesting question is how did this happen....
10:26aleasto has joined #asahi-dev
10:35robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:36marcanah, it sets [0] Disable WFI Return. fair.
10:40yrlf has quit [Quit: The Lounge - https://thelounge.chat]
10:41yrlf has joined #asahi-dev
10:43nsklaus_ has joined #asahi-dev
10:48nsklaus has quit [Ping timeout: 480 seconds]
10:56pg12_ has quit [Ping timeout: 480 seconds]
11:01gabuscus has quit [Remote host closed the connection]
11:02marcanmaz: 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.
11:03marcaneither we do an Apple-specific driver, or we add a non-hvc/smc PSCI interface and make m1n1 into a PSCI provider
11:05gabuscus has joined #asahi-dev
11:06marcandoing it the PSCI way should also allow m1n1 to handle the deep cpuidle stuff instead of having to write a driver for that too
11:09marcanbut 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?)
11:10marcan(how does EFI do this, I wonder...)
11:18marcanapparently there is a SetVirtualAddressMap thing, heh
11:23the_lanetly_052__ has joined #asahi-dev
11:29the_lanetly_052___ has quit [Ping timeout: 480 seconds]
11:36mazmarcan: yeah, EFI provides its own address map (which is a 1:1 mapping IIRC), which we use when calling into it.
11:37mazmarcan: ardb had some idea on how to fake this up, though this will require some buy-in from the usual suspects.
11:38mazmarcan: I'm obviously partial to the PSCI solution, as it avoids reinventing another wheel, even if that's not a very nice wheel.
11:39marcanfair enough
11:41marcanin other news, all the pmgr-pwrstate instances for t6001 are ~2000 lines of DT
11:41marcanI'm thinking that should at least go in an include :-)
11:42marcanon 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
11:55kettenismarcan: the UEFI memory map basically indicates memory ranges that need to be preserved for runtime services
11:55kettenisthese are 1:1 mappings, but they can be relocated by calling SetVirtualAddressMap
12:30black_dragon has joined #asahi-dev
12:43nskl has joined #asahi-dev
12:48nsklaus_ has quit [Ping timeout: 480 seconds]
12:50Jawse has joined #asahi-dev
12:56JawseHere is the ADT dump from the 8-core
13:06_jannau_Jawse: thanks. did you retry with an updated m1n1? marcan pushed a related fix to m1n1 a couple of hours ago
13:06Jawsejannau: working on that this morning, will let you know how it works
13:07marcanok, so CPU nodes just disappear
13:08marcanI think the fix I pushed should just work then
13:08_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
13:10Jawsejannau: Yes that's the one I used.
13:18robinp[m] has joined #asahi-dev
13:30rkt has left #asahi-dev [#asahi-dev]
13:33kettenismarcan: I believe you need to remove the cpu nodes from the device tree in m1n1 instead of disabling them
13:33marcanah, linux doesn't listen to the disabled prop on CPUs?
13:34kettenisyeah, there are (broken) DTs out there that have all but the primary CPU node disabled
13:35kettenisso I remember removing the check of the "status" property on OpenBSD for that
13:35kettenisand as far as I can follow the code path Linux doesn't check on arm64
13:35kettenisI may be misreading the code though
13:37Jawse has quit [Remote host closed the connection]
13:37Jawse has joined #asahi-dev
13:42gladiac has quit [Quit: k thx bye]
13:42gladiac has joined #asahi-dev
13:48marcanpushed a change to delete the nodes
13:53kettenisgreat; that'll help OpenBSD when I get around to supporting the new SoCs
14:01Jawse has quit [Read error: No route to host]
14:23robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:38yuyichao_ has quit [Ping timeout: 480 seconds]
14:39robinp[m] has joined #asahi-dev
15:12robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:13yuyichao_ has joined #asahi-dev
15:15WhyNotHugo has quit [Read error: No route to host]
15:18WhyNotHugo has joined #asahi-dev
15:28Jawse has joined #asahi-dev
15:38dsrt^ has quit [Remote host closed the connection]
15:38Jawse has quit [Read error: Connection reset by peer]
15:53Jawse has joined #asahi-dev
16:01Jawse has quit [Remote host closed the connection]
16:03Jawse has joined #asahi-dev
16:09marcanso I added all the pmgr pwrstates to the DT, and set the ones that obviously break things to always on...
16:09Jawse has quit [Remote host closed the connection]
16:09marcanand now it boots, except it randomly reboots
16:10marcanmethinks I'm shutting down something that breaks the SMC or similar, and that causes a panic later
16:10marcanISTR sven might've seen this before?
16:10sventhat happened when i half-enabled the thunderbolt coprocessors
16:11svenbut that was more than just PMGR
16:29Jawse has joined #asahi-dev
16:31Jawse has quit []
16:33marcanokay yeah, pretty sure it was the SPMI interfaces and indeed it was crashing SMC
16:36Dcow_ has joined #asahi-dev
16:40Dcow has quit [Ping timeout: 480 seconds]
17:15the_lanetly_052__ has quit [Ping timeout: 480 seconds]
17:27pg12 has joined #asahi-dev
17:59black_dragon has quit [Read error: Connection reset by peer]
18:10King_InuYasha has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
18:10King_InuYasha has joined #asahi-dev
18:55yuyichao has joined #asahi-dev
18:59yuyichao_ has quit [Ping timeout: 480 seconds]
19:58yuyichao_ has joined #asahi-dev
20:02yuyichao has quit [Ping timeout: 480 seconds]
20:15HardWall has joined #asahi-dev
20:21aidenfoxivey has joined #asahi-dev
20:33Dcow has joined #asahi-dev
20:34squags has joined #asahi-dev
20:34Dcow_ has quit [Ping timeout: 480 seconds]
20:38aleasto has quit [Remote host closed the connection]
21:10aidenfoxivey has quit [Quit: aidenfoxivey]
21:10aidenfoxivey has joined #asahi-dev
21:23steffen[m] has joined #asahi-dev
22:18HardWall has quit [Read error: Connection reset by peer]
23:34maor26 has quit [Ping timeout: 480 seconds]
…