#asahi-dev · 2022-12-26 09:59
sveniirc we already allocate above vm-size for pcie and possibly dwc3#asahi-dev · 2022-12-26 09:57
jannauI 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#asahi-dev · 2022-12-26 09:50
svenlooks like that thing requires a different iommu for each allocation type, you shouldn’t need that #asahi-dev · 2022-12-26 09:47
eilnso pds are hacked as always-on to prevent unauth access (can't figure out why tho)#asahi-dev · 2022-12-26 09:45
eilnoh also attached power domains aren't called when dart's probed and dart probes before i can#asahi-dev · 2022-12-26 09:45
eilni think it's too far but i could be wrong #asahi-dev · 2022-12-26 09:44
eilnhttps://github.com/ARM-software/ethos-n-driver-stack/blob/main/kernel-module/juno-r2-ethosn-smmu.dts#asahi-dev · 2022-12-26 09:44
eilnwhere each buffer type has its own allocator device#asahi-dev · 2022-12-26 09:44
eilnhttps://github.com/ARM-software/ethos-n-driver-stack/blob/main/kernel-module/ethosn_dma_iommu.c#asahi-dev · 2022-12-26 09:44
eilnarm's kernel module uses a crazy complex allocator model #asahi-dev · 2022-12-26 09:44
eilni'd need a "neural network" abstraction and yada yada #asahi-dev · 2022-12-26 09:43
eilnorder doesn't affect function ofc but idk if it's worth the effort to separate and track the dma types#asahi-dev · 2022-12-26 09:43
eilnthe "command stream" is tiny and unaligned so what macos likes to do is to pack the weights directly after the cmd#asahi-dev · 2022-12-26 09:43
eilnbasically the "Command channel" and "Weight channel" equivalent work @ 64 gran but the rest are PAGE_SIZE (technically tile size == page size)#asahi-dev · 2022-12-26 09:42
eilnhttps://developer.arm.com/documentation/102420/0200/Functional-description/Functional-blocks-/DMA-controller#asahi-dev · 2022-12-26 09:42
eilnfor reference the dma architecture seems like a modded version of arm's:#asahi-dev · 2022-12-26 09:42
eiln3) whether to hard-code the "neural" quirks?#asahi-dev · 2022-12-26 09:42
eiln2) should i reserve the (unused lol) segment-ranges?#asahi-dev · 2022-12-26 09:41
eiln1) 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? #asahi-dev · 2022-12-26 09:41
eilnunsure on a couple things though#asahi-dev · 2022-12-26 09:40
eilnhaven't ported the dmaengine part yet so can't really test but seems to work#asahi-dev · 2022-12-26 09:40
eilni'm using the raw iommu api to 1) allocate iova block 2) walk down gem pages and iommu_map() each page#asahi-dev · 2022-12-26 09:39
eilnso ane's DMA channels expect a continuous iova block#asahi-dev · 2022-12-26 09:39
eilnfinally got time to work on this again#asahi-dev · 2022-12-26 03:16
marcanjannau: pushed dcp/sleep (blindly rebased, not compile tested)#asahi-dev · 2022-12-26 03:11
marcanpractically: 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)#asahi-dev · 2022-12-26 03:10
marcanIIRC macOS has the ICC profiles stashed somewhere in plain view and I imagine those are intended to output at the native colorspace#asahi-dev · 2022-12-26 03:10
marcanI'm curious how good ICC support is in KDE/Wayland these days#asahi-dev · 2022-12-26 03:10
marcanat some point we'll figure out the ICC profiles to do this all properly, feel free to look into that if you're interested#asahi-dev · 2022-12-26 03:09
marcanbut 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#asahi-dev · 2022-12-26 03:08
marcanwe can't do 10-bit sRGB without either new colorspace/userspace support (ew) or matrix weirdness to compensate#asahi-dev · 2022-12-26 03:08
marcanDCP 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#asahi-dev · 2022-12-26 03:07
marcanthat's the native colorspace#asahi-dev · 2022-12-26 03:07
marcannicolas17: yes, it only affected DCP, so you can expect oversaturated red again :p#asahi-dev · 2022-12-26 03:07
marcanjannau: yeah, so we still need a completion or something at some point to block until DCP is properly up#asahi-dev · 2022-12-25 23:23
jannauthe component change is good nevertheless and I'll keep it#asahi-dev · 2022-12-25 23:22
jannaubut it doesn't solve the problem. the problem is that dcp startup is asynchronous. we need to wait for timing/color modes before finishing the drm device registration#asahi-dev · 2022-12-25 23:02
jannauyes, that's of course what happens so it should fix that issue and avoids deferred probing and device links#asahi-dev · 2022-12-25 22:57
jannauit would make sense that it happens when the last missing component is registered. so that would be still be called from some probe function#asahi-dev · 2022-12-25 22:55
jannauthe probe functions are just registering the componennts and exit quickly. not sure how/when the devices are actually bound#asahi-dev · 2022-12-25 22:53
jannaumarcan: I've just re-read the problem description I'm trying to solve with components and in it self they won't solve the problem #asahi-dev · 2022-12-25 20:20
nicolas17"A somewhat sane .config can be found at [[DesktopKernel]]."#asahi-dev · 2022-12-25 20:20
nicolas17https://github.com/AsahiLinux/docs/wiki/Tethered-Boot-Setup-(For-Developers)#asahi-dev · 2022-12-25 20:20
nicolas17docs keep bitrotting :(#asahi-dev · 2022-12-25 19:55
nicolas17pre-DCP it *seemed* like red color was too saturated compared to my non-Mac monitors, but I don't have an objective comparison#asahi-dev · 2022-12-25 19:36
jannaudcp only, nothing has changed except that DCP now reportes {A,X}RGB2101010 as supported. It wasn't previously because it was obvioulsly broken#asahi-dev · 2022-12-25 18:34
nicolas17marcan: "pushed the DCP 10-bit fix + switch to native colorspace (also for 8bit) to bits/200-dcp" what is that about? was it in the wrong colorspace before? did it only affect DCP?#asahi-dev · 2022-12-25 17:59
mpsoh and capacity_level#asahi-dev · 2022-12-25 17:58
mpsI see two new files in /sys/class/power_supply/macsmc-battery, charge_control_start_threshold and charge_control_end_threshold#asahi-dev · 2022-12-25 17:57
mpsat least it boots fine on m1pro macbook