#asahi-dev · 2022-11-26 21:28
ChaosPrincessi can just drop the first line then?#asahi-dev · 2022-11-26 21:28
ChaosPrincessso, thats the beginning of the trace#asahi-dev · 2022-11-26 21:28
ChaosPrincesshttps://pst.klgrth.io/paste/6rtdn#asahi-dev · 2022-11-26 21:20
ChaosPrincessjannau: for touchbar its tx/rx a 64-bit zero, then send the firmware in yet-another-apple-encoding, then it sends hid events using 'z2' protocol. i figured out how the firmware upload works, but not sure where the 64bit zero comes from#asahi-dev · 2022-11-26 21:11
ChaosPrincessfor people who traced spi stuff before - does it send a 64-bit 0 as the first thing? the touchbar tx/rx dumps both begin with that, and idk what generates it.#asahi-dev · 2022-11-26 14:46
ChaosPrincessSo, the "another apple serialization format" that they use to serialize MTP firmware is CBOR and not some proprietary thing. #asahi-dev · 2022-11-24 17:25
ChaosPrincessWhat are the possible places where macos stores firmware? As part of touchbar initialization, macos sends a big binary blob there, but it does not match the one stored in preboot partition. #asahi-dev · 2022-11-23 18:24
ChaosPrincessyes#asahi-dev · 2022-11-23 18:23
ChaosPrincessthe touchpad does not seem to use sio#asahi-dev · 2022-11-23 18:17
ChaosPrincessif i comment out the exception code in m1n1, only m1n1 client crashes, while the mac proceeds to boot#asahi-dev · 2022-11-23 18:16
ChaosPrincesshttps://www.klgrth.io/paste/q9ht9#asahi-dev · 2022-11-23 18:13
ChaosPrincessi am trying to trace spi with mini and getting an error "Event checksum error: Expected 0x00000002, got 0xd0decade", after which the mac reboots. Anyone seen something like that?#asahi-dev · 2022-11-23 08:36
ChaosPrincessas in - a weird domain#asahi-dev · 2022-11-23 08:35
ChaosPrincesseiln: are you using a weird email address on ghithub#asahi-dev · 2022-11-22 22:30
ChaosPrincessi do not think thats possible, os picker is actually full macos that runs the 'os picker' app, which then sets the apple equivalent of BootNext and reboots#asahi-dev · 2022-11-22 22:12
ChaosPrincessabsolutely none, i do not have a m2#asahi-dev · 2022-11-22 22:01
ChaosPrincessMade a step 1 to having a 'reboot to macos' command - nvram read/write tool. seems to be working, but i do not recommend using it if you are not ready to do a dfu restore https://github.com/WhatAmISupposedToPutHere/asahi-nvram#asahi-dev · 2022-11-22 16:33
ChaosPrincessSplit into Enable/output enable, and pointing out that reading back the current state is possible did help. #asahi-dev · 2022-11-22 13:35
ChaosPrincesslgtm on the post, just need a clickbait title :P#asahi-dev · 2022-11-22 11:22
ChaosPrincessthats certainly a way to implement it #asahi-dev · 2022-11-22 11:21
ChaosPrincessi know about tb host to host networking, but usb is new to me#asahi-dev · 2022-11-22 11:21
ChaosPrincesswhat device class then?#asahi-dev · 2022-11-22 11:20
ChaosPrincessbut that is usb4 only, no?#asahi-dev · 2022-11-22 11:20
ChaosPrincessisn't that tb networking, not usb device mode?#asahi-dev · 2022-11-22 11:14
ChaosPrincessthey/them, but do not care much, use whatever.#asahi-dev · 2022-11-22 11:13
ChaosPrincessand for RE - 1. run m1n1, 2. poke at macos, 3. bang head against desk a lot. 4. ?????? 5. profit, sometimes#asahi-dev · 2022-11-22 11:12
ChaosPrincessmy previous kernel work was trying to port the wii linux from 2.something kernels to newer, without much success, so you can say its the first :P#asahi-dev · 2022-11-22 11:08
ChaosPrincessas ChaosPrincess, thats it#asahi-dev · 2022-11-22 11:07
ChaosPrincesshey#asahi-dev · 2022-11-18 15:26
ChaosPrincessstage2 should be enough#asahi-dev · 2022-11-12 23:27
ChaosPrincessthose are from adt, address needs to be added to 0x200000000#asahi-dev · 2022-11-12 23:27
ChaosPrincessreg = [Container: addr = 0x000000002A000000 size = 0x0000000004000000, Container: addr = 0x000000003B700000 size = 0x000000000008C000, Container: addr = 0x000000003C260000 size = 0x0000000000004000, Container: addr = 0x000000003C280000 size = 0x0000000000004000, Container: addr = 0x000000003C290000 size = 0x0000000000004000]#asahi-dev · 2022-11-12 20:40
ChaosPrincessthats correct, the host needs to route it correctly#asahi-dev · 2022-11-12 20:38
ChaosPrincessso, lets say that dp lanes are d0, d1, d2, and d3, usb plug lanes are p0-p3, socket are s0-s3. d0 is always connected to p0, but can be connected to either s0 or s3, depending on if you twist the cable or not#asahi-dev · 2022-11-12 20:33
ChaosPrincessdp is not symmetric but the usb-c side should be#asahi-dev · 2022-11-11 18:29
ChaosPrincessalyssa: i was playing with stable diffusion earlier today, either i suck at writing prompts or its not magic :P#asahi-dev · 2022-11-11 17:22
ChaosPrincessno, npu is for thins like pytorch/tensorflow#asahi-dev · 2022-11-08 19:20
ChaosPrincessyou will not be able to by just using that patch, the reason it most likely was missed is that this function's output has no consumers in the current kernel#asahi-dev · 2022-11-08 19:00
ChaosPrincessno, smc is smc, kbd backlight is pwm#asahi-dev · 2022-11-08 16:28
ChaosPrincessthats the m1n1 code that does the same thing#asahi-dev · 2022-11-08 16:28
ChaosPrincesswell, i tested it on a m1, it works, and also: https://github.com/AsahiLinux/m1n1/blob/main/proxyclient/m1n1/fw/smc.py#L137#asahi-dev · 2022-11-08 16:24
ChaosPrincesshttps://github.com/AsahiLinux/linux/pull/63#asahi-dev · 2022-11-08 16:23
ChaosPrincesssince y'all are discussing smc, the function to get key info is currently broken, and there is a pr on asahi github that fixes it#asahi-dev · 2022-11-05 12:20
ChaosPrincessty#asahi-dev · 2022-11-05 12:19
ChaosPrincessthis is based on asahi-dev branch, right? (not intending to use, just to see the correct diff)#asahi-dev · 2022-11-04 13:48
ChaosPrincessmarcan: it looks like there is a bug in apple_smc_rtkit_get_key_info: the key_info variable is not actually passed to the apple_smc_cmd#asahi-dev · 2022-11-03 14:50
ChaosPrincessIs the smc interface same on t2 and pre-t2 macs?#asahi-dev · 2022-11-02 18:57
ChaosPrincessfor 4 lanes - can't you connect it with the worst possible cable so it will be unable to train anything above dp rbr speed?#asahi-dev · 2022-11-02 14:56
ChaosPrincessthen i guess it can do both raw usb and usb wrapped in tb#asahi-dev · 2022-11-02 14:53
ChaosPrincessthey are kinda different on protocol level