#
✕ nick:DmitrySharshakov[m]
#asahi-dev · 2022-08-29 10:03
DmitrySharshakov[m]Understood, thanks
#asahi-dev · 2022-08-29 10:02
DmitrySharshakov[m]You answered this probably
#asahi-dev · 2022-08-29 10:02
DmitrySharshakov[m]I mean DP audio
#asahi-dev · 2022-08-29 09:57
DmitrySharshakov[m]jannau: how's audio routed into DCP? I couldn't find its way inside the driver
#asahi-dev · 2022-08-28 12:54
DmitrySharshakov[m]I guess MacBook has the whole back cover as a heatsink to those LEDs, so they should be safe. To heat up over 50 degrees they need a couple tens of watts
#asahi-dev · 2022-08-28 12:51
DmitrySharshakov[m]Laptop LED backlight almost never has issues. Only TVs burn like that
#asahi-dev · 2022-08-28 12:39
DmitrySharshakov[m]Also, what is the temperature range backlight can heat up? Maybe that's not only a technique to compensate light intensity correlation with temperature, but also a protection mechanism? I really hope it has proper cooling from the top cover and cannot be really hotter than ~50 °C
#asahi-dev · 2022-08-28 12:26
DmitrySharshakov[m]What remains untested or nonfunctional within DCP driver which prevents it from being in Asahi kernel? If gamma LUT change is proposed than it could be changed
#asahi-dev · 2022-08-28 12:22
DmitrySharshakov[m]Sound amps also have temp sensor available via i2c regs, so add 6 more on Pro's :)
#asahi-dev · 2022-08-28 12:21
DmitrySharshakov[m]I guess AS machines are going to have the most hwmon sensors ever
#asahi-dev · 2022-08-28 12:19
DmitrySharshakov[m]Did you take the dump on Liquid Retina XDR-enabled laptop (14" or 16")?
#asahi-dev · 2022-08-28 12:18
DmitrySharshakov[m]jannau: So you know current drive but don't know nits :/
#asahi-dev · 2022-08-28 12:17
DmitrySharshakov[m]jannau: Does SMC report something related to screen temp?
#asahi-dev · 2022-08-28 12:11
DmitrySharshakov[m]Is there nits-to-pwm-percentage record for the screen and touchbar?
#asahi-dev · 2022-08-28 12:11
DmitrySharshakov[m]could you please paste?
#asahi-dev · 2022-08-28 12:08
DmitrySharshakov[m]What formats are those nodes and their data? Is there a dump to look at?
#asahi-dev · 2022-08-28 12:08
DmitrySharshakov[m]But that shouldn't matter for LCDs even in pro workloads
#asahi-dev · 2022-08-28 12:07
DmitrySharshakov[m]Maybe that's not color temperature but some thermal coefficients xD
#asahi-dev · 2022-08-28 12:07
DmitrySharshakov[m]Temperature compensation independent from gamma? Weird thing
#asahi-dev · 2022-08-28 12:00
DmitrySharshakov[m]Are those in the ADT dump?
#asahi-dev · 2022-08-28 11:51
DmitrySharshakov[m]So what are the showstoppers on the DCP code now?
#asahi-dev · 2022-08-28 11:51
DmitrySharshakov[m]Hmm, okay, just need to find the right place to obtain a copy of calibration data (to the firmware question)
#asahi-dev · 2022-08-28 11:47
DmitrySharshakov[m]Color management is a problem for HDR, where you need to process a lot of colorspaces and extra metadata
#asahi-dev · 2022-08-28 11:46
DmitrySharshakov[m]chadmed: Yes, when KWin applies the gamma (e.g. night colour setting), it does this over the whole screen
#asahi-dev · 2022-08-28 11:46
DmitrySharshakov[m]sven: Well, I know it's somewhere in /usr/share for macOS, but to persist between reinstalls and wiping it should be somewhere in DT or EDID-like thing
#asahi-dev · 2022-08-28 11:44
DmitrySharshakov[m]chadmed: I guess ICC profiles worked on Wayland for long now (with default colorspace)
#asahi-dev · 2022-08-28 11:43
DmitrySharshakov[m]Unsure, but maybe simple simpledrm also can apply gamma ramps needed for calibration
#asahi-dev · 2022-08-28 11:42
DmitrySharshakov[m]Btw does the script also forward the ICC profile to Linux? It could be useful, since all Macs have factory screen calibration. When DCP is ready (btw what stops it from being merged into Asahi branch?) we'll 100% be able to make use of it
#asahi-dev · 2022-08-28 09:35
DmitrySharshakov[m]Well, generally Apple also does ~10 years cycle (with end of it being maintenance bugfixes and security only), but with Linux the same HW should remain useful for a lot more considering its power. And, of course, those drivers need to be flexible enough (proven by M2) to be adaptable for newer generations
#asahi-dev · 2022-08-28 09:28
DmitrySharshakov[m]sven: maybe
#asahi-dev · 2022-08-28 09:28
DmitrySharshakov[m]Well, not adding UAT as a type of IOMMU page, but introducing a fake driver translating UAT into common IOMMU call
#asahi-dev · 2022-08-28 09:25
DmitrySharshakov[m]just why?
#asahi-dev · 2022-08-28 09:19
DmitrySharshakov[m]This exactly :) Also any Linux driver has to match other drivers' and userspace behavior, so it needs some more complex approach
#asahi-dev · 2022-08-28 09:10
DmitrySharshakov[m]lol having no need to detect things saves quite a lot of thinking and LoC
#asahi-dev · 2022-08-28 09:07
DmitrySharshakov[m]So macOS didn't ever have this problem as XNU is the reset vector (or called shortly after it)
#asahi-dev · 2022-08-28 09:06
DmitrySharshakov[m]That changes all the things. If m1n1 has to do that, then let it be sorta firmware to deal with PSCI in a generic manner. Will also reduce code duplication then. Thanks for explaining!
#asahi-dev · 2022-08-28 09:03
DmitrySharshakov[m] * Yes, I was asking why they won't
#asahi-dev · 2022-08-28 09:03
DmitrySharshakov[m]Yes, I was asking why they won't?
#asahi-dev · 2022-08-28 09:02
DmitrySharshakov[m]Why cannot it be done this way for Apple SoCs?
#asahi-dev · 2022-08-28 09:02
DmitrySharshakov[m]I've seen various cpuidle drivers for arm not being backed by psci, like [some Qualcomm one](https://github.com/torvalds/linux/blob/master/drivers/cpuidle/cpuidle-qcom-spm.c)
#asahi-dev · 2022-08-28 08:58
DmitrySharshakov[m]j`ey: can I have a link to the branch?
#asahi-dev · 2022-08-28 08:58
DmitrySharshakov[m]Ah, m1n1 will also implement a part of EFI stuff
#asahi-dev · 2022-08-28 08:58
DmitrySharshakov[m]Ah, cool. So it'll call into U-Boot or so? I've not really seen PSCI-in-EFI
#asahi-dev · 2022-08-28 08:57
DmitrySharshakov[m]Probably needs a long-term solution that won't be a roadblocker to running the kernel in EL2
#asahi-dev · 2022-08-28 08:56
DmitrySharshakov[m]Ah, so are you planning to run a bit of code in EL2 for the kernel to call into for PSCI actions?
#asahi-dev · 2022-08-28 08:54
DmitrySharshakov[m]Are you going to do it by a new register-based driver or adapt PSCI for running in EL2? Btw does OpenBSD kernel on M1/M2 run in EL2?
#asahi-dev · 2022-08-28 08:32
DmitrySharshakov[m]well, yes actually!
#asahi-dev · 2022-08-28 08:29
DmitrySharshakov[m]understood, good luck REing it for a perfect driver
#asahi-dev · 2022-08-28 08:25
DmitrySharshakov[m]Or there's DCP dependency for it to work with external display?
#asahi-dev · 2022-08-28 08:24
DmitrySharshakov[m]Like plain DP not tunneled in TB4

plus ›