#
#asahi-dev · 2023-08-16 12:39
eilnshiny pokemon https://i.ibb.co/Kx79t6F/IMG-9927.jpg
#asahi-dev · 2023-08-16 08:29
jannauthe syncing should be unrelated. that is not the first table entry written
#asahi-dev · 2023-08-16 07:37
jannauthe level 1 page table syncing for locked darts was my first suspect but adding barriers there makes no difference
#asahi-dev · 2023-08-16 07:34
svenstill reading code and haven’t found anything suspicious :/
#asahi-dev · 2023-08-16 07:31
jannaubut where? I don't see how it could be afk. after dma_alloc_coherent() everything should be fine there. That leaves dart/io-pgtbl but why would that specifically break on afk/epic commands
#asahi-dev · 2023-08-16 07:02
sven maybe some code is reordered which then maybe triggers a missing barrier bug or something like that somewhere :/
#asahi-dev · 2023-08-16 07:01
sven🤨
#asahi-dev · 2023-08-16 06:59
jannaureproduced on asahi alarm. compiled with gcc breaks in the same way. HOW?!
#asahi-dev · 2023-08-16 06:44
jannaumain non-source difference is that on fedora the kernel is compiled with gcc instead of llvm
#asahi-dev · 2023-08-16 06:42
jannauold state on asahi alarm still has working dptxport communication and I can't spot an relevant difference
#asahi-dev · 2023-08-16 06:06
jannauat least dptxport communication worked before and I do not see how my changes could be related
#asahi-dev · 2023-08-16 06:01
jannausetting apple,dma-range to vm-base,vm-size from the ADT makes no difference. it should be impossible since dcpext must have read it from the AFK ringbuffer which is allocatedd earlier with an higher dva
#asahi-dev · 2023-08-16 02:56
marcanjannau: vm-size too large?
#asahi-dev · 2023-08-15 20:29
jannauthe tracer can read the command as well and just the dart is invalidated just before the command is logged
#asahi-dev · 2023-08-15 20:27
jannauthe the two latter things where issues it should be issues for iomfb as well but that works on dcp and dcpext
#asahi-dev · 2023-08-15 20:25
jannaulinux allocates iova top-down instead bottom-up but within vm-base,vm-size
#asahi-dev · 2023-08-15 20:23
jannauour dart-dcpext PTEs have the non-cacheable bit set
#asahi-dev · 2023-08-15 20:23
jannauknown differences: macos driver sends 2 REPORTs before but did that already in 13.3
#asahi-dev · 2023-08-15 20:20
svenweird
#asahi-dev · 2023-08-15 20:20
jannau13.5 fw on t8112, as far as I can tell no major differences to macos
#asahi-dev · 2023-08-15 20:18
jannaufirst after boot. yes, the faulting dva is the expected one from linux and is mapped in dart-dcpext
#asahi-dev · 2023-08-15 20:14
svenfirst one after boot or first one after a wrap around? and i guess that buffer is mapped to dcpext?
#asahi-dev · 2023-08-15 20:10
jannauany idea why dcpext would fault on reading the first afk/epic cmd txbuf although it is mapped and I can read the from the hypervisor
#asahi-dev · 2023-08-15 14:35
dsharshakovbrilliant, thanks
#asahi-dev · 2023-08-15 14:33
chadmedno need to apologise, im awake just not in productivity mode :P ill get around to the comments on the issue in the morning too
#asahi-dev · 2023-08-15 14:32
dsharshakovsorry for possible disturbance. please answer issue comments re design after testing
#asahi-dev · 2023-08-15 14:31
chadmed(its almost 1am here)
#asahi-dev · 2023-08-15 14:31
chadmeddsharshakov: unreal, will test tomorrow!
#asahi-dev · 2023-08-15 14:30
dsharshakovchadmed: drafted fc-volume-ctrl branch on PW repo for you. see https://tpaste.us/Vq91 as a config reference
#asahi-dev · 2023-08-14 19:39
eiln** we can still send batches (1 <= n <= 16), more efficent obv
#asahi-dev · 2023-08-14 19:26
dsharshakovwell, likely you'll manage to do it without complex kernel-userspace pairing with libcamera. V4L2 is better is terms of compatibility and versatility right now
#asahi-dev · 2023-08-14 19:25
eilnframe/meta count is off. I believe macos' weird batching scheme was bc of the face detection prediction mask, which effs up the cadence.
#asahi-dev · 2023-08-14 19:25
eilndsharshakov: I did figure it out, thanks to everyone here, but I actually bruteforced CISP_CMD_CH_BUFFER_POOL_CONFIG_GET to disable that (now I'm really sorry for that wall of text, whoops). the new permutation of config vals also lets me send the (required per-frame) meta buffer with the frames, so that's half the number of irqs needed & ensures frames are never dropped bc the
#asahi-dev · 2023-08-14 19:09
dsharshakoveiln: did you manage to solve the multiple-buffer issue? If so, you likely don't really need libcamera path as v4l2 works fine. Probably ISP does most stuff itself and driver doesn't have to do any processing thus kernel-only impl is fine
#asahi-dev · 2023-08-14 17:52
eilndsharshakov: thank you, will look into it
#asahi-dev · 2023-08-14 17:40
dsharshakovwith libcamera you can integrate a webcam with your own kernel interface into PW. The problem why it's not the sole method is that not all apps work fine with v4l2 - pw adapter lib
#asahi-dev · 2023-08-14 17:38
dsharshakovre PipeWire and ISP: if any processing suitable for userspace is necessary, feel free to play around with libcamera. However, if ISP's model can be integrated into v4l2, there should be at least minimal function set with v4l2
#asahi-dev · 2023-08-14 17:37
dsharshakovchadmed: :bell: you've got a message in #pipewire. Is it possible to use mb_compressor_mono in place of stereo one because stereo doesn't have separate channel volumes? If so, won't it hog performance a lot bc of extra plugin instance?
#asahi-dev · 2023-08-14 14:57
marcanif someone is bored I'm sure there's fun stuff to be done with PipeWire, but it's completely optional
#asahi-dev · 2023-08-14 14:56
marcaneiln: no need for that, software postpro is out of scope for the driver and kinda overkill right now (unlike the speakers where you really really really need DSP for it to be usable at all)
#asahi-dev · 2023-08-14 14:04
eilnpovik: filters are identical as macos. it still looks good, but I guess that wasn't enough for them
#asahi-dev · 2023-08-14 11:56
povikyou don't get fully processed frames from isp?
#asahi-dev · 2023-08-14 11:54
eilnI doubt I'll have the time for it. if anyone wants to look at it, please do
#asahi-dev · 2023-08-14 11:53
eilnindependent from face detection, that's for the heart halo filterr heh
#asahi-dev · 2023-08-14 11:53
eilnbeyond the normal exposure/saturation stuff, I notice skin tones are brightened
#asahi-dev · 2023-08-14 11:53
eilnon a vaguely related note, apple does some post-processing on the frames
#asahi-dev · 2023-08-14 11:40
chadmedbut its what apple does and seemingly every other microspeaker engineer on earth now so *shrug*
#asahi-dev · 2023-08-14 11:39
chadmeddoesnt help that using loudness compensation like this is not the "traditional" way youd use it :P
#asahi-dev · 2023-08-14 11:39
povikno worries
#asahi-dev · 2023-08-14 11:39
chadmedyeah sorry its hard to really explain unless youre actually in front of the thing and can hear whats going on

plus ›