#
…

2023-11-30

00:00Wubbzy04 has quit [Ping timeout: 480 seconds]
00:10Wubbzy04 has joined #asahi-dev
00:27pounce has joined #asahi-dev
00:36iaguis has joined #asahi-dev
00:52Wubbzy04 has quit [Ping timeout: 480 seconds]
01:00Wubbzy04 has joined #asahi-dev
01:03iaguis has quit [Ping timeout: 480 seconds]
01:08kidplayer666 has quit [Quit: Connection closed for inactivity]
01:09Wubbzy04 has quit [Ping timeout: 480 seconds]
01:24jeisom has quit [Quit: Leaving]
01:26iaguis has joined #asahi-dev
01:35Wubbzy04 has joined #asahi-dev
01:40rootbeerdan has quit [Quit: rootbeerdan]
01:42rootbeerdan has joined #asahi-dev
01:47gmuuywom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:55Wubbzy04 has quit [Ping timeout: 480 seconds]
02:10jeisom has joined #asahi-dev
02:19Wubbzy04 has joined #asahi-dev
02:28Wubbzy04 has quit [Ping timeout: 480 seconds]
02:44jeisom has quit [Ping timeout: 480 seconds]
02:47tdmackey has joined #asahi-dev
03:07CoolStar has quit [Read error: Connection reset by peer]
04:07KxCORP has quit [Ping timeout: 480 seconds]
04:16KxCORP has joined #asahi-dev
04:19crabbedhaloablut has joined #asahi-dev
04:21john-cabaj has quit [Ping timeout: 480 seconds]
04:26crabbedhaloablut has quit [Read error: Connection reset by peer]
04:27crabbedhaloablut has joined #asahi-dev
04:34crabbedhaloablut has quit [Read error: Connection reset by peer]
04:34crabbedhaloablut has joined #asahi-dev
04:41tristan2_ has joined #asahi-dev
04:43tristan2 has quit [Ping timeout: 480 seconds]
04:56phire has quit [Remote host closed the connection]
04:58phire has joined #asahi-dev
05:14DannyBI got m3 working. It was the dumbest thing in the world and now i am going to hang my head in shame.
05:14DannyBOn the m3's, mem_size_actual is not set in the boot_args. It's just 0. XNU uses mem_size (masked with ~page_size) in that case
05:14DannyBwe do not
05:15DannyBso it was not actually creating the whole of memory region map
05:15DannyB(but also not issuing any error)
06:31csbaur^ has joined #asahi-dev
07:23mazwell, that's just a lot of memory! :D
07:24mazin any case, congrats, and good that you got to the bottom of it!
07:24mazyou just have to sort out the interrupt controller now...
07:35svenhah, nice! glad it works now :)
07:39c4sp3r has joined #asahi-dev
07:40c4sp3r has quit []
07:56kilolima has quit [Remote host closed the connection]
07:59RoguePlanet has joined #asahi-dev
07:59RoguePlanet has quit []
08:14kidplayer666 has joined #asahi-dev
08:45sneak has quit []
08:48sneak has joined #asahi-dev
08:59baozich has joined #asahi-dev
09:23chadmed has quit [Remote host closed the connection]
09:46j`eyDannyB: woo
10:15chadmed has joined #asahi-dev
10:15chadmed has quit []
10:53chadmed has joined #asahi-dev
11:09iaguis_ has joined #asahi-dev
11:13iaguis is now known as Guest8643
11:13iaguis_ is now known as iaguis
11:16Guest8643 has quit [Ping timeout: 480 seconds]
11:26baozich has quit [Ping timeout: 480 seconds]
11:36jeisom has joined #asahi-dev
12:13DannyBmaz: The interrupt controller is done. USB required a little new code but just about done. Mostly because apple matches anything with a certain compatible string instead of a fixed path i2c0 (which doesn't even exist on the m3 max). So i had to add a tree walk to find the compatible HPM instances because the code assumes they are i2c0 (which doesn't even exist on this machine) and that they are a subpath of i2c0 (the
12:13DannyBsubpath doesn't exist either).
12:14mazDannyB: amazing!
12:15j`eyDannyB: gonna push to the PR?
12:15mazany chance you could share the idregs?
12:15DannyBoh crap forgot about that, one sec
12:15svenvery nice
12:15maz(hopefully no major new feature so that I don't have to start saving money... :D)
12:16sveni‘ll probably wait for the soc with usb4gen2 or however that even faster thunderbolt thing Intel announced it called :)
12:17mazsven: and you'll spend another 3 years reverse-engineering it! ;-)
12:17svenprobably *sigh*
12:18svendoesn’t help that $work actually wants me to do some work they pay me for as well ;)
12:20mazyeah, same here. fortunately, I managed to sell NV as being relevant to $work. it is quite a stretch of one's imagination, but hey...
12:22svenhah, nice. my day job is entirely unrelated to Linux so selling anything I do as relevant for them is probably impossible :D
12:41baozich has joined #asahi-dev
12:48nicolas17 has quit [Ping timeout: 480 seconds]
12:49baozich has quit [Ping timeout: 480 seconds]
13:10utsweetyfish has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
13:13john-cabaj has joined #asahi-dev
13:14roxfan2 has joined #asahi-dev
13:20roxfan has quit [Ping timeout: 480 seconds]
14:02nicolas17 has joined #asahi-dev
14:14eiln has joined #asahi-dev
14:17DannyBPRODUCT: Mac15,9
14:17DannyBNAME: MacBook Pro (16-inch, M3 Max, Nov 2023)
14:17DannyBMODEL: j516cap
14:17DannyBSRTG: iBoot-8104.0.0.300.45
14:17DannyBCPRV: 0x12
14:20eilnniiice
14:21j`eynicolas17: ^
14:31utsweetyfish has joined #asahi-dev
15:04eiln has quit [Quit: WeeChat 4.1.1]
15:05jnn is now known as jn
15:15krbtgtwhat was the workaround that beta4 added?
16:03russelltg has joined #asahi-dev
16:21DannyBoh well, USB is now powered/controled by an SPMI controller
16:21DannyBSo that will have tow ait
16:22john-cabaj has quit [Remote host closed the connection]
16:24flom84 has joined #asahi-dev
16:24john-cabaj has joined #asahi-dev
16:25DannyBi'll see if the phys will just power on magically without having to twiddle bits
16:25DannyBi'm sure this will go swimmingl
16:26baozich has joined #asahi-dev
16:31svenCan you upload the adt somewhere? (note that iirc the wifi password and possibly other personal data is in there and you may want to remove those)
16:31DannyBThere is no i2c0 anymore, or hpmBusManager, the hpm devices are children of an SPMI nub
16:32DannyBAppleHPM kext has been updated to handle it
16:33svenSounds like they changed their usb pd controller chips
16:34DannyBit looks like they call it a "TC Controller"
16:34DannyBthere is an appletccontroller class now in AppleHPM that seems to do the work
16:34baozich has quit [Ping timeout: 480 seconds]
16:34DannyBand the hpm are compatible with usbc,sn20120x,spmi
16:34svenType C controller maybe
16:34DannyBthe drd's and such still exist
16:35DannyBso it's just power and interrupt and mode control
16:35svenyeah, sounds like a new pd controller
16:35DannyBbeyond my skills :)
16:37svencan’t find anything public about sn20120x :/
16:38sventhere’s a decent chance that device mode is still going to work if you just ignore that thing
16:38sven(unless they also changed the PHY)
16:41DannyBthe phys are still compatible with the old one
16:41DannyBstaring this doesn't look horribly complicated
16:41midou has quit [Ping timeout: 480 seconds]
16:43svendevice mode should work then since it doesn’t need VBUS to be powered
16:45DannyBi think the sn is synopsis
16:46flom84 has quit [Quit: Leaving]
16:46DannyBI think this is a synopsis based usb-c power delivery controller
16:46DannyBsorry, synopsys
16:47svenmaybe it’s part of the soc now
16:48DannyByeah, that would make sense
16:48DannyBwhat format you want the ADT in
16:49DannyBi have the ioreg archive around, but i can get whatever is helpful
16:49svenoh, you already told me all the interesting bits :)
16:50DannyBdart: dart /arm-io/dart-usb0 at 0x702f80000 is a t8110
16:50DannyBdart: dart /arm-io/dart-usb1 at 0xb02f80000 is a t8110
16:50DannyBdart: dart /arm-io/dart-usb2 at 0xf02f80000 is a t8110
16:50DannyBUSB1: initialized at 0x10004dec2e0
16:50DannyBUSB0: initialized at 0x1000702bc30
16:50DannyBUSB2: initialized at 0x10004dec860
16:50DannyBmy hack maybe worked?
16:50midou has joined #asahi-dev
16:51svenlooks good do far!
16:53DannyBAIC seems off
16:53DannyBAIC: AIC3 with 1/2 dies, 2528/4096 IRQs, reg_size:40004 die_stride:04a00
16:53DannyBnot sure i believe it's 2 dies
16:57minecrell has quit [Quit: Ping timeout (120 seconds)]
16:57minecrell has joined #asahi-dev
17:04DannyBthey work
17:04DannyBi can get proxyclient over normal usb
17:04j`eyDannyB: woo, now boot linux!
17:05DannyBOkay, time to package this up in the pr
17:05DannyBbefore i get much further
17:06svennice work :-)
17:06DannyBthanks for your help :)
17:06DannyBi never would have figured this out without bouncing things off people here :)
17:07mazyou did a brilliant job, congrats!
17:07billak has joined #asahi-dev
17:33RoguePlanet has joined #asahi-dev
17:33RoguePlanet has quit []
17:38jannegDannyB: it is 1 die. the second number is the maximum numnber of dies the implemenation can handle. the theoretical limit is 8 but so far Mx Max can only handle irqs from 2 dies i.e. for Mx Max pairs in Mx Ultra (if aic3 in still compatible to aic2 in that regard)
17:46jannegifixit has identifies a Texas Instruments SN2012017 battery charger on the iphone 15 pro
17:47jannegbut the macbook pro teardown has Texas Instruments SN25A12 USB type-C controllers
17:54jannegnot that either of those has any useful public information
18:03kidplayer666 has quit [Quit: Connection closed for inactivity]
18:23tbodt has quit []
18:24tbodt has joined #asahi-dev
18:25nicolas17macOS 14.1.2 is out
18:27baozich has joined #asahi-dev
18:31DarkShadow44 has quit [Quit: ZNC - https://znc.in]
18:31DarkShadow44 has joined #asahi-dev
18:35baozich has quit [Ping timeout: 480 seconds]
18:36gmuuywom has joined #asahi-dev
18:39gmuuywom has quit []
18:49nicolas17DannyB: this is CPID 6031 right?
18:51nicolas17apparently it's not the same bootrom as M3 Pro :|
18:53gmuuywom has joined #asahi-dev
18:54gmuuywom has quit []
18:57gmuuywom has joined #asahi-dev
18:57gmuuywom has quit []
18:59billak has quit [Quit: Konversation terminated!]
19:02baozich has joined #asahi-dev
19:10baozich has quit [Ping timeout: 480 seconds]
19:14jannegM3 Macbook Pro still uses cd3217 as type-c controller
19:21pthariensflame has joined #asahi-dev
19:23nicolas17looks like macOS 14.1.2 is just a WebKit security bugfix
19:25pthariensflame has quit []
19:34kettenisjanneg: those u-boot memory map updates are just for completeness?
19:40jannegkettenis: partially, dcpext0/dispext0 on t602x which drives simple-framebuffer needs ps_afr from pmgr_gfx at 0x404e80000
19:45janneg0x480000000 is only for completeness without current use
19:48kettenisi'm asking to decide whether I should try to get this included in 2023.01 or if it is ok for this to go onto the -next branch
19:55jannegu-boot accesses the whole simple-framebuffer power-domain tree and runs into a data abort on the unmapped 0x404e80000 + 0x100 with https://github.com/AsahiLinux/linux/commit/760ed8e3be2f4a8c550f197aeb135e7564e0ee2e
19:57jannegdon't ask my why ps_dispext0_cpu0 has ps_afr as parent (via ps_dispext0_sys)
20:07leioI wonder if that was the u-boot crash I had then and still haven't looked further after just payloading kernel instead to stage2
20:09leiothat was something about address 0x2404e80100
20:09jannegleio: yes. m2 ultra always used dcpext0 (on the second die)
20:10leiook, so I might be able to get EFI now then, great
20:10jannegthe second die has an offset of 0x2000000000
20:10leiodon't expect that to help for HDMI though, but I'll try to get to u-boot for a proper gentoo installer thing work at some point again
20:11kidplayer666 has joined #asahi-dev
20:15jannegleio: I have a partial solution for the dcp/hdmi issue on linux. dcp at least wakes up but is not fully working except with tracing and verbose rtkit syslog logging
20:15j`eymore timing fun :(
20:17leiojanneg: ok. I'm busy on workdays mostly in macOS for iOS stuff anyhow, no hurry, but if I can help test if it's a matter of no suitable device then I can do that
20:18jannegI'm not sure about that. I tried horrible mdelay() crimes without any luck
20:18leiomaybe in about two weeks I'm back fully in my dear GNOME UI and can stop being frustrated about the window management :)
20:20leiobut yeah, if it's a matter of device, we can also do live debugging session if it helps, etc
20:20kettenispush for 2024.01 it is then
20:21jannegI think it's the same problem I see/saw with dcp on the m2 pro so until that's solved I can test myself
20:21leioit's just hitting somehow harder on the ultra?
20:23jannegwe could try dcpext1 and see if that fixes the issue on the ultra as well (don't ask me why that doesn't depend on ps_afr)
20:24leioI'd be game, but in an hour or tomorrow/saturday
20:41roxfan2 is now known as roxfan
20:55WindowPa- has joined #asahi-dev
20:55___nick___ has joined #asahi-dev
20:56___nick___ has quit []
20:58___nick___ has joined #asahi-dev
20:59WindowPain has quit [Ping timeout: 480 seconds]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:11nicolas17 has quit [Read error: Connection reset by peer]
21:12nicolas17 has joined #asahi-dev
21:24PaulFertser has quit [Ping timeout: 480 seconds]
21:27PaulFertser has joined #asahi-dev
21:31pthariensflame has joined #asahi-dev
21:39pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
21:40john-cabaj has quit [Remote host closed the connection]
21:41john-cabaj has joined #asahi-dev
22:06DannyBnicolas17: yes
22:07DannyBjanneg: I have a feeling the m3 regular is just a chip replacement and nothing else
22:08DannyBSo fun question that should be obvious that isn't
22:10DannyBunlike the other macbook pro's, the m3 max starts on cpu4, and not cpu0. Is there a way to tell which one we are currently on? smp_start_secondaries assumes we start on CPU0, and then crashes trying to start our current CPU :)
22:11DannyBbut it's not obvious to me how to figure out which of the device tree nodes represents the one we are currently running on.
22:11DannyB(and there does not appear to be like /chosen/primary-cpu or something like that
22:11DannyBi guess extract the core/cluster/die ids and see if they match and skip it
22:11DannyBor something
22:12kettenisdoes it start on one of the P-cores now?
22:12j`eylook at the mpidr_el1 register?
22:16DannyByes, it starts on the first p-core
22:16jannegI suppose M3 macbook pro is an earlier design than the m3 pro/max. It was supposed to be announced in the summer but is late because there was not enough chip supply for macbook air 15"
22:17jannegso it looks more like the m1/m2 macbook pro 14"
22:17DannyBj`ey: The core number in MPIDR_EL1 is 0.
22:21kettenisis MPIDR_EL1 entirely 0? Or just the core number within the cluster?
22:21DannyBooh good question
22:22DannyBi didn't think to check whether the other AFF bits are the cluster and die
22:22jeisom has quit [Ping timeout: 480 seconds]
22:22DannyBoh they aren't, duh
22:22DannyBokay, this will be esay
22:36DannyBactually, xnu does it a super funny way
22:36DannyBthey read all the entries and see which has the state string "running"
22:39nicolas17janneg: ...was there a m1/m2 macbook pro 14"?
22:40nicolas17I thought M1 and M2 were only used on the 13", and the 14" started on M1/M2 Pro
23:33chadmed has quit [Remote host closed the connection]
23:49jeisom has joined #asahi-dev
…