#
✕ nick:eiln
#asahi-dev · 2023-08-16 17:21
eilngood fucking god
#asahi-dev · 2023-08-16 17:21
eilnhttps://elixir.bootlin.com/linux/v6.4.10/source/drivers/media/common/videobuf2/videobuf2-memops.c#L37
#asahi-dev · 2023-08-16 17:21
eilnbut userptr faults, so naturally I checked the vb2_dma_sg_memops backend
#asahi-dev · 2023-08-16 17:21
eilnv4l2-ctl mmap stream works
#asahi-dev · 2023-08-16 12:39
eilnshiny pokemon https://i.ibb.co/Kx79t6F/IMG-9927.jpg
#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: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 17:52
eilndsharshakov: thank you, will look into it
#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: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 09:35
eilnI'll just patch adt to match the sio struct. I have to add another range for the firmware heap anyway
#asahi-dev · 2023-08-14 08:27
eilnjannau: I'll build on the sio-loader branch for now
#asahi-dev · 2023-08-13 12:34
eilnmarcan: got that. one of the first things I (hastily) did and forgot about it
#asahi-dev · 2023-08-12 20:52
eilnaaa I need sleep
#asahi-dev · 2023-08-12 20:49
eilnmarcan: both 12.3 & 13.5 work. locked heap size changes between versions though (not in dt). 13.5 gets some new filters & sensor configs, that's about it
#asahi-dev · 2023-08-12 16:35
eilnstage 2 fails after a pink screen, getting "The version of macOS on the selected disk needs to be reinstalled"
#asahi-dev · 2023-08-12 16:35
eilnmarcan: I just upgraded to ventura, tried to install 13.5 tether
#asahi-dev · 2023-08-12 15:21
eilntwice
#asahi-dev · 2023-08-12 15:21
eilnfor ISP it's u64 phys, u64 iova, u64 unk, u32 size, u32 pad
#asahi-dev · 2023-08-12 15:20
eilnjannau: the segment ranges struct is different
#asahi-dev · 2023-08-12 15:10
eilnthank you
#asahi-dev · 2023-08-12 15:10
eilnjannau: that and a private heap. I'm referencing dcp.c rn
#asahi-dev · 2023-08-12 15:05
eilnthe issue is the initial firmware pte & locked region setup, which I thought was constant so I hardcoded
#asahi-dev · 2023-08-12 15:03
eilnfuck do I have to install ventura
#asahi-dev · 2023-08-12 14:58
eiln13.2 I haven't looked at, should be fine
#asahi-dev · 2023-08-12 14:58
eilnmarcan: 12.3 runs, fixing mini to support ctrr region
#asahi-dev · 2023-08-12 10:15
eilnIt faults at the end of __TEXT. This is probably it.
#asahi-dev · 2023-08-12 10:11
eilnso I guess we'll have to do keep that always-on & dart-map it in mini
#asahi-dev · 2023-08-12 10:11
eilnThe firmware & pagetable mapping (they call it ctrr/ctrr locked region) persists as long as ISP_SYS is kept on
#asahi-dev · 2023-08-12 10:05
eilntemplate. this might be an issue
#asahi-dev · 2023-08-12 09:58
eilnChaosPrincess: what firmware version are you on? I'm looking at an old copy of 12.3 dt (ipsw currently downloading) and the segment-ranges property in the isp node seem to be missing
#asahi-dev · 2023-08-11 20:10
eilnnew and exciting ways of fucking up, go me
#asahi-dev · 2023-08-11 20:09
eilnin the meantime this https://pastebin.com/msr22nuw trace would be really helpful
#asahi-dev · 2023-08-11 20:09
eilnI'm fairly certain it's the ctrr setup that's different
#asahi-dev · 2023-08-11 20:09
eilnI'm trying again but 12.3 doesn't seem to be an option anymore
#asahi-dev · 2023-08-11 17:03
eilnohmyhod
#asahi-dev · 2023-08-11 17:03
eilnTTY> OS FW version: 12.5 (iBoot-7459.141.1)
#asahi-dev · 2023-08-11 17:02
eilnI just remembered the 12.3 installer was borked
#asahi-dev · 2023-08-11 17:02
eilnand I was getting firmware errors I've never even *seen* before
#asahi-dev · 2023-08-11 17:02
eilnI got ffplay working so I installed the same kernel on my asahi partition
#asahi-dev · 2023-08-11 17:02
eilnoh my fucking god
#asahi-dev · 2023-08-07 09:04
eilnpower on is the same, only power down needs special handling
#asahi-dev · 2023-08-07 09:04
eilnit's w32(reg, r32(reg) | ps->pre_state), *then* w32(reg, APPLE_PMGR_PS_PWRGATE)
#asahi-dev · 2023-08-07 09:04
eilnmarcan: I added an "apple,pre-state" flag in the three isp pmgr nodes
#asahi-dev · 2023-08-07 09:04
eilnalso I got suspend working over the weekend
#asahi-dev · 2023-08-07 09:03
eilnjust GIL'd that and now it doesn't act funny every fifth run

plus ›