#
…

2023-01-23

00:24sawyer has quit [Quit: Textual IRC Client: www.textualapp.com]
01:03whomst has joined #asahi-dev
01:08swaggie has joined #asahi-dev
01:10eiln has joined #asahi-dev
01:11eilnsawyer: ^
01:12seeeath has joined #asahi-dev
01:23seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:24whomst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:28seeeath has joined #asahi-dev
01:29whomst has joined #asahi-dev
01:59whomst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:00seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:17whomst has joined #asahi-dev
02:36eiln has quit [Quit: Page closed]
02:43faruk has joined #asahi-dev
02:51whomst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:54whomst has joined #asahi-dev
02:58hightower3 has joined #asahi-dev
03:05hightower2 has quit [Ping timeout: 480 seconds]
03:15whomst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
03:17seeeath has joined #asahi-dev
03:22marcanjannau: I'm also going to push some of lina's RTKit changes to asahi-soc and send a pull soonish. If you want to get your DCP-relevant changes in too, feel free to send those out and they can all go into the same batch :)
03:36WindowPa- has joined #asahi-dev
03:36WindowPain has quit [Read error: Connection reset by peer]
03:38whomst has joined #asahi-dev
03:58faruk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:16faruk has joined #asahi-dev
04:26zalyx has quit [Quit: later alligator]
04:28zalyx has joined #asahi-dev
04:34faruk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:45hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:48seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:35hertz has joined #asahi-dev
05:45nicolas17 has quit [Ping timeout: 480 seconds]
06:09swaggie has quit [Remote host closed the connection]
06:37jannaumarcan: I'm not sure I even need the devm_apple_rtkit_free() or do you mean your apple_rtkit_idle() as well?
06:37marcanI meant idle as well
06:37hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:37marcanBut I think I added that? :p
06:38jannauyes, you did
06:38whomst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
06:39jannaudid you get the the function signatures in trace_dcp.py automatically from binary analysis?
06:41jannauthe change for swap_submit_dcp feels like apple added a second swaprec and set of 4 surfaces
06:41marcanhm, interesting
06:41marcanyou can just strings the driver and c++filt it to get the signatures for the calls IIRC (callbacks are a bit trickier)
06:42jannauit doesn't quite fit with the increase in swaprec/iosurface size changes
06:42jannaubut it doubles the amount of nullable pointers
06:43jannauah, easier than I thought
06:43marcanyou'll need to 's/^_//' to get c++filt to like it
06:43marcanbut other than that yeah
06:44marcanwe can move to -re if you need to do more than that, but basically I'm not worried about looking into the DCP driver to get marshalling/interface info because it's just mandatory to make this work, effectively becoming part of the hardware interface
06:46jannauI don't need that to get dcp to work with 13.2. this is more curiosity about the use case
06:46marcanyeah, at least double check the prototype, it'll tell you if it's outright a new argument (or if it changed to an array or something)
06:47marcanof course you only get the top level out of that, individual types can have custom marshalling rules and that is not something strings will show
06:47jannaumight be just for tiling on higher resolutions but could also for MST support
06:48marcanMST would be interesting
06:48marcanI also wonder if it means we might get to abuse the 2 pipes separately on existing hardware
06:49marcanI assumed on 12.3 it just worked using tiling, virtually cutting the one output canvas into 2 pipes, which is not ideal. But you'd think under the hood the 2 pipes are independent and could reference completely different layers/surfaces, which would be a lot nicer to actually use them separately.
06:49marcanit's entirely possible existing hardware can do MST and it was just missing firmware support too
06:52marcanjannau: re the devm free, dunno if you saw Lina is adding non-devm functions for Rust. maybe you can just use that?
06:57swaggie has joined #asahi-dev
06:58jannauthere is a second array of IOSurfaces* but otherwise just standard type pointers
07:43marcanChaosPrincess: have you tried setting bits_per_word=16 on the SPI client for Z2? that might do all the byteswapping stuff for you the way you want. I'm pretty sure I implemented 8/16/32 in the driver (and 16 will be more efficient than 8).
07:44marcanin principle SPI is always big endian and SPI buffers are always CPU-endian on Linux, so setting that to 16 should let you view everything as CPU-endian at every level and avoid all the byte swapping entirely.
07:45marcan(both in the driver and in the firmware extractor)
07:47jannauoh, I still have "APPLE_RTKIT_PWR_STATE_INIT = 0x220" for dcp. WAKEUP or RESUME might be a better name with 0x201 named IDLE
07:48marcanah yeah, feel free to rename it and send that one out
08:11ChaosPrincessmarcan: I did 8 bit writes since thats what macos does, but gonna try 16bit and seeing how it goes
08:13marcanthe device won't know the difference
08:13marcanentirely possible their SPI driver doesn't support anything else even though the hardware does
08:23povikmarcan: opinion on the above?
08:25marcanpovik: the name is confusing, but I'll have to think about it. this is about the suspend/resume warnings, right?
08:26povikno, this is about something that happens with ivsense capture
08:26poviki'm taking name suggestions
08:28chadmed_ has joined #asahi-dev
08:28marcanI think the same issue applies to suspend/resume (where it has trouble raising the pstate when the NCO is down)
08:28marcanwe've always had those warnings
08:29povikah, i guess it applies then
08:29povikhaven't done much suspending myself O:)
08:29marcanfor VISENSE is it because the clock is external?
08:29povikyes, in a sense
08:29povikit's still generated by MCA but in a different frontend
08:29marcaninteresting
08:30povikit's because the sense data uses a different slot width that it needs to be done like this
08:30povikinternally routed to a different frontend
08:33marcanmaybe "max-expect-state" or "max-await-state"? defines the maximum pstate that can be reliably expected to be achieved without regard to external conditions
08:38hertz has joined #asahi-dev
08:42povikyeah, that could be more straightforward
09:12chadmed_ has quit [Remote host closed the connection]
09:13chadmed_ has joined #asahi-dev
09:37swaggie has quit [Remote host closed the connection]
09:38swaggie has joined #asahi-dev
09:47swaggie has quit [Ping timeout: 480 seconds]
09:49leitao has joined #asahi-dev
10:03lawrence has joined #asahi-dev
10:05cylm has quit [Ping timeout: 480 seconds]
10:14leitao has quit [Ping timeout: 480 seconds]
10:27swaggie has joined #asahi-dev
10:32gladiac has joined #asahi-dev
10:38swaggie has quit [Ping timeout: 480 seconds]
10:50swaggie has joined #asahi-dev
11:01chadmed_ has quit [Remote host closed the connection]
11:04chadmed_ has joined #asahi-dev
11:05chadmed_ has quit [Remote host closed the connection]
11:10swaggie has quit [Ping timeout: 480 seconds]
11:11chadmed_ has joined #asahi-dev
11:29leitao has joined #asahi-dev
11:38swaggie has joined #asahi-dev
11:40MajorBiscuit has joined #asahi-dev
11:47swaggie has quit [Ping timeout: 480 seconds]
12:06leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:25gladiac has quit [Quit: k thx bye]
12:38swaggie has joined #asahi-dev
12:47swaggie has quit [Ping timeout: 480 seconds]
13:06bcrumb has joined #asahi-dev
13:07bcrumb has quit []
13:07bcrumb has joined #asahi-dev
13:08bcrumb has quit []
13:08bcrumb has joined #asahi-dev
13:12mkurz has joined #asahi-dev
13:15hightower3 has quit [Ping timeout: 480 seconds]
13:31leitao has joined #asahi-dev
13:38bcrumb has quit [Quit: WeeChat 3.8]
13:40swaggie has joined #asahi-dev
13:45hightower2 has joined #asahi-dev
13:50swaggie has quit [Ping timeout: 480 seconds]
13:58leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:00ids1024 has quit [Ping timeout: 480 seconds]
14:00hightower2 has quit [Read error: Connection reset by peer]
14:02bcrumb has joined #asahi-dev
14:07leitao has joined #asahi-dev
14:10ids1024 has joined #asahi-dev
14:11leitao has quit []
14:28nate8 has joined #asahi-dev
14:32leitao has joined #asahi-dev
14:37bcrumb has quit [Quit: WeeChat 3.8]
14:50leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:54leitao has joined #asahi-dev
14:55chadmed_ has quit [Ping timeout: 480 seconds]
14:59bcrumb has joined #asahi-dev
14:59faruk has joined #asahi-dev
15:00bcrumb has quit []
15:00swaggie has joined #asahi-dev
15:02faruk has quit []
15:05seeeath has joined #asahi-dev
15:09swaggie has quit [Ping timeout: 480 seconds]
15:13bcrumb has joined #asahi-dev
15:14bcrumb has quit []
15:17seeeath has quit [Ping timeout: 480 seconds]
15:25faruk has joined #asahi-dev
15:38seeeath has joined #asahi-dev
15:40svenalright, rescanning now finally works automatically from the interrupt. looks like there's something weird with the iommu groups though
15:42svensomehow a stale group ends up in sid2group in the dart driver and then faults in apple_dart_device_group
15:44mazmissing synchronisation between the PCIe driver and the dart on unplug?
15:46svenapple_dart_release_group is called automatically when no more devices are in a group and removes entries from sid2group under a lock. that should all happen automatically
15:46svenbut there's something going wrong somewhere :/
15:51svenOHHH.... i think I know what's wrong. pci_device_group can merge groups even when they're supposed to be separate according to iommu-map I think
15:51sven*merge devices
15:52svenyeah, pci_device_group can return a group that already exists but the dart code assumes it's always a new group
15:53bisko has joined #asahi-dev
15:53svenand then it overwrite the group data and apple_dart_release_group isn't able to remove the old entries anymore
16:02bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:05bisko has joined #asahi-dev
16:13bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:16svenyup, that was the issue
16:17swaggie has joined #asahi-dev
16:24leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:25leitao has joined #asahi-dev
16:25swaggie has quit [Ping timeout: 480 seconds]
16:31bcrumb has joined #asahi-dev
16:33swaggie has joined #asahi-dev
16:39seeeath has quit [Read error: Connection reset by peer]
16:39seeeath_ has joined #asahi-dev
16:39ChaosPrincess has quit [Quit: WeeChat 3.7.1]
16:40ChaosPrincess has joined #asahi-dev
16:41swaggie has quit [Ping timeout: 480 seconds]
16:44svenalright, this seems fairly stable now if I reconnect the same adapter again and again. something breaks the NHI though if I try to first connect my startech adapter and then switch to the apple one or vice versa
16:45bisko has joined #asahi-dev
16:48swaggie has joined #asahi-dev
16:49svenugh.. connecting the ethernet adapter to the tbt out port of the thunderbolt display doesn't work though because I don't get a link up interrupt in that case
16:57swaggie has quit [Ping timeout: 480 seconds]
17:03sventhat also doesn’t seem to work on my other Linux machine though :D
17:09bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:12mazisn't this one of the complicated setups where you can't establish an end-to-end tunnel, but need to instruct the "port-in-the-middle" to do something fancy?
17:13sventhe thunderbolt NHI part seems to do the correct things and a manual rescan actually find the chained adapter then
17:14mazah, so that's really the routing of the HP interrupt that fails.
17:14svenand then everything goes horribly wrong when I disconnect it again because the pcie side seems to think it’s still there
17:14svenoh, yeah, that would make sense
17:36bcrumb has quit [Quit: WeeChat 3.8]
17:43bcrumb has joined #asahi-dev
17:45bcrumb has quit []
17:45gladiac has joined #asahi-dev
17:49MajorBiscuit has quit [Ping timeout: 480 seconds]
17:51bcrumb has joined #asahi-dev
18:02bcrumb has quit [Quit: WeeChat 3.8]
18:16nicolas17 has joined #asahi-dev
18:16___nick___ has joined #asahi-dev
18:16nicolas17macOS 13.2 is out
18:17___nick___ has quit []
18:19___nick___ has joined #asahi-dev
18:20___nick___ has quit []
18:22___nick___ has joined #asahi-dev
18:30leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:42gladiac has quit [Quit: k thx bye]
18:43bisko has joined #asahi-dev
18:45jannausame build as the release candidate
18:48bcrumb has joined #asahi-dev
18:51bcrumb has quit []
18:58brentr123 has joined #asahi-dev
19:07faruk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:14bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:16bcrumb has joined #asahi-dev
19:21bcrumb has quit [Quit: WeeChat 3.8]
19:31cafebabe has joined #asahi-dev
19:53bisko has joined #asahi-dev
20:05svenhm, switching between adapter also does something weird on macOS
20:05svenhotplug takes like 5 seconds or so when using the same one but can easily take 20-30 seconds when switching between apple and startech
20:12faruk has joined #asahi-dev
20:14jeffmiw_ has joined #asahi-dev
20:26jeffmiw_ has quit [Remote host closed the connection]
20:27balrog has quit [Quit: Bye]
20:31balrog has joined #asahi-dev
20:37bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:08brentr123 has quit [Quit: Connection closed for inactivity]
21:15jluthra has quit [Remote host closed the connection]
21:15jluthra has joined #asahi-dev
21:18nicolas17 has quit [Ping timeout: 480 seconds]
21:19nicolas17 has joined #asahi-dev
21:24hightower2 has joined #asahi-dev
21:24irth has quit [Quit: WeeChat 3.8]
21:25bisko has joined #asahi-dev
21:25bisko has quit []
21:47mkurz_ has joined #asahi-dev
21:50mkurz has quit [Ping timeout: 480 seconds]
21:54swaggie has joined #asahi-dev
21:59jeffmiw has quit [Ping timeout: 480 seconds]
23:05seeeath_ has quit [Ping timeout: 480 seconds]
23:25swaggie has quit [Remote host closed the connection]
23:26swaggie has joined #asahi-dev
23:33cylm has joined #asahi-dev
23:36swaggie has quit [Remote host closed the connection]
23:37swaggie has joined #asahi-dev
23:48swaggie has quit [Ping timeout: 480 seconds]
…