#
…

2021-02-18

00:00BaughnLogBot has joined #asahi-re
00:31_jannau_ has quit [Ping timeout: 264 seconds]
00:32_jannau_ has joined #asahi-re
00:35Hexagon has quit [Quit: No Ping reply in 180 seconds.]
00:37Hexagon has joined #asahi-re
00:41BaughnLogBot has quit [Read error: Connection reset by peer]
00:42BaughnLogBot has joined #asahi-re
00:54_whitelogger has joined #asahi-re
02:04riker77 has quit [Ping timeout: 272 seconds]
02:04riker77 has joined #asahi-re
02:59segher has quit [Ping timeout: 240 seconds]
03:01riker77 has quit [Ping timeout: 272 seconds]
03:02riker77 has joined #asahi-re
03:04_ghost_ has quit [Ping timeout: 240 seconds]
03:04segher has joined #asahi-re
03:05_ghost_ has joined #asahi-re
03:10phiologe has quit [Ping timeout: 260 seconds]
03:11phiologe has joined #asahi-re
03:25BaughnLogBot has quit [Ping timeout: 260 seconds]
03:27BaughnLogBot has joined #asahi-re
03:28robher has quit [Ping timeout: 240 seconds]
03:28stemnic has quit [Remote host closed the connection]
03:29stemnic has joined #asahi-re
03:29robher has joined #asahi-re
05:11carlosn1 has joined #asahi-re
05:13tiagom has joined #asahi-re
05:13carlosn has quit [Ping timeout: 246 seconds]
05:16tiagom has quit [Client Quit]
05:44greatudini[m] has joined #asahi-re
05:58BaughnLogBot has quit [Ping timeout: 260 seconds]
06:00odmir has quit [Remote host closed the connection]
06:01BaughnLogBot has joined #asahi-re
06:28TheJollyRoger has quit [Remote host closed the connection]
06:30TheJollyRoger has joined #asahi-re
07:08bisko has joined #asahi-re
07:12maor26 has joined #asahi-re
07:18bgb has joined #asahi-re
07:26bgb_ has joined #asahi-re
07:29bgb has quit [Ping timeout: 265 seconds]
07:29bgb_are the register bit definitions of https://github.com/AsahiLinux/docs/wiki/HW:ARM-System-Registers extracted from xnu kernel ?
07:30bgb_ has left #asahi-re [#asahi-re]
07:30bgb has joined #asahi-re
07:34macc24 has quit [Quit: ZNC 1.8.2 - https://znc.in]
07:45macc24 has joined #asahi-re
08:16bgb has quit [Ping timeout: 256 seconds]
08:17bgb has joined #asahi-re
08:41BaughnLogBot has quit [Ping timeout: 265 seconds]
08:41BaughnLogBot_ has joined #asahi-re
08:41BaughnLogBot_ is now known as BaughnLogBot
08:57vimal has quit [Remote host closed the connection]
09:00liur[m] has quit [Quit: Idle for 30+ days]
09:08_whitelogger has joined #asahi-re
09:53BaughnLogBot_ has joined #asahi-re
09:53BaughnLogBot has quit [Ping timeout: 260 seconds]
09:53BaughnLogBot_ is now known as BaughnLogBot
10:39Shizsven: damn it, someone wrote a usable devtree parser around the same time i did then :p
10:39Shizsad i didn't notice it
10:45bgb has quit [Ping timeout: 264 seconds]
10:45bgb has joined #asahi-re
11:31bgb has quit [Ping timeout: 240 seconds]
12:35bgb has joined #asahi-re
12:44bgb has quit [Ping timeout: 265 seconds]
13:27odmir has joined #asahi-re
13:28odmir_ has joined #asahi-re
13:28odmir has quit [Read error: Connection reset by peer]
15:07modwizcodethe names come from xnu headers iirc plus some I think were named after discovery of their uses but mostly from xnu I think
15:55BaughnLogBot has quit [Ping timeout: 240 seconds]
15:56BaughnLogBot has joined #asahi-re
16:23marcanfun things to do: exhaustive probe of instruction set
16:23j`eymarcan: heh, mark got you wondering? :P
16:24marcanyeah, AMX is off as one would expect (AFAICT), but... there are other things in here
17:06bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:13never_releasedmarcan: yeah, tons
17:13never_releasedand if you do the probing from EL2 or EL1
17:13never_releasedyou might get yourself into GL1 or GL2
17:13never_releasedin which case here be dragons
17:13modwizcodeI'm very very interested in GL1/2
17:15marcanwell, I just found the freaking memory compression instruction
17:15modwizcodethat was quick
17:15modwizcodeI figured those would be the most confusing and hard to find
17:20marcanit's literally the first thing that had an obvious effect (faulting), numerically, in the range
17:20marcanthe previous subset all does "nothing" as far as I can tell, but does not fault; no idea what it is
17:20marcan(could just be some hint space Apple made for themselves, or PAC related or something)
17:22modwizcodeAdding support for ISA extensions in qemu is going to be fun, but I don't think there's a sane framework for doing so. Which makes sort of sense, ARM was originally completely against custom vendor ISA extensions iirc.
17:23davidrysk[m]marcan: how about the memory decompression instruction? :p
17:24modwizcodeI suppose determining what type of params an opcode uses can be a lot easier if you have detailed fault reporting to use
18:13modwizcodeI wonder what the translate address instruction is used for
18:16marcanthe thing is ARM *already has* instructions for translate address
18:16marcanand the output format is the same even
18:16modwizcoderight which is what I'm confused about
18:16marcanbut the ARM instructions return via sysreg, the apple one returns via GPR
18:16modwizcodeI mean ARM also has PAC and Apple does their own thing (although apple ones make sense)
18:16modwizcodeApple one might be predictable?
18:16modwizcodenot sure if you'd want to predict that kind of instruction though
18:29maximus64marcan: did you try to scan for instructions on the firestorm core? wondering if there any differences there. Unlikely but possible
18:29marcanI did not, and I sure hope there aren't
18:29marcanthat would be madness
18:29j`eythat would be bad for scheduling!
18:29marcanI can try later anyway
18:30marcan(it's adding one line of code at the top of my python script...)
18:30marcan(has anyone with a serial cable *not* tried m1n1's python stuff? because you're totally missing out)
18:30maximus64did you push the change? I can try it on my setup :)
18:30marcanI pushed a minor framework change
18:30marcanthe script is just stuff like https://mrcn.st/p/sBwViUh5 and manually poking around
18:31marcanto run it on other CPUs, you call p.smp_start_secondaries() first and then just copy/hack the instr() thing in util.py to use proxy.smp_call_sync() instead of proxy.call()
18:32marcanfeel free to extend it with a cpu= argument where 0 is call() and others go through smp_call_sync or so
18:33maximus64oh nice. I was hack up mini to start on other cores before. Didn't know that there are framework for that already
18:34marcando note that the other cores have the MMU off
18:34marcanthe page compress/uncompress instructions and translate instruction might not like that
19:15sferrini has quit [Remote host closed the connection]
19:15sirn has quit [Remote host closed the connection]
19:15brinly has quit [Remote host closed the connection]
19:17_ghost_ has quit [Ping timeout: 246 seconds]
19:17_ghost_ has joined #asahi-re
19:17modmuss50 has quit [Ping timeout: 246 seconds]
19:18modmuss50 has joined #asahi-re
19:21TheJollyRoger has quit [Ping timeout: 268 seconds]
19:22TheJollyRoger has joined #asahi-re
19:44suskun has joined #asahi-re
19:48sirn has joined #asahi-re
19:48suskun has quit [Ping timeout: 260 seconds]
19:55brinly has joined #asahi-re
19:56sferrini has joined #asahi-re
20:08never_releasedSome extensions have to explicitly be enabled
20:08never_releasedthrough ACTLR or other registers
20:09never_releasedmarcan: is the Apple one accessible from user mode
20:18modwizcodeAre the compression instructions accessible in user mode?
20:24never_releasedWill have to test
21:05sirn has quit [Remote host closed the connection]
21:05sferrini has quit [Remote host closed the connection]
21:05brinly has quit [Remote host closed the connection]
21:12sirn has joined #asahi-re
21:22brinly has joined #asahi-re
21:23sferrini has joined #asahi-re
21:27modwizcodeThat seems odd. It doesn't really sound like something that would require a chip to support
21:27modwizcodeIn general those sound a lot like some of the safety that clang has maybe augmented a bit.
22:25roxfanthey say iOS 14, not A14 or whatever so it sounds mostly software
22:25roxfanah wait they do
22:26roxfanmight be PAC then
22:27roxfanalthough that was added in A12, not A13
22:32davidrysk[m]I think A13 has improved PAC?
22:35dougall has quit [Quit: Lost terminal]
22:35roxfancould be, I don't follow it closely
22:36dougall has joined #asahi-re
22:43maor26 has quit [Ping timeout: 240 seconds]
23:18amw has joined #asahi-re
23:49odmir has joined #asahi-re
23:49odmir_ has quit [Read error: Connection reset by peer]
23:52odmir_ has joined #asahi-re
23:52odmir has quit [Read error: Connection reset by peer]
23:54odmir has joined #asahi-re
23:54odmir has quit [Remote host closed the connection]
23:54odmir_ has quit [Read error: Connection reset by peer]
23:55odmir has joined #asahi-re
23:57odmir_ has joined #asahi-re
23:57odmir has quit [Read error: Connection reset by peer]
…