#
#asahi-dev · 2023-04-19 19:16
jannausome avd work is here https://github.com/ArcaneNibble/m1n1/commits/avd
#asahi-dev · 2023-04-19 19:14
jannauyes, R and Jamie
#asahi-dev · 2023-04-19 19:14
ChaosPrincesswas it R who looked into avd/ave? or someone else?
#asahi-dev · 2023-04-19 19:10
jannauthe decode firmware was so horrible that the persons looked into it decided it would be easier to interact with the hw directly
#asahi-dev · 2023-04-19 19:09
jannauthe coprocessor then interacts with the real codec hw
#asahi-dev · 2023-04-19 19:09
ChaosPrincessalso there is a m1n1 experiment for prores
#asahi-dev · 2023-04-19 19:08
ChaosPrincessdecode uses some cursed firmware, while encode does rtkit
#asahi-dev · 2023-04-19 19:08
jannaueach block has custom co-processsor which apple's driver talk to over mailbox + shared memory
#asahi-dev · 2023-04-19 19:06
jannauthere are one or more video decode unit (h264, h265, vp9), encode (h264, h265, ...?) and prores decoder/encoder
#asahi-dev · 2023-04-19 19:05
ocreteare there notes anywhere ?
#asahi-dev · 2023-04-19 19:05
jannauocrete: people started looking into it but there wasn't any progress in the last few months that I'm aware of
#asahi-dev · 2023-04-19 19:02
ocreteHeya! Has anyone looked at the video codec ? I'm curious to know what is done in software vs firm/hardware ?
#asahi-dev · 2023-04-19 07:43
mpsfine, DSI display is there
#asahi-dev · 2023-04-19 07:42
mps`xrandr -q` => https://tpaste.us/vNoO
#asahi-dev · 2023-04-19 07:38
mpssorry I don't have kde and I don't have any experience with KDE, last time I tried it was before 1998 year
#asahi-dev · 2023-04-19 07:37
mpsbut I have no idea what I can do with it
#asahi-dev · 2023-04-19 07:37
ChaosPrincesstry booting into wayland kde and going to display configuration
#asahi-dev · 2023-04-19 07:37
mpsdmesg out is here https://tpaste.us/5XQ9
#asahi-dev · 2023-04-19 07:36
mpsChaosPrincess: it is detected and I see another card in /dev/dri
#asahi-dev · 2023-04-19 07:33
ChaosPrincessactually, you'd probably have to rebuild m1n1 to get new device trees
#asahi-dev · 2023-04-19 07:32
ChaosPrincessconfig drm adp is enough, newer m1n1 and firmware are needed for the digitizer part which is in a separate pr, this is only screen
#asahi-dev · 2023-04-19 07:20
mpsand CONFIG_DRM_ADP=y is enough for enabling it?
#asahi-dev · 2023-04-19 07:20
mpsChaosPrincess: is the newer m1n1 needed to test it
#asahi-dev · 2023-04-19 07:06
ChaosPrincessWould appreciate someone reviewing this
#asahi-dev · 2023-04-19 07:05
ChaosPrincesshttps://github.com/AsahiLinux/linux/pull/137
#asahi-dev · 2023-04-19 06:03
nicolas17hmm do M* SoCs even have the recfg engine?
#asahi-dev · 2023-04-19 05:58
marcanthese days the CPUs power down any time they're idle
#asahi-dev · 2023-04-19 05:58
marcanback in the day you'd have needed s2ram for good battery
#asahi-dev · 2023-04-19 05:58
marcanyou can tell this has all been improving with newer hardware from the xnu dumps
#asahi-dev · 2023-04-19 05:58
marcanthat's what I enabled in the cpuidle stuff the other day
#asahi-dev · 2023-04-19 05:57
marcannicolas17: the ACCs have "deep sleep" but it's not yet clear how much power it saves over CPU deep idle (which also powers down the individual cores)
#asahi-dev · 2023-04-19 05:57
marcanultimately the only difference with s2ram is that in s2ram the CPUs go into effectively shutdown and the RAM goes into self-refresh... but there's no reason that wouldn't be achievable with the CPUs in deep sleep if you manage to quiesce all RAM traffic
#asahi-dev · 2023-04-19 05:57
nicolas17iPhones have "deep sleep", not sure how that compares to laptop s2ram but afaik they fully power off the main CPUs
#asahi-dev · 2023-04-19 05:55
marcans2idle isn't just "be idle", you still put all devices into low power mode, we save about 1W over plain system idle right now and I'm sure there's more we can do
#asahi-dev · 2023-04-19 05:54
marcanI think if macOS had been designed around AS from the get go they probably wouldn't have bothered with s2ram, and I still think there's a good chance we can get s2idle to be just about as good
#asahi-dev · 2023-04-19 05:54
marcanwhich is probably why it's designed this way
#asahi-dev · 2023-04-19 05:54
marcanand the whole s2ram thing would've been way more critical on intel since s2idle on intel is... not great
#asahi-dev · 2023-04-19 05:53
marcanyeah
#asahi-dev · 2023-04-19 05:53
nicolas17"I suspenct macOS still periodically wakes up to do stuff" I think this is even done on Intel, called "powernap" in marketing and "dark wake" internally
#asahi-dev · 2023-04-19 05:50
marcanyeah
#asahi-dev · 2023-04-19 05:50
nicolas17yeah and there's also the "sleep proxy"
#asahi-dev · 2023-04-19 05:50
marcanthe wifi implements ARP/ping/mDNS directly on the wifi card, so yeah, they're cheating
#asahi-dev · 2023-04-19 05:49
nicolas17it's always responsive to network, but I *know* Apple has separate tricks for that (even on Intel), so it's hard to tell when it's really asleep
#asahi-dev · 2023-04-19 05:49
marcan(among other things because there have been multiple macOS issues with suspend battery drain, probably caused by such wakeups)
#asahi-dev · 2023-04-19 05:48
marcanat least on battery with default config, it's s2ram, but I suspenct macOS still periodically wakes up to do stuff and that's how it implements charge control
#asahi-dev · 2023-04-19 05:48
marcanwell, it depends on config
#asahi-dev · 2023-04-19 05:47
marcanthat's... a good question
#asahi-dev · 2023-04-19 05:47
nicolas17if I close the lid, for hours... in what state is macOS? is it in something closer to Linux's s2idle or s2ram?
#asahi-dev · 2023-04-19 05:47
marcanthe ones exposed to userspace in sysfs have no safeties, you can ask it to discharge and it will happily run down your battery to emergency shutdown even while plugged in
#asahi-dev · 2023-04-19 05:46
marcanthe one for optimized battery charging has an auto safety trip at 50% where it does autonomously go back to charging, presumably to prevent the battery from outright dying in sleep mode

plus ›