#
…

2022-04-16

01:00user982492 has joined #asahi-dev
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-dev
01:53user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:02RevHelix has joined #asahi-dev
02:08RevHelix has quit []
02:09yuyichao_ has quit [Ping timeout: 480 seconds]
02:09RevHelix has joined #asahi-dev
02:10user982492 has joined #asahi-dev
02:15roxfan has quit [Ping timeout: 480 seconds]
02:44possiblemeatball has joined #asahi-dev
02:45possiblemeatball is now known as Guest2050
02:46Guest2050 has quit []
02:46PhilippvK has joined #asahi-dev
02:46possiblemeatball1 has joined #asahi-dev
02:50phiologe has quit [Ping timeout: 480 seconds]
03:06possiblemeatball1 has quit [Quit: left]
03:15possiblemeatball1 has joined #asahi-dev
03:18yuyichao_ has joined #asahi-dev
03:36kov has quit [Quit: Coyote finally caught me]
03:41possiblemeatball1 has quit [Quit: left]
03:42possiblemeatball1 has joined #asahi-dev
03:57possiblemeatball1 has quit [Quit: left]
03:59possiblemeatball has joined #asahi-dev
04:16roxfan has joined #asahi-dev
04:56nicolas17 has quit [Quit: Konversation terminated!]
05:21possiblemeatball has quit [Quit: left]
05:21possiblemeatball has joined #asahi-dev
05:23possiblemeatball has quit []
05:24possiblemeatball has joined #asahi-dev
06:25possiblemeatball has quit [Quit: left]
06:26the_lanetly_052__ has joined #asahi-dev
06:32the_lanetly_052___ has quit [Ping timeout: 480 seconds]
06:42alexsv has joined #asahi-dev
06:52pg12 has quit [Ping timeout: 480 seconds]
07:01pg12 has joined #asahi-dev
07:06user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:14user982492 has joined #asahi-dev
07:31jluthra has quit [Remote host closed the connection]
07:32jluthra has joined #asahi-dev
07:59millenialhacker has quit [Quit: Konversation terminated!]
08:19millenialhacker has joined #asahi-dev
08:38millenialhackersven, could you share again the link to nvme v2 ?
08:42user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:05millenialhackerI'm trying to follow hypervisor Wiki. (I'm planning to run a dev MacOS/XNU kernel in Hypervisor mode to get some details about Camera driver)... It seems I need another machine, am I right?
09:06millenialhackerTwo in total (one Mac for development), another Mac or Linux to push kernel stuff via proxy
09:08sventhe mac will run xnu under that HV and the other machine will be used to control the HV
09:09millenialhackerGot it, that's unfortunate, I have no other machine handy, I wonder if a RpI may work as hypervisor controller
09:10millenialhackerI don't want to use work one since that belongs to Amazon, and I don't want to enter in some weird situation due to NDA/Contract stuff with my employeer
09:11mpsmillenialhacker: any machine could be used as hypervisor 'controller', with proper usb cables, ofc
09:11millenialhackerI would order a RPI then. Ty
09:12marcankeep in mind a RPi will not cut it for high-bandwidth HV usage, but if you're just tracing the camera it's probably OK
09:12mpsOT but there are better arm64 SBCs than rpis
09:12marcantracing is bottlenecked on the host/python most of the time, and a RPi will bottleneck way worse than a proper machine
09:13marcanbut that's proportional to how much tracing you decide to enable
09:13marcanthe HV will happily run with zero I/O if everything is off (as in you can literally yank the cable and the guest keeps running)
09:14millenialhackerI thought HV was doing tracing with minimal impact in performance, but it seems it's actually waiting for host to decide what to do with packets and that back and forth is the bottleneck, did I get it right?
09:14marcanthere are async and sync tracing modes
09:15marcanasync uses a big fat buffer and the host processes that as fast as it can (which is still bottlenecked on python even for simple r/w prints in practice, before the USB bandwidth)
09:15marcansync actually stops the guest and is limited by USB latency
09:15marcanyou can configure the mode individually for everything you trace
09:16marcanfor ISP you will need to trace the ASC, which means you will need to sync trace the mailbox registers since the host will have to react to those synchronously to be able to pull payloads out of the buffers at the correct time
09:16millenialhackerCool, I'm sure I will come back with some handy questions lately once I have everything set it up properly.
09:17marcan(there is already a generic ASC tracer but you will need to write the subclass of that to handle ISP and whatever its app-specific endpoints mean and how they work, as you figure it out)
09:19millenialhackermarcan: That's really helpful info, thanks
09:21marcanmillenialhacker: look at hv/trace_pmgr.py and PMPTracer (and the commented out instantiation below it) for an example of how to get started
09:21marcanyou don't need the PMGR/iomon stuff, I'm just pointing that one out because it's the most barebones ASCTracer subclass we have lying around I think
09:26pg12_ has joined #asahi-dev
09:28pg12 has quit [Ping timeout: 480 seconds]
09:43millenialhacker has quit [Quit: Konversation terminated!]
09:48user982492 has joined #asahi-dev
10:07millenialhacker has joined #asahi-dev
10:15millenialhacker has quit []
10:21millenialhacker has joined #asahi-dev
10:22millenialhacker has quit []
10:26millenialhacker has joined #asahi-dev
10:32millenialhacker has quit []
10:34millenialhacker has joined #asahi-dev
11:27kelito has joined #asahi-dev
11:27millenialhacker has quit [Remote host closed the connection]
11:27millenialhacker has joined #asahi-dev
11:28kelito has quit [Remote host closed the connection]
11:35millenialhacker has quit [Ping timeout: 480 seconds]
11:37user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:44millenialhacker has joined #asahi-dev
11:54millenialhacker has quit [Ping timeout: 480 seconds]
12:06millenialhacker has joined #asahi-dev
12:11millenialhacker has quit [Read error: No route to host]
12:11millenialhacker has joined #asahi-dev
12:12pg12_ has quit []
12:22millenialhacker has quit [Ping timeout: 480 seconds]
12:23millenialhacker has joined #asahi-dev
12:30pg12 has joined #asahi-dev
12:34millenialhacker has quit [Ping timeout: 480 seconds]
12:51millenialhacker has joined #asahi-dev
13:00the_lanetly_052___ has joined #asahi-dev
13:02millenialhacker has quit [Remote host closed the connection]
13:03millenialhacker has joined #asahi-dev
13:06the_lanetly_052__ has quit [Ping timeout: 480 seconds]
13:48the_lanetly_052__ has joined #asahi-dev
13:51kov has joined #asahi-dev
13:54the_lanetly_052___ has quit [Ping timeout: 480 seconds]
13:55the_lanetly_052___ has joined #asahi-dev
14:01the_lanetly_052__ has quit [Ping timeout: 480 seconds]
14:06millenialhacker has quit []
14:22millenialhacker has joined #asahi-dev
14:31millenialhacker has quit [Remote host closed the connection]
14:32millenialhacker has joined #asahi-dev
14:37roxfan has quit [Ping timeout: 480 seconds]
14:45millenia_ has joined #asahi-dev
14:52millenialhacker has quit [Ping timeout: 480 seconds]
15:12millenia_ has quit [Remote host closed the connection]
15:12millenialhacker has joined #asahi-dev
17:05roxfan has joined #asahi-dev
17:22kenzie has quit [Quit: The Lounge - https://thelounge.chat]
17:26kenzie has joined #asahi-dev
18:13millenialhacker has quit [Remote host closed the connection]
18:13millenialhacker has joined #asahi-dev
18:21millenialhacker has quit [Ping timeout: 480 seconds]
18:30user982492 has joined #asahi-dev
18:46millenialhacker has joined #asahi-dev
18:54millenialhacker has quit [Ping timeout: 480 seconds]
19:02millenialhacker has joined #asahi-dev
19:10millenia_ has joined #asahi-dev
19:10millenialhacker has quit [Read error: Connection reset by peer]
19:20millenia_ has quit [Ping timeout: 480 seconds]
19:25___nick___ has joined #asahi-dev
19:27___nick___ has quit []
19:29___nick___ has joined #asahi-dev
19:31millenialhacker has joined #asahi-dev
19:36millenialhacker has quit [Remote host closed the connection]
19:36millenialhacker has joined #asahi-dev
19:50millenialhacker has quit [Remote host closed the connection]
19:50___nick___ has quit [Ping timeout: 480 seconds]
19:51millenialhacker has joined #asahi-dev
20:07user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:46MajorBiscuit has joined #asahi-dev
20:51nicolas17 has joined #asahi-dev
21:02millenialhacker has quit [Remote host closed the connection]
21:03millenialhacker has joined #asahi-dev
21:05millenia_ has joined #asahi-dev
21:11MajorBiscuit has quit [Ping timeout: 480 seconds]
21:12millenialhacker has quit [Ping timeout: 480 seconds]
21:21millenia_ has quit [Remote host closed the connection]
21:22millenialhacker has joined #asahi-dev
21:53millenialhackerCan anyone give me some context about PCI and DART and how they are related?
21:54millenialhackerI assume is Device Address Resolution Table, but not sure
22:01MajorBiscuit has joined #asahi-dev
22:12svendart is the iommu for any pcie device
22:13svenso any DMA transaction from a pcie device uses the page tables configured inside dart to get the actual physical address
22:30millenialhackerThanks! I see a lot of DART stuff after enable some ISP debug.
22:31alexsv has quit [Ping timeout: 480 seconds]
22:31millenialhacker:23.889611 +0200 AppleH13CamIn::AllocateSharedMemorySurface - Shared memory region mapped at DART translated address: 0x1824000 AppleH13CameraInterface kernel
22:31millenialhacker:23.889619 +0200 AppleH13CamIn::AllocateSharedMemorySurface - Successfully allocated surface. surface-id=0x0000000E, surface address: 0x<private>, size=35651584, dartMapBase=0x1824000 AppleH13CameraInterface kernel
22:32millenialhackerwhich makes me thing that actually, ISP[/Camera is still being exposed over PCI-e on M1 but I'm noob on this stuff
22:38svendart is also used for just about every other device than can DMA
22:39user982492 has joined #asahi-dev
22:39millenialhackerSo it could be DART/I2C, right?
22:39svenpretty sure we would’ve seen the camera already if it was on the pcie bus
22:40svenwhat makes you think i2c?
22:42millenialhackerI'm trying to reverse engineering the kext
22:42millenialhackerAppleH13CameraInterface
22:42nicolas17are you planning to contribute to asahi?
22:42nicolas17did you read the reverse-engineering policy?
22:43svensure, but how does that relate to i2c?
22:43millenialhacker"AppleH13CamIn::%s - I2C slave error, smsta=0x%
22:43millenialhacker"AppleH13CamIn::%s - I2C slave error, smsta=0x%
22:43svenah! this should also be in -re please
22:43millenialhackerUnable to identify FHSi device, I2C status 0x%08x
23:12MajorBiscuit has quit [Ping timeout: 480 seconds]
23:26millenialhacker has quit [Remote host closed the connection]
…