#
✕ nick:pipcet[m]
#asahi-dev · 2021-08-29 20:28
pipcet[m]you're right, it does make sense. PD interrupts it is then :P
#asahi-dev · 2021-08-29 20:18
pipcet[m]they do? that's weird, but if you say so they must...
#asahi-dev · 2021-08-29 20:15
pipcet[m]IIRC we don't get those interrupts if it's the remote end of a type-a/type-c adapter that's disconnected
#asahi-dev · 2021-08-29 20:14
pipcet[m]D1St and D2St are SMC keys that might correspond to device connection status, but I'm not sure that's what we want
#asahi-dev · 2021-08-29 18:38
pipcet[m]D0* / D1* would be suspicious keys...
#asahi-dev · 2021-08-29 18:37
pipcet[m]is it reading something else from the SMC, maybe? maybe there's a bit in there for each port...
#asahi-dev · 2021-08-29 18:36
pipcet[m]sven: do you see a PD interrupt if you unplug a device from a typec-typea adapter? rather than unplugging the adapter?
#asahi-dev · 2021-08-29 18:32
pipcet[m]fun.
#asahi-dev · 2021-08-29 18:31
pipcet[m]same message for both ports? d'oh.
#asahi-dev · 2021-08-29 17:48
pipcet[m]as in, doesn't it initialize or does it randomly eat your data?
#asahi-dev · 2021-08-29 17:47
pipcet[m]how broken?
#asahi-dev · 2021-08-29 17:46
pipcet[m]blame j_ey!
#asahi-dev · 2021-08-28 18:44
pipcet[m]I wasn't expecting a working driver anytime soon, but I'm confident now that we can have one, so time to think of a name for the mini ;)
#asahi-dev · 2021-08-28 18:44
pipcet[m]I'm not sure I understand?
#asahi-dev · 2021-08-28 18:42
pipcet[m]alyssa: (sorry for working in parallel, this was an "if I can't get 4k out of this mini I better return it quick" thing)
#asahi-dev · 2021-08-28 18:40
pipcet[m]alyssa: anything I can test/review/comment on?
#asahi-dev · 2021-08-28 18:38
pipcet[m]alyssa: awesome :-)
#asahi-dev · 2021-08-28 18:16
pipcet[m]and I can switch my framebuffer to 4k@60hz now, with ugly hacks which I hope you guys can avoid :-)
#asahi-dev · 2021-08-28 18:15
pipcet[m]marcan: piodma sid is in the adt, i've only ever seen 4.
#asahi-dev · 2021-08-28 11:03
pipcet[m]extract the payload from the ...right.
#asahi-dev · 2021-08-28 08:41
pipcet[m]I assume the crashlog location is locked somehow and you can't change it from its locked iova?
#asahi-dev · 2021-08-26 22:18
pipcet[m]doing what?
#asahi-dev · 2021-08-26 20:48
pipcet[m]no console?
#asahi-dev · 2021-08-26 20:41
pipcet[m]oh. uhm. if set to 1 TWICE. The first set doesn't do anything. I think that's a bug somewhere though...
#asahi-dev · 2021-08-26 20:38
pipcet[m]you can set other properties, but the only one I can make do anything is property 0, which inverts all colors if set to 1.
#asahi-dev · 2021-08-26 20:33
pipcet[m]alyssa: I don't think the DCP branch does anything on the mini, though?
#asahi-dev · 2021-08-26 20:30
pipcet[m]and, then, obviously, forgot and started playing with the DCP instead, getting nowhere near a working framebuffer after changing video modes :-(
#asahi-dev · 2021-08-26 20:29
pipcet[m]i, uh, think I decided to fix that "later" and put them all in the -dts branch :/
#asahi-dev · 2021-08-26 20:28
pipcet[m]oh...
#asahi-dev · 2021-08-25 19:14
pipcet[m](maybe it's wear levelling ;-) )
#asahi-dev · 2021-08-25 19:12
pipcet[m]oh, the corellium driver, and my variation on it, always have the second-lowest byte set to 0, which means it always starts at the beginning of the SRAM. macOS advances (I have no idea why because you can't get concurrency anyway)
#asahi-dev · 2021-08-25 19:10
pipcet[m]you're at offset 0x30 in the SMC SRAM?
#asahi-dev · 2021-08-25 19:09
pipcet[m]I, uh, may have manually toggled gP0d using read64 and write64 the other day :P
#asahi-dev · 2021-08-25 19:08
pipcet[m]sure, no worries
#asahi-dev · 2021-08-25 19:07
pipcet[m]if you have code I can try in (vanilla, I promise) m1n1 I'll be glad to :-)
#asahi-dev · 2021-08-25 19:06
pipcet[m]oh! I was talking about the macbook, sorry.
#asahi-dev · 2021-08-25 19:06
pipcet[m]which version?
#asahi-dev · 2021-08-25 19:05
pipcet[m]well, as long as it's getting less weird with every upgrade....
#asahi-dev · 2021-08-25 19:04
pipcet[m]it would be wonderful if the firmware upgrade fixed this and I'll formally call in doubt my theory, then, but until yesterday I needed to enable intmasks for charging to work.
#asahi-dev · 2021-08-25 19:03
pipcet[m]0x71 notifications or 0x70 ones?
#asahi-dev · 2021-08-25 19:02
pipcet[m]there's a CL?? property that says how long it's been running :-)
#asahi-dev · 2021-08-25 19:02
pipcet[m]the SMC does stay on normally, but the tps chip also has a dead-battery mode to recover from that scenario
#asahi-dev · 2021-08-25 19:01
pipcet[m]https://github.com/AsahiLinux/m1n1/blob/main/src/tps6598x.c#L126
#asahi-dev · 2021-08-25 18:58
pipcet[m]setting the intmask over i2c means no more notifications from the SMC, plus charging doesn't work. You're right it's insane.
#asahi-dev · 2021-08-25 18:57
pipcet[m]I'm pretty sure it does.
#asahi-dev · 2021-08-25 18:57
pipcet[m]sven: you did hear my "the SMC snoops the PD chips' interrupt lines to know when to kick the battery charging circuitry" theory?
#asahi-dev · 2021-08-25 18:53
pipcet[m]I tihnk I just heard someone volunteer to rewrite the mailbox driver code so it's actually usable and handles stuff like this!
#asahi-dev · 2021-08-25 18:51
pipcet[m]otoh, just do an interrupt for usb and ignore the rest for now?
#asahi-dev · 2021-08-25 18:51
pipcet[m]power button, lid switch, charging notifications, usb notifications, who knows what else...
#asahi-dev · 2021-08-25 18:50
pipcet[m]power button goes through it, and the battery indicator payloads changed when I upgraded macOS yesterday...

plus ›