#
#asahi-dev · 2026-07-25 15:51
jannausearch for dma_mask in tg3_init_one(), maybe try to 'apple,dma-range = <0x0 0x0 0x0 0xfc000000>;' to the ethernet pcie dart node
#asahi-dev · 2026-07-25 15:46
chaos_princessyes
#asahi-dev · 2026-07-25 15:45
yukaand it's using the unmodified driver and fw for that, correct?
#asahi-dev · 2026-07-25 15:44
chaos_princessyep, tg3 on the m1 one here
#asahi-dev · 2026-07-25 15:38
yukawere the gigabit ethernet cards in previous mac minis also brcm tg3?
#asahi-dev · 2026-07-25 15:38
yukahmm, wifi/bluetooth/ethernet show up in lspci, but the driver for ethernet does not probe: Unable to obtain 64 bit DMA for consistent allocations
#asahi-dev · 2026-07-25 14:59
svenanother cursed idea: since i control the page tables anyway i can just map my own code and force VBAR_GL1 there and just do whatever is required there before jumping to the real one
#asahi-dev · 2026-07-25 13:43
sveni have to patch genter/gexit to some hvc anyway
#asahi-dev · 2026-07-25 13:43
svenand xnu's code is effectively read-only anyway so i'm also fine with patching whatever
#asahi-dev · 2026-07-25 13:40
svenbecause i only want to trap GXF/SPRR on M1 for now
#asahi-dev · 2026-07-25 13:39
NickChan[m]sven: why do you need to replace registers? TIDCP should trap them
#asahi-dev · 2026-07-25 13:33
svenbut we'll see, i'm still busy figuring out how GXF actually works
#asahi-dev · 2026-07-25 13:32
sveni think i can get away with swapping them around and keeping track in the hv, hence the "oh god, this is gonna be cursed"
#asahi-dev · 2026-07-25 13:32
chaos_princessok, makes sense now
#asahi-dev · 2026-07-25 13:32
chaos_princessoh, the exception state regs differ
#asahi-dev · 2026-07-25 13:31
svenif i just replace the _GL1 exception regs with hvcs and then some exception happens while we're inside GL0 (which is actually cursed EL0 now) we'll get the exception state in the _EL1 registers and, uh, that's probably not gonna go great
#asahi-dev · 2026-07-25 13:27
chaos_princessdo we need to trap it?
#asahi-dev · 2026-07-25 13:26
svengod is this going to be cursed if i want to support gl0 which svcs (or any other exception) up to gl1 which i can't easily trap
#asahi-dev · 2026-07-25 13:02
sofusahh, makes sense. Dont bother doing that
#asahi-dev · 2026-07-25 12:58
aites[m]sofus: Ohh yeah that makes sense, I could add that to the driver too I reckon, but I guess the problem is that we already have pre-established ioctls for configuring the haptic force feedback events that userspace can manually send but none for configuring the ones that happen autonomously
#asahi-dev · 2026-07-25 12:54
svenhas anyone ever looked into what SPRR_UMPRR_EL1 does? xnu seems to access it afaict but i can't figure out what this changes
#asahi-dev · 2026-07-25 12:46
sofusyes
#asahi-dev · 2026-07-25 12:45
aites[m]sofus: Is this the `0x22` and `0x23` events?
#asahi-dev · 2026-07-25 12:44
aites[m]<aites[m]> "My design follows the interface..." <- Yeah this is in the patchseries I linked
#asahi-dev · 2026-07-25 12:44
jannausee drivers/hid/hid-haptic.c
#asahi-dev · 2026-07-25 12:42
jannaulinux itself has now support for haptic trackpads
#asahi-dev · 2026-07-25 12:41
JamesCalligeros[m]There were concepts of plans to add it when i looked at this in 2022 :p
#asahi-dev · 2026-07-25 12:41
aites[m]I think I'll send a PR to libinput too
#asahi-dev · 2026-07-25 12:41
aites[m]JamesCalligeros[m]: It doesn't afaik
#asahi-dev · 2026-07-25 12:41
JamesCalligeros[m]Does libinput still not have all the bits to do this itself
#asahi-dev · 2026-07-25 12:40
sofusso like you could change the downclick and the trackpad would still handle everything
#asahi-dev · 2026-07-25 12:39
sofusiirc it was possible to change the how the clicks feel and not use the host mode
#asahi-dev · 2026-07-25 12:36
aites[m]sofus: What do you mean?
#asahi-dev · 2026-07-25 12:35
chaos_princessnot bother = just special case for now
#asahi-dev · 2026-07-25 12:35
chaos_princesslet's not bother for now imo
#asahi-dev · 2026-07-25 12:32
yukado I add a generic aliases mechanism or do I just add this case in dt_append_atc_tunable?
#asahi-dev · 2026-07-25 12:32
chaos_princessyea
#asahi-dev · 2026-07-25 12:32
yukaI guess it should be handled like an alias
#asahi-dev · 2026-07-25 12:31
yuka_think different_
#asahi-dev · 2026-07-25 12:31
chaos_princess...apple
#asahi-dev · 2026-07-25 12:31
yukaThe M4 Mac mini is literally the only device I have where that atcphy tunable is called ATCAXI2AF. all newer devices use ATC0AXI2AF again
#asahi-dev · 2026-07-25 12:27
sofusaites[m]: does it not make sense to expose control to change the haptics without doing the host mode thing?
#asahi-dev · 2026-07-25 12:22
chadmedwould be interesting if the interface is shared with the taptic engine on the idevices with it
#asahi-dev · 2026-07-25 12:22
chadmedmight be worth calling it taptic to match apple's name for it to make that less likely too
#asahi-dev · 2026-07-25 12:20
aites[m]chaos_princess: 🫡 this will be fixed
#asahi-dev · 2026-07-25 12:20
aites[m]But if you wanted to take a look as well I'd be absolutely interested in what you find
#asahi-dev · 2026-07-25 12:20
aites[m]I believe the other magic numbers do something, the clicks definitely feel different, but I'm not 100% sure what they do, but I think it might be that what it does might be non-standard compared to the rest of the haptic trackpads from other vendors so it might be difficult to finangle in controls for them in a way that's standardized if their feature was known
#asahi-dev · 2026-07-25 12:20
aites[m]sofus: Thank you!!! :D
#asahi-dev · 2026-07-25 12:20
chaos_princesshttps://github.com/Ambioid/linux/commit/65427baef70f5142556e967c520bd81f33e1dce7#diff-14aaa6d7944d13c14a8050dcd15523b94ff70b0d8ca15749cec9863e7f483d8aR8 - exported function with a name that is easy to collide with
#asahi-dev · 2026-07-25 12:19
chaos_princesshttps://github.com/Ambioid/linux/commit/65427baef70f5142556e967c520bd81f33e1dce7#diff-14aaa6d7944d13c14a8050dcd15523b94ff70b0d8ca15749cec9863e7f483d8aR8 - will be nacked instantly, this needs to be per-device

plus ›