marcan 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
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi-dev
really2 has joined #asahi-dev
phiologe has quit [Ping timeout: 260 seconds]
phiologe has joined #asahi-dev
odmir has quit [Remote host closed the connection]
really2 has quit [Ping timeout: 256 seconds]
really2 has joined #asahi-dev
tanmayd17 has joined #asahi-dev
zkrx has quit [Ping timeout: 264 seconds]
zkrx has joined #asahi-dev
maciejjo has quit [Remote host closed the connection]
VinDuv has joined #asahi-dev
mxw39 has quit [Quit: Konversation terminated!]
vlixa has quit [Remote host closed the connection]
m42uko has quit [Quit: Leaving.]
m42uko has joined #asahi-dev
will1 has quit [Quit: Idle for 30+ days]
_whitelogger has joined #asahi-dev
jeff_miw has joined #asahi-dev
jeff_miw has quit [Quit: Connection closed]
linkmauve has left #asahi-dev ["Disconnected: closed"]
Namidairo_ is now known as Namidairo
vlixa has joined #asahi-dev
jeff_miw has joined #asahi-dev
really2 has joined #asahi-dev
really2 has quit [Ping timeout: 264 seconds]
jeff_miw has quit [Ping timeout: 240 seconds]
tanmayd17 has quit [Ping timeout: 245 seconds]
tanmayd17 has joined #asahi-dev
eta has quit [*.net *.split]
DrWhax has quit [*.net *.split]
mjg59 has quit [*.net *.split]
JTL has quit [*.net *.split]
x56_ has quit [*.net *.split]
feuerrot has quit [*.net *.split]
Z750 has quit [*.net *.split]
imobilis has quit [*.net *.split]
mrasmus has quit [*.net *.split]
dougall has quit [*.net *.split]
GaveUp has quit [*.net *.split]
DrWhax has joined #asahi-dev
GaveUp has joined #asahi-dev
dougall_ has joined #asahi-dev
mrasmus_ has joined #asahi-dev
feuerrot has joined #asahi-dev
mjg59 has joined #asahi-dev
imobilis has joined #asahi-dev
Z750 has joined #asahi-dev
JTL has joined #asahi-dev
mrasmus_ is now known as mrasmus
x56_ has joined #asahi-dev
eta has joined #asahi-dev
linkmauve has joined #asahi-dev
commandoline has quit [Ping timeout: 264 seconds]
commandoline has joined #asahi-dev
thestr4ng3r_ has quit [Ping timeout: 264 seconds]
thestr4ng3r has joined #asahi-dev
jeff_miw has joined #asahi-dev
really2 has joined #asahi-dev
really2 has quit [Excess Flood]
thestr4ng3r has quit [Read error: Connection reset by peer]
jeff_miw has quit [Quit: Ping timeout (120 seconds)]
thestr4ng3r has joined #asahi-dev
angelXwind has quit [Quit: ┐(´д`🍍)┌]
akemin_dayo has joined #asahi-dev
jeff_miw has joined #asahi-dev
jeff_miw has quit [Quit: Ping timeout (120 seconds)]
jaalsa has joined #asahi-dev
<sven> ugh, linux seems to wait for a \n before it returns cdc acm transfers to userland
<sven> and that only took me ~4 hours to debug *sigh*
<jn__> sounds like a line discipline thing
<jn__> or cooked/raw tty mode
<jn__> (not sure which of these)
<sven> yeah, maybe i shouldn't have been using cat to test things :-P
<jn__> busybox microcom is nice, it does the right thing, but doesn't have all the bells and whistles of minicom or screen
<sven> i've just used raw libusb now to confirm it works
<sven> time to clean up the horrible code mess i created in the last hours and then see if i can get shell.py to work :)
<jn__> +1
<dhewg> picocom ftw
<j`ey> I switched to picocom, needed the DTR toggle feature
<jn__> ah, fair
<dhewg> it also integrates well with rz/sz. reminds me of the good old 56k times, but still invaluable nowadays for recovering routers
really2 has joined #asahi-dev
really2 has quit [Excess Flood]
really2 has joined #asahi-dev
really2 has quit [Excess Flood]
<marcan> yeah, picocom is my default
<sven> picocom works nicely :)
<sven> marcan: how do you want to handle the dma barries? add them to read32,etc like linux does or should i just explicitly put them into the usb code where they are required?
<sven> *barriers
<marcan> let's do them explicit, but make names like linux does (dma_wmb/rmb/mb)
<sven> ok
<marcan> most reads/writes do not need barriers, so it doesn't make a whole lot of sense to stuff them into read32 and friends
<marcan> (that's why linux has the _relaxed versions)
tanmayd17 has quit [Ping timeout: 276 seconds]
<sven> makes sense
jeff_miw has joined #asahi-dev
jeff_miw has quit [Quit: Connection closed]
bbolli has joined #asahi-dev
swissbolli[m] has joined #asahi-dev
jeffmiw has joined #asahi-dev
<jeffmiw> sven: my mb air is ready to jump and play with some usb bits :), willing to help as much as I can even if I do not have the uart board
<jeffmiw> I'm ok to do the painful and inefficient manual m1n1 install with 1tr and using fb for debugging :), I'll still learn and try to help
odmir has joined #asahi-dev
<sven> jeffmiw: that probably won't be required. i have read/write working now
<sven> just need to clean up the code and plug it into uartproxy.c
<sven> and then you can test it :-)
<j`ey> usbproxy.c :P
<jeffmiw> ok, cool ! thx.
mxw39 has joined #asahi-dev
jeffmiw has quit [Remote host closed the connection]
jeffmiw has joined #asahi-dev
jeffmiw has quit [Ping timeout: 245 seconds]
<kettenis> hmm, the secundary CPUs spin up with the MMU enabled?
<j`ey> that doesnt sound right?
<j`ey> how would it know where the page tables were
KindTwo has joined #asahi-dev
KindOne has quit [Ping timeout: 245 seconds]
KindTwo is now known as KindOne
<kettenis> hmm, maybe I'm just misinterpreting what I'm seeing
<sven> huh, i remember spinning up the secondary cpus and it looked like there was no MMU running given how slow writing to the framebuffer was
<sven> i didn't check the sctlr though
<j`ey> how would it work if you hadn't set TTBR
<j`ey> the first instruction would fault
<winocm> you can always use git clone —depth 1 or —shallow for what it’s worth.
<sven> if they were completely crazy they could share the TTBR between cores
<sven> that sounds rather unlikely though
<sven> it would break *so* many things
<j`ey> yeah, that's very unlikely :P
jeffmiw has joined #asahi-dev
jeffmiw has quit [Ping timeout: 260 seconds]
<sven> M1N1DEVICE=/dev/tty.usbmodemm1n1_uartproxy1 python3 proxyclient/linux.py Image.gz t8103-j274.dtb initramfs.cpio.gz is almost instantaneous now :-)
jeffmiw has joined #asahi-dev
<sven> (after i removed the code that hexdumped every received bulk xfer over the serial uart :D)
<j`ey> sven: gg!
<sven> marcan: so.. how do you want to handle uartproxy.c now? should i just patch it to always use usb or would you prefer to have some kind of device that gets passed so that you can switch between uart and usb at compile time?
<jeffmiw> sven: nice !
<j`ey> sven: cant be a runtime thing?
<sven> j`ey: also fine with me, but how will you select it at runtime? right now there's no configuration file
<jeffmiw> could be set by default to usb and have a command to switch at runtime
<sven> hm, true
<sven> also fine with me
<j`ey> marcan has the final say :P
<sven> yeah :-)
<sven> i'm happy with all options
<sven> i kinda like the "default to USB/UART and provide a command to switch at runtime" though
qncfj has joined #asahi-dev
choozy has joined #asahi-dev
taziden has quit [Ping timeout: 272 seconds]
taziden has joined #asahi-dev
mjeanson has quit [Quit: Bridge terminating on SIGTERM]
qncfj has quit [Quit: WeeChat 3.0]
mjeanson has joined #asahi-dev
jeffmiw_ has joined #asahi-dev
jeffmiw has quit [Read error: Connection reset by peer]
VinDuv has quit [Quit: Leaving.]
jeffmiw_ has quit [Remote host closed the connection]
jeffmiw has joined #asahi-dev
jeffmiw has quit [Remote host closed the connection]
jeffmiw has joined #asahi-dev
jeffmiw has quit [Ping timeout: 256 seconds]