#
✕ nick:jannau
#asahi-dev · 2026-03-14 08:22
jannauI wouldn't start looking at iboot for cpu frequency handling but before you start looking at any apple binaries please read and understand the copyright and reverse engineering policy https://asahilinux.org/copyright/
#asahi-dev · 2026-03-14 08:20
jannauxarkes: I think the offsets for m1-m3 were discovered by tracing macos
#asahi-dev · 2026-03-14 08:20
jannauxarkes: I guess it's not really necessary anymore now that chainload writes the new image to same location. I'm not sure whether the secondaries can wake spuriously but in that case it would be preferable to use the current RVBAR
#asahi-dev · 2026-03-13 21:42
jannauusb-c to displayport input should work
#asahi-dev · 2026-03-13 21:41
jannauif it is a thunderbolt/usb4 input apple's type-c port controller will use thunderbolt and we have to tunnel displayport over it. This is something completely different than dp-altmode
#asahi-dev · 2026-03-13 21:31
jannauhelpful to define debug in pmgr-pwrstate and see what actually happens
#asahi-dev · 2026-03-13 21:29
jannauno, pmp crashes without "apple,always-on" in ps_pms_sram
#asahi-dev · 2026-03-13 21:23
jannauI think the sram shouldn't be powered down due to "apple,always-on" in one of its children
#asahi-dev · 2026-03-13 21:22
jannauor am I mixing it up with runtime-pm?
#asahi-dev · 2026-03-13 21:18
jannaunot automatically, would need to be implemented explicitly in each driver using rtkit
#asahi-dev · 2026-03-13 21:14
jannaucrash is gone with always-on ps_pmp{,_sram}
#asahi-dev · 2026-03-13 21:11
jannauif my recollection is correct we probably broke it during smc upstreaming
#asahi-dev · 2026-03-13 21:09
jannauI think smc log_power was previously logging during suspend no_console_suspend
#asahi-dev · 2026-03-13 21:06
jannauno, without always-on
#asahi-dev · 2026-03-13 21:06
jannauhard to tell how much power it saves while active and 5% dispaly brightness but for directly after suspend it's from 6W down to 4W
#asahi-dev · 2026-03-13 21:04
jannaupmp still crashes after waking from suspend
#asahi-dev · 2026-03-13 21:00
jannaubut it looks like the pmp reporting reduced power use
#asahi-dev · 2026-03-13 20:59
jannauargh. I forgot to enable pmp
#asahi-dev · 2026-03-13 20:55
jannauseems to save 2-2.5 W
#asahi-dev · 2026-03-13 20:54
jannauchaos_princess: that seems to work. Are you interested in the logged values?
#asahi-dev · 2026-03-13 18:04
jannauchaos_princess: https://gist.github.com/jannau/e8b984da2223537af9789191cd10b598 full boot to login screen and restart
#asahi-dev · 2026-03-13 13:04
jannaufull boot (and sleep) trace: https://gist.github.com/jannau/0401fb9885ebbe97e4e0ea482381e4d9
#asahi-dev · 2026-03-13 13:03
jannaum1 max 14-inch macbook pro, dfu port used for tracing, other type-c ports have yubikey and usb3 ethernet adapter. no hdmi connected
#asahi-dev · 2026-03-13 12:57
jannaugetting further
#asahi-dev · 2026-03-13 12:55
jannauthe one you gave me for getting the pmgr registers for pmp
#asahi-dev · 2026-03-13 12:50
jannauchaos_princess: macos panics early during boot briefly after "[PMP:io.cpp:41] PMP started" trace output untiol then: https://gist.github.com/jannau/08eefe137185d0d6c9b8e26acfa0c352
#asahi-dev · 2026-03-13 12:08
jannaurun_guest can't interrupt and the internal display show an insterestiung flickering pattern
#asahi-dev · 2026-03-13 12:07
jannauchaos_princess: pmp is busted on t6001. it crashes either during or immediately after suspend. It stops crashing if I make ps_pmp and ps_pmp_sram always-on. That results however in a system freeze ~5 seconds after existing suspend
#asahi-dev · 2026-03-12 12:15
jannauyes
#asahi-dev · 2026-03-12 12:13
jannauoliver: depends on the resolution, the DP2HDMI converter in M1* devices is only HDMI 2.0, limited to 4k 60Hz and no DSC
#asahi-dev · 2026-03-11 19:58
jannauyeah, I've seen. yes, even the 26.3.2 template ADT from the IPSW still has "compatible = [wlan-pcie,bcm4387, wlan-pcie,bcm]"
#asahi-dev · 2026-03-11 16:04
jannaunicolas17: mediatek wlan/bt for the macbook neo
#asahi-dev · 2026-03-11 13:40
jannauI also mostly reboot before trying to remember how reload works
#asahi-dev · 2026-03-11 13:39
jannausunrise is mediatek 0x7932 closest match with linux driver is MT7922 (macbook neo)
#asahi-dev · 2026-03-07 17:57
jannauFiniteCode[m]: you mean https://github.com/AsahiLinux/linux/pull/445 ? Not my PR, I just reviewed and waiting for IntegralPilot to address the review comments
#asahi-dev · 2026-03-07 17:15
jannauwe want to support 14.x firmware on all devices once we bring up DCP for M3 devices
#asahi-dev · 2026-03-07 17:13
jannauah, the one in main. I was thinking of the one in hv_init(): `display_shutdown(DCP_QUIESCED)`
#asahi-dev · 2026-03-07 16:56
jannauI think the issue wasn't the sleep state itself
#asahi-dev · 2026-03-07 16:55
jannauwhich comment? I'm trying to remember what macos does to bring dcp up
#asahi-dev · 2026-03-07 15:24
jannauon m2 we're using dcpext in m1n1 to workaround this
#asahi-dev · 2026-03-07 15:22
jannaumacos is unfortunately not longer able to bring DCP up from the sleep state m1n1 puts it. I was already a problem with m2* mini and the 13.5 firmware
#asahi-dev · 2026-03-07 15:15
jannaunoopwafel: not coming up in which scenario? booting linux, booting macos under HV?
#asahi-dev · 2026-03-06 12:15
jannaueventually our modifiers will be reported with names: https://gitlab.freedesktop.org/mesa/libdrm/-/merge_requests/454
#asahi-dev · 2026-03-06 12:15
jannauah, I thought you updated kernel and/or mesa and got a weird rendered picture
#asahi-dev · 2026-03-06 11:41
jannauwith interchange cursor overlay?
#asahi-dev · 2026-03-06 11:12
jannauquestionable if the GPU modifier work for YUV but possible as those support 1 and 2 as element size. kwin does the same with P010 and NV12
#asahi-dev · 2026-03-06 11:09
jannauwhy does it report interchange for YUV formats? that looks like a bug in either mutter or mesa or a limitation in the method how the valid format / modifier combinations are queried
#asahi-dev · 2026-03-06 10:13
jannauoliver: does gnome/mutter report a scanout tranche for zwp_linux_dmabuf_v1? check with wayland-info
#asahi-dev · 2026-03-06 10:12
jannauoliver: it might be actually the correct thing as it is required for direct scan-out of windows
#asahi-dev · 2026-03-06 09:47
jannauexternal buffer probably means allocated on a different device (or dma_heap)

plus ›