ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
Hibyehello has joined #asahi-dev
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cylm has joined #asahi-dev
cylm_ has quit [Ping timeout: 480 seconds]
hertz has joined #asahi-dev
hertz has quit []
hertz has joined #asahi-dev
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hertz has joined #asahi-dev
yamii has quit [Ping timeout: 480 seconds]
<marcan> jannau: yeah, so we still need a completion or something at some point to block until DCP is properly up
<marcan> nicolas17: yes, it only affected DCP, so you can expect oversaturated red again :p
<marcan> that's the native colorspace
<marcan> DCP has been doing sRGB, but that's a waste of a default; until we get both options exposed (which will require matrix gooeiness for 10-bit due to the wide gamut weirdness) it makes more sense to just expose native and let people who care do their own color management IMO
<marcan> we can't do 10-bit sRGB without either new colorspace/userspace support (ew) or matrix weirdness to compensate
<marcan> but also in general fewer conversion steps are preferred, so native is better and should result in less banding/quantization issues, and just let userspace deal with a single color correction step
<marcan> at some point we'll figure out the ICC profiles to do this all properly, feel free to look into that if you're interested
<marcan> I'm curious how good ICC support is in KDE/Wayland these days
<marcan> IIRC macOS has the ICC profiles stashed somewhere in plain view and I imagine those are intended to output at the native colorspace
<marcan> practically: I think the only actual use case for non-native colorspaces in DCP is for video playback and such, where you're feeding in frames straight from a video decoder / scaler engine and bypassing the GPU (and normal ICC processing)
<marcan> jannau: pushed dcp/sleep (blindly rebased, not compile tested)
greguu has quit [Ping timeout: 480 seconds]
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
yamii has joined #asahi-dev
kettenis has quit [Remote host closed the connection]
kettenis has joined #asahi-dev
SSJ_GZ has joined #asahi-dev
greguu has joined #asahi-dev
nicolas17 has quit [Ping timeout: 480 seconds]
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dementor4 has joined #asahi-dev
SSJ_GZ has quit [Read error: No route to host]
SSJ_GZ has joined #asahi-dev
mps has quit [Ping timeout: 480 seconds]
Dementor has quit [Ping timeout: 480 seconds]
Dementor4 is now known as Dementor
mps has joined #asahi-dev
cylm has quit [Ping timeout: 480 seconds]
eiln has joined #asahi-dev
<eiln> finally got time to work on this again
<eiln> so ane's DMA channels expect a continuous iova block
<eiln> i'm using the raw iommu api to 1) allocate iova block 2) walk down gem pages and iommu_map() each page
<eiln> haven't ported the dmaengine part yet so can't really test but seems to work
<eiln> unsure on a couple things though
<eiln> 1) is vm-size a legitimate limit i need a carveout for? there's a vm-base which is bogus so i think it's also bogus?
<eiln> 2) should i reserve the (unused lol) segment-ranges?
<eiln> 3) whether to hard-code the "neural" quirks?
<eiln> for reference the dma architecture seems like a modded version of arm's:
hertz has joined #asahi-dev
<eiln> basically the "Command channel" and "Weight channel" equivalent work @ 64 gran but the rest are PAGE_SIZE (technically tile size == page size)
<eiln> the "command stream" is tiny and unaligned so what macos likes to do is to pack the weights directly after the cmd
<eiln> order doesn't affect function ofc but idk if it's worth the effort to separate and track the dma types
<eiln> i'd need a "neural network" abstraction and yada yada
<eiln> arm's kernel module uses a crazy complex allocator model
<eiln> where each buffer type has its own allocator device
<eiln> i think it's too far but i could be wrong
<eiln> oh also attached power domains aren't called when dart's probed and dart probes before i can
<eiln> so pds are hacked as always-on to prevent unauth access (can't figure out why tho)
<sven> looks like that thing requires a different iommu for each allocation type, you shouldn’t need that
<jannau> I suspect vm-size in the ADT is just a configured limit. I haven't looked at vm-base. the only device with an non zero vm-base is dcp on m2 and it's probbaly fine to ignore for now since the managed iommu domain allocates iova top down
<sven> iirc we already allocate above vm-size for pcie and possibly dwc3
<sven> it very much sounds like a software limit only
<jannau> for dcp/disp0 on t8103/t600x as well. vm-size is iirc 0xFC000000 but we start allocating at the top of the 32-bit address space
<eiln> pio-vm-base is nonzero but not used (actually the whole pio thing i don't really get)
<eiln> yeah i'll use the 32b space too
yumasi has joined #asahi-dev
yumasi_ has joined #asahi-dev
yumasi has quit [Read error: Connection reset by peer]
Dementor has quit [Read error: Connection reset by peer]
Dementor has joined #asahi-dev
___nick___ has joined #asahi-dev
yumasi_ has quit [Remote host closed the connection]
yumasi has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
yumasi has quit [Remote host closed the connection]
yumasi has joined #asahi-dev
yumasi has quit [Remote host closed the connection]
yumasi has joined #asahi-dev
yumasi has quit [Remote host closed the connection]
yumasi has joined #asahi-dev
psykose has quit [Ping timeout: 480 seconds]
yumasi has quit [Remote host closed the connection]
yumasi has joined #asahi-dev
eiln has quit [Quit: Page closed]
yumasi has quit [Ping timeout: 480 seconds]
bcrumb has joined #asahi-dev
yumasi has joined #asahi-dev
yumasi has quit [Remote host closed the connection]
yumasi has joined #asahi-dev
yumasi has quit [Remote host closed the connection]
nuup has quit [Quit: WeeChat 3.0]
yumasi has joined #asahi-dev
bcrumb has quit [Quit: WeeChat 3.7.1]
yumasi has quit [Ping timeout: 480 seconds]
psykose has joined #asahi-dev
psykose_ has joined #asahi-dev
psykose_ has quit [Remote host closed the connection]
psykose_ has joined #asahi-dev
psykose has quit [Ping timeout: 480 seconds]
bluetail8 has quit [Ping timeout: 480 seconds]
yumasi has joined #asahi-dev
<marcan> eiln: vm-base/vm-size is usually about the ASC
roxfan2 has quit [Remote host closed the connection]
roxfan has joined #asahi-dev
cylm has joined #asahi-dev
bluetail8 has joined #asahi-dev
yumasi has quit [Remote host closed the connection]
<tpw_rules> marcan: do you have the mesa releases tagged or something? i am looking through some of the older PKGBUILDs for mesa-asahi-edge and seeing commits which are not pulled down directly by a "git clone" of the repository, e.g. 08ff98967079a2e43a04f11fc646eef51a9103f1. concerned that they might be eligible for garbage collection
wCPO624365 has quit [Remote host closed the connection]
wCPO624365 has joined #asahi-dev
psykose_ has quit [Remote host closed the connection]
psykose has joined #asahi-dev
nicolas17 has joined #asahi-dev
___nick___ has quit [Ping timeout: 480 seconds]
yumasi has joined #asahi-dev
yumasi has quit [Ping timeout: 480 seconds]
SSJ_GZ has quit [Ping timeout: 480 seconds]
DarkShadow44 has quit [Quit: ZNC - https://znc.in]
DarkShadow44 has joined #asahi-dev
yumasi has joined #asahi-dev
yumasi has quit [Ping timeout: 480 seconds]