#
…

2025-12-27

00:05michaelrostom has joined #asahi-dev
00:07hdbngr has quit [Ping timeout: 480 seconds]
00:13rany has quit [Remote host closed the connection]
00:15rany has joined #asahi-dev
00:16hdbngr has joined #asahi-dev
00:19pb17 has quit [Ping timeout: 480 seconds]
00:20michaelrostom has quit [Quit: Konversation terminated!]
00:22pb17 has joined #asahi-dev
00:23rany_ has joined #asahi-dev
00:23mixi has quit [Ping timeout: 480 seconds]
00:25hdbngr has quit [Ping timeout: 480 seconds]
00:26michaelrostom has joined #asahi-dev
00:30rany has quit [Ping timeout: 480 seconds]
00:31rany_ is now known as rany
00:32hdbngr has joined #asahi-dev
00:35mixi has joined #asahi-dev
00:41hdbngr has quit [Ping timeout: 480 seconds]
00:49hdbngr has joined #asahi-dev
00:52Sky___________________________ has joined #asahi-dev
00:55Sky___________________________ has quit []
00:55michaelrostom has quit [Quit: Konversation terminated!]
00:58hdbngr has quit [Ping timeout: 480 seconds]
01:00hdbngr has joined #asahi-dev
01:08hdbngr has quit [Ping timeout: 480 seconds]
01:17hdbngr has joined #asahi-dev
01:21michaelrostom 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:46pb17 has quit [Ping timeout: 480 seconds]
01:50hdbngr has joined #asahi-dev
01:52pb17 has joined #asahi-dev
01:56michaelrostom_ has joined #asahi-dev
01:56michaelrostom has quit [Quit: Konversation terminated!]
01:59hdbngr has quit [Ping timeout: 480 seconds]
02:02ralim has quit [Read error: Connection reset by peer]
02:02ralim has joined #asahi-dev
02:07hdbngr has joined #asahi-dev
02:15hdbngr has quit [Ping timeout: 480 seconds]
02:23hdbngr has joined #asahi-dev
02:32hdbngr has quit [Ping timeout: 480 seconds]
02:32pthariensflame has joined #asahi-dev
02:39hdbngr has joined #asahi-dev
02:40pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
02:47michaelrostom_ has quit [Remote host closed the connection]
02:48michaelrostom has joined #asahi-dev
02:48hdbngr has quit [Ping timeout: 480 seconds]
02:56hdbngr has joined #asahi-dev
02:57michaelrostom has quit [Quit: Konversation terminated!]
02:58michaelrostom has joined #asahi-dev
02:59michaelrostom has quit []
03:00michaelrostom has joined #asahi-dev
03:01michaelrostom_ has joined #asahi-dev
03:03michaelrostom__ has joined #asahi-dev
03:05michaelrostom__ has quit [Remote host closed the connection]
03:05hdbngr has quit [Ping timeout: 480 seconds]
03:06michaelrostom__ has joined #asahi-dev
03:07michaelrostom_ has quit [Read error: Connection reset by peer]
03:08chadmed has quit [Quit: Konversation terminated!]
03:08chadmed has joined #asahi-dev
03:09michaelrostom has quit [Ping timeout: 480 seconds]
03:09chadmed has quit []
03:10chadmed has joined #asahi-dev
03:10michaelrostom__ has quit [Remote host closed the connection]
03:11michaelrostom has joined #asahi-dev
03:11chadmed has quit []
03:12chadmed has joined #asahi-dev
03:13hdbngr has joined #asahi-dev
03:16michaelrostom has quit []
03:22hdbngr has quit [Ping timeout: 480 seconds]
03:22tobhe has joined #asahi-dev
03:29tobhe_ has quit [Ping timeout: 480 seconds]
03:31hdbngr has joined #asahi-dev
03:40hdbngr has quit [Ping timeout: 480 seconds]
03:40hexdump0815 has joined #asahi-dev
03:41hexdump01 has quit [Ping timeout: 480 seconds]
03:43pb17 has quit [Ping timeout: 480 seconds]
03:49hdbngr has joined #asahi-dev
03:49pb17 has joined #asahi-dev
03:57hdbngr has quit [Ping timeout: 480 seconds]
04:05hdbngr has joined #asahi-dev
04:14hdbngr has quit [Ping timeout: 480 seconds]
04:16marvin24 has joined #asahi-dev
04:21hdbngr has joined #asahi-dev
04:30hdbngr has quit [Ping timeout: 480 seconds]
04:38hdbngr has joined #asahi-dev
04:42nora_ has joined #asahi-dev
04:44nora has quit [Ping timeout: 480 seconds]
04:47chadmedneat we have 4:2:0, 4:2:2 and 4:4:4 scanout
04:47hdbngr has quit [Ping timeout: 480 seconds]
04:47chadmedthe firmware also does support AGX compressed framebuffers but you need to set the compression metadata pointers and fb format appropriately or iomfb will just complain
04:48chadmedthe compression info itself seems simple but i havent got a nice way to set that up without hard coding a bunch of magic numbers, and i cant test the magic numbers because the fourccs are not obvious
04:49chadmedthe firmware does not match the traces
04:52hdbngr has joined #asahi-dev
04:53chadmedthere are actually two compression formats, "uc" and agx. i thought "uc" would be whatever avd spits out but macos sets the compression type to 3 for framebuffers coming out of the gpu
04:53chadmed3 being "uc"
05:04abhay has quit [Ping timeout: 480 seconds]
05:07abhay has joined #asahi-dev
05:09hdbngr has quit [Ping timeout: 480 seconds]
05:14pb17 has quit [Ping timeout: 480 seconds]
05:15abhay has quit [Ping timeout: 480 seconds]
05:18dax has joined #asahi-dev
05:18hdbngr has joined #asahi-dev
05:21pb17 has joined #asahi-dev
05:27hdbngr has quit [Ping timeout: 480 seconds]
05:35hdbngr has joined #asahi-dev
05:44hdbngr has quit [Ping timeout: 480 seconds]
05:53hdbngr has joined #asahi-dev
06:01hdbngr has quit [Ping timeout: 480 seconds]
06:10hdbngr has joined #asahi-dev
06:19hdbngr has quit [Ping timeout: 480 seconds]
06:27hdbngr has joined #asahi-dev
06:35hdbngr has quit [Ping timeout: 480 seconds]
06:45hdbngr has joined #asahi-dev
06:48nimprod3l has joined #asahi-dev
06:50lynndotpy7 has quit [Quit: bye bye]
06:52lynndotpy7 has joined #asahi-dev
06:53hdbngr has quit [Ping timeout: 480 seconds]
07:02hdbngr has joined #asahi-dev
07:10hdbngr has quit [Ping timeout: 480 seconds]
07:18hdbngr has joined #asahi-dev
07:27hdbngr has quit [Ping timeout: 480 seconds]
07:31rosalyntg_ has joined #asahi-dev
07:31rosalyntg has quit [Read error: Connection reset by peer]
07:33rosalyntg has joined #asahi-dev
07:33rosalyntg_ has quit [Read error: Connection reset by peer]
07:34hdbngr has joined #asahi-dev
07:37chadmedthe fourccs macos uses dont even appear in the dcp firmware lmfao, but they are only one character off ones that do
07:41rosalyntg has quit [Read error: Connection reset by peer]
07:41rosalyntg has joined #asahi-dev
07:43hdbngr has quit [Ping timeout: 480 seconds]
07:46chadmedARGB2101010 works now though so thats nice
07:51hdbngr has joined #asahi-dev
07:51rosalyntg has quit [Read error: Connection reset by peer]
07:53chadmedunsure as to why we get back sdr/srgb for the 14" and 16" builtin screens as the only colour mode when the screens are supposed to be dci-p3
07:56chadmedwe're not fudging it in the parser afaict
07:57abhay has joined #asahi-dev
07:59hdbngr has quit [Ping timeout: 480 seconds]
08:00weirdtreething has quit [Remote host closed the connection]
08:00weirdtreething has joined #asahi-dev
08:03hdbngr has joined #asahi-dev
08:10violette has quit [Ping timeout: 480 seconds]
08:11hdbngr has quit [Ping timeout: 480 seconds]
08:19hdbngr has joined #asahi-dev
08:28hdbngr has quit [Ping timeout: 480 seconds]
08:29pb17 has quit [Ping timeout: 480 seconds]
08:32pb17 has joined #asahi-dev
08:35hdbngr has joined #asahi-dev
08:40nimprod3l has quit [Quit: Leaving]
08:44hdbngr has quit [Ping timeout: 480 seconds]
08:52hdbngr has joined #asahi-dev
09:01integralpilot has joined #asahi-dev
09:01hdbngr has quit [Ping timeout: 480 seconds]
09:01integralpilotooh cool work chadmed!
09:02integralpilotjust got Linux booting all the way on M3 and M3 Pro
09:02chadmedthats way more impressive lol
09:02integralpilotnot really it was just a matter of writing device trees
09:03integralpilotwell, mainly except for a few other things
09:04integralpilotI’ve just been using a blank initramfs so it’s up to “VFS: Unable to moukt root fs”
09:04hdbngr has joined #asahi-dev
09:04integralpilotgonna try busybox and then a real distro next
09:05integralpilotbut am so happy finally the kernel does all its setup and boots all the way to user space
09:12hdbngr has quit [Ping timeout: 480 seconds]
09:13integralpilot has quit [Ping timeout: 480 seconds]
09:20hdbngr has joined #asahi-dev
09:29hdbngr has quit [Ping timeout: 480 seconds]
09:36fl0_idthen my goal for 39c3 is to replicate this on m3 max and fix a device tree for that
09:37hdbngr has joined #asahi-dev
09:37fl0_id(assuming it needs changes, I had a partial one already but it wasn't working last time I tried iirc)
09:39svenwe can try to fix nvme here as well if it's still broken
09:40svenwould be nice to get initial m3 bringup done here and send out whatever is required to lkml
09:42fl0_idyeah that would be nice
09:42sveni have to prepare a talk and build slides but i'm happy to do backseat bringup :D
09:43svenellyqw might want to join in as well
09:44integralpilot has joined #asahi-dev
09:45integralpilotbusybox is working! can type fully an use shell, also can see in dmesg that we’re getting mailbox messages from SMC
09:46hdbngr has quit [Ping timeout: 480 seconds]
09:48fl0_idsven backset bringup sounds great haha
09:48fl0_idis there a place where you will be hanging out?
09:49svenfail0verflow assembly
09:49svenintegralpilot: nice work!
09:52fl0_idsven ok good to know
09:52integralpilotmy m3 pro ran out of power so just working off m3 now
09:52svenbald dude with a beard, wearing a white shirt and a blue vest today ;)
09:53integralpilotsven and f10_id
09:53svennice to see new contributors making progress so quickly :)
09:53hdbngr has joined #asahi-dev
09:56fl0_idyeah for sure :)
09:59abhay has quit [Ping timeout: 480 seconds]
10:00abhay has joined #asahi-dev
10:01integralpilot has quit [Ping timeout: 480 seconds]
10:02hdbngr has quit [Ping timeout: 480 seconds]
10:05hdbngr has joined #asahi-dev
10:10halloy6393 has joined #asahi-dev
10:13halloy6393 has quit [Remote host closed the connection]
10:13hdbngr has quit [Ping timeout: 480 seconds]
10:13unsecretised has joined #asahi-dev
10:19abhay has quit [Ping timeout: 480 seconds]
10:20abhay has joined #asahi-dev
10:20hdbngr has joined #asahi-dev
10:23integralpilot has joined #asahi-dev
10:28unsecretisedHi, i'm interested in helping out with development in asahi-dev but i'm not sure how to get started, i'm on an m2 air rn
10:29integralpilothi everyone this is my friend secret! :)
10:30hdbngr has quit [Ping timeout: 480 seconds]
10:36hdbngr has joined #asahi-dev
10:45hdbngr has quit [Ping timeout: 480 seconds]
10:53hdbngr has joined #asahi-dev
11:03integralpilot has quit [Ping timeout: 480 seconds]
11:06integralpilot has joined #asahi-dev
11:11unsecretised has quit [Remote host closed the connection]
11:11integralpilotsome cool things working now on M3: can set keyboard backlight brightness, control cpufreq, query battery % and lots more from busybox!
11:12integralpilotam going to be working on NVMe next
11:12integralpilotand then maybe we can move from a simple initramfs with busybox to testing out a real distro
11:14hdbngr has quit [Ping timeout: 480 seconds]
11:22hdbngr has joined #asahi-dev
11:24integralpilot has quit [Ping timeout: 480 seconds]
11:29oliveri am trying to read out the surface to be submitted. the way i understand it, the call.surfAddr contains the dma address of where the actual data is. how can I read the data behind this address? i need to somehow map this to a physical or virtual address? i thought i could just do `dart_dcp_tracer.dart.ioread` but thats not correct.
11:32hdbngr has quit [Ping timeout: 480 seconds]
11:35hdbngr has joined #asahi-dev
11:42jannauoliver: the surface is in the disp0 dart
11:50hdbngr has quit [Ping timeout: 480 seconds]
11:57oliverthank you. how would i find something like this out by myself, is that written down somewhere?
11:58hdbngr has joined #asahi-dev
12:10integralpilot has joined #asahi-dev
12:11integralpilotwhat macOS version should I get the firmwares for RTKit from? 13.5 is the de facto for M1/M2 but does't support M3. i've got 14.8.3 so i guess could grab from there, or is a different version better?
12:14chadmedoliver: the devicetrees have them, but i think for the dcp/dispX thing its not obvious and probably should be documented somewhere
12:15chadmedintegralpilot: 26.x is going to be your best bet as there were some nasty bugs in 15.x that _should_ all be fixed now
12:15chadmednot sure if 26.x firmware expects SPTM though
12:20integralpilot has quit [Ping timeout: 480 seconds]
12:22jannaulatest 14.x would be the easiest option for M3 devices. nvme there might jsut work
12:23hdbngr has quit [Ping timeout: 480 seconds]
12:24chadmedyeah but do we want to support 14.x and then yet another for m4
12:25chadmedobv doesnt matter if its just for a bit of fun at 39c3 but for prod i would want to bring everything up to a new lowest common denominator (drm uapi stability guarantees notwithstanding)
12:26chadmedsimilarly it would be good to drop 12.3 out of the dcp driver since we already know iomfb changed again
12:28jannauoliver: easiest option to spot this would be experiments/dcp.py I don't think we explictily documented this outside of code. consider m1n1's python implementations and experiments as documentation
12:29oliverthank you!
12:30chadmed has quit [Quit: Konversation terminated!]
12:32hdbngr has joined #asahi-dev
12:32chadmed has joined #asahi-dev
12:33jannauI think it's useful for bringup to use major macOS versions as stages as long as nobody sinks time into analysing complex FW interfaces like dcp or agx
12:34jannauI kinda hope that we don't add another FW version to the C dcp driver
12:35chadmedim happy to keep hacking on the C version because my kernel rust is even worse than my kernel C
12:35chadmedbut once it looks more like a real kms atomic driver we should port it
12:36chadmedi dont want to give up on zero copy scanout from the gpu but i cannot figure out where the heck we're supposed to tell iomfb that the format is tiled/twiddled even after spending all evening in ghidra :/
12:41hdbngr has quit [Ping timeout: 480 seconds]
12:41chaos_princessintegralpilot: do not go for 15+ on m3, as it has sptm
12:49hdbngr has joined #asahi-dev
12:57hdbngr has quit [Ping timeout: 480 seconds]
13:05hdbngr has joined #asahi-dev
13:16hdbngr has quit [Ping timeout: 480 seconds]
13:25hdbngr has joined #asahi-dev
13:32chadmed has quit [Quit: Konversation terminated!]
13:33hdbngr has quit [Ping timeout: 480 seconds]
13:34chadmed has joined #asahi-dev
13:41hdbngr has joined #asahi-dev
13:50hdbngr has quit [Ping timeout: 480 seconds]
13:58hdbngr has joined #asahi-dev
14:06hdbngr has quit [Ping timeout: 480 seconds]
14:09hdbngr has joined #asahi-dev
14:17hdbngr has quit [Ping timeout: 480 seconds]
14:20chadmed has quit [Quit: Konversation terminated!]
14:21hightower2 has quit [Remote host closed the connection]
14:25hdbngr has joined #asahi-dev
14:32violette has joined #asahi-dev
14:33hdbngr has quit [Ping timeout: 480 seconds]
14:35chadmed has joined #asahi-dev
14:42hdbngr has joined #asahi-dev
14:51hdbngr has quit [Ping timeout: 480 seconds]
14:52michaelrostom has joined #asahi-dev
14:58os3 has joined #asahi-dev
14:58pb17 has quit [Ping timeout: 480 seconds]
14:59hdbngr has joined #asahi-dev
15:03pb17 has joined #asahi-dev
15:04os has quit [Ping timeout: 480 seconds]
15:06os3 has quit [Quit: Ping timeout (120 seconds)]
15:06os has joined #asahi-dev
15:09hdbngr has quit [Ping timeout: 480 seconds]
15:10hdbngr has joined #asahi-dev
15:18hdbngr has quit [Ping timeout: 480 seconds]
15:27hdbngr has joined #asahi-dev
15:35hdbngr has quit [Ping timeout: 480 seconds]
15:36hdbngr has joined #asahi-dev
15:45hdbngr has quit [Ping timeout: 480 seconds]
15:53hdbngr has joined #asahi-dev
16:01hdbngr has quit [Ping timeout: 480 seconds]
16:09hdbngr has joined #asahi-dev
16:23pb17 has quit [Ping timeout: 480 seconds]
16:25hdbngr has quit [Ping timeout: 480 seconds]
16:28nickchan15.x doesn't have sptm for m3 but still don't use it for other reasons
16:29nickchanlike raw custom boot object broken on 15.2+...
16:29chaos_princessare you sure? i checked the ipsw and the sptm img4 was there
16:30chaos_princessor, actually nvm, i confused the soc identifiers
16:30chaos_princessdon't remember post-m2 all that well :P
16:31pb17 has joined #asahi-dev
16:33hdbngr has joined #asahi-dev
16:34jannauI haven't tested extensively but I've encoutered the broken raw custom boot objects only on m4*. I don't remember if I tested m3
16:41hdbngr has quit [Ping timeout: 480 seconds]
16:51hdbngr has joined #asahi-dev
16:59hdbngr has quit [Ping timeout: 480 seconds]
17:08hdbngr has joined #asahi-dev
17:16rosalyntg has joined #asahi-dev
17:20hdbngr has quit [Ping timeout: 480 seconds]
17:24hdbngr has joined #asahi-dev
17:24ellyqwsven: should i head to your assembbly later then, or do you wanna focus on the talk? :D
17:25sveneh... realistically ill do the slides on day 3
17:25svenfeel free to head over
17:25sveni'm not nearly anxious enough to start working on them :D
17:32ellyqwack, will do after we get some cash from ATM for drinks on venue and bring some spezi (i crave spezi)
17:33abhay has quit [Read error: No route to host]
17:33abhay has joined #asahi-dev
17:33michaelrostom has quit [Ping timeout: 480 seconds]
17:34hdbngr has quit [Ping timeout: 480 seconds]
17:42hdbngr has joined #asahi-dev
17:54svenintegralpilot: do you use gcc or clang to build m1n1? maybe you're running into a variant of https://github.com/AsahiLinux/m1n1/issues/463 w.r.t your corruption
17:59abhay has quit [Remote host closed the connection]
18:00abhay has joined #asahi-dev
18:09rosalyntg_ has joined #asahi-dev
18:09rosalyntg has quit [Read error: Connection reset by peer]
18:14nnym has quit [Remote host closed the connection]
18:14nnym has joined #asahi-dev
18:16abhay has quit [Ping timeout: 480 seconds]
18:22abhay has joined #asahi-dev
18:31abhay has quit [Ping timeout: 480 seconds]
18:31abhay has joined #asahi-dev
18:43abhay has quit [Ping timeout: 480 seconds]
18:43abhay has joined #asahi-dev
19:03abhay has quit [Read error: Connection reset by peer]
19:03hdbngr has quit [Ping timeout: 480 seconds]
19:04abhay has joined #asahi-dev
19:11hdbngr has joined #asahi-dev
19:17oliverI put something out today. It works pretty fine with vanilla gnome 49 and okayish with kde for now. would be nice if someone could try this out. I have the feeling, that the whole hdr space on linux is still not really there yet... but at least it works: https://github.com/AsahiLinux/linux/pull/431
19:20hdbngr has quit [Ping timeout: 480 seconds]
19:29hdbngr has joined #asahi-dev
19:31abhay has quit [Ping timeout: 480 seconds]
19:32abhay has joined #asahi-dev
19:34oliver* and totally fine with kde too
19:37hdbngr has quit [Ping timeout: 480 seconds]
19:45hdbngr has joined #asahi-dev
19:51unsecretised has joined #asahi-dev
19:52unsecretised has quit [Remote host closed the connection]
19:54hdbngr has quit [Ping timeout: 480 seconds]
19:59abhay has quit [Read error: Connection reset by peer]
20:02hdbngr has joined #asahi-dev
20:03abhay has joined #asahi-dev
20:05michaelrostom has joined #asahi-dev
20:11hdbngr has quit [Ping timeout: 480 seconds]
20:13hdbngr has joined #asahi-dev
20:13jannauoliver: plan for internal display edid is/was to let m1n1 it embed in the device tree (or provide it as firmware)
20:15integralpilot has joined #asahi-dev
20:16oliverSounds reasonable. Do you know if I get it from macos or do I need to build one up from the ground?
20:21hdbngr has quit [Ping timeout: 480 seconds]
20:22jannauI haven't seen anything (but I haven't searched extensively) and I suspect they just hard-code their screen properties directly without EDID so building it from know properties and guesses is the only solution. I have a photo meter so we can at least to some degreee test how good our guesses are
20:24integralpilot has quit [Ping timeout: 480 seconds]
20:26rany has quit [Remote host closed the connection]
20:27rany has joined #asahi-dev
20:30hdbngr has joined #asahi-dev
20:39hdbngr has quit [Ping timeout: 480 seconds]
20:46jannauoliver: my understanding for backlight control is that kwin still wants to control the backlight for HDR. For that to work you have to set maxBrightnessOverride, maxAverageBrightnessOverride and minBrightnessOverride via kscreen-doctor: https://paste.debian.net/hidden/99798351
20:47jannauI suppose that would be normally signalled through edid
20:48hdbngr has joined #asahi-dev
20:59hdbngr has quit [Ping timeout: 480 seconds]
21:01michaelrostom has quit [Ping timeout: 480 seconds]
21:02integralpilot has joined #asahi-dev
21:07hdbngr has joined #asahi-dev
21:10integralpilot has quit [Ping timeout: 480 seconds]
21:21fl0_idsven I tried booting kernel and device tree - fails at cpufreq / core initialization I think. Next thing could be to comment out some cores like other testing trees did. but I'll leave that for tomorrow, I need some sleep soon
21:23svenyeah, same, just went back to the hotel since I’ve been up since 5am
21:23fl0_idsven oh wow sure. get some sleep :)
21:26integralpilot has joined #asahi-dev
21:26hdbngr has quit [Ping timeout: 480 seconds]
21:27ellyqwsorry, i was supposed to come around but i've been ambushed by multiple people
21:27ellyqwsleep well, sven:D
21:29sven being ambushed happened quite a few times today to me as well :D
21:33jannauoliver: DisplayID Display Parameters Data block contains "Native Maximum Luminance (Full Coverage)", "Native Maximum Luminance (10% Rectangular Coverage)" and "Native Minimum Luminance" fields. So that would be solved by providing an EDID as well
21:33jannauDisplayID standard is available free of charge after registration from https://vesa.org/vesa-standards/
21:34hdbngr has joined #asahi-dev
21:39oliverI think mutter is currently ignoring that. But sure what kwin does with that. It looks like the whole space on Linux isn't quite there yet
21:41jannaualso not quite sure how to integrate dcp's brightness control. Most practical solution might be to extend the range and clip the brightness if no HDR content is shown
21:43integralpilot has quit [Ping timeout: 480 seconds]
21:43hdbngr has quit [Ping timeout: 480 seconds]
21:45hdbngr has joined #asahi-dev
21:46jannauyou seem to be right that mutter doesn't modulate the backlight for HDR: https://blog.sebastianwick.net/posts/gnome-49-backlight-changes/
21:46oliverNot sure I understand. Did you mean: clip the brightness in hdr mode when no hdr content is visible?
21:49jannauexpose the full 1500 (or 1000) nits range as backlight values. Values over the max SDR brightness are clipped to the current max if only SDR content is shown
21:50oliverThat would need at least support by the compositor, in kernel space you don't know if you have pixels above sdr range
21:53hdbngr has quit [Ping timeout: 480 seconds]
21:55jannaubased on HDR_OUTPUT_METADATA set by the compositor
21:56oliverThat is set as soon as you switch into hdr mode, even if only sdr content is on the screen. Ah, but you mean that would be fine, but still unlock the full brightness range.
21:58oliverCurrently in mutter that wouldnt be helpful, as you can not change the real brightness in hdr mode due to mutter only using the virtual backlight control.
21:59jannauyes, maybe based on the values in the metadata
21:59jannaudoes mutter at least initially sets the backlight to 100%?
22:01oliverNo, it doesn't right now. I think I've read somewhere that this might be open for discussion.
22:01hdbngr has joined #asahi-dev
22:02oliverMy patch does though. I have to check tomorrow what kwin does if I disable that again.
22:10hdbngr has quit [Ping timeout: 480 seconds]
22:15hdbngr has joined #asahi-dev
22:23hdbngr has quit [Ping timeout: 480 seconds]
22:31hdbngr has joined #asahi-dev
22:33integralpilot has joined #asahi-dev
22:40hdbngr has quit [Ping timeout: 480 seconds]
22:48hdbngr has joined #asahi-dev
22:57hdbngr has quit [Ping timeout: 480 seconds]
23:00integralpilot has quit [Remote host closed the connection]
23:00chadmedthe driver should not force a backlight value. let userspace do what it wants with it
23:00chadmeddoing that will also not play nice once we wire up ddc for external monitors
23:01chadmedfaking edid for the builtin screens seems fine though, but we will need to force dcp to put the panel colorimetry and eotf into the correct mode or the resutls will be "wrong"
23:02chadmedcurrently ColorElements and TimingElements only show SDR and
23:03chadmed"default" RGB for the builtin screens. we know the 14/16" machines are DisplayP3 and can do both HLG and PQ, and DCP supports all this
23:03chadmedagain making sure its idea of what the display can do is important when multiple surfaces have content of different colour/dynamic range. we cant rely on DCP_COLORSPACE_NATIVE doing the right thing.
23:05hdbngr has joined #asahi-dev
23:06jannauColor and Timing Elements seem to derived from te EDID in the dcp firmware and since the internal displays don't have one we get bogus information there
23:07chadmedthats okay we can fake it, as long as we can force a modeset into the correct colorimetry and eotf
23:10lmIs there per-device colour calibration data used by DCP?
23:12chadmedthere might be a cal blob somewhere, but this is less important than just getting dcp to output in the display's proper colour space
23:12jannauthat's afaik already loaded by iboot. but the driver can provide temperature measurements for temp compensation
23:14hdbngr has quit [Ping timeout: 480 seconds]
23:14lmYeah true, just wondering how it all comes to together
23:16hdbngr has joined #asahi-dev
23:16lmDoes true tone work via DCP or is that managed in software? Just curious if those dynamic colour adjustments are happening at the hardware level
23:18chadmedit happens in iomfb. macos feeds it a colour transform matrix and it applies that to screen space after its composited all the swap surfaces
23:19lminteresting. is that fed straight from the light sensor?
23:21chadmednot sure but i doubt the light sensor can spit out a ready to use CTM
23:24hdbngr has quit [Ping timeout: 480 seconds]
23:34hdbngr has joined #asahi-dev
23:40integralpilot has joined #asahi-dev
23:41integralpilotsven: the most common corruption symptom (SError) always happens while XNU starts up the secondary core, so might be a variant. I’ll look into it, thanks!
23:42hdbngr has quit [Ping timeout: 480 seconds]
23:49integralpilot has quit [Ping timeout: 480 seconds]
23:51chadmedoliver: what framebuffer format does gnome use for hdr
23:53hdbngr has joined #asahi-dev
23:54rany_ has joined #asahi-dev
23:55chadmedif its xrgb2101010/argb2101010 we will need to rework how we map drm formats to dcp formats
23:56chadmedit uses the format fourccs for more than just the framebuffer format, e.g. r03w is argb2101010 but so is r01l. only the latter works properly for sdr argb2101010 framebuffers
23:56rany has quit [Ping timeout: 480 seconds]
23:58rany_ is now known as rany
…