ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PhilippvK has joined #asahi-dev
phiologe has quit [Ping timeout: 480 seconds]
user982492 has joined #asahi-dev
kov has quit [Quit: Coyote finally caught me]
bpye has quit [Ping timeout: 480 seconds]
nicolas17 has quit [Ping timeout: 480 seconds]
bpye has joined #asahi-dev
bpye has quit [Quit: The Lounge - https://thelounge.chat]
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
bpye has joined #asahi-dev
alexsv has joined #asahi-dev
millenialhacker has joined #asahi-dev
millenialhacker has quit [Remote host closed the connection]
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi-dev
___nick___ has joined #asahi-dev
user982492 has quit [Ping timeout: 480 seconds]
___nick___ has quit []
___nick___ has joined #asahi-dev
<maz> YichaoYu[m]: not sure what you expect. if you have something to upstream, post the patches to the list, cc'ing the maintainers and myself.
hizonx has quit [Remote host closed the connection]
millenialhacker has joined #asahi-dev
alexsv has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
MajorBiscuit has joined #asahi-dev
kov has joined #asahi-dev
tanty has quit []
tanty has joined #asahi-dev
<YichaoYu[m]> But you told me to not do that since there's nothing to be done to the kernel
MajorBiscuit has quit [Quit: WeeChat 3.4]
<maz> YichaoYu[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.
<YichaoYu[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
<maz> which email?
<maz> if you don't cc me, there is exactly zero chances that I'll see it.
<YichaoYu[m]> I sent an email to linux-arm-kernel and cc'd you and everyone I found i maintainers that related to pmu
<j`ey> YichaoYu[m]: you used maz's old email by accident
<maz> what is the message-id?
<YichaoYu[m]> = = ...... k did't know that...
MajorBiscuit has joined #asahi-dev
<maz> I'll dig out that from the list and reply.
<YichaoYu[m]> thx
<j`ey> is it get_maintainers.pl that gets the old email?
<maz> under 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...
MajorBiscuit has quit [Ping timeout: 480 seconds]
<millenialhacker> How could I get the mailbox address of a given ACS? I'm creating a Tracer and I see a lot of MMIO R/W
<povik> i wonder why i can't get AOP to boot
<povik> i set DAPF according to filter-data-instance-0 we found in ADT the othery day
<millenialhacker> But 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.
<povik> then it's RUN=1 in CPU_CONTROL
<povik> but no HELLO
<povik> what can i be missing?
<sven> millenialhacker: start with an empty regmap and add registers when you figure them out. that's usually how those are created
<sven> povik: maybe it needs to be brought up with the same message like SMC?
<povik> let's see
<sven> or maybe just trace whatever macos does
<millenialhacker> Well I found one IRQ register :D
<sven> wouldn't surprise me if there's a _third_ way to start these things
<millenialhacker> sven: is it safe to assume MAILBOX messages will be always 8 bytes long? (R.8 and W.8 respectively)?
<povik> doesn't look like macos does anything special (trace: https://tpaste.us/6EMz )
<sven> my memory's a bit fuzzy, but I think the HW requires 64bit reads/writes to advance the FIFO.
<sven> 8 bytes is probably a good assumption
MajorBiscuit has joined #asahi-dev
<sven> well, actually 1x 64bit and 1x 42bit or or so + some status bits so that it's a 64bit read anyway
<sven> 64+32 bit actually, but both read/written with a 64bit read/write
<millenialhacker> Cool, I think I can filter out non-eight bytes read/writes to see if I can spot interesting stuff
<povik> millenialhacker: if you are tracing a coprocessor with the usual mailbox interface, you should probably base your tracer on the infrastructure that's already there
<sven> ^--
<povik> e.g. i am starting an AOP tracer with this: https://tpaste.us/rnjE
<millenialhacker> I'm using ASCTracer povik
<povik> ah then i wonder if your verbose level is set too high if you need to filter mmio accesses
the_lanetly_052__ has joined #asahi-dev
<millenialhacker> povik: I'm using verbose 3
<jannau> why dcp? why? swaps are not cancelled/errored on connector unplug but are completed on replug after setting the mode
<sven> :/
MajorBiscuit has quit [Ping timeout: 480 seconds]
millenialhacker has quit [Remote host closed the connection]
psykose has quit [Remote host closed the connection]
psykose has joined #asahi-dev
millenialhacker has joined #asahi-dev
<millenialhacker> has anyone experienced issues with DARTTracer? like this: https://pastebin.com/ax6VCzK0?
<millenialhacker> (if I use DARTT8110Tracer instead, at least it seems to work)
<povik> where are you getting DARTT8110Tracer from?
<sven> it’s been merged recently I think
<povik> ah
<sven> unfortunately it’s separate from the regular one :(
<sven> someone should merge them
<povik> dart-isp0 has dart,t6000, so i assume DARTT8110 shouldn't be used with it
<povik> at least that's on t6000, don't know about t8103
<millenialhacker> sven: I have a MbP M1 (2020). My DTB says:
<millenialhacker> dart-isp { …
<millenialhacker> compatible = [dart,t8020]
<millenialhacker> …
<millenialhacker> }
<povik> yeah, so that should work with DARTTracer
<povik> is it possible you are doing something before isp_dart_tracer.start, that would break the proxy?
<millenialhacker> hv.log('ISP: Registering ISP ASC tracer...')
<millenialhacker> isp_dart_tracer.start()
<millenialhacker> isp_dart_tracer = DARTTracer(hv, "/arm-io/dart-isp", verbose=4)
<povik> maybe you need to do p.pmgr_adt_clocks_enable("/arm-io/dart-isp")
<povik> although i wouldn't know if that's okay in a tracer script
<povik> hopefully macos will cope
<millenialhacker> povik: that seems to do the trick.
<millenialhacker> but then Mac OS doesn't boot :D
<millenialhacker> rainbow logo without progress bar
<povik> lol
<povik> does it say anything?
<millenialhacker> no, but rebooting it seems to work. So it's a little bit unstable I'd say
yuyichao_ has quit [Remote host closed the connection]
yuyichao has joined #asahi-dev
jluthra has quit [Remote host closed the connection]
jluthra_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
the_lanetly_052___ has joined #asahi-dev
yuyichao has joined #asahi-dev
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
<millenialhacker> svan: 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?
<Jamie[m]1> it’s different for each peripheral
<Jamie[m]1> (and there are even more variants not in the kernel yet, like the 32-bit M3 in the AVD)
<jannau> millenialhacker: ascwrap or m3wrap in the compatible in the adt
<sven> unless you're playing around with thunderbolt it'll be asc
nicolas17 has joined #asahi-dev
<millenialhacker> I 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?
<povik> m1n1 wouldn't insert any compatible tags that aren't there already
<Jamie[m]1> i don’t believe m1n1 does any ASC modifications (it modifies the linux DT based on stuff from the ADT)
<Jamie[m]1> s/ASC/ADT sorry
<millenialhacker> interesting...
<povik> indeed it looks like ISP has its own special interface
<povik> compatible = [isp,h13-generic, isp,s5l8960x]
<povik> millenialhacker: i suppose you haven't been getting anything sensible using ASCTracer on it
<jannau> only hint in the ADT is 'asc-dram-mask' so it might be asc or something more or less compatible
<millenialhacker> povik: 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.
<millenialhacker> I see some memory addresses that are accessed always in the same way when I poweron the camera
<millenialhacker> but I was trying to get Mailbox messages to be detected, but as jannau said, maybe is not compatible to asc
<povik> yeah, that looks like ASCTracer will do you no good
<povik> the mmio interface is different
<povik> the CPU_CONTROL isn't i suppose CPU_CONTROL = (RUN = 1) or something to that effect
<millenialhacker> 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
<povik> i know it has been discussed here before but where do you get the idea there's I2C involved
<millenialhacker> From static RE the Apple Driver
<millenialhacker> ^ povik
<povik> ah
<marcan> all the I/O is 32bit so that's obviously not the usual ASC mailbox
<marcan> but the funny thing is the firmware does have the usual RTKit strings in it
jluthra_ is now known as jluthra
<marcan> there are a ton of DART instances too, which are also part of the wider ISP reg map (and thus show up wrong in mmiotrace)
<marcan> a lot of the IO traffic is just DART noise
bisko has quit [Ping timeout: 480 seconds]
<sven> a ton of dart instances? Wtf did they do there?!
<marcan> yuuup
<marcan> there's *6*
user982492 has joined #asahi-dev
<marcan> and also isp0 maps some random pmgr pstate register range and pokes it direclty, because of course it does
<marcan> (that's the second reg)
<sven> maybe it’s the same hack used for usb but with six instead of two darts :D
<marcan> or maybe it's 3 instances and each one has 2 reg blocks?
<marcan> there is some "real-time" thing, maybe there's something special about these DARTs since they're used for video capture?
<marcan> disp0 also has that prop
<marcan> and ave0 (??)
<marcan> (maybe because it's used to encode camera output?)
<marcan> actually the instance stuff says some of them aren't DARTs, they're "SMMU"?
<marcan> > FPADDARTLLT TRADDARTBULK TRADDARTRT UMMSSMMUBULK UMMSSMMURT
<nicolas17> I wonder when rtkit became a thing
<marcan> is what that says about those
<marcan> (also that's 5?)
<marcan> then again disp0 also claims to have two things, a DART and an SMMU
<sven> SMMU was that weird thing where you could see something like the cache in the MMIO
<marcan> yeah, makes sense, it's before the DART in disp0 and I remember that
<marcan> so then 3 DARTs for ISP
<marcan> and some other SMMU nonsense
<marcan> look like one specifically for realtime stuff which kinda makes sense, and no idea why they have 2 more
<sven> and 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)
<marcan> USB has LLT/BLK
<marcan> this has LLT/BULK/RT apparently
<marcan> note BLK vs BULK
<marcan> lol consistency
<sven> :/
<marcan> millenialhacker: sounds like you're going to be having a lot of fun :p
<millenialhacker> marcan: How did you parsed the instance stuff?
<millenialhacker> marvan sven fyi, I just noticed mostly access to addresses ISP.REG[0] and DARTISP.REG[0] memory regions
<sven> don’t bother, it just has the same name
<jannau> millenialhacker: parse instance as ascii and look for DART
<millenialhacker> sven what do you mean exactly?
<sven> that pdf you linked is not related to what apple calls SMMU
<millenialhacker> Oh, thanks!
DanielLeal[m] has joined #asahi-dev
millenialhacker has quit [Remote host closed the connection]
millenialhacker has joined #asahi-dev
<millenialhacker> marcan: 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. :)
<sven> sounds like it’s a good way to grow that skillset then ;)
MajorBiscuit has joined #asahi-dev
chadmed has quit [Read error: Connection reset by peer]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MajorBiscuit has quit [Ping timeout: 480 seconds]
<millenialhacker> This is by far the most hilarious thing today:
<millenialhacker> [cpu1] [ISPTracer@/arm-io/isp] MMIO: W.4 0x22c104174 = 0xfeedbabe
<millenialhacker> xD
balrog has quit [Quit: Bye]
user982492 has joined #asahi-dev
balrog has joined #asahi-dev
Glanzmann has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
MajorBiscuit has quit []
MajorBiscuit has joined #asahi-dev
Zanthed has left #asahi-dev [#asahi-dev]
___nick___ has quit [Ping timeout: 480 seconds]
Major_Biscuit has joined #asahi-dev
MajorBiscuit has quit [Ping timeout: 480 seconds]
millenialhacker has quit [Remote host closed the connection]
akemin_dayo has joined #asahi-dev
millenialhacker has joined #asahi-dev
<millenialhacker> I'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
<millenialhacker> Like: https://pastebin.com/uEuWef9A
millenialhacker has quit [Remote host closed the connection]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millenialhacker has joined #asahi-dev
Major_Biscuit has quit [Ping timeout: 480 seconds]
Major_Biscuit has joined #asahi-dev
Major_Biscuit has quit []
millenialhacker has quit [Ping timeout: 480 seconds]
user982492 has joined #asahi-dev
user982492 has quit [synthon.oftc.net reflection.oftc.net]
yuyichao has quit [synthon.oftc.net reflection.oftc.net]
jluthra has quit [synthon.oftc.net reflection.oftc.net]
systwi has quit [synthon.oftc.net reflection.oftc.net]
apetresc1 has quit [synthon.oftc.net reflection.oftc.net]
Ariadne has quit [synthon.oftc.net reflection.oftc.net]
linuxgemini95 has quit [synthon.oftc.net reflection.oftc.net]
Method has quit [synthon.oftc.net reflection.oftc.net]
emptynine has quit [synthon.oftc.net reflection.oftc.net]
tpw_rules has quit [synthon.oftc.net reflection.oftc.net]
tych0 has quit [synthon.oftc.net reflection.oftc.net]
clee has quit [synthon.oftc.net reflection.oftc.net]
axboe has quit [synthon.oftc.net reflection.oftc.net]
tmlind has quit [synthon.oftc.net reflection.oftc.net]
ids1024 has quit [synthon.oftc.net reflection.oftc.net]
TheFirst has quit [synthon.oftc.net reflection.oftc.net]
rqou_ has quit [synthon.oftc.net reflection.oftc.net]
kendfinger has quit [synthon.oftc.net reflection.oftc.net]
Telvana has quit [synthon.oftc.net reflection.oftc.net]
refi64 has quit [synthon.oftc.net reflection.oftc.net]
krbtgt has quit [synthon.oftc.net reflection.oftc.net]
x56 has quit [synthon.oftc.net reflection.oftc.net]
JTL has quit [synthon.oftc.net reflection.oftc.net]
rcombs has quit [synthon.oftc.net reflection.oftc.net]
austriancoder has quit [synthon.oftc.net reflection.oftc.net]
arnd has quit [synthon.oftc.net reflection.oftc.net]
balrog has quit [synthon.oftc.net larich.oftc.net]
nicolas17 has quit [synthon.oftc.net larich.oftc.net]
bpye has quit [synthon.oftc.net larich.oftc.net]
kov has quit [synthon.oftc.net larich.oftc.net]
boardwalk has quit [synthon.oftc.net larich.oftc.net]
winter has quit [synthon.oftc.net larich.oftc.net]
nullroute has quit [synthon.oftc.net larich.oftc.net]
opticron has quit [synthon.oftc.net larich.oftc.net]
nepeat has quit [synthon.oftc.net larich.oftc.net]
Lightsword has quit [synthon.oftc.net larich.oftc.net]
tardyp has quit [synthon.oftc.net larich.oftc.net]
al3xtjames has quit [synthon.oftc.net larich.oftc.net]
snek has quit [synthon.oftc.net larich.oftc.net]
Chainsaw has quit [synthon.oftc.net larich.oftc.net]
cptcobalt has quit [synthon.oftc.net larich.oftc.net]
mmarchini has quit [synthon.oftc.net larich.oftc.net]
skipwich has quit [synthon.oftc.net larich.oftc.net]
poplar has quit [synthon.oftc.net larich.oftc.net]
jabashque has quit [synthon.oftc.net larich.oftc.net]
philpax_ has quit [synthon.oftc.net larich.oftc.net]
jbowen has quit [synthon.oftc.net larich.oftc.net]
d4ve has quit [synthon.oftc.net larich.oftc.net]
nathanchance has quit [synthon.oftc.net larich.oftc.net]
jkkm has quit [synthon.oftc.net larich.oftc.net]
esden has quit [synthon.oftc.net larich.oftc.net]
RevHelix has quit [synthon.oftc.net weber.oftc.net]
kode54 has quit [synthon.oftc.net weber.oftc.net]
KDDLB has quit [synthon.oftc.net weber.oftc.net]
Graypup_ has quit [synthon.oftc.net weber.oftc.net]
nafod has quit [synthon.oftc.net weber.oftc.net]
WindowPain has quit [synthon.oftc.net weber.oftc.net]
Chainfire has quit [synthon.oftc.net weber.oftc.net]
gpanders__ has quit [synthon.oftc.net weber.oftc.net]
tbodt has quit [synthon.oftc.net weber.oftc.net]
rbenua has quit [synthon.oftc.net weber.oftc.net]
hays has quit [synthon.oftc.net weber.oftc.net]
Z750 has quit [synthon.oftc.net weber.oftc.net]
NekomimiScience has quit [synthon.oftc.net weber.oftc.net]
koorogi has quit [synthon.oftc.net weber.oftc.net]
kevans91 has quit [synthon.oftc.net weber.oftc.net]
Skirmisher has quit [synthon.oftc.net weber.oftc.net]
robher has quit [synthon.oftc.net weber.oftc.net]
nkaretnikov has quit [synthon.oftc.net weber.oftc.net]
_alice has quit [synthon.oftc.net weber.oftc.net]
turo has quit [synthon.oftc.net weber.oftc.net]
Gaelan has quit [synthon.oftc.net weber.oftc.net]
nyx_o has quit [synthon.oftc.net weber.oftc.net]
coder_kalyan has quit [synthon.oftc.net weber.oftc.net]
WhyNotHugo has quit [synthon.oftc.net weber.oftc.net]
Simonx22 has quit [synthon.oftc.net weber.oftc.net]
daniels has quit [synthon.oftc.net weber.oftc.net]
msteffen has quit [synthon.oftc.net weber.oftc.net]
sjg1 has quit [synthon.oftc.net weber.oftc.net]
skoobasteeve has quit [synthon.oftc.net weber.oftc.net]
gpanders__ has joined #asahi-dev
kode54 has joined #asahi-dev
KDDLB has joined #asahi-dev
Graypup_ has joined #asahi-dev
nafod has joined #asahi-dev
nyx_o has joined #asahi-dev
Chainfire has joined #asahi-dev
NekomimiScience has joined #asahi-dev
daniels has joined #asahi-dev
RevHelix has joined #asahi-dev
Simonx22 has joined #asahi-dev
nkaretnikov has joined #asahi-dev
Gaelan has joined #asahi-dev
sjg1 has joined #asahi-dev
msteffen has joined #asahi-dev
turo has joined #asahi-dev
hays has joined #asahi-dev
Z750 has joined #asahi-dev
koorogi has joined #asahi-dev
rbenua has joined #asahi-dev
tbodt has joined #asahi-dev
coder_kalyan has joined #asahi-dev
WhyNotHugo has joined #asahi-dev
Skirmisher has joined #asahi-dev
robher has joined #asahi-dev
WindowPain has joined #asahi-dev
skoobasteeve has joined #asahi-dev
_alice has joined #asahi-dev
kevans91 has joined #asahi-dev
user982492 has joined #asahi-dev
yuyichao has joined #asahi-dev
jluthra has joined #asahi-dev
systwi has joined #asahi-dev
apetresc1 has joined #asahi-dev
linuxgemini95 has joined #asahi-dev
Ariadne has joined #asahi-dev
Method has joined #asahi-dev
tmlind has joined #asahi-dev
Telvana has joined #asahi-dev
emptynine has joined #asahi-dev
axboe has joined #asahi-dev
x56 has joined #asahi-dev
tpw_rules has joined #asahi-dev
JTL has joined #asahi-dev
ids1024 has joined #asahi-dev
rcombs has joined #asahi-dev
krbtgt has joined #asahi-dev
rqou_ has joined #asahi-dev
refi64 has joined #asahi-dev
kendfinger has joined #asahi-dev
arnd has joined #asahi-dev
clee has joined #asahi-dev
tych0 has joined #asahi-dev
austriancoder has joined #asahi-dev
TheFirst has joined #asahi-dev
boardwalk has joined #asahi-dev
winter has joined #asahi-dev
opticron has joined #asahi-dev
nullroute has joined #asahi-dev
Lightsword has joined #asahi-dev
nepeat has joined #asahi-dev
al3xtjames has joined #asahi-dev
tardyp has joined #asahi-dev
poplar has joined #asahi-dev
skipwich has joined #asahi-dev
jbowen has joined #asahi-dev
d4ve has joined #asahi-dev
Chainsaw has joined #asahi-dev
jabashque has joined #asahi-dev
jkkm has joined #asahi-dev
nathanchance has joined #asahi-dev
mmarchini has joined #asahi-dev
snek has joined #asahi-dev
philpax_ has joined #asahi-dev
cptcobalt has joined #asahi-dev
esden has joined #asahi-dev
balrog has joined #asahi-dev
kov has joined #asahi-dev
nicolas17 has joined #asahi-dev
bpye has joined #asahi-dev
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi-dev