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
cdesai is now known as ircdesai
ircdesai has quit [Quit: ircdesai]
cdesai has joined #asahi-dev
cdesai is now known as ircdesai
ircdesai is now known as cdesai
cdesai has quit []
ircdesai has joined #asahi-dev
ircdesai is now known as cdesai
cdesai is now known as ircdesai
ircdesai has quit []
ircdesai has joined #asahi-dev
PhilippvK has joined #asahi-dev
phiologe has quit [Ping timeout: 480 seconds]
randomdud_ has joined #asahi-dev
randomdud_ has quit [Remote host closed the connection]
<marcan> sven: you should have branch write access to asahilinux/linux now, only `main` is excluded
<marcan> bloom: added you too, *hint hint*
<marcan> kettenis_: let me know if you want access too; I'm fine with the external fork process too, but I think it's helpful to have regulars doing dev directly in upstream repo branches :)
<marcan> I think for m1n1 we want to keep the PR model (though I might just merge stuff outside of PRs too, it's not required), but we don't need PRs for the kernel as all of that is coordinated with upstream
<marcan> I want to eventually set up some kind of auto-merge-bot to build `main` out of golden feature branches or something like that
VinDuv has joined #asahi-dev
<jannau> marcan: did you see the pull requests in https://github.com/AsahiLinux/vdmtool/pulls? there is one from february
<marcan> oh, no, thanks, totally missed those
VinDuv has quit [Quit: Leaving.]
<Emantor> I have modified the original reclaimerlabs PD USB Breakout to include a header for the SBU pins: https://github.com/Emantor/USB-PD-Breakout/tree/topic/separate_sbu_port
<sven> marcan: sounds good, will push my stuff later today
<kettenis_> marcan: might make sense for coordinating work on DT bindings and device tree updates
<kettenis_> and while on the subject of DT bindings: Linus Walleij is taking my pinctrl binding through the pinctrl tree but the actual device tree changes need to go through some other tree
<sven> probably through marcan and then through arnd's soc tree i guess
<arnd> right
<kettenis_> would make it easier to patch up the interaction with your clock bindings
<kettenis_> oops
<kettenis_> meant to say that makes it easier to deal with the clock stuff in the pinctrl nodes
<marcan> kettenis_: invited :)
<marcan> kettenis_, sven: I think for the upcoming changes, which are mostly to "small" subsystems, it makes sense to keep a nice merge pipeline going in our tree so we can test everything together and make sure it's cohesive before/while submitting upstream
<marcan> keep our tree a couple steps ahead of mainline, just enough to validate that the ideas work, and then submit as things fall into place
<marcan> it's kind of a balance between "wasting" work if things need to be changed after upstream review and blocking on said review; bit of an optimization problem :)
<_jannau_>
<sven> sure, especially with the clock/DART stuff will will need to work together with almost everything else
<marcan> yeah
<marcan> don't want us to move too slowly to get everything super kosher for upstream; the initial bring-up was very hairy with all the arch/ stuff, but it ought to be much easier to do git cleanups for submission for all of these drivers and bindings
<sven> dart is gonna be a little bit hairy since I'll probably need to change something in the iommu subsystem to allow 4k cpu / 16k iommu pages
<sven> but the rest should be fine
<marcan> sure, but that still hopefully doesn't have much impact elsewhere
<sven> yeah
<sven> and for the clock I'll have to discuss with the maintainers how to encode the non-leafs in the device tree such that we don't have to have that in the drive
<sven> r
<marcan> we should do something like dart/{dev,for-next} pinctrl/{dev,for-next} etc
<sven> but that won't have an impact anywhere else either
<marcan> have a dev branch to hack on with impunity, and a for-next for cleaned up series
<sven> sounds good
<marcan> also we make zero promises about not force pushing for any of this
<sven> ofc :D
<marcan> `main` will also be endlessly rewritten by a bot at some point, I should set up an action for that
<marcan> and then i'll have a `base` or something which is whatever linus tree base we are currently working off of
* emilazy definitely welcomes a canonical "asahi linux tree" for testing/packaging/building stuff off of (but then, I currently own no AS hardware, so my opinion probably shouldn't count for much...)
<arnd> sven: I agree that there should be something in the dart driver to allow booting with 4K pages, but I don't think it's necessary to have isolation in that case for the initial merge. Falling back to a fixed linear map (plus swiotlb if necessary), but having proper iommu support for 16KB pages should give us enough confidence in the binding that we can change the iommu core code for small pages later
<marcan> sven: have we confirmed that dart can't do 4K pages?
<sven> yes
<marcan> sadface
<marcan> that kind of screws up isolation for distro kernels
<sven> there's even a field in one of the write-only registers at the beginning that indicates the page shift
<sven> it's probably hard-wired when they synthesise the hw block :/
<marcan> read-only you mean?
<sven> er, yes
<marcan> sven: maz doesn't think we can mix page sizes btw (other channel)
<sven> well, even better for me!
<sven> I mean, it'll kinda boot in bypass-only mode if we can somehow convince pcie to support that
<sven> dwc3 almost works there. for some reason it ignores dma-ranges though and refuses to use >32 bit addresses
<marcan> IIRC there's a flag for 32b vs 64b DMA?
<marcan> I remember something from the ps4 thing
<sven> maybe, didn't really look into it in much detail
<sven> just patched some hack in there to force 64bit and then bypass mode worked
<j_ey> so maybe 'standard' distro kernels can just bypass dart, thats the suggestion sven ?
<sven> maybe, but we shouldn't enable thunderbolt there then
kettenis has joined #asahi-dev
<sven> this also depends on pcie working in bypass mode
<sven> which may or may not be possible
<sven> since the last time someone tried I found another bypass bit. maybe that thing helps
kettenis_ has quit [Ping timeout: 480 seconds]
robinp_ has joined #asahi-dev
<marcan> depending on how the GPU does things, we might not be able to get away with bypass mode there
<marcan> e.g. userspace command buffers
robinp has quit [Ping timeout: 480 seconds]
bih420 has joined #asahi-dev
bih420 has quit [Read error: Connection reset by peer]
bisko has joined #asahi-dev
pcm720_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
pcm720 has joined #asahi-dev
<sven> I'm not sure if the gpu is behind a dart
gladiac has quit [Quit: k thx bye]
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gladiac has joined #asahi-dev
ircdesai is now known as desairc
desairc is now known as cdesai
cdesai is now known as desairc
desairc is now known as cdesai
cdesai is now known as desairc
desairc has quit [Quit: desairc]
desairc has joined #asahi-dev
<marcan> sven: it definitely needs page tables
mini has quit [Quit: ZNC closing...]
mini has joined #asahi-dev
<bloom> marcan: wink wink
rafaelmartins has quit [Quit: https://rgm.io/]
rafaelmartins has joined #asahi-dev
<sven> marcan: sure, but i don't think there's an iommu node in the ADT for the gpu (or maybe i missed it)
<sven> might be yet another iommu
<sven> and who knows what that one supports
<marcan> yeah, heh
<bloom> GPU definitely has its own MMU
<bloom> might not be related to the MM on the rest of the SoC
<balrog> bloom: huh interesting!
* balrog wonders if it's sophisticated enough for multiple instancing, like what nvidia is advertising with their high end A100
robinp has joined #asahi-dev
robinp_ has quit [Ping timeout: 480 seconds]
hir0pro has joined #asahi-dev
VinDuv has joined #asahi-dev
Glanzmann has joined #asahi-dev
desairc is now known as cdesai
cdesai is now known as desairc
desairc is now known as cdesai
cdesai is now known as desairc
pcm720 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
pcm720 has joined #asahi-dev
pcm720 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
thunfisch has quit [Remote host closed the connection]
pcm720 has joined #asahi-dev
thunfisch has joined #asahi-dev
VinDuv has quit [Quit: Leaving.]
VinDuv has joined #asahi-dev
jkkm has joined #asahi-dev
hir0pro has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-dev
VinDuv has quit [Quit: Leaving.]
yuyichao has quit [Quit: Konversation terminated!]
pcm720 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
pcm720 has joined #asahi-dev
StupidYui has quit [Remote host closed the connection]