ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
ethanr has joined #asahi-dev
squags has joined #asahi-dev
ethanr has quit []
squags has quit [Ping timeout: 480 seconds]
Dcow has quit [Ping timeout: 480 seconds]
squags has joined #asahi-dev
user982492 has joined #asahi-dev
ethanr has joined #asahi-dev
ethanr has quit [Quit: Leaving]
squags has quit [Ping timeout: 480 seconds]
phiologe has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
kov has quit [Quit: Coyote finally caught me]
nuh^ has quit [Remote host closed the connection]
crabbedhaloablut has joined #asahi-dev
kov has joined #asahi-dev
squags has joined #asahi-dev
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
curlyqueue has quit [Remote host closed the connection]
Dcow has joined #asahi-dev
Dcow has quit [Remote host closed the connection]
Dcow_ has joined #asahi-dev
WhyNotHugo has quit [Remote host closed the connection]
WhyNotHugo has joined #asahi-dev
aleasto has joined #asahi-dev
Theo_ has joined #asahi-dev
Theo_ has quit []
Theo_ has joined #asahi-dev
Theo_ has quit []
Name[m] has joined #asahi-dev
pulpy_orange2[m] has joined #asahi-dev
WhyNotHugo has quit [Remote host closed the connection]
WhyNotHugo has joined #asahi-dev
Gaspare has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
Gaspare has quit [Quit: Gaspare]
yuyichao has joined #asahi-dev
gladiac is now known as Guest7149
gladiac has joined #asahi-dev
Guest7149 has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
Gaspare has joined #asahi-dev
Gaspare has quit [Quit: Gaspare]
Gaspare has joined #asahi-dev
user982492 has joined #asahi-dev
Gaspare has quit [Max SendQ exceeded]
<kettenis> with 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
___nick___ has joined #asahi-dev
<jannau> j_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
<j_ey> jannau: can you paste the diff please? good to know it's cs related
<j_ey> ty
<jannau> still possible to break the ouchpad via capslock though
<jannau> and I have local commit to program the clock in (*prepare_message)
<jannau> touchpad is broken in general
<jannau> j_ey: touchpad works with https://gist.github.com/jannau/64fcad7e89a52b46cb312a7135b10b8d feel free to squash
<jannau> caps lock led toggling still commented out
<jannau> caps lock led toggling breaks touchpad
<j_ey> jannau: thanks, will squash that in
<j_ey> jannau: can you figure out if youre still getting packets (print something in applespi_got_data i guess)
<sven> Hmm… that prepare message thing smells like a race condition fwiw
<sven> hrm, or maybe something breaks if the clock is re-setup between each transfer
<jannau> it prints "applespi_got_data: 27 callbacks suppressed" and 10 x "Received corrupt packet"
<sven> would be good to take a look at what’s going on with the hw signals
<jannau> my suspicion was that (re-)programming the clock while cs is asserted breaks things
<jannau> still strange that it only breaks the touchpad and not the keyboard
<sven> So 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
<sven> it might be that the (internal) clock takes a bit to be stable
<sven> can’t really tell without marcan hooking up a logic analyzer or oscilloscope to the spi lines
<sven> but this smells like a timing issue
<jannau> udelay(150) after apple_spimc_clock fixes the touchpad as well. 100 is not sufficient
palmer_ has joined #asahi-dev
palmer_ has quit [Remote host closed the connection]
<sven> interesting. I wonder if it’s the device that needs time to prepare or if it’s an issue with the controller
<sven> the clock should actually be stable almost immediately since it just needs to divide the input anyway
<jannau> the delay is needed between apple_spimc_clock and writing REG_TXCNT/REG_RXCNT
<jannau> breaks somewhere between 106 and 103
<jannau> or not, the delay has to be longer if it is after REG_TXCNT/REG_RXCNT
<jannau> looks like it could be the target. works without delay and apple_spimc_drain_rx in apple_spimc_transfer_one commented out
<j_ey> the target?
aleasto has quit [Remote host closed the connection]
<jannau> the device (keyboard, ...)
<sven> or the controller does something strange that only a single device doesn't like
<sven> we'll probably need to know what's going on with the actual hardware lines to figure this out
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jannau> the caps lock led in applespi still break things the touchpad
___nick___ has quit [Ping timeout: 480 seconds]
user982492 has joined #asahi-dev
kenzie has joined #asahi-dev
al3xtjames has quit [Quit: Ping timeout (120 seconds)]
al3xtjames has joined #asahi-dev