#
…

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:43lm_Oh my god
11:43lm_Early christmas present
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:47lm_oliver_: is it a constant 120hz or variable?
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:52j`eyoliver_: nice patch, you're the best, man!
11:53j`ey(sorry, the joke had to be made :P)
11:53oliver_j`ey: never heard that before ;p
11:53chaos_princessoliver_: 24mhz is the "standard apple clock rate". and yes, macos reads timesync before every frame submit
11:54j`eydoes 120mhz consume more power?
11:54j`eymight want to be configurable then?
11:54chadmedVRR will help with that on the desktop but that will need more work
11:54oliver_j`ey: you can just select 60hz I guess
11:54chaos_princessin theory you want proper vrr, the display can go as low as 10 hz
11:54chadmedbut yes this should just be plumbed into the standard drm apis for mode setting
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:55chadmedoliver_: also nit but s/convert//g
11:55chadmedi.e ns_to_mach_time()
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:56chadmedexperimentally determined by the looks, its in the commit message
11:57oliver_yea, i've just graphed the dcp trace values and looked for anything that looked like a pattern.
11:57chadmediomfb_flush is time sensitive so idk if experimental constants are gonna fly here tbh
11:57chadmedits also dog slow on like, every machien
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?
11:59chadmedtry spamming ctm or brightness changes :P
12:00chaos_princessi mean in macos
12:00oliver_login screen, maybe desktop already. needed to move things around to get submits.
12:00chadmedyeah tracing dcp is painful
12:00chaos_princessits probably running at 60hz at that point
12:00chadmedalso, did you confirm that the screen is indeed swapping at 120hz on linux?
12:01chaos_princesssince macos only runs at 120hz when something wants it
12:01chadmedmacos cannot run at a fixed 120hz its VRR or 60hz
12:01chaos_princesstry making sure you have 120hz content on the screen
12:01j`eychadmed: there's a test mentioned in the PR
12:01chaos_princess(something tells me the offsets will change)
12:02j`eyshould draw 4 balls or just 2 depending on 60 or 120 hz
12:02chadmedalso yes 16.666 ms between present and ts3 screams 60hz
12:02oliver_chadmed: yea using the demo programm from the pr as j`ey said.
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:03oliver_so i am halfway confident that it actually updates with 120hz
12:03chadmedi would try setting the ts offsets based on the current mode's refresh rate
12:03chadmedsee what happens there
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:03chadmed(e.g. 120hz should be 8ish ms)
12:04chaos_princessor do the test i proposed :P
12:04chadmedwell yeah thats gonna be the only way to be certain
12:04chadmedbut waiting for swaps while tracing sucks
12:04oliver_chaos_princess: the test you've proposed is to have 120hz content on screen on the mac?
12:05chadmedalmost as bad as tracing sep keybag
12:05hdbngr has quit [Ping timeout: 480 seconds]
12:08chadmedthe 1ghz timer in m3+ is just PLLed from the real 24mhz clock right
12:09chadmedthat is, the dcp's timebase will still be 24mhz on those machines
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 should take a look at direct scanout and the planar yuv formats again
12:15chadmedi dont think we support uncompressed planar yuv though and i really dont want to RE apple's NIHed compressed fb formats
12:19svenoliver_: nice work! and glad to see more people starting to contribute :-)
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:31svenack, will pick up the dts then
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:32sven@=8+cnh}
12:32sven*sigh*
12:32svennow i have to change my yubikey pin :D
12:33chadmedbeen a while since someones done that lol
12:33chaos_princessjannau: are you willing to buy stuff, and probably sacrifice a mouse
12:33chadmedi was just thinking that
12:34chadmedthe little nvidia doohickey works well enough without ripping apart a mouse though
12:34jannauVRR might work already with this once the driver exports the right properties
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:36chadmedoh someones built an open hw version of ldat too
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:41jannauwould be nice if the input latency could be avoided
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:54chadmedthat is no longer an issue, so hopefully he does
12:54svenWill wait for him and pick up the other dts change then
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:02jannauI guess it'll break clearly if dcp has its own offset
14:08mazconfused. if the block has its own offset, how is that better by reading the physical counter on the CPU?
14:09mazreading from EL2, neither views have any offset applied to it.
14:16jannaunevermind, I wasn't aware that the offset doesn't apply to EL2
14:16* jannaumakes note to update the GPU driver
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:43jannauviolette: what kind cable? was the cable connected before the mac booted?
17:44violetteusb a to c, i keep the cable connected between tries
17:45jannauI assume there is nothing in lsusb or the kernel log?
17:48violetteno, nothing shows in dmesg. Also i can see that the mac waits for proxy for a few seconds
17:52jannauhave you tried different usb ports? is it possible to try a different cable or host?
17:53jannauheading out now
17:54violettei tried pluging both port at once, still nothing showed up
17:54violettesee you later
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
…