#asahi-dev · 2023-12-02 11:09
jannegyes, I have t6020 macos traces with PMA_TXA_CAL_CTRL=0xf on LN1_AUSPMA_TX_SHM_TXA_IMP_REG0 (does it depend on the type-c orientation which lane pair is used for DP?)#asahi-dev · 2023-12-02 11:03
svenLN_TXA_CAL_CTRL_BASE you mean?#asahi-dev · 2023-12-02 11:02
jannegfor LN1_AUSPMA_TX_SHM_TXA_IMP_REG0 I see 0xf#asahi-dev · 2023-12-02 11:00
svenand I think the same n is used later for mask32(rx_shm + LN_AUSPMA_RX_SHM_TJ_RXA_SAVOS_CTRL16, LN_TX_CAL_CODE, FIELD_PREP(LN_TX_CAL_CODE, 6));#asahi-dev · 2023-12-02 11:00
svencould be related to the link rate somehow since we already know it at that point#asahi-dev · 2023-12-02 10:57
svenokay, so for me n = 6 always and you see 5 and 7#asahi-dev · 2023-12-02 10:56
jannegsven: I see 0x1f and 0x7f for logs which should be macos (possibly over different devices and displays). 0x3f seems to appear only in linux logs#asahi-dev · 2023-12-02 10:56
svenI think it's ~(-0x1 << n) and n has always been 5 for me. no idea what exactly n is though#asahi-dev · 2023-12-02 10:47
sveni'm trying to figure out where that number comes from#asahi-dev · 2023-12-02 10:47
svenwas that for all your displays?#asahi-dev · 2023-12-02 10:47
svenjanneg: mask32(tx_shm + LN_AUSPMA_TX_SHM_TXA_IMP_REG0, LN_TXA_CAL_CTRL, FIELD_PREP(LN_TXA_CAL_CTRL, 0x3f)); <-- you've seen 0x1f there, haven't you?#asahi-dev · 2023-12-01 23:31
nicolas17released yesterday#asahi-dev · 2023-12-01 23:31
nicolas17ditto Final Cut Pro 10.7#asahi-dev · 2023-12-01 23:30
nicolas17Compressor 4.7 "Export HEVC and H.264 files faster by simultaneously processing video segments across available media engines (requires macOS Sonoma or later and a Mac with Apple M1 Max, M1 Ultra, M2 Max, M2 Ultra, or M3 Max)."#asahi-dev · 2023-12-01 23:30
nicolas17yes#asahi-dev · 2023-12-01 23:29
nicolas17krbtgt: do you mean Final Cut Pro etc?#asahi-dev · 2023-12-01 23:20
jannegretrieving the EDID from dcp seems to be surprisingly simple#asahi-dev · 2023-12-01 23:16
jannegwasn't that a m2 max/ultra update at release with 13.x?#asahi-dev · 2023-12-01 23:12
krbtgthuh, the apple video apps got an update that apparently doees load balancing between encoders on SoCs w/ multiple... on 14+ only#asahi-dev · 2023-12-01 17:14
i509vcbIs what you want something closer to an extension to Vulkan that allows userspace to know what a device is a "video only" device?#asahi-dev · 2023-12-01 17:08
eilnthat's exactly what I'm not gonna do#asahi-dev · 2023-12-01 17:08
ChaosPrincessgl upstreaming that#asahi-dev · 2023-12-01 17:08
i509vcbI'd assume the driver could just have agx and the video encode/decode hardware both opened and manage whatever API stuff is related to interop#asahi-dev · 2023-12-01 17:05
i509vcbI assume the issue you are getting at is the video decoder is a seperate hardware unit?#asahi-dev · 2023-12-01 17:05
eiln"everything is a gpu" nvidia fault#asahi-dev · 2023-12-01 17:04
eilnwell we can't use it unless we can convince the vulkan people to support actual video decoders#asahi-dev · 2023-12-01 17:04
i509vcbKeyboard autocorrect has failed me many times before #asahi-dev · 2023-12-01 17:03
ChaosPrincessthats quite an insult#asahi-dev · 2023-12-01 17:03
i509vcb(really gboard)#asahi-dev · 2023-12-01 17:03
i509vcbErr eiln#asahi-dev · 2023-12-01 17:03
i509vcbElon: vulkan has some video decode/encode extensions now#asahi-dev · 2023-12-01 17:01
DannyBI wonder if there is some lockdown register#asahi-dev · 2023-12-01 17:01
eilni509vcb: me? this is the video decoder not gpu#asahi-dev · 2023-12-01 17:01
DannyBInteresting. Any MSR crashes it.#asahi-dev · 2023-12-01 16:56
DannyBStill can't quite trace macos on m3. Fixed most of the obvious issues, but it crashes executing msr's from the kernel#asahi-dev · 2023-12-01 16:42
i509vcbI guess Vulkan video in agxv will be something for the future... However the rest of the driver still needs to be done#asahi-dev · 2023-12-01 14:56
eilnhevc works, and I think it'll be done before vp9#asahi-dev · 2023-12-01 14:56
eilnstatus update#asahi-dev · 2023-12-01 13:41
svenonce they are powered up we only care about plug/unplug events, cable orientation and alternate mode changes #asahi-dev · 2023-12-01 13:40
svensounds reasonable, the old tipd chips are mostly standalone with Apple’s firmware #asahi-dev · 2023-12-01 13:39
DannyBbut we'll see#asahi-dev · 2023-12-01 13:39
DannyBI found the debug flags for HPM over SPMI (too lazy to trace it), and it doesn't actually look that bad to make work. It looks at a glance like they do identical things to the ports, just tunneled over SPMI instead of I2C.#asahi-dev · 2023-11-30 22:40
nicolas17I thought M1 and M2 were only used on the 13", and the 14" started on M1/M2 Pro#asahi-dev · 2023-11-30 22:39
nicolas17janneg: ...was there a m1/m2 macbook pro 14"?#asahi-dev · 2023-11-30 22:36
DannyBlol#asahi-dev · 2023-11-30 22:36
DannyBthey read all the entries and see which has the state string "running"#asahi-dev · 2023-11-30 22:36
DannyBactually, xnu does it a super funny way#asahi-dev · 2023-11-30 22:22
DannyBokay, this will be esay#asahi-dev · 2023-11-30 22:22
DannyBoh they aren't, duh#asahi-dev · 2023-11-30 22:22
DannyBi didn't think to check whether the other AFF bits are the cluster and die