2025-12-16
00:02hdbngr has joined #asahi-dev
00:11hdbngr has quit [Ping timeout: 480 seconds]
00:19hdbngr has joined #asahi-dev
00:30hdbngr has quit [Ping timeout: 480 seconds]
00:38mixi has quit [Ping timeout: 480 seconds]
00:39hdbngr has joined #asahi-dev
00:48hdbngr has quit [Ping timeout: 480 seconds]
00:48mixi has joined #asahi-dev
00:55hdbngr has joined #asahi-dev
01:04hdbngr has quit [Ping timeout: 480 seconds]
01:12hdbngr has joined #asahi-dev
01:21hdbngr has quit [Ping timeout: 480 seconds]
01:29hdbngr has joined #asahi-dev
01:38hdbngr has quit [Ping timeout: 480 seconds]
01:45hdbngr has joined #asahi-dev
01:50chadmed has quit [Quit: Konversation terminated!]
01:50chadmed has joined #asahi-dev
01:54hdbngr has quit [Ping timeout: 480 seconds]
02:02hdbngr has joined #asahi-dev
02:11hdbngr has quit [Ping timeout: 480 seconds]
02:20hdbngr has joined #asahi-dev
02:28hdbngr has quit [Ping timeout: 480 seconds]
02:37hdbngr has joined #asahi-dev
02:46hdbngr has quit [Ping timeout: 480 seconds]
02:54hdbngr has joined #asahi-dev
02:58knorkle has quit [Quit: knorkle out]
03:00knorkle has joined #asahi-dev
03:02knorkle has quit []
03:02knorkle has joined #asahi-dev
03:02hdbngr has quit [Ping timeout: 480 seconds]
03:05pb17 has quit [Ping timeout: 480 seconds]
03:06troseman has quit [Ping timeout: 480 seconds]
03:10hdbngr has joined #asahi-dev
03:19hdbngr has quit [Ping timeout: 480 seconds]
03:28hdbngr has joined #asahi-dev
03:36tobhe_ has joined #asahi-dev
03:37hdbngr has quit [Ping timeout: 480 seconds]
03:38pb17 has joined #asahi-dev
03:43tobhe has quit [Ping timeout: 480 seconds]
03:45hdbngr has joined #asahi-dev
03:53hdbngr has quit [Ping timeout: 480 seconds]
04:02hdbngr has joined #asahi-dev
04:10hdbngr has quit [Ping timeout: 480 seconds]
04:18hdbngr has joined #asahi-dev
04:27hdbngr has quit [Ping timeout: 480 seconds]
04:27marvin24 has joined #asahi-dev
04:29eluks has quit [Remote host closed the connection]
04:30eluks has joined #asahi-dev
04:34hdbngr has joined #asahi-dev
04:43hdbngr has quit [Ping timeout: 480 seconds]
04:51hdbngr has joined #asahi-dev
04:54nora has joined #asahi-dev
04:56nora_ has quit [Ping timeout: 480 seconds]
04:59hdbngr has quit [Ping timeout: 480 seconds]
05:00Pokemod977362084712 has quit []
05:01hdbngr has joined #asahi-dev
05:05Pokemod977362084712 has joined #asahi-dev
05:09hdbngr has quit [Ping timeout: 480 seconds]
05:18hdbngr has joined #asahi-dev
05:33hdbngr has quit [Ping timeout: 480 seconds]
05:40hdbngr has joined #asahi-dev
05:49hdbngr has quit [Ping timeout: 480 seconds]
05:56hdbngr has joined #asahi-dev
06:09hdbngr has quit [Ping timeout: 480 seconds]
06:17hdbngr has joined #asahi-dev
06:25hdbngr has quit [Ping timeout: 480 seconds]
06:33hdbngr has joined #asahi-dev
06:41hdbngr has quit [Ping timeout: 480 seconds]
06:50hdbngr has joined #asahi-dev
06:58hdbngr has quit [Ping timeout: 480 seconds]
07:02hdbngr has joined #asahi-dev
07:07croissant has quit [Ping timeout: 480 seconds]
07:10hdbngr has quit [Ping timeout: 480 seconds]
07:17hdbngr has joined #asahi-dev
07:25hdbngr has quit [Ping timeout: 480 seconds]
07:33hdbngr has joined #asahi-dev
07:41hdbngr has quit [Ping timeout: 480 seconds]
07:44hamr8 has quit [Ping timeout: 480 seconds]
07:49hdbngr has joined #asahi-dev
07:52ravikant_ has joined #asahi-dev
07:53hamr8 has joined #asahi-dev
07:58hdbngr has quit [Ping timeout: 480 seconds]
08:03hdbngr has joined #asahi-dev
08:12hdbngr has quit [Ping timeout: 480 seconds]
08:20hdbngr has joined #asahi-dev
08:28seb_ has joined #asahi-dev
08:29hdbngr has quit [Ping timeout: 480 seconds]
08:38hdbngr has joined #asahi-dev
08:46hdbngr has quit [Ping timeout: 480 seconds]
08:54hdbngr has joined #asahi-dev
08:56seb_ has quit [Quit: Konversation terminated!]
09:03hdbngr has quit [Ping timeout: 480 seconds]
09:04hdbngr has joined #asahi-dev
09:12hdbngr has quit [Ping timeout: 480 seconds]
09:21hdbngr has joined #asahi-dev
09:29hdbngr has quit [Ping timeout: 480 seconds]
09:37hdbngr has joined #asahi-dev
09:42seb_ has joined #asahi-dev
09:57hdbngr has quit [Ping timeout: 480 seconds]
10:05hdbngr has joined #asahi-dev
10:13hdbngr has quit [Ping timeout: 480 seconds]
10:22hdbngr has joined #asahi-dev
10:31oliver has quit [Quit: oliver]
10:36hdbngr has quit [Ping timeout: 480 seconds]
10:38hdbngr has joined #asahi-dev
10:47oliver has joined #asahi-dev
10:47hdbngr has quit [Ping timeout: 480 seconds]
10:50hdbngr has joined #asahi-dev
11:03hdbngr has quit [Ping timeout: 480 seconds]
11:05seb_ has quit [Quit: Konversation terminated!]
11:06seb_ has joined #asahi-dev
11:10hdbngr has joined #asahi-dev
11:13pb17 has quit [Ping timeout: 480 seconds]
11:13croissant has joined #asahi-dev
11:19hdbngr has quit [Ping timeout: 480 seconds]
11:20pb17 has joined #asahi-dev
11:24hdbngr has joined #asahi-dev
11:33hdbngr has quit [Ping timeout: 480 seconds]
11:40hdbngr has joined #asahi-dev
11:43oliver_you're now probably telling me that this is nice but there are other issues that I dont know about why this was disabled. bring it on!
11:43chaos_princesshell yes
11:45chaos_princessoliver_: the only other issue i see is that you might want to look into something called "timesync", there is a separate mmio region on some coprocessors that contains the 24mhz clock from the coprocessor's perspective
11:46chaos_princessand, i would be interested in how the constants were derived
11:47chaos_princessthat would be constant
11:49hdbngr has quit [Ping timeout: 480 seconds]
11:52oliver_chaos_princess: i am new to the kernel stuff, but the 24mhz fits neatly with the conversion factor of 41.67 that i need to use. would the timesync thing be useful ensure that the dcp clock does not drift from the kernels ktime_get_ns clock?
11:53chaos_princessoliver_: 24mhz is the "standard apple clock rate". and yes, macos reads timesync before every frame submit
11:54chaos_princessit will
11:54chaos_princessin theory you want proper vrr, the display can go as low as 10 hz
11:55oliver_chaos_princess: i see. is that already in the kernel? then i can have a look into that the the next few days
11:55chaos_princesstimesync? no, but it is just yet another mmio on the dcp, look for the smallest one, iirc it was that one
11:56chaos_princessalso, where did 16660000 and 40000000 come from
11:56hdbngr has joined #asahi-dev
11:56chaos_princessi assume ts1 is present time and ts2 is render completion time?
11:57oliver_yea, i've just graphed the dcp trace values and looked for anything that looked like a pattern.
11:58chaos_princess1s/16ms is 60-ish
11:58chaos_princessso, that is probably fine?
11:59chaos_princessoliver_: what was on screen when you got those values?
12:00chaos_princessi mean in macos
12:00chaos_princessits probably running at 60hz at that point
12:01chaos_princesssince macos only runs at 120hz when something wants it
12:01chaos_princesstry making sure you have 120hz content on the screen
12:01chaos_princess(something tells me the offsets will change)
12:03oliver_and i have a second laptop with a 120hz screen here where i could reproduce the results of the test programm on a non-macbook
12:03chaos_princesssomething tells me ts1 is the "desired presentation time"
12:03chaos_princessso, you are running at 120hz, but with 60hz worth of latency
12:04chaos_princessor do the test i proposed :P
12:05hdbngr has quit [Ping timeout: 480 seconds]
12:09chaos_princessi think so
12:09chaos_princessnot even pll but a simple scale
12:12oliver_thanks guys, i'll have a look tomorrow and will adjust the constants. i'll probably have some questions regarding the mmio regions.
12:12hdbngr has joined #asahi-dev
12:12oliver has quit [Quit: oliver]
12:15chadmedi dont think we support uncompressed planar yuv though and i really dont want to RE apple's NIHed compressed fb formats
12:24hdbngr has quit [Ping timeout: 480 seconds]
12:26svenchadmed: rtc bindings are already upstream, aren't they? i'll already pick up that dts change then
12:29hdbngr has joined #asahi-dev
12:29jannauoliver_: great work. when I traced macos the timestamp fields weren't set consistently. iirc they were often unset
12:31chadmedsven: yep binding and driver got picked up. only the mfd patch and adding the dts subnode need merging now
12:32jannauhas anyone a good idea to measure latency? but I guess if there's no corruption it means the surfaces aren't held multiple frame updates
12:33chaos_princessjannau: are you willing to buy stuff, and probably sacrifice a mouse
12:35svenchadmed: at least it's only the pin for my primary yubikey, leaking it doesn't hurt unless someone also managed to steal that one within the last 5 minutes :D
12:36leiojannau: something similar to https://bxt.rs/blog/just-how-much-faster-are-the-gnome-46-terminals/ maybe?
12:37hdbngr has quit [Ping timeout: 480 seconds]
12:38ravikant_ has quit [Ping timeout: 480 seconds]
12:39oliver has joined #asahi-dev
12:40svenchadmed: dunno if guenter is going to pick up the hwmon dt-bindings but i can otherwise take them together with the dts changes if he doesn't want to once you fix that new yamllint warning
12:41oliver has left #asahi-dev [#asahi-dev]
12:41jannauideally I want to measure the time from DRM KMS page flip to screen update but I guess the wait time for the flip can be averaged out
12:43chaos_princessget a microcontroller with a light sensor, sync clocks using something ptp-like, measure?
12:47hdbngr has joined #asahi-dev
12:47pb17 has quit [Ping timeout: 480 seconds]
12:51pb17 has joined #asahi-dev
12:54chadmedsven: he on the last series that he only didnt because of the dependency on the rtc patch
12:55hdbngr has quit [Ping timeout: 480 seconds]
13:03hdbngr has joined #asahi-dev
13:04ravikant_ has joined #asahi-dev
13:11hdbngr has quit [Ping timeout: 480 seconds]
13:19hdbngr has joined #asahi-dev
13:34oliver_jannau: yes, ts1 and ts2 are often zero, I think whenever there is just a partial update or overlay, i. e. macos does not set the first surface, only the second surface with x/y non zero. In that case the timestamps are also zero. Only ts3 seems to be set always.
13:47jannauyou might want to experiment with arch_timer_read_cntpct_el0() for the current time. based on the GPU the coprocessors probably share the physical counter. not sure how well received using it in driver code is upstream (my guess is not all all)
13:51hdbngr has quit [Ping timeout: 480 seconds]
13:59maza read of CNTVCT_EL0 should results in the same thing, and is used all over the shop already.
14:08mazconfused. if the block has its own offset, how is that better by reading the physical counter on the CPU?
14:17mazthe only case where CNTPOFF applies is when HCR.TGE is set. and Apple stuff doesn't implement CNTPOFF at all.
14:28ravikant_ has quit [Remote host closed the connection]
14:29ravikant_ has joined #asahi-dev
15:27mesa has quit [Read error: Connection reset by peer]
15:27mesa has joined #asahi-dev
15:33croissant_ has joined #asahi-dev
15:39croissant has quit [Ping timeout: 480 seconds]
15:42hdbngr has joined #asahi-dev
15:53hdbngr has quit [Ping timeout: 480 seconds]
16:04hdbngr has joined #asahi-dev
16:17hdbngr has quit [Ping timeout: 480 seconds]
16:23pb17 has quit [Ping timeout: 480 seconds]
16:31pb17 has joined #asahi-dev
16:33hdbngr has joined #asahi-dev
16:36croissant_ has quit []
16:37croissant has joined #asahi-dev
16:42seb_ has quit [Quit: Konversation terminated!]
16:42seb_ has joined #asahi-dev
17:01hdbngr has quit [Ping timeout: 480 seconds]
17:12ravikant_ has quit [Ping timeout: 480 seconds]
17:35violette has joined #asahi-dev
17:37seb_ has quit [Quit: Konversation terminated!]
17:40violettehello, i am trying to tether boot using m1n1, but i cant figure out why i am not seeing /dev/m1n1 nor /dev/ttyACM* while m1n1 waits for proxy backdoor. I correctly set udev rules, and i know the usb cable i am using does data transmission. Anybody got an idea ?
17:41john-cabaj has joined #asahi-dev
17:41flokli has quit [Quit: WeeChat 4.7.2]
17:42flokli has joined #asahi-dev
17:48violetteno, nothing shows in dmesg. Also i can see that the mac waits for proxy for a few seconds
17:59hdbngr has joined #asahi-dev
18:07ece314378925355451680698427415 has joined #asahi-dev
18:10hdbngr has quit [Ping timeout: 480 seconds]
18:19hdbngr has joined #asahi-dev
18:51seb_ has joined #asahi-dev
18:56pb17 has quit [Ping timeout: 480 seconds]
19:04pb17 has joined #asahi-dev
20:25roxfan2 has quit [Remote host closed the connection]
20:28hdbngr has quit [Ping timeout: 480 seconds]
20:34roxfan has joined #asahi-dev
20:38___nick___ has joined #asahi-dev
21:06rany has quit [Ping timeout: 480 seconds]
21:07___nick___ has quit [Remote host closed the connection]
21:24rany has joined #asahi-dev
21:55hightower3 has joined #asahi-dev
22:02hightower4 has quit [Ping timeout: 480 seconds]
22:03slowlydev has joined #asahi-dev
22:09slowlydev has quit [Remote host closed the connection]
22:21hdbngr has joined #asahi-dev
22:30hdbngr has quit [Ping timeout: 480 seconds]
22:32nnym_ has joined #asahi-dev
22:32nnym has quit [Read error: Connection reset by peer]
22:59hdbngr has joined #asahi-dev
23:07hdbngr has quit [Ping timeout: 480 seconds]
23:17john-cabaj has quit [Ping timeout: 480 seconds]
23:22hdbngr has joined #asahi-dev
23:25pb17 has quit [Ping timeout: 480 seconds]
23:25ansg191 has quit [Read error: Connection reset by peer]
23:25ansg191 has joined #asahi-dev
23:27pb17 has joined #asahi-dev
23:31hdbngr has quit [Ping timeout: 480 seconds]
23:49ansg191 has quit [Read error: Connection reset by peer]
23:57hdbngr has joined #asahi-dev
23:59ansg191 has joined #asahi-dev