#
…

2026-04-11

01:26roxfan2 has quit [Ping timeout: 480 seconds]
01:44lukeleppan9 has quit [Ping timeout: 480 seconds]
02:05lukeleppan9 has joined #asahi-dev
02:15voidah has quit [Ping timeout: 480 seconds]
02:21voidah has joined #asahi-dev
02:33WindowPain2 has joined #asahi-dev
02:33hexdump0815 has joined #asahi-dev
02:35hexdump02 has quit [Ping timeout: 480 seconds]
02:36WindowPain has quit [Ping timeout: 480 seconds]
02:36WindowPain2 is now known as WindowPain
02:41chadmed has quit [Ping timeout: 480 seconds]
02:42chadmed has joined #asahi-dev
02:55tobhe has joined #asahi-dev
03:02tobhe_ has quit [Ping timeout: 480 seconds]
03:20roxfan has joined #asahi-dev
03:24nora_ has joined #asahi-dev
03:25gargantua has joined #asahi-dev
03:26nora has quit [Ping timeout: 480 seconds]
04:17Pokemod97736208471281 has quit [Ping timeout: 480 seconds]
04:29eluks has quit [Remote host closed the connection]
04:30eluks has joined #asahi-dev
04:31Pokemod97736208471281 has joined #asahi-dev
04:34kevans91 has quit [Quit: leaving]
04:35Pokemod977362084712818 has joined #asahi-dev
04:36Pokemod97736208471281 has quit [Read error: Connection reset by peer]
04:41voidah has quit [Ping timeout: 480 seconds]
04:46kevans91 has joined #asahi-dev
04:46kevans91 has quit [Remote host closed the connection]
04:49kevans91 has joined #asahi-dev
04:50voidah has joined #asahi-dev
05:47bennofs has quit [Ping timeout: 480 seconds]
06:12dataviruset has joined #asahi-dev
06:18fumnanya has joined #asahi-dev
06:21voidah has quit [Ping timeout: 480 seconds]
06:29voidah has joined #asahi-dev
06:32fumnanya has quit [Ping timeout: 480 seconds]
06:42voidah has quit [Ping timeout: 480 seconds]
06:50voidah has joined #asahi-dev
06:56dataviruset has quit [Quit: dataviruset]
07:00weirdtreething has quit [Remote host closed the connection]
07:00weirdtreething has joined #asahi-dev
07:00voidah has quit [Ping timeout: 480 seconds]
07:08voidah has joined #asahi-dev
07:17voidah has quit [Ping timeout: 480 seconds]
07:19fumnanya has joined #asahi-dev
07:24voidah has joined #asahi-dev
07:33fumnanya has quit [Ping timeout: 480 seconds]
07:43voidah has quit [Ping timeout: 480 seconds]
07:45dataviruset has joined #asahi-dev
07:46dataviruset has quit []
07:48dataviruset has joined #asahi-dev
07:53voidah has joined #asahi-dev
08:02voidah has quit [Ping timeout: 480 seconds]
08:03Oskar[m] has joined #asahi-dev
08:10voidah has joined #asahi-dev
08:16dataviruset has quit [Ping timeout: 480 seconds]
08:18dataviruset has joined #asahi-dev
08:19dataviruset has quit []
08:19voidah has quit [Ping timeout: 480 seconds]
08:20fumnanya has joined #asahi-dev
08:28voidah has joined #asahi-dev
08:36fumnanya has quit [Ping timeout: 480 seconds]
08:44voidah has quit [Ping timeout: 480 seconds]
08:47fumnanya has joined #asahi-dev
08:53voidah has joined #asahi-dev
09:03voidah has quit [Ping timeout: 480 seconds]
09:12voidah has joined #asahi-dev
09:21voidah has quit [Ping timeout: 480 seconds]
09:26simvalue has joined #asahi-dev
09:29voidah has joined #asahi-dev
09:45voidah has quit [Ping timeout: 480 seconds]
09:50Nefsen402_ has quit [Remote host closed the connection]
09:51Nefsen402 has joined #asahi-dev
09:53voidah has joined #asahi-dev
09:56pb17 has quit [Ping timeout: 480 seconds]
10:02voidah has quit [Ping timeout: 480 seconds]
10:11voidah has joined #asahi-dev
10:13pb17 has joined #asahi-dev
10:18gargantua has quit [Ping timeout: 480 seconds]
10:18gargantua has joined #asahi-dev
10:20voidah has quit [Ping timeout: 480 seconds]
10:24___nick___ has joined #asahi-dev
10:29voidah has joined #asahi-dev
10:46voidah has quit [Ping timeout: 480 seconds]
10:55voidah has joined #asahi-dev
10:59jannauchaos_princess: did you still got occasional bt audio artifacts during scanning? I initially got some but after reconnecting it's fine for minutes
11:01chaos_princessno, i've had both kde connect and the scanning ui open while playing audio and had no noticeable issues
11:04voidah has quit [Ping timeout: 480 seconds]
11:09jannauit was fine yesterday when testing on fedora under the hypervisor. on gentoo I experienced stutter with 2 different bt audio devices initially. It's fine now for minutes though.
11:12voidah has joined #asahi-dev
11:21voidah has quit [Ping timeout: 480 seconds]
11:29voidah has joined #asahi-dev
11:47voidah has quit [Ping timeout: 480 seconds]
11:55voidah has joined #asahi-dev
11:55yuyichao has quit [Quit: Konversation terminated!]
11:56yuyichao has joined #asahi-dev
12:02first_thunder has quit [Quit: The Lounge - https://thelounge.chat]
12:03first_thunder has joined #asahi-dev
12:04voidah has quit [Ping timeout: 480 seconds]
12:08fumnanya has quit [Ping timeout: 480 seconds]
12:09fumnanya has joined #asahi-dev
12:12voidah has joined #asahi-dev
12:15__nick__ has joined #asahi-dev
12:19___nick___ has quit [Ping timeout: 480 seconds]
12:19fumnanya has quit [Remote host closed the connection]
12:21voidah has quit [Ping timeout: 480 seconds]
12:30voidah has joined #asahi-dev
12:51voidah has quit [Ping timeout: 480 seconds]
13:00voidah has joined #asahi-dev
13:09voidah has quit [Ping timeout: 480 seconds]
13:12___nick___ has joined #asahi-dev
13:15__nick__ has quit [Ping timeout: 480 seconds]
13:17michaelros40 has joined #asahi-dev
13:17michaelros4 has quit [Read error: Connection reset by peer]
13:17michaelros40 is now known as michaelros4
13:17nukelet1 has joined #asahi-dev
13:18nukelet has quit [Remote host closed the connection]
13:19voidah has joined #asahi-dev
13:19weirdtreething has quit [Remote host closed the connection]
13:21weirdtreething has joined #asahi-dev
13:28voidah has quit [Ping timeout: 480 seconds]
13:30nukelet13 has joined #asahi-dev
13:32flokliVery nice! Do you expect this to be upstreamable?
13:34chaos_princessit is already sent to ml
13:34nukelet1 has quit [Ping timeout: 480 seconds]
13:36fumnanya has joined #asahi-dev
13:36voidah has joined #asahi-dev
14:06voidah has quit [Ping timeout: 480 seconds]
14:08fumnanya has quit [Ping timeout: 480 seconds]
14:10gargantua has quit [Ping timeout: 480 seconds]
14:14voidah has joined #asahi-dev
14:24voidah has quit [Ping timeout: 480 seconds]
14:32voidah has joined #asahi-dev
14:34michaelros47 has joined #asahi-dev
14:35michaelros4 has quit [Read error: Connection reset by peer]
14:35michaelros47 is now known as michaelros4
14:41voidah has quit [Ping timeout: 480 seconds]
14:50voidah has joined #asahi-dev
14:59voidah has quit [Ping timeout: 480 seconds]
15:07voidah has joined #asahi-dev
15:16voidah has quit [Ping timeout: 480 seconds]
15:24voidah has joined #asahi-dev
15:33voidah has quit [Ping timeout: 480 seconds]
15:41voidah has joined #asahi-dev
15:55pb17 has quit [Ping timeout: 480 seconds]
15:56pb17 has joined #asahi-dev
16:09someone[m]1 has joined #asahi-dev
16:18voidah has quit [Ping timeout: 480 seconds]
16:26voidah has joined #asahi-dev
16:30xarkesfinally spent some more time on m4, I now have a working keyboard
16:36___nick___ has quit []
16:36voidah has quit [Ping timeout: 480 seconds]
16:38fl0_idxarkes whoop whoop
16:38___nick___ has joined #asahi-dev
16:38___nick___ has quit []
16:40___nick___ has joined #asahi-dev
16:44voidah has joined #asahi-dev
16:53voidah has quit [Ping timeout: 480 seconds]
17:01voidah has joined #asahi-dev
17:11voidah has quit [Ping timeout: 480 seconds]
17:14freetolga has joined #asahi-dev
17:16freetolgaxarkes: only keyboard or did you fix the stability issue?
17:17xarkeswhat stability issue?
17:17freetolgayou were talking about your dts being unstable when you first wrote it
17:18xarkesah yeah aerm it was more like a chair <-> keyboard interface problem, but it works fine now
17:19freetolgaI had some other success i shared in offtopic and im getting really bored of macos and strongly believe its holding back the m4 cpu so im motivated to try dts things with you
17:21freetolgaDo i just take your dts, compile it with latest asahi kernel and concatenate it with m1n1?
17:21voidah has joined #asahi-dev
17:21xarkesnah, you need at least one patch in the aic driver otherwise it wont boot
17:23freetolgaWhat is the goal right now for you
17:25xarkeswell I guess it's helping the overall progress on m4, what I'm doing at the moment is pretty basic tbh, compared to what's coming ahead
17:26freetolgai may be motivated but i know literally 0 about this
17:26freetolgabut i got some other arm devices to play with ig
17:30voidah has quit [Ping timeout: 480 seconds]
17:38voidah has joined #asahi-dev
17:39fumnanya has joined #asahi-dev
17:47fumnanya has quit [Ping timeout: 480 seconds]
17:47voidah has quit [Ping timeout: 480 seconds]
17:56voidah has joined #asahi-dev
18:05voidah has quit [Ping timeout: 480 seconds]
18:10voidah has joined #asahi-dev
18:14lacamar[m]xarkes: nice
18:19voidah has quit [Ping timeout: 480 seconds]
18:27voidah has joined #asahi-dev
18:37voidah has quit [Ping timeout: 480 seconds]
18:44voidah has joined #asahi-dev
18:48ravikant_ has joined #asahi-dev
18:48tryhard[m]chaos_princess: where do you actually send the messages in your driver for devpwr?
18:51chaos_princessi don't. v2 no longer sends messages for that but instead has a bitmap in shared memory. https://github.com/AsahiLinux/linux/blob/asahi-wip/drivers/pmdomain/apple/pmp-report.c#L114
18:53tryhard[m]yes i saw that. then i guess the job is simpler now. although i don't understand how exactly i get the reporting in the driver from the dtsi.
18:53voidah has quit [Ping timeout: 480 seconds]
18:55chaos_princessso, some nodes in the dt have "power-domains" that links to another device (pmp-report-entry in v2's case). if those are set, then before using the device, linux powers it on using the genpd callbacks https://github.com/AsahiLinux/linux/blob/asahi-wip/drivers/pmdomain/apple/pmp-report.c#L166
19:01voidah has joined #asahi-dev
19:02tryhard[m]so what are those apple_pmp_report_offsets?
19:03ravikant_ has quit []
19:03chaos_princessjust offsets into said shared memory area that the driver and PMP use. v2-exclusive stuff.
19:04tryhard[m]it justs seems that apple_pmp_report_of_match uses those
19:08chaos_princessthe .data in struct of_device_id is just whatever model-specific data the driver wants to have. i store it in apple_pmp_report.offsets, and then use it to calculate the addresses to read/write, such as here https://github.com/AsahiLinux/linux/blob/asahi-wip/drivers/pmdomain/apple/pmp-report.c#L110
19:10freetolga has quit []
19:10voidah has quit [Ping timeout: 480 seconds]
19:11fumnanya has joined #asahi-dev
19:11voidah has joined #asahi-dev
19:20voidah has quit [Ping timeout: 480 seconds]
19:20fumnanya has quit [Ping timeout: 480 seconds]
19:29voidah has joined #asahi-dev
19:36___nick___ has quit []
19:38___nick___ has joined #asahi-dev
19:38___nick___ has quit []
19:38voidah has quit [Ping timeout: 480 seconds]
19:40___nick___ has joined #asahi-dev
19:42Calandracas_ has joined #asahi-dev
19:47voidah has joined #asahi-dev
19:49Calandracas__ has quit [Ping timeout: 480 seconds]
19:56voidah has quit [Ping timeout: 480 seconds]
20:06___nick___ has quit [Remote host closed the connection]
20:06voidah has joined #asahi-dev
20:21voidah has quit [Ping timeout: 480 seconds]
20:30voidah has joined #asahi-dev
20:37marvin24 has quit [Ping timeout: 480 seconds]
20:39voidah has quit [Ping timeout: 480 seconds]
20:45michaelros4 has quit [Quit: The Lounge - https://thelounge.chat]
20:45michaelros4 has joined #asahi-dev
20:46crabbedhaloablut has quit []
20:47crabbedhaloablut has joined #asahi-dev
20:47voidah has joined #asahi-dev
20:50michaelros4 has quit [Quit: The Lounge - https://thelounge.chat]
20:51michaelros4 has joined #asahi-dev
20:54fumnanya has joined #asahi-dev
20:55dataviruset has joined #asahi-dev
20:55dataviruset has quit []
21:01Yushi has quit [Read error: Connection reset by peer]
21:02Yushi has joined #asahi-dev
21:03fumnanya has quit [Ping timeout: 480 seconds]
21:03tryhard[m]i need then to send a message through rtkit, but i think that the main driver is already initializaing rtkit so it might not be a good idea to reinit in c?
21:05voidah has quit [Ping timeout: 480 seconds]
21:12voidah has joined #asahi-dev
21:17chaos_princessnot sure why you want to reinit in c
21:18chaos_princessmy "rust for init, c for actual communication" split works because the rtkit and sram parts of pmp are effectively independent
21:19chaos_princessin your case you want your driver for "entry" devices to call a function on your main driver, that will in turn send a rtkit message
21:19tryhard[m]because i need to send the devpwr messages whenever the kernel asks for.
21:20tryhard[m]chaos_princess: ok that's good.
21:21chaos_princessif you look at the pmp v2 driver, you will see how the "pmp-reporting-entry" drivers just delegate to "pmp-reporting". You should do something like that, but in your case you have just 2 drivers instead of 3 like for v2
21:22tryhard[m]i thought at first to use pmdomain in rust but it seems there are no bindings for it
21:22voidah has quit [Ping timeout: 480 seconds]
21:22chaos_princessyea, kinda why i have the c/rust split :P
21:23chaos_princessthough genpd bindings don't look that hard to make
21:24tryhard[m]i think it should be easy
21:24tryhard[m]i mean creating bindings is not really hard
21:25tryhard[m]that's the point of it
21:25chaos_princessi mean full abstractions.
21:26chaos_princessbasically, you aren't supposed to use anything under bindings:: from drivers directly, if you do that, it is not upstreamable
21:26tryhard[m]but asahi drivers use rtkit
21:26chaos_princessthats because we have rtkit abstractions
21:28tryhard[m]but that like uses bindings no?
21:28tryhard[m]there is rtkit.c and there is rtkit.rs
21:28chaos_princessthat part is in the kernel crate, no in the drivers crate
21:28chaos_princessyou can use bindings:: from that one
21:28tryhard[m]its in soc/apple
21:29tryhard[m]drivers/soc/apple
21:29chaos_princessit is in rust/kernel/soc/apple/rtkit.rs
21:30tryhard[m]i thought u talk about .c. nvm then
21:31voidah has joined #asahi-dev
21:40voidah has quit [Ping timeout: 480 seconds]
21:44fumnanya has joined #asahi-dev
21:45tryhard[m]chaos_princess: should i make them talk in shared memory?
21:45chaos_princessyour two drivers?
21:46chaos_princesslook at what aop and aop_audio do
21:48voidah has joined #asahi-dev
21:56fumnanya has quit [Ping timeout: 480 seconds]
21:57voidah has quit [Ping timeout: 480 seconds]
22:06voidah has joined #asahi-dev
22:20pain487[m] has joined #asahi-dev
22:21fumnanya has joined #asahi-dev
22:23voidah has quit [Ping timeout: 480 seconds]
22:30voidah has joined #asahi-dev
22:31fumnanya has quit [Ping timeout: 480 seconds]
22:37cy8aer has quit [Remote host closed the connection]
22:42pb17 has quit [Ping timeout: 480 seconds]
22:44hwpplayer1 has joined #asahi-dev
22:45hwpplayer1 has quit []
22:46pb17 has joined #asahi-dev
22:57cy8aer has joined #asahi-dev
23:41gargantua has joined #asahi-dev
23:49voidah has quit [Ping timeout: 480 seconds]
23:59voidah has joined #asahi-dev
…