#
✕ nick:eiln
#asahi-dev · 2023-09-01 09:59
eilnlmk if anyone with a M1 Pro+ (laptop) (running m1n1) has some free time
#asahi-dev · 2023-09-01 09:58
eilnjannau: I guess we'll have to support all of them :)
#asahi-dev · 2023-09-01 09:44
eilnmarcan: if we're gonna merge, with some traces I can add more dt nodes + soc init data. p sure h13s share the same sensor, so little problem there. already added boilerplate for m2 resolution work too.
#asahi-dev · 2023-08-31 11:10
eilnpr'd, typo
#asahi-dev · 2023-08-31 11:10
eilnpr
#asahi-dev · 2023-08-30 18:07
eilnneed a more intelligent way of determining the best crop
#asahi-dev · 2023-08-30 18:06
eilngoogle search suggests iphone8/se2 ish
#asahi-dev · 2023-08-30 18:06
eilnlooks the same, though a proper trace is needed for the power/gpio/iommu stuff & struct data
#asahi-dev · 2023-08-30 17:06
eilniaguis: thank you!
#asahi-dev · 2023-08-30 16:57
eilniaguis: do you mind opening/closing the photobooth app & running that command? preferrably after a fresh boot, but not is okay
#asahi-dev · 2023-08-30 16:57
eilnlog show --last 5m --info --debug | grep -iF camera
#asahi-dev · 2023-08-30 16:57
eilnf I can't find that one command with the predicates. were gonna do this the stupid way
#asahi-dev · 2023-08-30 16:43
eilniaguis: do you have the hw? if I can get a log (from macos) I can try
#asahi-dev · 2023-08-30 16:41
eilniaguis: not that much. all their cameras share the same driver, which is why this is as big as it is. we list sensors up to the XS Max (VD56G0), though we probably won't ever need that. probably just boilerplate with output presets & different filters, if required
#asahi-dev · 2023-08-30 16:08
eilnthis thing is a damn memory hog btw. fw requests about 0x9000000 in shared surfaces. dont think speed was their top priority
#asahi-dev · 2023-08-30 16:08
eilnalyssa: hopefully. rushing before the deadline, as always
#asahi-dev · 2023-08-30 15:46
eilnall their cameras share the same driver, so they cheaped out
#asahi-dev · 2023-08-30 15:42
eilnshould be same as iphone 5s specs, which says 1280 x 720 (30fps)
#asahi-dev · 2023-08-30 15:41
eilnjannau: precisely
#asahi-dev · 2023-08-30 15:32
eilnjannau: it's not really single planar, I just hacked it to get it working with the single planar api. to userland it's NV12. as for the frame rate that's what macos sets it as. will see if we can go higher, but all those filters do take time
#asahi-dev · 2023-08-30 15:22
eilnoke, will do
#asahi-dev · 2023-08-30 15:14
eilnPR?
#asahi-dev · 2023-08-30 15:14
eilncode isn't superb but I consider this usable
#asahi-dev · 2023-08-30 15:14
eilnffmpeg, vlc, gst all work ootb
#asahi-dev · 2023-08-30 15:14
eilnsingle planar api, no userspace patches, no loopback, 1280x720 33FPS, <1sec to first frame
#asahi-dev · 2023-08-30 15:14
eilnhttps://pasteboard.co/ty0Its6m3hcS.jpg
#asahi-dev · 2023-08-25 23:55
eilnit's close to real-time now
#asahi-dev · 2023-08-25 23:55
eilnnvm the timing thing was a regression
#asahi-dev · 2023-08-25 22:29
eilnI dont know if this or the multiplanar loopback is the less shittier option
#asahi-dev · 2023-08-25 22:29
eilnalso libv4l2 doesn't support nv12, which is causing a whole new class of bugs
#asahi-dev · 2023-08-25 22:29
eilnthe sw raw video decoder is also eating up cpu time
#asahi-dev · 2023-08-25 22:29
eilnsomething with the timings is really off now though. need to set -vf setpts=0, which gets us a solid 3s latency, worse than m1n1
#asahi-dev · 2023-08-25 22:29
eilnto isp it's still discontiguous nv12, but now that dma is not bound to 16K, we just set the chroma addr as the offset from "luma" :D
#asahi-dev · 2023-08-25 22:29
eilnthere was a flag I suspected meant alignment, which I used to coerce the second plane to be non-16K
#asahi-dev · 2023-08-25 22:29
eilnsingle planar mode can be faked
#asahi-dev · 2023-08-22 20:22
eiln:D
#asahi-dev · 2023-08-22 20:21
eilnwill be back online later tonight
#asahi-dev · 2023-08-22 20:21
eilnI'll create a PR once we figure out the dart shit in m1n1. that's a blocker for a lot of things rn
#asahi-dev · 2023-08-22 20:21
eilnit's bad when your branch names start to sound like main_final_final_v2_2_frfr.docx
#asahi-dev · 2023-08-22 20:21
eilnhttps://github.com/eiln/linux.git branch isp-08-23-23s, CONFIG_VIDEO_APPLE_ISP
#asahi-dev · 2023-08-22 20:21
eilnhttps://github.com/eiln/m1n1.git branch isp-dapf
#asahi-dev · 2023-08-22 20:21
eilnhttps://github.com/eiln/FFmpeg.git branch v4l2m
#asahi-dev · 2023-08-22 20:21
eilnbut eyeballs and testers welcome
#asahi-dev · 2023-08-22 20:20
eilnthere's some t8020-specific workarounds still being worked out
#asahi-dev · 2023-08-22 20:20
eilnpushed everything under ~/work
#asahi-dev · 2023-08-21 16:46
eilnI recall reading something similar (for the ane) on google zero day, except this is much stupider
#asahi-dev · 2023-08-21 16:43
eilncan I call CISP_CMD_CH_I2C_WRITE with IOConnectCallScalarMethod?
#asahi-dev · 2023-08-21 16:43
eilni was thinking, if the kext exports the command processor interface, the same one it uses
#asahi-dev · 2023-08-21 16:41
eilnit's there!
#asahi-dev · 2023-08-21 15:57
eilncritical system firmware.. like appleh13camerad

plus ›