#
…

2021-11-29

00:04ethanr has joined #asahi-dev
00:08squags has joined #asahi-dev
00:08ethanr has quit []
00:16squags has quit [Ping timeout: 480 seconds]
00:19Dcow has quit [Ping timeout: 480 seconds]
00:23squags has joined #asahi-dev
01:09user982492 has joined #asahi-dev
01:32ethanr has joined #asahi-dev
01:45ethanr has quit [Quit: Leaving]
02:04squags has quit [Ping timeout: 480 seconds]
03:08phiologe has joined #asahi-dev
03:12PhilippvK has quit [Ping timeout: 480 seconds]
03:42kov has quit [Quit: Coyote finally caught me]
03:59nuh^ has quit [Remote host closed the connection]
04:14crabbedhaloablut has joined #asahi-dev
04:19kov has joined #asahi-dev
04:23squags has joined #asahi-dev
07:07user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:27curlyqueue has quit [Remote host closed the connection]
08:41Dcow has joined #asahi-dev
08:52Dcow has quit [Remote host closed the connection]
08:52Dcow_ has joined #asahi-dev
10:05WhyNotHugo has quit [Remote host closed the connection]
10:05WhyNotHugo has joined #asahi-dev
10:19aleasto has joined #asahi-dev
10:20Theo_ has joined #asahi-dev
10:20Theo_ has quit []
10:20Theo_ has joined #asahi-dev
10:21Theo_ has quit []
12:18Name[m] has joined #asahi-dev
12:38pulpy_orange2[m] has joined #asahi-dev
13:05WhyNotHugo has quit [Remote host closed the connection]
13:05WhyNotHugo has joined #asahi-dev
13:13Gaspare has joined #asahi-dev
14:38yuyichao has quit [Ping timeout: 480 seconds]
15:14Gaspare has quit [Quit: Gaspare]
15:14yuyichao has joined #asahi-dev
15:36gladiac is now known as Guest7149
15:36gladiac has joined #asahi-dev
15:42Guest7149 has quit [Ping timeout: 480 seconds]
16:06yuyichao_ has joined #asahi-dev
16:10yuyichao has quit [Ping timeout: 480 seconds]
16:55Gaspare has joined #asahi-dev
17:14Gaspare has quit [Quit: Gaspare]
17:20Gaspare has joined #asahi-dev
17:30user982492 has joined #asahi-dev
17:38Gaspare has quit [Max SendQ exceeded]
18:15ketteniswith the power domans I need to add a "u-boot,dm-pre-reloc" property to the power-controller nodes that correspond to the power domains used by the serial console
18:46___nick___ has joined #asahi-dev
18:49jannauj_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
19:01j_eyjannau: can you paste the diff please? good to know it's cs related
19:05jannaustill possible to break the ouchpad via capslock though
19:06jannauand I have local commit to program the clock in (*prepare_message)
19:13jannautouchpad is broken in general
19:17jannaucaps lock led toggling still commented out
19:20jannaucaps lock led toggling breaks touchpad
19:21j_eyjannau: thanks, will squash that in
19:23j_eyjannau: can you figure out if youre still getting packets (print something in applespi_got_data i guess)
19:26svenHmm… that prepare message thing smells like a race condition fwiw
19:28svenhrm, or maybe something breaks if the clock is re-setup between each transfer
19:28jannauit prints "applespi_got_data: 27 callbacks suppressed" and 10 x "Received corrupt packet"
19:28svenwould be good to take a look at what’s going on with the hw signals
19:29jannaumy suspicion was that (re-)programming the clock while cs is asserted breaks things
19:31jannaustill strange that it only breaks the touchpad and not the keyboard
19:31svenSo usually you’d first set CS and then enable the clock, but the clock should only be enabled anyway when there’s something in the FIFO
19:32svenit might be that the (internal) clock takes a bit to be stable
19:33svencan’t really tell without marcan hooking up a logic analyzer or oscilloscope to the spi lines
19:34svenbut this smells like a timing issue
19:42jannauudelay(150) after apple_spimc_clock fixes the touchpad as well. 100 is not sufficient
19:46palmer_ has joined #asahi-dev
19:46palmer_ has quit [Remote host closed the connection]
19:47sveninteresting. I wonder if it’s the device that needs time to prepare or if it’s an issue with the controller
19:47sventhe clock should actually be stable almost immediately since it just needs to divide the input anyway
20:07jannauthe delay is needed between apple_spimc_clock and writing REG_TXCNT/REG_RXCNT
20:08jannaubreaks somewhere between 106 and 103
20:12jannauor not, the delay has to be longer if it is after REG_TXCNT/REG_RXCNT
20:19jannaulooks like it could be the target. works without delay and apple_spimc_drain_rx in apple_spimc_transfer_one commented out
20:20j_eythe target?
20:21aleasto has quit [Remote host closed the connection]
20:25jannauthe device (keyboard, ...)
20:29svenor the controller does something strange that only a single device doesn't like
20:31svenwe'll probably need to know what's going on with the actual hardware lines to figure this out
20:33user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:35jannauthe caps lock led in applespi still break things the touchpad
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:22user982492 has joined #asahi-dev
22:21kenzie has joined #asahi-dev
23:01al3xtjames has quit [Quit: Ping timeout (120 seconds)]
23:02al3xtjames has joined #asahi-dev
…