#
…

2025-12-26

00:01hdbngr has joined #asahi-dev
00:04jannauI think subclassing drm_plane was wrong. dcp_surface belongs state. should have been obvious since it is derived from the common new state
00:10chadmedyeah, and i spent like 3 hours wondering why the committed state was always one state ahead of our captured state :P
00:10hdbngr has quit [Ping timeout: 480 seconds]
00:10chadmedi just git-restored my entire branch. the thing i was doing was stupid
00:18hdbngr has joined #asahi-dev
00:24mixi has quit [Ping timeout: 480 seconds]
00:33hdbngr has quit [Ping timeout: 480 seconds]
00:33michaelrostom has joined #asahi-dev
00:36mixi has joined #asahi-dev
00:39michaelrostom has quit [Quit: Konversation terminated!]
00:43hdbngr has joined #asahi-dev
00:52hdbngr has quit [Ping timeout: 480 seconds]
00:57michaelrostom has joined #asahi-dev
00:59chadmed has quit [Read error: Connection reset by peer]
01:00chadmed has joined #asahi-dev
01:01hdbngr has joined #asahi-dev
01:10hdbngr has quit [Ping timeout: 480 seconds]
01:17hdbngr has joined #asahi-dev
01:24ansg191 has joined #asahi-dev
01:26hdbngr has quit [Ping timeout: 480 seconds]
01:33hdbngr has joined #asahi-dev
01:42hdbngr has quit [Ping timeout: 480 seconds]
01:49hdbngr has joined #asahi-dev
01:58hdbngr has quit [Ping timeout: 480 seconds]
02:07hdbngr has joined #asahi-dev
02:10michaelrostom has quit [Ping timeout: 480 seconds]
02:15hdbngr has quit [Ping timeout: 480 seconds]
02:20jmax_ has joined #asahi-dev
02:20jmax has quit [Read error: Connection reset by peer]
02:23hdbngr has joined #asahi-dev
02:29integralpilot has joined #asahi-dev
02:31integralpilotsort of blocked on hypervisor work, so trying smth new and making t6030 device tress for the asahi kernel
02:31hdbngr has quit [Ping timeout: 480 seconds]
02:34michaelrostom has joined #asahi-dev
02:37integralpilotthanks to everyone who is trying it out, hopefully fresh eyes might be able to see how we can fix the random panics and i'll take a look from a fresh perspective later too
02:38hdbngr has joined #asahi-dev
02:40integralpilotalso sorry forgot to mention if you're trying m1n1 on hypervisor, don't plug the USB-C cable into the DFU port on the target (cloest to magsafe) as the connection will get reset as macOS reinitalises it during the boot process
02:47hdbngr has quit [Ping timeout: 480 seconds]
02:55hdbngr has joined #asahi-dev
03:02michaelrostom has quit [Ping timeout: 480 seconds]
03:04hdbngr has quit [Ping timeout: 480 seconds]
03:11hdbngr has joined #asahi-dev
03:20hdbngr has quit [Ping timeout: 480 seconds]
03:23tobhe_ has joined #asahi-dev
03:23deanrock097 has joined #asahi-dev
03:27abhay has quit [Read error: Connection reset by peer]
03:28abhay has joined #asahi-dev
03:28deanrock09 has quit [Ping timeout: 480 seconds]
03:28deanrock097 is now known as deanrock09
03:29hdbngr has joined #asahi-dev
03:30tobhe has quit [Ping timeout: 480 seconds]
03:38hdbngr has quit [Ping timeout: 480 seconds]
03:41hexdump01 has joined #asahi-dev
03:43hexdump0815 has quit [Ping timeout: 480 seconds]
03:43abhay has quit [Ping timeout: 480 seconds]
03:45hdbngr has joined #asahi-dev
03:49pb17 has quit [Ping timeout: 480 seconds]
03:54pb17 has joined #asahi-dev
03:54hdbngr has quit [Ping timeout: 480 seconds]
04:01hdbngr has joined #asahi-dev
04:10hdbngr has quit [Ping timeout: 480 seconds]
04:13hdbngr has joined #asahi-dev
04:22hdbngr has quit [Ping timeout: 480 seconds]
04:24integralpilotmy M3 pro is binned (missing an everest). in the devicetree can i just assume the extra everest is the same offset as all the others from the last one?
04:24marvin24 has quit [Ping timeout: 480 seconds]
04:30hdbngr has joined #asahi-dev
04:38hdbngr has quit [Ping timeout: 480 seconds]
04:43nora has joined #asahi-dev
04:45nora_ has quit [Ping timeout: 480 seconds]
04:46hdbngr has joined #asahi-dev
04:55hdbngr has quit [Ping timeout: 480 seconds]
05:01hdbngr has joined #asahi-dev
05:09hdbngr has quit [Ping timeout: 480 seconds]
05:18hdbngr has joined #asahi-dev
05:26hdbngr has quit [Ping timeout: 480 seconds]
05:30ralim has quit [Quit: The Lounge - https://thelounge.chat]
05:34integralpilotfl0_id: just saw you weren't finding cu.usbmodem devices, not sure if you've figured this out yet but on linux the relevant devices are /dev/ttyACM0 (for M1N1DEVICE) and /dev/ttyACM1 (for picocom), respectively.
05:34hdbngr has joined #asahi-dev
05:34integralpilotcu.usbmodem* is the macOS naming
05:43hdbngr has quit [Ping timeout: 480 seconds]
05:48ralim has joined #asahi-dev
05:51hdbngr has joined #asahi-dev
06:08hdbngr has quit [Ping timeout: 480 seconds]
06:17hdbngr has joined #asahi-dev
06:25hdbngr has quit [Ping timeout: 480 seconds]
06:32hdbngr has joined #asahi-dev
06:41hdbngr has quit [Ping timeout: 480 seconds]
06:43integralpilotatp, ive given up trying to compile linux (with my devicetree changes) on macOS. i think i'll pull out my old skylake tower from 2015 (the only other device i've got beside my macs).
06:49hdbngr has joined #asahi-dev
06:51integralpilotits actually funny, because i used to use that as a hackintosh during lockdown, now its being used for the reverse
06:57hdbngr has quit [Ping timeout: 480 seconds]
07:02hdbngr has joined #asahi-dev
07:09nimprod3l has joined #asahi-dev
07:10hdbngr has quit [Ping timeout: 480 seconds]
07:18hdbngr has joined #asahi-dev
07:26hdbngr has quit [Ping timeout: 480 seconds]
07:34hdbngr has joined #asahi-dev
07:46pb17 has quit [Ping timeout: 480 seconds]
07:55hdbngr has quit [Ping timeout: 480 seconds]
08:02hdbngr has joined #asahi-dev
08:03pb17 has joined #asahi-dev
08:04nnym has quit [Remote host closed the connection]
08:04nnym has joined #asahi-dev
08:11hdbngr has quit [Ping timeout: 480 seconds]
08:15nimprod3l has quit [Ping timeout: 480 seconds]
08:21hdbngr has joined #asahi-dev
08:29hdbngr has quit [Ping timeout: 480 seconds]
08:38hdbngr has joined #asahi-dev
08:46jvoisin has quit [Ping timeout: 480 seconds]
08:46hdbngr has quit [Ping timeout: 480 seconds]
08:53hdbngr has joined #asahi-dev
09:03hdbngr has quit [Ping timeout: 480 seconds]
09:03hdbngr has joined #asahi-dev
09:12hdbngr has quit [Ping timeout: 480 seconds]
09:18jannauintegralpilot: yes, assume that cpu offsets are predictable
09:19hdbngr has joined #asahi-dev
09:20jannauthe documentation patch isn't merged but I think it should work now. never tried it myself though
09:28hdbngr has quit [Ping timeout: 480 seconds]
09:35hdbngr has joined #asahi-dev
09:44hdbngr has quit [Ping timeout: 480 seconds]
09:45jn has joined #asahi-dev
09:47jnn has quit [Ping timeout: 480 seconds]
09:48hdbngr has joined #asahi-dev
09:54integralpilotoh thanks, i'll look into that
09:55integralpilotalso sorry forget to mention, for hypervisor work, if anyone's trying it, you also need to apply https://patch-diff.githubusercontent.com/raw/AsahiLinux/m1n1/pull/515.diff
09:55integralpiloti've updated the gist with all this info now
09:57hdbngr has quit [Ping timeout: 480 seconds]
10:01integralpilotoh and also enjoy 39c3 for everyone that's going!! good luck with the demo :)
10:03chaos_princessimo, just don't bother trying to compile linux from macos and use a linux vm, it works, but not worth the extra hassle
10:04hdbngr has joined #asahi-dev
10:05integralpiloti've just gotten out an old x86 linux tower i had, and it's working now
10:05integralpilotthough the HDD is SMART "pre-fail" so i probably need to pick-up a new one
10:13hdbngr has quit [Ping timeout: 480 seconds]
10:21hdbngr has joined #asahi-dev
10:22chadmedare we spinning up the t602x ecores in a different pstate to every other soc (in m1n1)
10:22chadmedpre-linux environment is very slow and always has been
10:29hdbngr has quit [Ping timeout: 480 seconds]
10:33hdbngr has joined #asahi-dev
10:42hdbngr has quit [Ping timeout: 480 seconds]
10:48jannaum1n1 intends to initializes the t602x e-cores to the same 2GHz as all other e-cores. I haven't noticed a difference in m1n1 pre-kboot on t6020 or t6022 either
10:50hdbngr has joined #asahi-dev
10:56chadmedyeah not sure whats up then. all my t602x machines take 20-30 seconds to decompress kernel/initramfs and u-boots idea of "1 second" does not match reality :P
10:57chadmednot a big deal, ive just done a loooot of rebooting today and its a bit annoying
10:59hdbngr has quit [Ping timeout: 480 seconds]
11:05hdbngr has joined #asahi-dev
11:06integralpilot has quit [Ping timeout: 480 seconds]
11:08integralpilot has joined #asahi-dev
11:33hdbngr has quit [Ping timeout: 480 seconds]
11:36hdbngr has joined #asahi-dev
11:52hdbngr has quit [Ping timeout: 480 seconds]
12:01hdbngr has joined #asahi-dev
12:03opticron has quit [Read error: Connection reset by peer]
12:03opticron has joined #asahi-dev
12:22hdbngr has quit [Ping timeout: 480 seconds]
12:26hdbngr has joined #asahi-dev
12:27chadmedhttps://github.com/chadmed/linux/tree/dcp/scanout works on all laptops and tested with 144hz monitor
12:27chadmeda couple of experimental things are turned on and it needs cleaning up/authorship of commits fixed up but seems mostly sane and doesnt explode
12:28chadmedall atomic_flush does now is get a reference to the old state framebuffer, 1:1 put the plane state into the swap request then send it off
12:29chadmedseems a little smoother but by and large no changes. 120hz is still dodgy on my j314.
12:30chadmedi will test j416 tomorrow. still kind of crazy that page flips take so long...
12:35hdbngr has quit [Ping timeout: 480 seconds]
12:43hdbngr has joined #asahi-dev
12:46agraf has joined #asahi-dev
12:50agraf has quit []
12:52hdbngr has quit [Ping timeout: 480 seconds]
12:52agraf has joined #asahi-dev
12:59hdbngr has joined #asahi-dev
13:04abhay has joined #asahi-dev
13:04oliveranything?
13:04oliverLooking for educated guesses: when you display some hdr content on a Macbook, it takes half a second for the hdr content to reach full brightness. During tracing I see, that the display brightness is slowly increased above the normal sdr maximum during this time. Question is now: how does the sdr content stay at the same brightness during that time? Is macos just rendering it darker in software or might it just adjust some gamma curve or
13:12integralpilot has quit [Quit: integralpilot]
13:16chadmedthe hdr content will be displayed on a different iosurface with its own colour primaries, xfer function, etc.
13:16jvoisin has joined #asahi-dev
13:17hdbngr has quit [Ping timeout: 480 seconds]
13:17chadmedthe sdr content staying the same relative brightness is probably a mix of that, local dimming, and perhaps some fancy tone mapping/compensation on the sdr surface itself
13:18chadmedive been playing with the per-surface colour space/transfer function stuff in the dcp driver and it seems to also mostly Just Work on linux
13:19chadmedkwin really does not want to play ball with the overlays though so ive mostly been testing from a tty, which is not really a fair test since most of the primary surface is black lol
13:19chadmed has quit [Remote host closed the connection]
13:20abhay has quit [Ping timeout: 480 seconds]
13:20abhay has joined #asahi-dev
13:22chadmed has joined #asahi-dev
13:25hdbngr has joined #asahi-dev
13:34hdbngr has quit [Ping timeout: 480 seconds]
13:35hdbngr has joined #asahi-dev
13:41chadmed has quit [Remote host closed the connection]
13:43chadmed has joined #asahi-dev
13:43hdbngr has quit [Ping timeout: 480 seconds]
13:45hdbngr has joined #asahi-dev
13:52oliverYou're sure? I saw macos switching from a 10bit rgb format to 16bit half floats, but it is just scanning out that one surface while the hdr media is playing (well, as along as something is overlaying something on top of the hdr content at least). And interestingly it is also scanning that one out as sdr with the same colorspace.
13:53pb17 has quit [Ping timeout: 480 seconds]
13:54pb17 has joined #asahi-dev
13:56chadmedim not 100% sure, just a guess from what ive seen playing back hdr video on a machine being traced
13:57chadmedif a video is playing and nothing else on the screen is changing, then yes it will only scan out the iosurface with the video on it. thats the whole point, we dont need to be constantly scanning out and refreshing surfaces where nothing is going on
13:59chadmedtry using ffmpeg to force sw decode and bypass all the compressed/tiled avd format bs
14:02oliver I am going for non fullscreen hdr content right now. You're right with full screen content, that's probably going onto its own surface.
14:02chadmedquicktime also ends up with windowed content on its own surface
14:03oliverUnless the media controls are overlaying the video
14:03hdbngr has quit [Ping timeout: 480 seconds]
14:04chadmeddo the video and media controls go back on to the primary surface? thats not how i interpreted your message sorry
14:05oliveryes exactly. And the primary surface format changes to 16bit float
14:05oliverIf I force gnome into hdr rendering and tell dcp to scan out with xfer hdr, it actually looks quite good already. If I then force the brightness as high as mac does, it looks pretty good already.
14:06chadmedits probably just software tone mapping and local dimming then i guess
14:07chadmedare you setting the colourspace and framebuffer format appropriately too
14:07oliverOkay, then I'll try to verify that by just looking at the data that Is scanned out. I should be able to read the pixel data from m1n1 right?
14:08chadmedyeah break into the hv shell and try to read out the framebuffer at the iova in the swap request i guess
14:09oliverI set xfer to hdr and keep colorspace in native. That at least gives me a good looking result.
14:10oliverBut that's just experimenting, I need to check what gnome is actually doing, I guess
14:10chadmedcolourspace is going to be important for _correct_ looking video on overlay surfaces
14:11chadmedlikewise the transfer functions are going to matter a lot for correct hdr
14:11chadmeddcp supports both HLG and PQ, which both will use the BT.2020 colour primaries
14:12chadmeddo something like this to make life a little easier
14:12chadmedjust ucomment the block i commented out if you still want/need to see the other messages
14:12hdbngr has joined #asahi-dev
14:15abhay has quit [Read error: Connection reset by peer]
14:16abhay has joined #asahi-dev
14:18oliverThanks. Ive disabled most printing actually, I am using the parse script later. But I want to record the screen and some timestamp in the future so can match an event to what's actually happening.
14:20chadmedyou could read out the framebuffer and store it with the corresponding surface and swap request and then decode that all later
14:20chadmedso then you know which swap request, which iosurface, and the fb that corresponded to both
14:21chadmeddownside is the framebuffer formats are all totally fucked and youll have to reverse engineer them :P
14:21hdbngr has quit [Ping timeout: 480 seconds]
14:21chadmedwhich is why i suggested forcing software decode. we at least have _some_ documentation for the agx formats
14:26michaelrostom has joined #asahi-dev
14:28hdbngr has joined #asahi-dev
14:37hdbngr has quit [Ping timeout: 480 seconds]
14:46hdbngr has joined #asahi-dev
14:54michaelrostom has quit [Ping timeout: 480 seconds]
14:55oliverLet's see how fast we are if need to transfer 30mb of frame buffer over serial each swap ;p
14:55hdbngr has quit [Ping timeout: 480 seconds]
14:59leioI guess you could try if gnome plays ball better?
15:03hdbngr has joined #asahi-dev
15:03leioah, I see, oli_ver on their side is already poking from gnome
15:07michaelrostom has joined #asahi-dev
15:11hdbngr has quit [Ping timeout: 480 seconds]
15:19hdbngr has joined #asahi-dev
15:22fl0_idintegralpilot oh sorry, that was just a dumb comment/joke, I know the devices are different from other embedded stuff. as long as there isn't anything else that only works on mac in your setup (not as far as I could see)
15:28hdbngr has quit [Ping timeout: 480 seconds]
15:32michaelrostom has quit [Ping timeout: 480 seconds]
15:35hdbngr has joined #asahi-dev
15:36michaelrostom has joined #asahi-dev
15:43hdbngr has quit [Ping timeout: 480 seconds]
15:47michaelrostom has quit [Ping timeout: 480 seconds]
15:52hdbngr has joined #asahi-dev
15:53pb17 has quit [Ping timeout: 480 seconds]
16:00hdbngr has quit [Ping timeout: 480 seconds]
16:08hdbngr has joined #asahi-dev
16:14michaelrostom has joined #asahi-dev
16:17hdbngr has quit [Ping timeout: 480 seconds]
16:18michaelrostom has quit []
16:21pb17 has joined #asahi-dev
16:24hdbngr has joined #asahi-dev
16:33hdbngr has quit [Ping timeout: 480 seconds]
16:42hdbngr has joined #asahi-dev
16:51hdbngr has quit [Ping timeout: 480 seconds]
16:53hdbngr has joined #asahi-dev
17:07Extern has joined #asahi-dev
17:10hdbngr has quit [Ping timeout: 480 seconds]
17:19hdbngr has joined #asahi-dev
17:27hdbngr has quit [Ping timeout: 480 seconds]
17:36hdbngr has joined #asahi-dev
17:43michaelrostom has joined #asahi-dev
17:53michaelrostom has quit [Ping timeout: 480 seconds]
18:08michaelrostom has joined #asahi-dev
18:13nnym has quit [Read error: Connection reset by peer]
18:13nnym has joined #asahi-dev
18:19nnym has quit [Read error: Connection reset by peer]
18:20nnym has joined #asahi-dev
18:22nnym has quit [Read error: Connection reset by peer]
18:23nnym has joined #asahi-dev
18:28michaelrostom has quit [Ping timeout: 480 seconds]
18:48hdbngr has quit [Ping timeout: 480 seconds]
18:53michaelrostom has joined #asahi-dev
18:54hdbngr has joined #asahi-dev
19:02hdbngr has quit [Ping timeout: 480 seconds]
19:09michaelrostom has quit [Remote host closed the connection]
19:10michaelrostom has joined #asahi-dev
19:10hdbngr has joined #asahi-dev
19:19hdbngr has quit [Ping timeout: 480 seconds]
19:27hdbngr has joined #asahi-dev
19:33nimprod3l has joined #asahi-dev
19:35hdbngr has quit [Ping timeout: 480 seconds]
19:41nimprod3l has quit [Ping timeout: 480 seconds]
19:42hdbngr has joined #asahi-dev
19:52hdbngr has quit [Ping timeout: 480 seconds]
19:55hdbngr has joined #asahi-dev
20:03hdbngr has quit [Ping timeout: 480 seconds]
20:11hdbngr has joined #asahi-dev
20:19hdbngr has quit [Ping timeout: 480 seconds]
20:29hdbngr has joined #asahi-dev
20:35michaelrostom has quit [Ping timeout: 480 seconds]
20:39hdbngr has quit [Ping timeout: 480 seconds]
20:39hdbngr has joined #asahi-dev
20:48hdbngr has quit [Ping timeout: 480 seconds]
20:56hdbngr has joined #asahi-dev
21:04hdbngr has quit [Ping timeout: 480 seconds]
21:07abhay has quit [Remote host closed the connection]
21:07abhay has joined #asahi-dev
21:12hdbngr has joined #asahi-dev
21:21hdbngr has quit [Ping timeout: 480 seconds]
21:26abhay has quit [Read error: Connection reset by peer]
21:26abhay has joined #asahi-dev
21:30hdbngr has joined #asahi-dev
21:38hdbngr has quit [Ping timeout: 480 seconds]
21:46hdbngr has joined #asahi-dev
21:54hdbngr has quit [Ping timeout: 480 seconds]
21:57hdbngr has joined #asahi-dev
22:05hdbngr has quit [Ping timeout: 480 seconds]
22:12abhay has quit [Remote host closed the connection]
22:12abhay has joined #asahi-dev
22:13hdbngr has joined #asahi-dev
22:20abhay has quit [Ping timeout: 480 seconds]
22:21Extern has quit [Quit: WeeChat 4.8.1]
22:21abhay has joined #asahi-dev
22:22hdbngr has quit [Ping timeout: 480 seconds]
22:30hdbngr has joined #asahi-dev
22:38hdbngr has quit [Ping timeout: 480 seconds]
22:43michaelrostom has joined #asahi-dev
22:46hdbngr has joined #asahi-dev
22:51michaelrostom has quit [Quit: Konversation terminated!]
22:54hdbngr has quit [Ping timeout: 480 seconds]
22:58hdbngr has joined #asahi-dev
23:06hdbngr has quit [Ping timeout: 480 seconds]
23:11michaelrostom has joined #asahi-dev
23:13michaelrostom has quit []
23:13michaelrostom has joined #asahi-dev
23:14michaelrostom has quit []
23:15hdbngr has joined #asahi-dev
23:15michaelrostom has joined #asahi-dev
23:17michaelrostom has quit []
23:24hdbngr has quit [Ping timeout: 480 seconds]
23:31hdbngr has joined #asahi-dev
23:40hdbngr has quit [Ping timeout: 480 seconds]
23:48hdbngr has joined #asahi-dev
23:56hdbngr has quit [Ping timeout: 480 seconds]
23:59hdbngr has joined #asahi-dev
…