#
…

2023-04-09

00:00ahuar88_ has joined #asahi-dev
00:00ahuar88 has quit [Read error: Connection reset by peer]
00:01ahuar88_ has quit [Read error: Connection reset by peer]
00:01ahuar88 has joined #asahi-dev
00:02ahuar88_ has joined #asahi-dev
00:02ahuar88 has quit [Read error: Connection reset by peer]
00:03ahuar88 has joined #asahi-dev
00:03ahuar88_ has quit [Read error: Connection reset by peer]
00:04ahuar88 has quit [Read error: Connection reset by peer]
00:04ahuar88 has joined #asahi-dev
00:04user982492 has joined #asahi-dev
00:13ntal has joined #asahi-dev
00:15darkapex1 has joined #asahi-dev
00:16rpirea has quit [Ping timeout: 480 seconds]
00:16rpirea has joined #asahi-dev
00:17darkapex has quit [Ping timeout: 480 seconds]
00:22deteg1337 has joined #asahi-dev
00:30deteg1337 has quit [Ping timeout: 480 seconds]
00:32nsklaus has quit [Quit: ZZZzzz…]
01:10pthariensflame has joined #asahi-dev
01:12pthariensflame has quit []
01:22ntal has quit [Remote host closed the connection]
02:18deteg1337 has joined #asahi-dev
02:26deteg1337 has quit [Ping timeout: 480 seconds]
02:36user982492 has quit [Quit: Textual IRC Client: www.textualapp.com]
03:14A_L_I_C_E has joined #asahi-dev
03:23nicolas17 has quit [Quit: Konversation terminated!]
03:23nicolas17 has joined #asahi-dev
03:23deteg1337 has joined #asahi-dev
03:30A_L_I_C_E has quit [Read error: Connection reset by peer]
03:30A_L_I_C_E has joined #asahi-dev
03:31deteg1337 has quit [Ping timeout: 480 seconds]
04:20nicolas17 has quit [Remote host closed the connection]
04:31deteg1337 has joined #asahi-dev
04:39deteg1337 has quit [Ping timeout: 480 seconds]
04:46A_L_I_C_E has quit [Quit: Quit]
04:47A_L_I_C_E has joined #asahi-dev
05:20richyliu2 has joined #asahi-dev
05:21richyliu2what's the status on the microphone? I want to help with the reverse engineering if that hasn't been done already
05:27A_L_I_C_E has quit [Ping timeout: 480 seconds]
05:29A_L_I_C_E has joined #asahi-dev
05:38deteg1337 has joined #asahi-dev
05:46deteg1337 has quit [Ping timeout: 480 seconds]
07:03bisko has joined #asahi-dev
07:04bisko has quit []
07:45ahuar88 has quit [Remote host closed the connection]
07:45ahuar88 has joined #asahi-dev
07:46ahuar88 has quit [Remote host closed the connection]
07:47ahuar88 has joined #asahi-dev
08:02deteg1337 has joined #asahi-dev
08:07marcanChaosPrincess: can you send the t8112 PWM DT changes too? (on top of the asahi-soc/dt branch)
08:10deteg1337 has quit [Ping timeout: 480 seconds]
08:14marcanI guess it's about time I bring up the M2 Max...
08:14marcanmight not bother to stream this one since honestly it's going to be boring unless something really unexpected comes up
08:14marcanjust chickens and fuses everywhere
08:31nsklaus has joined #asahi-dev
08:41A_L_I_C_E has quit [Read error: Connection reset by peer]
08:41A_L_I_C_E has joined #asahi-dev
08:53Ry_Darcy has joined #asahi-dev
08:55Ry_DarcyAny sign of the M2 Mini being ready for testing soon. I have been looking at this expensive paperweight for three months now. I appreciate you are all doing your best, but you know how it is...
09:04marcanbuying unsupported devices is on you, not us :)
09:05marcanthis might end up requiring a complete rewrite of the DCP code in m1n1 to be much more complex, TBD
09:14A_L_I_C_E has quit [Ping timeout: 480 seconds]
09:14A_L_I_C_E has joined #asahi-dev
09:19ChaosPrincessmarcan: sent.
09:20ChaosPrincessi personally havent tested this one (no m2 machines), but iirc someone else did :P
09:20marcanassuming it's what we have in the downstream kernel it works for me :p
09:20ChaosPrincessand stream the chickens anyway, at least its somewhat educational, and i might come and shitpost in chat :P
09:21ChaosPrincessits almost what we have in downstream, yes
09:21marcanactually someone else already did the chickens, I just need to deal with fuses I guess
09:21Ry_Darcy@marcan True, but has been noise about the M2 Mini since last year with corresponding code activity. Not unreasonable to acquire a device and hope for the best. Maybe in 2024...
09:22Ry_Darcybut there has been..
09:22___nick___ has joined #asahi-dev
09:23marcanif you want it faster, you can help out ;)
09:24Ry_Darcy@marcan an old Mainframer like me? Not a chance! I will leave that to the young ones.
09:24Ry_DarcyMaybe I will sell the "*ç&&/ thing.
09:25ChaosPrincesswell, arent those machines kinda mainframe-y just due to the amount of io coprocessors?
09:27psykoseevery machine is a mainframe if you squint really hard
09:27Ry_DarcyNo idea. Don't get me start on I/O heavy lifing and PRSM. Greetings from White Plains and Poughkeepsie. Enough said.
09:27___nick___ has quit []
09:27Ry_Darcystart = started
09:28psykosePRecision Strike Missile?
09:28Ry_Darcylifing = lifting. All thumbs this morning.
09:28ChaosPrincessprocessor resource/system manager
09:29ChaosPrincessibm really likes their weird names for normal stuff
09:29ChaosPrincessthis is basically a hypervizor, somewhat like xen
09:29Ry_DarcyAhem a Type 1 Hypervisor.
09:29___nick___ has joined #asahi-dev
09:30ChaosPrincessxen is a type 1
09:30jannauthe device is public for 2 1/2 months, anything before that is useless to use. we can't add support based on rumors
09:30jannaujust because you don't see code changes means there are none
09:31Ry_Darcy@jannau I am not partial to rumours. Sad nevertheless.
09:32psykosei'll give you a tenner for it
09:32jannauthe devicetree for the m2 mini is already submitted for upstream and except for display, wlan and bt everything works
09:32Ry_DarcyFair enough, don't forget the house, life savings and the dog too.
09:34Ry_Darcy@jannau I could live without BT and WLAN, but the display is the killer obviously. I have read the discussions...
09:34ChaosPrincessthey got a new wifi/bt chip due to 6e, didnt they?
09:36jannauChaosPrincess: yes, hopefully not much work to support (at least without 6GHz support)
09:39deteg1337 has joined #asahi-dev
09:40ahuar88_ has joined #asahi-dev
09:41ahuar88_ has quit []
09:42ahuar88_ has joined #asahi-dev
09:44ahuar88_ has quit [Remote host closed the connection]
09:46A_L_I_C_E has quit [Remote host closed the connection]
09:47A_L_I_C_E has joined #asahi-dev
09:47ahuar88_ has joined #asahi-dev
09:49ahuar88_ has quit []
09:55deteg1337 has quit [Remote host closed the connection]
10:04jannaumarcan: are you looking into dcp? I have hackish ipc changes for 12.3 / 13.2 FW coexisting
10:07deteg1337 has joined #asahi-dev
10:07deteg1337 has quit [Remote host closed the connection]
10:08Mary6 has quit []
10:08raveling has joined #asahi-dev
10:08Mary has joined #asahi-dev
10:18jannaualso are the annotations for ActiveRegion correct? "max_x max_y min_w max_w"? any idea how they work?
10:24povikrichyliu2: re microphones. it's pretty much figured out. there's been one puzzling thing about the LEAP processor that i finally cracked yesterday
10:24povikother than that there are holes in understanding of registers for the LEAP<->PDM glue but that does not block finishing the linux driver at this point
10:32i509vcb has quit [Quit: Connection closed for inactivity]
10:39Thsf has joined #asahi-dev
10:42deteg1337 has joined #asahi-dev
10:49Thsf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:52gabuscus_ has joined #asahi-dev
10:54chadmedfwiw t6020 only required DTs and secondary cpu cluster info in m1n1 to boot (mostly) correctly
10:54chadmedthe missing pieces being fuses for pcie and pmgr stuff for the DTs
10:56marcaninterestingly, it seems there are no fuses for pcie
10:56deteg1337 has quit [Ping timeout: 480 seconds]
10:57c10l has quit [Ping timeout: 480 seconds]
10:57gabuscus__ has joined #asahi-dev
10:57gabuscus has quit [Ping timeout: 480 seconds]
10:59marcanI mean the reg entry is there but I don't see it ever getting hit in relation to pcie except one weird sequence where it's writing ECAM stuff and the fuse read is 0 anyway?
10:59marcanmaybe iBoot initializes this now
10:59marcanPCIe has definitely changed to some extent, ADT reg layout is slightly different but things do somewhat line up with the old one. will probably need some tweaking.
11:00marcanjannau: once everything else boots yeah
11:03gabuscus_ has quit [Ping timeout: 480 seconds]
11:06jannauok, I'll prepare everything I have. for m1n1 work it's mostly the 13.2 tracing and the dptx implementation for m1n1
11:11c10l has joined #asahi-dev
11:12marcanjannau: fyi force pushed main for a fixup
11:15marcanthere's also an apcie-ge thing in the driver, not instantiated in the DT
11:15marcanwild guess: Mac Pro PCIe GEneral purpose PCIe slots.
11:16cylm has joined #asahi-dev
11:18marcanAppleInterruptControllerV3 is a thing
11:18marcanso this all points towards another chip for the Mac Pro, with AICv3 and more PCIe
11:25jannaulooking macos 13.3? I was wondering if we want use to 13.3.1 for the 2023 devices. I'm sure the dcp firmware interface is very close if not identical
11:25marcanI was wondering the same
11:25jannauthere is t6500 without known use
11:25marcanif you want to go for 13.3, sure
11:26marcanI'm on 13.2 right now, but I can switch once this is working
11:28marcanalso given the 2-die stuff in AIC and obviously cropped die shot (lol), I think I'm going to do the die split preemptively even if we don't have the 2-die chip yet
11:28marcanmight as well save us a big DT shuffle
11:28jannauone reason for 13.2 would be that the 2023 devices will probably ship for a while with 13.2. the installer would work without update. otoh most would probably update on first run
11:29marcanactually, mine came with 13.0-special
11:29marcanhad to update it
11:29marcanI assume later ones come with 13.2
11:30jannauah, yes, mine came with 13.0-special as well. I forgot that
11:30marcan(well, I say mine, this is lina's laptop but I need to bring up the base stuff first :p)
11:31marcananyway, time to write device trees I guess
11:31marcandoes anyone have any of that done already?
11:31jannauthe m2 or m2 pro mac mini (or both) came with 13.0-special
11:31marcanthis m2max 16" also did
11:32jannauI think kettenis_ or chadmed have started with devicetrees
11:33chadmedkettenis got further than i did, we both gave up on pmgr though
11:33chadmedone second
11:34chadmedthese mostly worked
11:34marcanapple,t8103-cluster-cpufreq, really?
11:34marcanI expect t8112-cluster-cpufreq
11:34marcan(though the difference is minimal, affects feedback)
11:35bps has joined #asahi-dev
11:35marcananyway, will base off of that
11:36jannauprobably not the first priority fix after copying the t600x devicetrees
11:37chadmedthe only ones we werent sure of were dieX and nvme
11:37chadmedeverything else should be pretty much good
11:37chadmedcant remember at what stage i uploaded this gist though and i lost my local branch when i detonated / the other day
11:38chadmedand ofc pmgr
11:39jannaudieX is just stuff which is on both m1 ultra dies, behaves like the die0 include if included with DIE 0 defined
11:39chadmedyeah but it was all the cpufreq/pmgr stuff that we gave up on :P
11:40chadmedvalues in the opp table come from m1n1 experiments with fixed clusters etc
11:41chadmedhttps://github.com/chadmed/m1n1/tree/t6020 some stuff is done here, depends on the t602x chickens PR
11:42marcanooh the pcores have 2 extra pstates over the baseline m2
11:42marcanapple really cranking it up
11:42marcan(useless until we do the deepsleep thing but hey)
11:44marcanand the ecores lose the lowest pstate
11:45chadmedim still hoping they end up using noticeably less power than t600x, those two extra ecores should the pcores stay quiet for longer
11:45marcanoh interesting, but state 0 is a dummy
11:48deteg1337 has joined #asahi-dev
11:53bps has quit [Ping timeout: 480 seconds]
11:56deteg1337 has quit [Ping timeout: 480 seconds]
11:56jannauthe 16" m2 max has a high performance mode with a higher max frequency
12:00jannau3.66 GHz vs. 3.5 GHz
12:07raveling has quit [Ping timeout: 480 seconds]
12:11Thsf has joined #asahi-dev
12:23marcaninteresting, we'll have to drop those in the other DTs then
12:23Thsf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:40ChaosPrincessgot the full init sequence for dfr display in m1n1. Now to figure out which of the fifo writes we _actually_ need
12:46ahuar88 has quit [Quit: Leaving...]
12:53deteg1337 has joined #asahi-dev
12:58marcanpovik: is it possible the mca IRQs are off by one on t600x?
12:58marcanI see mca0 on 1111 but we have it as 1112
13:01deteg1337 has quit [Ping timeout: 480 seconds]
13:10kettenis_that has my attempt
13:10kettenis_and changes to make u-boot work on the m2 pro mini
13:11kettenis_basically just a slightly tweaked memory map
13:17chadmeddid the pmgr and smc end up working? i cant remember
13:18kettenis_some of it at least; can't remember either
13:18kettenis_but I can check when I'm back home in a couple of hours
13:20ChaosPrincesshah, so, there is even a dumb framebuffer mode on dfr display
13:21chadmediirc i got hard resets when trying to poke the smc with the m1n1 experiments but could do memory reads on its addresses without blowing anything up
13:21kettenis_I had smc working
13:21kettenis_but the rtc stuff wasn't working
13:22kettenis_I believe I had nvme working as well, but not 100% sure
13:24chadmedi probably should have saved all that stuff before wiping this machine...
13:27chadmedhttps://gist.github.com/chadmed/2101227831c0af272bcfcdb8326a57ea oh i kept a m1n1 log and the pstate latencies at least :P
13:28marcanand the pmgr_mini base for t600x is also wrong O_o
13:28marcanI wonder how that ever worked, maybe it aliased?
13:29povikmarcan: yes. we don't use them
13:29marcanpovik: oh we don't use the IRQs?]
13:29povikno, we don't
13:29marcanOK, that explains how it works :p
13:35Thsf has joined #asahi-dev
13:49deteg1337 has joined #asahi-dev
13:56Thsf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:59deteg1337 has quit [Ping timeout: 480 seconds]
14:18Ry_Darcy has quit [Remote host closed the connection]
14:42marcanhuh, and the ATC fuses also went away
14:42marcanalso on newer firmware on t8112 I think, at least
14:42marcandid they just move all this to iBoot?
14:42marcan(great for us!)
15:00Thsf has joined #asahi-dev
15:33Thsf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:35Thsf has joined #asahi-dev
15:37raveling has joined #asahi-dev
15:43Thsf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:44deteg1337 has joined #asahi-dev
15:44Thsf has joined #asahi-dev
15:52deteg1337 has quit [Ping timeout: 480 seconds]
16:03Thsf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:13Thsf has joined #asahi-dev
16:14marcan[ 7.482000] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
16:14marcanit really does work without fuses
16:14marcansven: rejoice!
16:18Thsf has quit []
16:22svennice :D
16:23ChaosPrincess has quit [Ping timeout: 480 seconds]
16:24i509vcb has joined #asahi-dev
16:29deteg1337 has joined #asahi-dev
16:32marcanpushed what I have so far to t602x/bringup and m1n1:main. it's pretty broken still, but at least the pmgr stuff isn't causing instant explosions, SMC and such works. device tree should have ~everything except MTP and the GPU power stuff and spi0 (need to work out pins).
16:32marcanm1n1 pcie init works as far as I can tell (ew magic pokes, though some are probably unnecessary)
16:32marcanlinux however does not
16:33marcanbut at least it looks like some important-ish registers might have moved moved so linux probably needs changes
16:33marcannvme is also broken, haven't looked at it yet
16:33marcangoing to sleep now :p
16:33marcanalso dwc3 superspeed works so there's that positive note :p
16:34kettenis_IIRC I had to fiddle with the power domains a bit to get nvme working
16:34marcanyeah, I have a feeling
16:35kettenis_and by no means i'm implying that I know what i'm doing in that area
16:37deteg1337 has quit [Ping timeout: 480 seconds]
16:45raveling has quit [Ping timeout: 480 seconds]
16:46marcanok, linux is poking the ANE_SYS power domain and this makes *no* sense. either I screwed up something major (but I can't find it) or there is something very wrong in linux genpd
16:47marcan[ 7.798483] apple-pmgr-pwrstate 28e080000.power-management:power-controller@260: PS ane_sys: pwrstate = 0xf: 0xf00000f
16:47marcan[ 7.802556] apple-pmgr-pwrstate 28e080000.power-management:power-controller@260: PS ane_sys: pwrstate = 0x0: 0xf0000f0
16:47marcaneven linux thinks it's ane_sys, wat
16:48kettenis_I also didn't intend to keep you from getting some sleep ;)
16:48marcanyeah but this is weird
16:48marcaninb4 core linux genpd bug...
16:51marcanah ok, I screwed up the pmgr ranges and it was child PDs of that trying and failing to probe repeatedly
16:51Thsf has joined #asahi-dev
16:52Thsf has quit []
16:56ChaosPrincess[w] has joined #asahi-dev
17:07raveling has joined #asahi-dev
17:20marcaninterestingly it works if m1n1 initializes nvme first
17:45Thsf has joined #asahi-dev
17:48ChaosPrincess has joined #asahi-dev
17:50marcanok, it's just that iBoot leaves it powered and Linux doesn't have the wakeup fallback thing m1n1 does.
17:50marcanadding some stuff to m1n1 to shut it down if it's running
17:50marcanthough we probably should make linux just do it the robust way anyway...
17:50ChaosPrincess[w] has quit [Quit: Page closed]
17:53ntal has joined #asahi-dev
17:54marcanah, but since linux tries to reset it anyway that doesn't work
17:54marcanmeh, let's just have m1n1 clean up
17:56marcanah, wasn't that hard, fixed it in linux
18:03ntal has quit [Remote host closed the connection]
18:09marcanpushed the fix, nvme works
18:09marcanpcie is kinda broken in m1n1 too, it SErrors for some reason (but not with the tracer?)
18:13Thsf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:21marcanfixed the SError stuff, so now just need to fix pcie and add MTP and we're mostly there
18:21marcangood night :)
18:28marcanjannau: if you have a chance, mind reviewing the DCP stuff? I think m1n1 needs changes too etc.
18:28marcanre ActiveRegion I think I pulled that out of binary RE but I have no idea how it works
18:30Thsf has joined #asahi-dev
18:31marcancc axboe_ I think you were waiting for this bringup :p
18:31marcanwill try to do MTP tomorrow and see if I can work out PCIe, that should get us to non-edge-kernel feature parity
18:31marcanthen just DCP and GPU
18:37deteg1337 has joined #asahi-dev
18:43kettenis_if you get pcie working, I can work on the asmedia usb stuff in u-boot ;)
18:48Thsf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:49deteg1337 has quit [Ping timeout: 480 seconds]
19:09cylm_ has joined #asahi-dev
19:10cylm has quit [Ping timeout: 480 seconds]
19:15deteg1337 has joined #asahi-dev
19:28deteg1337 has quit [Remote host closed the connection]
19:28Thsf has joined #asahi-dev
19:32Thsf has quit []
19:43Thsf has joined #asahi-dev
19:48Thsf has quit [Read error: Connection reset by peer]
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:09deteg1337 has joined #asahi-dev
20:17deteg1337 has quit [Ping timeout: 480 seconds]
21:12A_L_I_C_E has quit [Ping timeout: 480 seconds]
21:15A_L_I_C_E has joined #asahi-dev
21:24jannauwhy apple? "/arm-io/dart-dcp/mapper-dcp" vs. "/arm-io/dart-dcp0/mapper-dcp0" on the m2 pro. will there be a dcp1 on the VR headset, or on the m2 ultra for 10 displays
21:45drubrkletern has joined #asahi-dev
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:01yrlf has joined #asahi-dev
22:08A_L_I_C_E has quit [Ping timeout: 480 seconds]
22:15cylm_ has quit [Ping timeout: 480 seconds]
22:17c10l has quit [Quit: Bye o/]
22:23drubrkletern has quit [Remote host closed the connection]
22:23c10l has joined #asahi-dev
22:46deteg1337 has joined #asahi-dev
22:54deteg1337 has quit [Ping timeout: 480 seconds]
23:48deteg1337 has joined #asahi-dev
23:56deteg1337 has quit [Ping timeout: 480 seconds]
…