#asahi-dev · 2025-03-16 12:50
mazI need at least SMC and DART support in order to test things on my M2-pro.#asahi-dev · 2025-03-16 12:49
mazsven: btw, SMC is an implicit requirement for the PCIe patches. the PCIe driver works without, of course, but nothing is functional without SMC.#asahi-dev · 2025-03-16 11:52
chadmedyeah#asahi-dev · 2025-03-16 11:52
mazsame difference. easy enough to plug in as an afterthought.#asahi-dev · 2025-03-16 11:50
chadmedwell it wouldnt be a dt compatible for our backend, it would be a backend for the x86 macs which use acpi#asahi-dev · 2025-03-16 11:46
mazexactly. 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.#asahi-dev · 2025-03-16 11:45
sven*cares#asahi-dev · 2025-03-16 11:45
svenjust 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#asahi-dev · 2025-03-16 11:43
svenmaz: yeah, that's my thinking as well#asahi-dev · 2025-03-16 11:37
chadmedim really iffy on how we build the hwmon structs from the device tree#asahi-dev · 2025-03-16 11:36
chadmedit also means i can submit the hwmon driver for RFC#asahi-dev · 2025-03-16 11:36
mazhonestly, the fact that SMC isn't upstream is a massive drag. whatever helps moving this upstream gets my (relatively insignificant) vote.#asahi-dev · 2025-03-16 11:34
svenyeah, my 2011 mba's battery looked like a spicy pillow as well and iirc it didn't want to boot without a battery#asahi-dev · 2025-03-16 11:33
svenso might as well punt on all that until later#asahi-dev · 2025-03-16 11:33
chadmedi 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#asahi-dev · 2025-03-16 11:33
svenafaict most sub-devices need (small) changes to work on pre-M1 anyway#asahi-dev · 2025-03-16 11:31
chaos_princessi still have a pre-t2 mbp, but can't find a reason to boot it like, ever#asahi-dev · 2025-03-16 11:31
chadmedyeah right okay lol go for it#asahi-dev · 2025-03-16 11:31
sventhe t2 people are aware of it but "haven't figured it out yet"#asahi-dev · 2025-03-16 11:31
chadmedno skin in the game though, do whatever makes it easier to upstream#asahi-dev · 2025-03-16 11:30
chadmeddid 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#asahi-dev · 2025-03-16 11:30
chaos_princesssure then#asahi-dev · 2025-03-16 11:30
svenand we can always add the backend abstraction back in later#asahi-dev · 2025-03-16 11:29
svenhonestly? they had >2 years and nothing happened#asahi-dev · 2025-03-16 11:29
chaos_princesssven: might want to poke aditya from t2 crew, but no issues here#asahi-dev · 2025-03-16 11:29
svenouch#asahi-dev · 2025-03-16 11:29
chadmedsven: 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#asahi-dev · 2025-03-16 11:28
svenany 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#asahi-dev · 2025-03-16 10:41
mischa85but i gotta disable the bootcounter because it's going to be SError gallore and it boots into 1TR after a couple of "failed boots"#asahi-dev · 2025-03-16 10:39
mischa85not great, not terrible#asahi-dev · 2025-03-16 10:39
mischa85it's 1E0 options, 300#asahi-dev · 2025-03-16 10:39
mischa85only bad news is my math#asahi-dev · 2025-03-16 10:39
mischa85that's what i hoped for#asahi-dev · 2025-03-16 10:39
sveni don't think there's anything in pmgr that has to be turned on to bring the other cores up#asahi-dev · 2025-03-16 10:38
mischa85which would mean i have 0x1E = 30 options, considering the value of offset is always xxxxx1000#asahi-dev · 2025-03-16 10:37
mischa85correction: 0x502800000 is the first /arm-io/pmgr/reg, it has a size of 0x1E0000#asahi-dev · 2025-03-16 10:22
mischa85or am i chasing shadows?#asahi-dev · 2025-03-16 10:22
mischa85for 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 #asahi-dev · 2025-03-16 09:48
mazmischa85: thanks for that. I'll have a look shortly.#asahi-dev · 2025-03-16 05:26
nicolas17ie. are there still Electron apps that support Linux-aarch64 but use old Chromium without the runtime-page-size stuff?#asahi-dev · 2025-03-16 05:09
nicolas17are Electron apps still causing problems due to page size dependencies?#asahi-dev · 2025-03-16 05:08
nicolas17I had a thought#asahi-dev · 2025-03-15 23:22
mischa85it seems to be booting from cpu 4 from the sawtooth cores#asahi-dev · 2025-03-15 23:19
fl0_idmischa85 nice#asahi-dev · 2025-03-15 23:16
mischa85at least something turns on#asahi-dev · 2025-03-15 23:16
mischa85woosh#asahi-dev · 2025-03-15 23:16
mischa85okay start_offset 0x10000 makes the fans go vacuum#asahi-dev · 2025-03-15 18:38
nickchani find the cpu start offset by bruteforcing#asahi-dev · 2025-03-15 17:35
fl0_idlol#asahi-dev · 2025-03-15 17:35
nicolas17dodges tomatos