2022-04-18
00:36user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:44PhilippvK has joined #asahi-dev
02:48phiologe has quit [Ping timeout: 480 seconds]
02:48user982492 has joined #asahi-dev
03:24kov has quit [Quit: Coyote finally caught me]
04:16bpye has quit [Ping timeout: 480 seconds]
04:39nicolas17 has quit [Ping timeout: 480 seconds]
06:11bpye has joined #asahi-dev
06:32bpye has quit [Quit: The Lounge - https://thelounge.chat]
06:34the_lanetly_052__ has quit [Ping timeout: 480 seconds]
06:36bpye has joined #asahi-dev
06:36alexsv has joined #asahi-dev
07:05millenialhacker has joined #asahi-dev
07:08millenialhacker has quit [Remote host closed the connection]
07:32jluthra has quit [Remote host closed the connection]
07:33jluthra has joined #asahi-dev
07:54user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:55user982492 has joined #asahi-dev
08:02___nick___ has joined #asahi-dev
08:03user982492 has quit [Ping timeout: 480 seconds]
08:04___nick___ has quit []
08:06___nick___ has joined #asahi-dev
08:26mazYichaoYu[m]: not sure what you expect. if you have something to upstream, post the patches to the list, cc'ing the maintainers and myself.
08:28hizonx has quit [Remote host closed the connection]
08:31millenialhacker has joined #asahi-dev
09:28alexsv has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
10:27MajorBiscuit has joined #asahi-dev
10:31kov has joined #asahi-dev
10:42tanty has quit []
10:43tanty has joined #asahi-dev
10:53YichaoYu[m]But you told me to not do that since there's nothing to be done to the kernel
10:56MajorBiscuit has quit [Quit: WeeChat 3.4]
10:56mazYichaoYu[m]: maybe I wan't clear enough: IMO there is nothing more to add to the kernel code. what needs doing is the the JSON file that describes the events in userspace.
10:56YichaoYu[m]but as I said in the email, compared to other arm cores, there are indeed things that are still missing in the kernel code
10:57YichaoYu[m]I sent an email to linux-arm-kernel and cc'd you and everyone I found i maintainers that related to pmu
10:58j`eyhttps://lore.kernel.org/linux-arm-kernel/CAMvDr+Q-4gzYozLV8f8R8DgTEDYrkvYAOC+ND6bm11L+4mQDWw@mail.gmail.com/
10:58YichaoYu[m]= = ...... k did't know that...
10:58MajorBiscuit has joined #asahi-dev
11:02mazunder some circumstances, yes. robh fixed it recently, but there may be other occurrences. here, I doubt it did spit anything wrong, as my old email address never got any close to the M1 PMU...
11:34MajorBiscuit has quit [Ping timeout: 480 seconds]
11:35millenialhackerHow could I get the mailbox address of a given ACS? I'm creating a Tracer and I see a lot of MMIO R/W
11:36millenialhackerBut I'm not sure how to move forward from that point, I see other tracers with a REGMAP which I'm not sure where they come from.
11:38svenmillenialhacker: start with an empty regmap and add registers when you figure them out. that's usually how those are created
11:39millenialhackerWell I found one IRQ register :D
11:43millenialhackersven: is it safe to assume MAILBOX messages will be always 8 bytes long? (R.8 and W.8 respectively)?
11:44svenmy memory's a bit fuzzy, but I think the HW requires 64bit reads/writes to advance the FIFO.
11:44MajorBiscuit has joined #asahi-dev
11:45svenwell, actually 1x 64bit and 1x 42bit or or so + some status bits so that it's a 64bit read anyway
11:46millenialhackerCool, I think I can filter out non-eight bytes read/writes to see if I can spot interesting stuff
11:47povikmillenialhacker: if you are tracing a coprocessor with the usual mailbox interface, you should probably base your tracer on the infrastructure that's already there
11:48millenialhackerI'm using ASCTracer povik
11:48povikah then i wonder if your verbose level is set too high if you need to filter mmio accesses
11:51the_lanetly_052__ has joined #asahi-dev
11:54millenialhackerpovik: I'm using verbose 3
11:56jannauwhy dcp? why? swaps are not cancelled/errored on connector unplug but are completed on replug after setting the mode
12:08MajorBiscuit has quit [Ping timeout: 480 seconds]
12:22millenialhacker has quit [Remote host closed the connection]
12:34psykose has quit [Remote host closed the connection]
12:35psykose has joined #asahi-dev
12:40millenialhacker has joined #asahi-dev
12:42millenialhackerhas anyone experienced issues with DARTTracer? like this: https://pastebin.com/ax6VCzK0?
12:42millenialhacker(if I use DARTT8110Tracer instead, at least it seems to work)
12:51millenialhackersven: I have a MbP M1 (2020). My DTB says:
12:51millenialhacker dart-isp { …
12:51millenialhacker compatible = [dart,t8020]
12:52povikis it possible you are doing something before isp_dart_tracer.start, that would break the proxy?
12:53millenialhackerhv.log('ISP: Registering ISP ASC tracer...')
12:53millenialhackerisp_dart_tracer.start()
12:53millenialhackerisp_dart_tracer = DARTTracer(hv, "/arm-io/dart-isp", verbose=4)
12:59millenialhackerpovik: that seems to do the trick.
13:00millenialhackerbut then Mac OS doesn't boot :D
13:00millenialhackerrainbow logo without progress bar
13:01millenialhackerno, but rebooting it seems to work. So it's a little bit unstable I'd say
13:13yuyichao_ has quit [Remote host closed the connection]
13:17yuyichao has joined #asahi-dev
13:18jluthra has quit [Remote host closed the connection]
13:18jluthra_ has joined #asahi-dev
13:43yuyichao has quit [Ping timeout: 480 seconds]
13:54the_lanetly_052___ has joined #asahi-dev
13:57yuyichao has joined #asahi-dev
14:01the_lanetly_052__ has quit [Ping timeout: 480 seconds]
14:11bisko has joined #asahi-dev
15:03millenialhackersvan: I see there are two kind of mailboxes in Linux Kernel, ASC and M3, how could I know what's the one in my M1?
15:08Jamie[m]1(and there are even more variants not in the kernel yet, like the 32-bit M3 in the AVD)
15:11nicolas17 has joined #asahi-dev
15:12millenialhackerI see no ascwrap/m3wrap in ADT for ISP node, does that means ISP node is not using mailbox, or that compatible tag is inserted by M1n1 while parsing the ADT?
15:13Jamie[m]1i don’t believe m1n1 does any ASC modifications (it modifies the linux DT based on stuff from the ADT)
15:15millenialhackerinteresting...
15:17povikmillenialhacker: i suppose you haven't been getting anything sensible using ASCTracer on it
15:17jannauonly hint in the ADT is 'asc-dram-mask' so it might be asc or something more or less compatible
15:18millenialhackerpovik: I see only CPU_CONTROL nothing more, I was able to map some values in the logs to memory address but beside that nothing else.
15:18millenialhackerI see some memory addresses that are accessed always in the same way when I poweron the camera
15:19millenialhackerbut I was trying to get Mailbox messages to be detected, but as jannau said, maybe is not compatible to asc
15:24millenialhacker I think ISP is doing the following: It's mapping several DMA/DART region, it's using this as shared memory for channels (ringbuffers), and it's using I2C to talk with Camera
15:25poviki know it has been discussed here before but where do you get the idea there's I2C involved
15:27millenialhackerFrom static RE the Apple Driver
15:27millenialhacker^ povik
15:40jluthra_ is now known as jluthra
15:41marcanthere are a ton of DART instances too, which are also part of the wider ISP reg map (and thus show up wrong in mmiotrace)
15:43bisko has quit [Ping timeout: 480 seconds]
15:44user982492 has joined #asahi-dev
15:44marcanand also isp0 maps some random pmgr pstate register range and pokes it direclty, because of course it does
15:50marcanthere is some "real-time" thing, maybe there's something special about these DARTs since they're used for video capture?
15:58marcanlook like one specifically for realtime stuff which kinda makes sense, and no idea why they have 2 more
15:58svenand trad/bulk is that weird usb thing iirc (two darts where half of the transaction go through the first and the others to the second but the boundary didn’t make any sense)
16:25millenialhackermarcan: How did you parsed the instance stuff?
16:33millenialhackermarvan sven fyi, I just noticed mostly access to addresses ISP.REG[0] and DARTISP.REG[0] memory regions
16:36millenialhackerreading https://documentation-service.arm.com/static/5f900d34f86e16515cdc08fb?token=
16:39millenialhackersven what do you mean exactly?
16:40millenialhackerOh, thanks!
16:41DanielLeal[m] has joined #asahi-dev
16:43millenialhacker has quit [Remote host closed the connection]
16:51millenialhacker has joined #asahi-dev
16:51millenialhackermarcan: I thought that ISP/Camera could be one low hanging fruit, it seems I'm deeply wrong and probably this is outside of my skillset, but will try to get more info. :)
17:49MajorBiscuit has joined #asahi-dev
17:53chadmed has quit [Read error: Connection reset by peer]
17:56user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:18MajorBiscuit has quit [Ping timeout: 480 seconds]
18:34millenialhackerThis is by far the most hilarious thing today:
18:34millenialhacker[cpu1] [ISPTracer@/arm-io/isp] MMIO: W.4 0x22c104174 = 0xfeedbabe
18:37balrog has quit [Quit: Bye]
18:39user982492 has joined #asahi-dev
18:42balrog has joined #asahi-dev
19:06Glanzmann has joined #asahi-dev
20:01MajorBiscuit has joined #asahi-dev
20:01MajorBiscuit has quit []
20:02MajorBiscuit has joined #asahi-dev
20:05Zanthed has left #asahi-dev [#asahi-dev]
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:30Major_Biscuit has joined #asahi-dev
20:32MajorBiscuit has quit [Ping timeout: 480 seconds]
20:32millenialhacker has quit [Remote host closed the connection]
20:35akemin_dayo has joined #asahi-dev
21:07millenialhacker has joined #asahi-dev
21:10millenialhackerI'm trying to do some analysis based on most-frequent accessed io memory addresses. Have anyone tried something like that? I created some utilities methods in Tracer class but I want to know if not reinventing the wheel
21:29millenialhacker has quit [Remote host closed the connection]
21:33user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:42millenialhacker has joined #asahi-dev
21:49Major_Biscuit has quit [Ping timeout: 480 seconds]
21:50Major_Biscuit has joined #asahi-dev
21:51Major_Biscuit has quit []
21:53millenialhacker has quit [Ping timeout: 480 seconds]
21:55user982492 has joined #asahi-dev
21:57user982492 has quit [synthon.oftc.net reflection.oftc.net]
21:57yuyichao has quit [synthon.oftc.net reflection.oftc.net]
21:57jluthra has quit [synthon.oftc.net reflection.oftc.net]
21:57systwi has quit [synthon.oftc.net reflection.oftc.net]
21:57apetresc1 has quit [synthon.oftc.net reflection.oftc.net]
21:57Ariadne has quit [synthon.oftc.net reflection.oftc.net]
21:57linuxgemini95 has quit [synthon.oftc.net reflection.oftc.net]
21:57Method has quit [synthon.oftc.net reflection.oftc.net]
21:57emptynine has quit [synthon.oftc.net reflection.oftc.net]
21:57tpw_rules has quit [synthon.oftc.net reflection.oftc.net]
21:57tych0 has quit [synthon.oftc.net reflection.oftc.net]
21:57clee has quit [synthon.oftc.net reflection.oftc.net]
21:57axboe has quit [synthon.oftc.net reflection.oftc.net]
21:57tmlind has quit [synthon.oftc.net reflection.oftc.net]
21:57ids1024 has quit [synthon.oftc.net reflection.oftc.net]
21:57TheFirst has quit [synthon.oftc.net reflection.oftc.net]
21:57rqou_ has quit [synthon.oftc.net reflection.oftc.net]
21:57kendfinger has quit [synthon.oftc.net reflection.oftc.net]
21:57Telvana has quit [synthon.oftc.net reflection.oftc.net]
21:57refi64 has quit [synthon.oftc.net reflection.oftc.net]
21:57krbtgt has quit [synthon.oftc.net reflection.oftc.net]
21:57x56 has quit [synthon.oftc.net reflection.oftc.net]
21:57JTL has quit [synthon.oftc.net reflection.oftc.net]
21:57rcombs has quit [synthon.oftc.net reflection.oftc.net]
21:57austriancoder has quit [synthon.oftc.net reflection.oftc.net]
21:57arnd has quit [synthon.oftc.net reflection.oftc.net]
21:57balrog has quit [synthon.oftc.net larich.oftc.net]
21:57nicolas17 has quit [synthon.oftc.net larich.oftc.net]
21:57bpye has quit [synthon.oftc.net larich.oftc.net]
21:57kov has quit [synthon.oftc.net larich.oftc.net]
21:57boardwalk has quit [synthon.oftc.net larich.oftc.net]
21:57winter has quit [synthon.oftc.net larich.oftc.net]
21:57nullroute has quit [synthon.oftc.net larich.oftc.net]
21:57opticron has quit [synthon.oftc.net larich.oftc.net]
21:57nepeat has quit [synthon.oftc.net larich.oftc.net]
21:57Lightsword has quit [synthon.oftc.net larich.oftc.net]
21:57tardyp has quit [synthon.oftc.net larich.oftc.net]
21:57al3xtjames has quit [synthon.oftc.net larich.oftc.net]
21:57snek has quit [synthon.oftc.net larich.oftc.net]
21:57Chainsaw has quit [synthon.oftc.net larich.oftc.net]
21:57cptcobalt has quit [synthon.oftc.net larich.oftc.net]
21:57mmarchini has quit [synthon.oftc.net larich.oftc.net]
21:57skipwich has quit [synthon.oftc.net larich.oftc.net]
21:57poplar has quit [synthon.oftc.net larich.oftc.net]
21:57jabashque has quit [synthon.oftc.net larich.oftc.net]
21:57philpax_ has quit [synthon.oftc.net larich.oftc.net]
21:57jbowen has quit [synthon.oftc.net larich.oftc.net]
21:57d4ve has quit [synthon.oftc.net larich.oftc.net]
21:57nathanchance has quit [synthon.oftc.net larich.oftc.net]
21:57jkkm has quit [synthon.oftc.net larich.oftc.net]
21:57esden has quit [synthon.oftc.net larich.oftc.net]
21:57RevHelix has quit [synthon.oftc.net weber.oftc.net]
21:57kode54 has quit [synthon.oftc.net weber.oftc.net]
21:57KDDLB has quit [synthon.oftc.net weber.oftc.net]
21:57Graypup_ has quit [synthon.oftc.net weber.oftc.net]
21:57nafod has quit [synthon.oftc.net weber.oftc.net]
21:57WindowPain has quit [synthon.oftc.net weber.oftc.net]
21:57Chainfire has quit [synthon.oftc.net weber.oftc.net]
21:57gpanders__ has quit [synthon.oftc.net weber.oftc.net]
21:57tbodt has quit [synthon.oftc.net weber.oftc.net]
21:57rbenua has quit [synthon.oftc.net weber.oftc.net]
21:57hays has quit [synthon.oftc.net weber.oftc.net]
21:57Z750 has quit [synthon.oftc.net weber.oftc.net]
21:57NekomimiScience has quit [synthon.oftc.net weber.oftc.net]
21:57koorogi has quit [synthon.oftc.net weber.oftc.net]
21:57kevans91 has quit [synthon.oftc.net weber.oftc.net]
21:57Skirmisher has quit [synthon.oftc.net weber.oftc.net]
21:57robher has quit [synthon.oftc.net weber.oftc.net]
21:57nkaretnikov has quit [synthon.oftc.net weber.oftc.net]
21:57_alice has quit [synthon.oftc.net weber.oftc.net]
21:57turo has quit [synthon.oftc.net weber.oftc.net]
21:57Gaelan has quit [synthon.oftc.net weber.oftc.net]
21:57nyx_o has quit [synthon.oftc.net weber.oftc.net]
21:57coder_kalyan has quit [synthon.oftc.net weber.oftc.net]
21:57WhyNotHugo has quit [synthon.oftc.net weber.oftc.net]
21:57Simonx22 has quit [synthon.oftc.net weber.oftc.net]
21:57daniels has quit [synthon.oftc.net weber.oftc.net]
21:57msteffen has quit [synthon.oftc.net weber.oftc.net]
21:57sjg1 has quit [synthon.oftc.net weber.oftc.net]
21:57skoobasteeve has quit [synthon.oftc.net weber.oftc.net]
21:58gpanders__ has joined #asahi-dev
21:58kode54 has joined #asahi-dev
21:58KDDLB has joined #asahi-dev
21:58Graypup_ has joined #asahi-dev
21:58nafod has joined #asahi-dev
21:58nyx_o has joined #asahi-dev
21:58Chainfire has joined #asahi-dev
21:58NekomimiScience has joined #asahi-dev
21:58daniels has joined #asahi-dev
21:58RevHelix has joined #asahi-dev
21:58Simonx22 has joined #asahi-dev
21:58nkaretnikov has joined #asahi-dev
21:58Gaelan has joined #asahi-dev
21:58sjg1 has joined #asahi-dev
21:58msteffen has joined #asahi-dev
21:58turo has joined #asahi-dev
21:58hays has joined #asahi-dev
21:58Z750 has joined #asahi-dev
21:58koorogi has joined #asahi-dev
21:58rbenua has joined #asahi-dev
21:58tbodt has joined #asahi-dev
21:58coder_kalyan has joined #asahi-dev
21:58WhyNotHugo has joined #asahi-dev
21:58Skirmisher has joined #asahi-dev
21:58robher has joined #asahi-dev
21:58WindowPain has joined #asahi-dev
21:58skoobasteeve has joined #asahi-dev
21:58_alice has joined #asahi-dev
21:58kevans91 has joined #asahi-dev
21:59user982492 has joined #asahi-dev
21:59yuyichao has joined #asahi-dev
21:59jluthra has joined #asahi-dev
21:59systwi has joined #asahi-dev
21:59apetresc1 has joined #asahi-dev
21:59linuxgemini95 has joined #asahi-dev
21:59Ariadne has joined #asahi-dev
21:59Method has joined #asahi-dev
21:59tmlind has joined #asahi-dev
21:59Telvana has joined #asahi-dev
21:59emptynine has joined #asahi-dev
21:59axboe has joined #asahi-dev
21:59x56 has joined #asahi-dev
21:59tpw_rules has joined #asahi-dev
21:59JTL has joined #asahi-dev
21:59ids1024 has joined #asahi-dev
21:59rcombs has joined #asahi-dev
21:59krbtgt has joined #asahi-dev
21:59rqou_ has joined #asahi-dev
21:59refi64 has joined #asahi-dev
21:59kendfinger has joined #asahi-dev
21:59arnd has joined #asahi-dev
21:59clee has joined #asahi-dev
21:59tych0 has joined #asahi-dev
21:59austriancoder has joined #asahi-dev
21:59TheFirst has joined #asahi-dev
21:59boardwalk has joined #asahi-dev
21:59winter has joined #asahi-dev
21:59opticron has joined #asahi-dev
21:59nullroute has joined #asahi-dev
21:59Lightsword has joined #asahi-dev
21:59nepeat has joined #asahi-dev
21:59al3xtjames has joined #asahi-dev
21:59tardyp has joined #asahi-dev
21:59poplar has joined #asahi-dev
21:59skipwich has joined #asahi-dev
21:59jbowen has joined #asahi-dev
21:59d4ve has joined #asahi-dev
21:59Chainsaw has joined #asahi-dev
21:59jabashque has joined #asahi-dev
21:59jkkm has joined #asahi-dev
21:59nathanchance has joined #asahi-dev
21:59mmarchini has joined #asahi-dev
21:59snek has joined #asahi-dev
21:59philpax_ has joined #asahi-dev
21:59cptcobalt has joined #asahi-dev
21:59esden has joined #asahi-dev
21:59balrog has joined #asahi-dev
21:59kov has joined #asahi-dev
21:59nicolas17 has joined #asahi-dev
21:59bpye has joined #asahi-dev
22:03millenialhacker has joined #asahi-dev
22:12millenialhacker has quit [Ping timeout: 480 seconds]
23:06user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:57user982492 has joined #asahi-dev