#
#asahi-dev · 2023-01-01 17:34
svenkettenis: all the thunderbolt tunables are 32bit masks as well so I’ll stick to the current atcphy format
#asahi-dev · 2023-01-01 17:09
jannauand premultiplied is set for the yuv surface
#asahi-dev · 2023-01-01 17:03
jannauenabling the yuv overlay looks a little strange. the UI switches from surface 0 to surface 1, surface 0 is cleared and unk_10c/bg_color in swap rec is set to 0xff000000 (it is usually 0x0)
#asahi-dev · 2023-01-01 16:54
jannaumarcan: either I tested only with the media player or I misremember things. safari with vp9 video from youtube uses '&8v0' tiled 8-bit nv12
#asahi-dev · 2023-01-01 16:53
ChaosPrincessmarcan: tyvm, config_expert was the thing i was missing
#asahi-dev · 2023-01-01 16:47
marcanaw, I guess I was giving apple too much credit
#asahi-dev · 2023-01-01 16:45
jannauI haven't seen yuv surfaces with windowed video playback
#asahi-dev · 2023-01-01 16:43
kettenismarcan: note that my measurements are with the clusters already in their lowest P-state
#asahi-dev · 2023-01-01 16:42
marcanbut not windowed?
#asahi-dev · 2023-01-01 16:42
jannauvia dcp
#asahi-dev · 2023-01-01 16:42
jannauthey output yuv surfaces for fullscreen video
#asahi-dev · 2023-01-01 16:41
marcansomeone benchmarked it as having the GPU completely off while playing video
#asahi-dev · 2023-01-01 16:41
marcanjannau: safari is supposed to (at least with the right codecs)
#asahi-dev · 2023-01-01 16:40
jannaus/I/A/
#asahi-dev · 2023-01-01 16:40
marcankettenis: we know at least uncore is clocked in shallow WFI mode since it burns significantly more power on higher pstates, so I still expect more savings since it should at the very least stop the clock to the cluster entirely if all cores are in deep idle
#asahi-dev · 2023-01-01 16:40
jannauI pity that macos' window sytem doesn't support overlays. not even the native media player or safari are using underlays or overlays for video
#asahi-dev · 2023-01-01 16:38
jannauthere's A006/A007 set_csc_mode / set_op_mode, A044 set_blendout_CSC_mode, A111 vftg_set_color_channels which are tangentially related
#asahi-dev · 2023-01-01 16:36
kettenisso that doesn't make me think this is a really deep idle state
#asahi-dev · 2023-01-01 16:36
kettenisbut we only lose (most of) the GPRs in that state; not the system registers, TLBs and caches
#asahi-dev · 2023-01-01 16:35
kettenisthat gives somewhere between 0.1 and 0.15 W extra power savings I'd say, but indeed I'd expect more if the whole cluster was powered down
#asahi-dev · 2023-01-01 16:34
kettenismarcan: I'm fairly confident my secondary cores are in WFI with the "ok2pwrdn_force_down" bits set in SYS_IMP_APL_CYC_OVRD
#asahi-dev · 2023-01-01 16:32
jannauI didn't spot anything obvious in the unused Calls. color_remap_mode has 2 bits for invert and luminance only
#asahi-dev · 2023-01-01 16:30
marcanjannau: can't find anything :(
#asahi-dev · 2023-01-01 16:28
marcanthe sysfs interface is deprecated and no longer buildable without CONFIG_EXPERT
#asahi-dev · 2023-01-01 16:28
marcanChaosPrincess: use the chardev interface
#asahi-dev · 2023-01-01 16:19
kettenisif you can't find someone who knows how this works in Linux, you might want to take a look at the gpio drivers for the SoCs used on $FRUIT pi boards
#asahi-dev · 2023-01-01 16:17
ChaosPrincesss/sysfs device/sysfs file/
#asahi-dev · 2023-01-01 16:17
ChaosPrincessyea, the problem is that there is no 'export' sysfs device anywhere near pinctrl
#asahi-dev · 2023-01-01 16:16
kettenisexporting gpios to userland is certainly possible in Linux, but it may require a little bit of additional code to the relevant drivers
#asahi-dev · 2023-01-01 16:14
ChaosPrincessbasically, there is a spi device which seems to require an external cs pin
#asahi-dev · 2023-01-01 16:13
ChaosPrincessi want a gpio exported to do some userspace driver prototyping
#asahi-dev · 2023-01-01 16:11
kettenisbut beyond exporting gpios, I don't think linux has any infrastructure for this
#asahi-dev · 2023-01-01 16:11
kettenisI can't think of a good reason why you'd want to do so
#asahi-dev · 2023-01-01 16:01
ChaosPrincessis there some way to export pins from pinctrl_ap to userspac ?
#asahi-dev · 2023-01-01 16:00
marcanunk_10c in the swap_rec is bg_color, which if nothing else is useful to test the alpha
#asahi-dev · 2023-01-01 16:00
marcannow I'm just trying random stuff
#asahi-dev · 2023-01-01 15:59
marcanthose are just aliases as far as the pixel format is concerned
#asahi-dev · 2023-01-01 15:59
marcanno idea
#asahi-dev · 2023-01-01 15:57
jannauany idea what the '[' in the fourcc means? '&' signifies tiled formats
#asahi-dev · 2023-01-01 15:55
jannaumarcan: thanks. we have two u32 arrays which seem to contain flags for each surface in the swap struct
#asahi-dev · 2023-01-01 15:48
sventhunderbolt-applesoc 501f00000.nhi: RTKit: IOP power state transition: 0x0 -> 0x20 <-- I think I was at that point before sometime last year but I'm still gonna count this as progress :)
#asahi-dev · 2023-01-01 15:39
marcanit could still be somewhere other than the IOSurface struct though
#asahi-dev · 2023-01-01 15:36
marcanjannau: https://gist.github.com/marcan/d93ebdffce5b36be9aaa06079a60503f tried to work out more of the DCP formats. I don't see an alpha enable nor any non-alpha 8bit RGB formats.
#asahi-dev · 2023-01-01 15:33
marcanit wouldn't lose state if it didn't actively shut down power to something
#asahi-dev · 2023-01-01 15:33
marcankettenis: I expect the cluster to actually power down in deep WFI (that's why it loses state)
#asahi-dev · 2023-01-01 13:20
ketteniswhen idle (now with the screen off)
#asahi-dev · 2023-01-01 13:20
kettenisSYS 6643164, CPU 3820596
#asahi-dev · 2023-01-01 13:20
ketteniswhen suspended
#asahi-dev · 2023-01-01 13:20
kettenisSYS 4574661, CPU 2538621
#asahi-dev · 2023-01-01 13:19
kettenisoh, actually those figures were measured with a usb cable connected causing the machine to think power is connected

plus ›