#
…

2025-03-16

00:04pb17 has joined #asahi-dev
00:29elvishjerricco has quit [Ping timeout: 480 seconds]
00:29elvishjerricco has joined #asahi-dev
00:34mariogrip4306 has joined #asahi-dev
00:37vimproved_ has quit [Remote host closed the connection]
00:37vimproved has joined #asahi-dev
00:38andymandias has quit [Ping timeout: 480 seconds]
00:39mariogrip430 has quit [Ping timeout: 480 seconds]
00:39mariogrip4306 is now known as mariogrip430
00:43sand4rt has quit [Quit: WeeChat 4.5.2]
00:44sand4rt has joined #asahi-dev
00:44sand4rt has quit []
00:45sand4rt has joined #asahi-dev
00:46kaazoo has quit [Quit: Leaving.]
00:48andymandias has joined #asahi-dev
00:52chrisl has joined #asahi-dev
01:00chrisl has quit [Ping timeout: 480 seconds]
01:09sand4rt has quit [Ping timeout: 480 seconds]
01:10opticron has quit [Read error: Connection reset by peer]
01:15opticron has joined #asahi-dev
01:24sand4rt has joined #asahi-dev
01:47HitokiriKincho has joined #asahi-dev
01:58nesnas has quit [Ping timeout: 480 seconds]
02:01sand4rt has quit [Ping timeout: 480 seconds]
02:03pb17 has quit [Ping timeout: 480 seconds]
02:04HitokiriKincho has quit [Ping timeout: 480 seconds]
02:05nesnas has joined #asahi-dev
02:16ddxtanx has joined #asahi-dev
02:21pb17 has joined #asahi-dev
02:35ericl has joined #asahi-dev
02:40sand4rt has joined #asahi-dev
02:41sand4rt has quit []
02:42sand4rt has joined #asahi-dev
02:46sand4rt has quit []
02:47sand4rt has joined #asahi-dev
02:48sand4rt has quit []
02:49sand4rt has joined #asahi-dev
03:03nesnas has quit [Ping timeout: 480 seconds]
03:05sand4rt has quit [Ping timeout: 480 seconds]
03:11nesnas has joined #asahi-dev
03:11beastd has joined #asahi-dev
03:14beastd|2 has quit [Ping timeout: 480 seconds]
03:21nesnas has quit [Ping timeout: 480 seconds]
03:28mischa85 has quit [Ping timeout: 480 seconds]
03:30nesnas has joined #asahi-dev
03:40nesnas has quit [Remote host closed the connection]
03:41nesnas has joined #asahi-dev
03:44ddxtanx has quit [Remote host closed the connection]
03:48pb17 has quit [Ping timeout: 480 seconds]
03:48pb17 has joined #asahi-dev
03:50nesnas has quit [Ping timeout: 480 seconds]
03:50mischa85 has joined #asahi-dev
03:53tobhe has joined #asahi-dev
03:58chrisl has joined #asahi-dev
03:58mischa85 has quit [Ping timeout: 480 seconds]
03:58nesnas has joined #asahi-dev
04:00tobhe_ has quit [Ping timeout: 480 seconds]
04:09nesnas has quit [Ping timeout: 480 seconds]
04:09ericl has quit [Ping timeout: 480 seconds]
04:15glem81005488 has quit [Quit: bye.]
04:18nesnas has joined #asahi-dev
04:18glem81005488 has joined #asahi-dev
04:20nora has joined #asahi-dev
04:22nora_ has quit [Ping timeout: 480 seconds]
04:28nesnas has quit [Ping timeout: 480 seconds]
04:28mischa85 has joined #asahi-dev
04:36nesnas has joined #asahi-dev
04:37mischa85 has quit [Ping timeout: 480 seconds]
04:46nesnas has quit [Ping timeout: 480 seconds]
04:50nesnas has joined #asahi-dev
05:00nesnas has quit [Ping timeout: 480 seconds]
05:03chrisl has quit [Ping timeout: 480 seconds]
05:05mischa85 has joined #asahi-dev
05:08nesnas has joined #asahi-dev
05:08nicolas17I had a thought
05:09nicolas17are Electron apps still causing problems due to page size dependencies?
05:13mischa85 has quit [Ping timeout: 480 seconds]
05:15chrisl has joined #asahi-dev
05:18nesnas has quit [Ping timeout: 480 seconds]
05:22Calandracas has quit [Read error: Connection reset by peer]
05:23Calandracas has joined #asahi-dev
05:26nesnas has joined #asahi-dev
05:26nicolas17ie. are there still Electron apps that support Linux-aarch64 but use old Chromium without the runtime-page-size stuff?
05:27glem81005488 has quit [Quit: bye.]
05:32glem81005488 has joined #asahi-dev
05:40pb17 has quit [Ping timeout: 480 seconds]
05:53pb17 has joined #asahi-dev
06:03glem81005488 has quit [Quit: bye.]
06:09glem81005488 has joined #asahi-dev
06:23chrisl has quit [Ping timeout: 480 seconds]
06:32chrisl has joined #asahi-dev
06:37nesnas has quit [Ping timeout: 480 seconds]
06:38npgoalkeeper has quit [Quit: npgoalkeeper]
06:41nesnas has joined #asahi-dev
06:56kaazoo has joined #asahi-dev
07:01nesnas has quit [Remote host closed the connection]
07:01nesnas has joined #asahi-dev
07:01ddxtanx has joined #asahi-dev
07:03Sebastian2 has joined #asahi-dev
07:04kaazoo has quit [Quit: Leaving.]
07:05mischa85 has joined #asahi-dev
07:06Sebastian2 has quit []
07:12nesnas has quit [Ping timeout: 480 seconds]
07:14mischa85 has quit [Ping timeout: 480 seconds]
07:20nesnas has joined #asahi-dev
07:31nesnas has quit [Remote host closed the connection]
07:31nesnas has joined #asahi-dev
07:37chrisl has quit [Ping timeout: 480 seconds]
07:40nesnas has quit [Ping timeout: 480 seconds]
07:42nesnas has joined #asahi-dev
07:43pb17 has quit [Ping timeout: 480 seconds]
07:47chrisl has joined #asahi-dev
07:52nesnas has quit [Ping timeout: 480 seconds]
07:55nesnas has joined #asahi-dev
07:56chrisl has quit [Ping timeout: 480 seconds]
08:11pb17 has joined #asahi-dev
08:12ericl has joined #asahi-dev
08:12nesnas has quit [Ping timeout: 480 seconds]
08:20nesnas has joined #asahi-dev
08:25f_ has quit [Read error: Connection reset by peer]
08:25f_ has joined #asahi-dev
08:27runxiyu has quit [Ping timeout: 480 seconds]
08:33mischa85 has joined #asahi-dev
08:39ericl has quit [Ping timeout: 480 seconds]
08:52chrisl has joined #asahi-dev
09:00chrisl has quit [Ping timeout: 480 seconds]
09:12ericl has joined #asahi-dev
09:34pb17 has quit [Ping timeout: 480 seconds]
09:42chrisl has joined #asahi-dev
09:48mazmischa85: thanks for that. I'll have a look shortly.
09:50chrisl has quit [Ping timeout: 480 seconds]
10:01nesnas has quit [Ping timeout: 480 seconds]
10:04nesnas has joined #asahi-dev
10:10ericl has quit [Quit: WeeChat 4.5.2]
10:12nesnas has quit [Ping timeout: 480 seconds]
10:17pb17 has joined #asahi-dev
10:22mischa85for the m1n1 devs: i'm trying to enable cpu0 like this: smp_start_cpu(0, 0, 0, 0, 0x210050000, 0x502800000 + cpu_offset) where i incremend cpu_offset by 0x1000 to find something that works. 0x210050000 (size: 0x9010) is the cpu-impl-reg of cpu0, and 0x502800000 is the start (end is 0x502818000) of dark-dcp/dapf-instance-0. all of this is of course without pmgr_init(). is this even possible like this
10:22mischa85or am i chasing shadows?
10:22nesnas has joined #asahi-dev
10:35nesnas has quit [Ping timeout: 480 seconds]
10:37mischa85correction: 0x502800000 is the first /arm-io/pmgr/reg, it has a size of 0x1E0000
10:38mischa85which would mean i have 0x1E = 30 options, considering the value of offset is always xxxxx1000
10:39sveni don't think there's anything in pmgr that has to be turned on to bring the other cores up
10:39mischa85that's what i hoped for
10:39nesnas has joined #asahi-dev
10:39mischa85only bad news is my math
10:39mischa85it's 1E0 options, 300
10:39mischa85not great, not terrible
10:41mischa85but i gotta disable the bootcounter because it's going to be SError gallore and it boots into 1TR after a couple of "failed boots"
10:46samha has joined #asahi-dev
10:51chrisl has joined #asahi-dev
10:53nesnas has quit [Ping timeout: 480 seconds]
10:55nesnas has joined #asahi-dev
10:59chrisl has quit [Ping timeout: 480 seconds]
11:00samha has quit [Quit: Leaving]
11:10dcavalca85697 has quit [Ping timeout: 480 seconds]
11:15nesnas has quit [Ping timeout: 480 seconds]
11:16dcavalca85697 has joined #asahi-dev
11:25nesnas has joined #asahi-dev
11:28svenany objections to just removing the entire backend stuff from SMC and making it M1/M2/etc. only for now? it's been >2 years and no one bothered to write a T2 or x86 mac backend so we might as well rip all the indirection and abstractions out for now and revisit that later once someone actually wants to write a backend for e.g. T2 macs
11:29chadmedsven: fine by me. i was going to look at the x86 one when i did the hwmon driver so i could get rid of the old smc driver, but my x86 mac cooked itself sooooo
11:29chaos_princesssven: might want to poke aditya from t2 crew, but no issues here
11:29svenhonestly? they had >2 years and nothing happened
11:30svenand we can always add the backend abstraction back in later
11:30chadmeddid marcan ever advertise to anyone that we had written the driver in such a way? i remember a couple of conversations here but not much else
11:31chadmedno skin in the game though, do whatever makes it easier to upstream
11:31sventhe t2 people are aware of it but "haven't figured it out yet"
11:31chadmedyeah right okay lol go for it
11:31chaos_princessi still have a pre-t2 mbp, but can't find a reason to boot it like, ever
11:33svenafaict most sub-devices need (small) changes to work on pre-M1 anyway
11:33chadmedi had mine lying around for sentimental reasons (piece of crap dual core i5 mbp got me through uni) but it became a spicy pillow and the keyboard gummed up
11:33svenso might as well punt on all that until later
11:34svenyeah, my 2011 mba's battery looked like a spicy pillow as well and iirc it didn't want to boot without a battery
11:35nesnas has quit [Ping timeout: 480 seconds]
11:36mazhonestly, the fact that SMC isn't upstream is a massive drag. whatever helps moving this upstream gets my (relatively insignificant) vote.
11:36chadmedit also means i can submit the hwmon driver for RFC
11:37chadmedim really iffy on how we build the hwmon structs from the device tree
11:42JayBeeFOSS has quit [Ping timeout: 480 seconds]
11:42nesnas has joined #asahi-dev
11:43JayBeeFOSS has joined #asahi-dev
11:43svenmaz: yeah, that's my thinking as well
11:45svenjust get the simplest possible driver upstream for now and then we can revisit that "what happens if we need a different way to access SMC" problem later if anyone actually care
11:45sven*cares
11:46mazexactly. the driver can always be extended with a new compatible string, should the need arise. it's not like SMC is open for people to plug random stuff into it anyway.
11:50chadmedwell it wouldnt be a dt compatible for our backend, it would be a backend for the x86 macs which use acpi
11:52mazsame difference. easy enough to plug in as an afterthought.
11:53nesnas has quit [Ping timeout: 480 seconds]
11:57chrisl has joined #asahi-dev
12:01nesnas has joined #asahi-dev
12:05chrisl has quit [Ping timeout: 480 seconds]
12:11nesnas has quit [Ping timeout: 480 seconds]
12:12pb17 has quit [Ping timeout: 480 seconds]
12:17pb17 has joined #asahi-dev
12:18nesnas has joined #asahi-dev
12:29nesnas has quit [Ping timeout: 480 seconds]
12:38nesnas has joined #asahi-dev
12:49aditya has joined #asahi-dev
12:49mazsven: btw, SMC is an implicit requirement for the PCIe patches. the PCIe driver works without, of course, but nothing is functional without SMC.
12:50kaazoo has joined #asahi-dev
12:50mazI need at least SMC and DART support in order to test things on my M2-pro.
12:58chrisl has joined #asahi-dev
12:58kaazoo has quit [Ping timeout: 480 seconds]
13:06chrisl has quit [Ping timeout: 480 seconds]
13:12ethantwardy has quit [Quit: WeeChat 4.4.2]
13:14ethantwardy has joined #asahi-dev
13:48svenyet another reason to get this upstream
13:53pb17 has quit [Ping timeout: 480 seconds]
13:56DannyB has quit [Ping timeout: 480 seconds]
14:06chrisl has joined #asahi-dev
14:14chrisl has quit [Ping timeout: 480 seconds]
14:24nesnas has quit [Ping timeout: 480 seconds]
14:25nesnas has joined #asahi-dev
14:34jannaumaz: ethernet should work without smc
14:35nesnas has quit [Ping timeout: 480 seconds]
14:38jannauwe could also turn wifi/bluetooth on in m1n1. it has smc gpio because it's needed for display
14:38jannausven: no objection from stripping the backend modularity out. I plan to do the same for spi-hid
14:43chaos_princessWhat do you mean by that, don't we need it for mtp? Or am i thinking about the wrong thing?
14:43DannyBee has joined #asahi-dev
14:43nesnas has joined #asahi-dev
14:45jannauchaos_princess: I can't follow. spi-hid and mtp are fully independent HID transport drivers
14:53nesnas has quit [Ping timeout: 480 seconds]
14:55kaazoo has joined #asahi-dev
14:58pb17 has joined #asahi-dev
15:00nesnas has joined #asahi-dev
15:15chrisl has joined #asahi-dev
15:22nesnas has quit [Ping timeout: 480 seconds]
15:23chrisl has quit [Ping timeout: 480 seconds]
15:30nesnas has joined #asahi-dev
15:41nesnas has quit [Ping timeout: 480 seconds]
15:44nesnas has joined #asahi-dev
15:55nesnas has quit [Ping timeout: 480 seconds]
15:58svenokay, this is looking much more manageable without the backend_ops indirection
15:58svenalso much less awkward if all the probing and resource allocation, etc. happens directly inside mfd
16:00pbsds has quit [Quit: The Lounge - https://thelounge.chat]
16:01pbsds has joined #asahi-dev
16:03nesnas has joined #asahi-dev
16:09aditya has quit [Quit: Connection closed for inactivity]
16:10mischa85okay i've exousted all the possibilities, cannot start the cpu. i have a list of addresses that result SError or Failed. only thing i could figure out is that offset 0x20000 fails, but the next call makes the system crash, fans go on (maybe safety mode?)
16:11kaazoo has quit [Quit: Leaving.]
16:13nesnas has quit [Ping timeout: 480 seconds]
16:21nesnas has joined #asahi-dev
16:31nesnas has quit [Ping timeout: 480 seconds]
16:36kaazoo has joined #asahi-dev
16:38nesnas has joined #asahi-dev
16:46nesnas has quit [Remote host closed the connection]
16:46pb17 has quit [Ping timeout: 480 seconds]
16:46nesnas has joined #asahi-dev
16:49kaazoo has quit [Ping timeout: 480 seconds]
16:55nesnas has quit [Ping timeout: 480 seconds]
17:00nesnas has joined #asahi-dev
17:14chrisl has joined #asahi-dev
17:15mischa85or maybe i should be using my brain for a moment. the t6041 devicetree is full of mysteries but there are some new pairs in pmgr: misc-acg-offset = 0x98000, misc-cores-offset = 0x88000, cluster-ctl-offset = 0x20000
17:16mischa85so my guess is that offset 0x20000 needs to be tickled in some way en then the cores are to be enabled from 0x88000 offset, same as m3
17:17fl0_idmischa85 yeah just wanted to say 0x88000 is same as m3. does m3 do any tickling?
17:18mischa85nope it just goes straight into firing the cores
17:18mischa85maybe this will be a hint to how pmgr is done on m4
17:19mischa85the good news i mapped the whole register range by bruteforcing
17:19fl0_idm4 chip designer be like "i have this fancy new way to do this, finally have time to do it for m4"
17:21mischa85so instead of feeding offset 0x20000 to smp_start_cpu i think i should be doing something else to that register
17:22chrisl has quit [Ping timeout: 480 seconds]
17:22mischa85i'm so glad i have a working shell for all this stuff
17:22mischa85thanks jannau
17:31pb17 has joined #asahi-dev
17:47sand4rt has joined #asahi-dev
18:29chrisl has joined #asahi-dev
18:35kaazoo has joined #asahi-dev
18:36aditya has joined #asahi-dev
18:38john-cabaj has joined #asahi-dev
18:40chrisl has quit [Ping timeout: 480 seconds]
18:48chrisl has joined #asahi-dev
18:54pb17 has quit [Ping timeout: 480 seconds]
18:56chrisl has quit [Ping timeout: 480 seconds]
18:58pb17 has joined #asahi-dev
19:03kaazoo has quit [Quit: Leaving.]
19:17john-cabaj has quit [Ping timeout: 480 seconds]
19:30mischa85upon closer inspection, those are also present in t6031 adt. misc-acg-offset = 0x98000, misc-cores-offset = 0x88000 are the same on m4/m3 but cluster-ctl-offset is 0x18000 on t6031 and 0x20000 on t6041
19:35HitokiriKincho has joined #asahi-dev
19:53mischa85 has quit [Quit: Lost terminal]
19:55chrisl has joined #asahi-dev
20:03chrisl has quit [Ping timeout: 480 seconds]
20:04kaazoo has joined #asahi-dev
20:13nesnas has quit [Ping timeout: 480 seconds]
20:20pb17 has quit [Ping timeout: 480 seconds]
20:20nesnas has joined #asahi-dev
20:29nesnas has quit [Ping timeout: 480 seconds]
20:38nesnas has joined #asahi-dev
20:40sand4rt has quit [Ping timeout: 480 seconds]
20:40chadmed has quit [Quit: Konversation terminated!]
20:40chadmed has joined #asahi-dev
20:42chadmed has quit []
20:42chadmed has joined #asahi-dev
20:43chadmed has quit []
20:43chadmed has joined #asahi-dev
20:45chadmed has quit []
20:45chadmed has joined #asahi-dev
20:45chadmed has quit []
20:46chadmed has joined #asahi-dev
20:48pb17 has joined #asahi-dev
20:50roxfan2 has joined #asahi-dev
20:57nesnas has quit [Ping timeout: 480 seconds]
20:57roxfan has quit [Ping timeout: 480 seconds]
21:00nesnas has joined #asahi-dev
21:00sand4rt has joined #asahi-dev
21:04chrisl has joined #asahi-dev
21:10sand4rt has quit [Quit: WeeChat 4.5.2]
21:11sand4rt has joined #asahi-dev
21:12nesnas has quit [Ping timeout: 480 seconds]
21:19chrisl has quit [Ping timeout: 480 seconds]
21:20nesnas has joined #asahi-dev
21:30nesnas has quit [Ping timeout: 480 seconds]
21:38HitokiriKincho has quit [Quit: Leaving...]
21:39aditya has quit [Quit: Connection closed for inactivity]
21:39nesnas has joined #asahi-dev
21:56nesnas has quit [Ping timeout: 480 seconds]
22:02chrisl has joined #asahi-dev
22:05nesnas has joined #asahi-dev
22:10chrisl has quit [Ping timeout: 480 seconds]
22:16nesnas has quit [Ping timeout: 480 seconds]
22:19pb17 has quit [Ping timeout: 480 seconds]
22:24nesnas has joined #asahi-dev
22:27kaazoo has quit [Quit: Leaving.]
22:40nesnas has quit [Ping timeout: 480 seconds]
22:46sand4rt has quit [Quit: WeeChat 4.5.2]
22:47nesnas has joined #asahi-dev
22:58chadmed has quit [Quit: Konversation terminated!]
22:58chadmed has joined #asahi-dev
22:58chadmed has quit []
22:59sand4rt has joined #asahi-dev
22:59chadmed has joined #asahi-dev
22:59chadmed has quit []
22:59chadmed has joined #asahi-dev
22:59chadmed has quit []
23:00chadmed has joined #asahi-dev
23:00chadmed has quit []
23:00chadmed has joined #asahi-dev
23:01pb17 has joined #asahi-dev
23:01chadmed has quit []
23:02chadmed has joined #asahi-dev
23:02chadmed has quit []
23:02chadmed has joined #asahi-dev
23:02chadmed has quit []
23:03chadmed has joined #asahi-dev
23:03chadmed has quit []
23:03chadmed has joined #asahi-dev
23:06chrisl has joined #asahi-dev
23:07sand4rt has quit [Quit: WeeChat 4.5.2]
23:08sand4rt has joined #asahi-dev
23:11Nefsen402 has quit [Remote host closed the connection]
23:14chrisl has quit [Ping timeout: 480 seconds]
23:42sand4rt has quit [Quit: WeeChat 4.5.2]
23:43sand4rt has joined #asahi-dev
23:53Nefsen402 has joined #asahi-dev
23:58nesnas has quit [Ping timeout: 480 seconds]
…