#asahi-dev · 2025-12-18 22:09
jannauyou can if you're interested in finding the the sense behind the timestamps and/or VRR. I've asked mostly out of curiosity at this point #asahi-dev · 2025-12-18 22:05
oliver_Only just briefly, I couldnt quickly make sense of it, and i didn't need it to get to 120hz. But I can check again #asahi-dev · 2025-12-18 22:00
jannauoliver_: did you look at the values of `ts64_unk`? at least at some point it looked like it might be a timestamp as well. I don't remember the details though#asahi-dev · 2025-12-18 21:57
b074where can I find more information about the debug DWARF structure? I'm trying to load the t6030 dev kernel, but the MachO structure does not contain a UNIXTHREAD cmd type#asahi-dev · 2025-12-18 21:54
jannauthanks, I'll probably will only merge it for 6.18#asahi-dev · 2025-12-18 21:52
oliver_jannau: i've updated the pr#asahi-dev · 2025-12-18 21:14
jannauthe application sets min and max refresh rate properties#asahi-dev · 2025-12-18 21:13
oliver_dcp_swap_submit is already called only when needed, as far as i see.#asahi-dev · 2025-12-18 21:12
chaos_princessok, but how does the drm core communicates the refresh rate it wants? Does it just call the page flip function at a variable rate and expects that to happen?#asahi-dev · 2025-12-18 21:12
jannaunot sure how to determine with the internal displays that they are actually running with VRR#asahi-dev · 2025-12-18 21:11
jannauchaos_princess: the driver needs to set a vrr property on the connector and I think we need a EDID#asahi-dev · 2025-12-18 21:10
oliver_yea, i'll do that and test it again#asahi-dev · 2025-12-18 21:09
jannauideally only for the 120HZ macbook modes#asahi-dev · 2025-12-18 21:08
oliver_ok#asahi-dev · 2025-12-18 21:08
jannausetting them to the meaningless value 120#asahi-dev · 2025-12-18 21:07
oliver_jannau: set them to a fixed (meaningless value of) 120 you mean? or mimic what macos does, increment the timer by 8.33ms on each submit?#asahi-dev · 2025-12-18 21:07
chaos_princessno, not asking "why would you want vrr", but rather "what features should hardware expose in order for linux to drive it in vrr mode"#asahi-dev · 2025-12-18 21:06
jannaupower saving. probably doesn't matter overall at the current state of Pro/Max macbooks#asahi-dev · 2025-12-18 21:04
chaos_princesswhat does one need for vrr?#asahi-dev · 2025-12-18 21:03
jannaumeh. not really closer to VRR then :(. let's set them to 120 for now and enable the 120Hz mode#asahi-dev · 2025-12-18 21:02
chaos_princessvrr?#asahi-dev · 2025-12-18 21:02
chaos_princesswhat are those for then?#asahi-dev · 2025-12-18 21:01
chaos_princesslol?#asahi-dev · 2025-12-18 20:58
oliver_well, after some more experimentation, it seems that the dcp does not care much about the values in the three timestamp fields as long as they are non zero. even if i set them all to 1 i get smooth 120hz.#asahi-dev · 2025-12-18 19:29
jnusually they're already available as a livestream and in "relive" (livestream dumps that haven't been finalized yet)#asahi-dev · 2025-12-18 18:40
oliver_I was playing with the idea of coming too, I actually live in Hamburg. But looks like it is already sold out. #asahi-dev · 2025-12-18 18:38
weirdtreethingi can't wait to watch the talk#asahi-dev · 2025-12-18 18:38
svenusually they’re all available in early January #asahi-dev · 2025-12-18 18:37
svenyes#asahi-dev · 2025-12-18 18:37
oliver_sven: will your talk be recorded? #asahi-dev · 2025-12-18 17:27
nickchanand for later stages the FDT can uncurse everything#asahi-dev · 2025-12-18 17:26
nickchansaving grace is for these socs SMC/ANS/SEP are the only relvant ones in m1n1#asahi-dev · 2025-12-18 17:23
nickchancan have multiple things with the same compatibles and then have 2 different ways of starting the cpu#asahi-dev · 2025-12-18 17:23
nickchanpre-M1 IOP situation regarding mailbox and cpu on/off is all sorts of nonsense :(#asahi-dev · 2025-12-18 17:20
chaos_princesseveryone cool is going to c3 :(#asahi-dev · 2025-12-18 17:18
svenelly will also be there. She’s also trying to get me to finish slides before so that I have time to hack :D#asahi-dev · 2025-12-18 17:18
svensure, I’m not gonna do all the work though but I’m happy to help #asahi-dev · 2025-12-18 12:54
fl0_idsven if I do make it to c3 ( not sure yet ) would also be up for some m3 hacking (or at least testing etc)#asahi-dev · 2025-12-18 12:03
jannaubut yes. for a start tou could look at do a trace_device and/or trace_range in the hypervisor#asahi-dev · 2025-12-18 12:01
jannaunot quite. the reg values have to be translated by based on /arm-io/ranges m1n1's adt code already does this#asahi-dev · 2025-12-18 11:59
oliver_I interpret the first one as 0x4000 bytes at 0x38bc00000, which are also the values i would use with RegMonitor, is that correct?#asahi-dev · 2025-12-18 11:59
oliver_regarding the mmio in the adt, are we talking about the `reg` definitions in here?: https://github.com/AsahiLinux/linux/blob/773401986194d732f8f8a3b18b50d46d469a5dee/arch/arm64/boot/dts/apple/t600x-die0.dtsi#L330#asahi-dev · 2025-12-18 11:37
oliver_if the dcp would keep time in sync with the cpu, and macos reads and uses that time for swap_submit requests, then i would not get a perfect 8.33ms between each submit#asahi-dev · 2025-12-18 11:34
chadmedwe still havent really investigated timesync either right#asahi-dev · 2025-12-18 11:33
chadmedbut i would think (perhaps incorrectly) that if dcp were keeping time out of band with whatever the cpus are doing then it would keep ticking even while waiting for a swap to complete#asahi-dev · 2025-12-18 11:32
chadmedthe ADT #asahi-dev · 2025-12-18 11:31
chadmedbeen a while since but iirc macos does not like being halted for too long though#asahi-dev · 2025-12-18 11:31
oliver_okay, and where can i find some information about what memory regions belong to the dcp? #asahi-dev · 2025-12-18 11:30
chadmedor if you just want to poke around at a point in time you can break into the hypervisor on the serial console with ctrl+c and use the same functionality like an old school memory monitor#asahi-dev · 2025-12-18 11:29
chadmedhave a look at how some of the stuff in proxyclient/experiments interact with RegMonitor