#asahi-dev · 2021-12-09 19:04
jannauI see "Command 1 timed out" with corellium's applespi on top of AsahiLinux/linux/asahi#asahi-dev · 2021-12-09 18:09
jannauj`ey: python3.9 -m m1n1.adt j314c_dev.bin#asahi-dev · 2021-12-07 06:56
jannaumarcan: did you forget to include Ben in TO/CC in https://lore.kernel.org/all/20211207064019.61444-1-marcan@marcan.st/#asahi-dev · 2021-12-07 06:32
jannaumarcan: no problem. I should have checked earlier. I saw it was handled in from_adt() and assumed it was ok#asahi-dev · 2021-12-06 22:03
jannausigh, it's initilized as t8020 in the DartTracer#asahi-dev · 2021-12-06 20:56
jannauI'd say all valid entries look weird. I'm probably reading random memory#asahi-dev · 2021-12-06 20:51
jannauyes, it is a dart,t6000 for j314c#asahi-dev · 2021-12-06 20:51
jannaustill something wrong, some of the l2 entries have disable subpage protection#asahi-dev · 2021-12-06 20:43
jannaunevermind, it misses the extra shift. although the l2 entries still don't look useful#asahi-dev · 2021-12-06 20:26
jannauon the M1 max#asahi-dev · 2021-12-06 20:25
jannauthe hv crashes on reading the first l2 pte for dart-sio#asahi-dev · 2021-12-06 20:24
jannaum1n1 annotates the two lowest bit just as VALID and VALID2#asahi-dev · 2021-12-06 20:11
jannauthat's how mac os seems to program dart-sio if I haven't confused it by remove a bunch adt nodes#asahi-dev · 2021-12-06 20:10
jannauis the whole block mapped if (pte & 0x3) == 1? dart.py does not handle that at all#asahi-dev · 2021-12-02 12:47
jannauis it to early to make asahi the default branch for AsahiLinux/linux?#asahi-dev · 2021-12-02 12:45
jannaumarcan: looks good. thanks#asahi-dev · 2021-11-30 21:22
jannaunp, only difference to watchdog/v2 was the default timeout value#asahi-dev · 2021-11-29 20:35
jannauthe caps lock led in applespi still break things the touchpad#asahi-dev · 2021-11-29 20:25
jannauthe device (keyboard, ...)#asahi-dev · 2021-11-29 20:19
jannaulooks like it could be the target. works without delay and apple_spimc_drain_rx in apple_spimc_transfer_one commented out#asahi-dev · 2021-11-29 20:12
jannauor not, the delay has to be longer if it is after REG_TXCNT/REG_RXCNT#asahi-dev · 2021-11-29 20:08
jannaubreaks somewhere between 106 and 103#asahi-dev · 2021-11-29 20:07
jannauthe delay is needed between apple_spimc_clock and writing REG_TXCNT/REG_RXCNT#asahi-dev · 2021-11-29 19:42
jannauudelay(150) after apple_spimc_clock fixes the touchpad as well. 100 is not sufficient#asahi-dev · 2021-11-29 19:31
jannaustill strange that it only breaks the touchpad and not the keyboard#asahi-dev · 2021-11-29 19:29
jannaumy suspicion was that (re-)programming the clock while cs is asserted breaks things#asahi-dev · 2021-11-29 19:28
jannauit prints "applespi_got_data: 27 callbacks suppressed" and 10 x "Received corrupt packet"#asahi-dev · 2021-11-29 19:20
jannaucaps lock led toggling breaks touchpad#asahi-dev · 2021-11-29 19:17
jannaucaps lock led toggling still commented out#asahi-dev · 2021-11-29 19:17
jannauj_ey: touchpad works with https://gist.github.com/jannau/64fcad7e89a52b46cb312a7135b10b8d feel free to squash#asahi-dev · 2021-11-29 19:13
jannautouchpad is broken in general#asahi-dev · 2021-11-29 19:06
jannauand I have local commit to program the clock in (*prepare_message)#asahi-dev · 2021-11-29 19:05
jannaustill possible to break the ouchpad via capslock though#asahi-dev · 2021-11-29 19:02
jannauhttps://gist.github.com/jannau/dab07c6c5bb25ad7f8d928f9825c50eb#asahi-dev · 2021-11-29 18:49
jannauj_ey: the problem is probably applespi. your driver (modified) works if I remove the cs_change spi transfers which the corellium spi driver didn't handle correctly to my understanding#asahi-dev · 2021-11-28 23:03
jannaumaybe the clock programming between transfers vs. once per message and with cs already low causes problems#asahi-dev · 2021-11-28 23:01
jannauseems ok, although the common spi code actually does extra cs deassrt/assert requested by applespi#asahi-dev · 2021-11-28 22:11
jannauI'll check next if cs is actually asserted#asahi-dev · 2021-11-28 22:10
jannauexcept for reads and writebacks of 0x150, 0x154, 0x160, and 0x168 I don't see a difference in the register writes#asahi-dev · 2021-11-28 22:07
jannauj_ey: the problem seems to be that RXDATA is always 0x00#asahi-dev · 2021-11-28 17:51
jannaucommenting apple_spimc_drain_rx doesn't help, all adding all the register writes in _prepare/_clock except the draining doesn't fisx it either#asahi-dev · 2021-11-28 17:37
jannauj_ey: sure, do you a suspicion to what it might be? just to be sure, it should work with an unchanged dtb?#asahi-dev · 2021-11-28 15:36
jannauapplespi.c is identical#asahi-dev · 2021-11-28 15:36
jannaujust with spi-apple-mc2 on top of my tree and the Makefile pointed to it#asahi-dev · 2021-11-28 15:35
jannaujust with your driver. no working keyboard#asahi-dev · 2021-11-28 15:34
jannauj_ey: I get "applespi spi0.0: Received corrupted packet (invalid message length 0 - expected 4294967286)" every second#asahi-dev · 2021-11-26 07:25
jannaumarcan: don't we need to wait for Rob's ack on the iMac addition in the bindings change as well#asahi-dev · 2021-11-26 07:24
jannauif only values differ it can be easily transformed into a blob. The only disadvantage is that forward compatibility might not be possible#asahi-dev · 2021-11-26 07:23
jannauis the difference between devices in the written values or are there differences in the registers or the order of writes?#asahi-dev · 2021-11-23 06:39
jannauotoh verification that the ADT matches what we expect wouldn't be a bad idea