#
#asahi-dev · 2025-03-03 06:59
nickchan(kernel patching mostly for assisting with dynamic tracing)
#asahi-dev · 2025-03-03 06:58
nickchanthat stuff doesn't belong to here :)
#asahi-dev · 2025-03-03 06:58
nickchanand on a7-a11, t2 there will always be preloader stages before m1n1, there are some stuff like kernel and iboot patching, SEP ROM firmware load races that require binary RE, no way around it, some parts even call hardcoded function pointers in SecureROM to setup a USB stack while subject to strict size limitations
#asahi-dev · 2025-03-02 18:04
nickchanno way that it's actually going to be compatible with t7000 display pipe
#asahi-dev · 2025-03-02 17:58
nickchanat least the mipi part is the same
#asahi-dev · 2025-03-02 17:57
nickchanneither touchbar_bad_apple or touchbar_rainbow worked on iphone x after fixing dart and the addresses so apple,h7-display-pipe is probably a very bad compatible name but so be it
#asahi-dev · 2025-03-02 17:28
svengreat, thanks!
#asahi-dev · 2025-03-02 17:28
jannausven: yes, dm or mail the me the address. no need to pay for shipping
#asahi-dev · 2025-03-02 16:55
svenjannau: do you have a spare central scrutinizer you could send to me? happy to pay for shipping, etc.
#asahi-dev · 2025-03-02 13:36
jannauI think alyssa was expected to push adp to drm-misc
#asahi-dev · 2025-03-02 12:44
svenok, i'll take a closer look at aux bus then next weekend and see if it makes sense to adjust smc to just use that one
#asahi-dev · 2025-03-02 12:43
chaos_princessiirc yes, and aux bus does look better
#asahi-dev · 2025-03-02 12:42
svenso i was just looking at smc again, there were some issues with mfd when marcan tried to upstream it last time. did they ever come to an agreement? i also stumbled upon https://docs.kernel.org/driver-api/auxiliary_bus.html which might be an even better fit for smc anyway
#asahi-dev · 2025-03-02 12:25
svenno idea, was just looking for reviewed dt changes i could pick up
#asahi-dev · 2025-03-02 12:25
chaos_princessyea, i wonder who i need to poke in order to make it go faster :P
#asahi-dev · 2025-03-02 12:24
sven:(
#asahi-dev · 2025-03-02 12:04
chaos_princessnope
#asahi-dev · 2025-03-02 12:04
svenchaos_princess: the dt-bindings and main driver for https://lore.kernel.org/asahi/20250217-adpdrm-v7-0-ca2e44b3c7d8@gmail.com/T/ haven't been picked up yet, have they?
#asahi-dev · 2025-03-02 11:31
svensame for M1 darts, we've been ignoring them so far
#asahi-dev · 2025-03-02 11:27
nickchanfetch-config, diag-config etc
#asahi-dev · 2025-03-02 11:26
nickchanbut the dart-jpeg0 still worked fine without them
#asahi-dev · 2025-03-02 11:26
nickchanthere's a bunch of tunables in adt that I can correspond to registers by looking at dart-disp0 as setup by iboot
#asahi-dev · 2025-03-02 11:24
svenyeah, doesn’t hurt to additionally set that bypass offset to 0x00 or something else that’s invalid
#asahi-dev · 2025-03-02 11:23
nickchan(with invalid ttbr and translation enabled)
#asahi-dev · 2025-03-02 11:22
nickchanprobably should still bypass to nowhere just in case
#asahi-dev · 2025-03-02 11:18
nickchanwhen ttbr is not valid
#asahi-dev · 2025-03-02 11:18
nickchanTTY> Exception: IRQ (from EL1h) die: 0 type: 1 num: 197 mpidr: 80000000 cnt: 82b8a532b
#asahi-dev · 2025-03-02 11:18
nickchangot it
#asahi-dev · 2025-03-02 11:16
svenyeah
#asahi-dev · 2025-03-02 11:16
jannauthe log message should then be throttled. if the device depends on those reads it'll broken anyway
#asahi-dev · 2025-03-02 11:11
chaos_princessthere are pcie devices that read from random memory addresses because, idk, they feel like it. it is "fine" on x86
#asahi-dev · 2025-03-02 11:10
svenwhy?
#asahi-dev · 2025-03-02 11:10
chaos_princessthis will need to be controlled by a module flag or something when we will get thunderbolt though
#asahi-dev · 2025-03-02 11:09
jannauor when a device tries dma on the wrong or stale address. while the bug was annoying to find I'd still credit the dart fault log as helpful for marcan's USB fix
#asahi-dev · 2025-03-02 10:59
svenif you set a domain to blocked for whatever reason and a device tries to DMA that's a bug and I'd very much like to know about that
#asahi-dev · 2025-03-02 10:58
sven(and fails)
#asahi-dev · 2025-03-02 10:58
svendon't you want to see when some device tries to do DMA?!
#asahi-dev · 2025-03-02 10:57
svenwhy are the logs bogus?
#asahi-dev · 2025-03-02 10:54
nickchansven: don't think generating interrupts are a good thing as it creates bogus kernel logs id rather bypass to invalid
#asahi-dev · 2025-03-02 10:46
sveni'm not sure I ever wrote hw docs for the M1 dart tbh
#asahi-dev · 2025-03-02 10:45
nickchani probably should put the hw docs somewhere
#asahi-dev · 2025-03-02 10:36
svenif this works anything like the M1 dart it should
#asahi-dev · 2025-03-02 10:35
nickchanI need to see if that generate interrupts
#asahi-dev · 2025-03-02 10:35
svenand also just pretend bypass isn't supported
#asahi-dev · 2025-03-02 10:35
sveni'd implement blocked as "translation enabled but TTBR_VALID isn't set anywhere" then
#asahi-dev · 2025-03-02 10:35
nickchansven: TTBR_VALID does exist
#asahi-dev · 2025-03-02 10:35
svenso is there a TTBR_VALID bit?
#asahi-dev · 2025-03-02 10:32
nickchanlower 32-bit of the address space
#asahi-dev · 2025-03-02 10:32
nickchantechnically setting it to 0 would be identity but... there's nothing in the lower 32-bit so
#asahi-dev · 2025-03-02 10:31
nickchanreset value of that register is 0x8080808, i.e. bypass to 0x800000000 for all 4 streams

plus ›