#
#asahi-dev · 2023-01-23 17:12
mazisn'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?
#asahi-dev · 2023-01-23 17:03
sventhat also doesn’t seem to work on my other Linux machine though :D
#asahi-dev · 2023-01-23 16:49
svenugh.. 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
#asahi-dev · 2023-01-23 16:44
svenalright, 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
#asahi-dev · 2023-01-23 16:16
svenyup, that was the issue
#asahi-dev · 2023-01-23 15:53
svenand then it overwrite the group data and apple_dart_release_group isn't able to remove the old entries anymore
#asahi-dev · 2023-01-23 15:52
svenyeah, pci_device_group can return a group that already exists but the dart code assumes it's always a new group
#asahi-dev · 2023-01-23 15:51
sven*merge devices
#asahi-dev · 2023-01-23 15:51
svenOHHH.... 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
#asahi-dev · 2023-01-23 15:46
svenbut there's something going wrong somewhere :/
#asahi-dev · 2023-01-23 15:46
svenapple_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
#asahi-dev · 2023-01-23 15:44
mazmissing synchronisation between the PCIe driver and the dart on unplug?
#asahi-dev · 2023-01-23 15:42
svensomehow a stale group ends up in sid2group in the dart driver and then faults in apple_dart_device_group
#asahi-dev · 2023-01-23 15:40
svenalright, rescanning now finally works automatically from the interrupt. looks like there's something weird with the iommu groups though
#asahi-dev · 2023-01-23 08:42
povikyeah, that could be more straightforward
#asahi-dev · 2023-01-23 08:33
marcanmaybe "max-expect-state" or "max-await-state"? defines the maximum pstate that can be reliably expected to be achieved without regard to external conditions
#asahi-dev · 2023-01-23 08:30
povikinternally routed to a different frontend
#asahi-dev · 2023-01-23 08:30
povikit's because the sense data uses a different slot width that it needs to be done like this
#asahi-dev · 2023-01-23 08:29
marcaninteresting
#asahi-dev · 2023-01-23 08:29
povikit's still generated by MCA but in a different frontend
#asahi-dev · 2023-01-23 08:29
povikyes, in a sense
#asahi-dev · 2023-01-23 08:29
marcanfor VISENSE is it because the clock is external?
#asahi-dev · 2023-01-23 08:29
povikhaven't done much suspending myself O:)
#asahi-dev · 2023-01-23 08:29
povikah, i guess it applies then
#asahi-dev · 2023-01-23 08:28
marcanwe've always had those warnings
#asahi-dev · 2023-01-23 08:28
marcanI think the same issue applies to suspend/resume (where it has trouble raising the pstate when the NCO is down)
#asahi-dev · 2023-01-23 08:26
poviki'm taking name suggestions
#asahi-dev · 2023-01-23 08:26
povikno, this is about something that happens with ivsense capture
#asahi-dev · 2023-01-23 08:25
marcanpovik: the name is confusing, but I'll have to think about it. this is about the suspend/resume warnings, right?
#asahi-dev · 2023-01-23 08:23
povikmarcan: opinion on the above?
#asahi-dev · 2023-01-23 08:23
povikhttps://github.com/povik/linux/commit/5fb55674eb82744012a49691cc6cdbcf8ad7b4d9
#asahi-dev · 2023-01-23 08:13
marcanentirely possible their SPI driver doesn't support anything else even though the hardware does
#asahi-dev · 2023-01-23 08:13
marcanthe device won't know the difference
#asahi-dev · 2023-01-23 08:11
ChaosPrincessmarcan: I did 8 bit writes since thats what macos does, but gonna try 16bit and seeing how it goes
#asahi-dev · 2023-01-23 07:48
marcanah yeah, feel free to rename it and send that one out
#asahi-dev · 2023-01-23 07:47
jannauoh, I still have "APPLE_RTKIT_PWR_STATE_INIT = 0x220" for dcp. WAKEUP or RESUME might be a better name with 0x201 named IDLE
#asahi-dev · 2023-01-23 07:45
marcan(both in the driver and in the firmware extractor)
#asahi-dev · 2023-01-23 07:44
marcanin 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.
#asahi-dev · 2023-01-23 07:43
marcanChaosPrincess: 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).
#asahi-dev · 2023-01-23 06:58
jannauthere is a second array of IOSurfaces* but otherwise just standard type pointers
#asahi-dev · 2023-01-23 06:52
marcanjannau: re the devm free, dunno if you saw Lina is adding non-devm functions for Rust. maybe you can just use that?
#asahi-dev · 2023-01-23 06:49
marcanit's entirely possible existing hardware can do MST and it was just missing firmware support too
#asahi-dev · 2023-01-23 06:49
marcanI 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.
#asahi-dev · 2023-01-23 06:48
marcanI also wonder if it means we might get to abuse the 2 pipes separately on existing hardware
#asahi-dev · 2023-01-23 06:48
marcanMST would be interesting
#asahi-dev · 2023-01-23 06:47
jannaumight be just for tiling on higher resolutions but could also for MST support
#asahi-dev · 2023-01-23 06:47
marcanof 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
#asahi-dev · 2023-01-23 06:46
marcanyeah, 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)
#asahi-dev · 2023-01-23 06:46
jannauI don't need that to get dcp to work with 13.2. this is more curiosity about the use case
#asahi-dev · 2023-01-23 06:44
marcanwe 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

plus ›