#
…

2021-08-26

00:09jn has quit [Remote host closed the connection]
00:10jn has joined #asahi-dev
01:04alyssasven: re flicker free boot, inheriting mappings, race conditions, etc
01:04alyssathis time, I booted successfully but found this in my dmesg
01:04alyssawhich illustrates the sort of trouble I'd like to avoid
01:05alyssadisp0 is the first dart intiialized 231304000
01:06alyssanotice it takes several frames to go from "init DART" to "console switched" 🤷
02:27phiologe has joined #asahi-dev
03:20quarkyalice_ has quit [Remote host closed the connection]
03:24quarkyalice has joined #asahi-dev
03:55quarkyalice has quit [Remote host closed the connection]
03:56quarkyalice has joined #asahi-dev
04:24kenzie has quit [Remote host closed the connection]
04:25kenzie has joined #asahi-dev
05:42marcanalyssa: there is a specific dead battery flow in the PD controllers; this is a chicken and egg problem in ~all devices
05:42marcanonce the system is alive it takes over
05:43marcan(this is documented in the manuals for the similar TI parts)
05:44marcanalyssa: there should be no races involved; it is not a valid solution to try to race setting up a new FB
05:44marcanDART inits first, takes over the mappings race-free, then the DCP driver does whatever whenever
05:44marcanwe absolutely need seamless DART mapping takeover; I do not believe DCP initialization can even be done reliably without that, it's not just about the screen flickering
05:45marcanthis consequence follows from ASCs that are already running when we boot. those mappings *need* to stay because they could be written to at any time
05:46bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:46marcannot sure if that's just DCP or there are more, but DCP for sure
05:46marcanactually I need to see what ANS does for the panic buffer. I know for DCP it *gives* you a DVA that is already mapped, you just translate it (no idea why it needs that)
05:47marcansven: you might know?
05:47marcanthough ANS is special, what with the SART and all
06:18svenmarcan: you just setup a new one every time you make ANS go through the hibernate/wake cycle
06:19marcansven: does the init sequence change?
06:19marcanfor DCP IIRC it *gives* you the dva when initializing the crashdump endpoint
06:19marcanas it already knows it apparently
06:19svenat least i don't think so
06:19marcanthen where does the dva come from?
06:19svenit *asks* for one from you
06:19marcanthat's not what DCP does :)
06:20marcansee m1n1.fw.asc.crash
06:20marcanthe request is "TranslateDva", DCP sends you the dva and then (for some reason?) you give it the physaddr
06:20marcanI have no idea why it wants that
06:20marcanbut that is what happens with osx
06:20marcanthat dva is in an area already allocated by iBoot
06:20marcanand already mapped
06:23sven< 0x10800000000000 (TYPE=0x1) / 0x20350000000001 (EP=0x1)
06:23sven> 0x10800809d68000 (TYPE=0x1, SIZE=0x8, IOVA=0x809d68000) / 0x1 (EP=0x1)
06:23sventhat's for ANS
06:23sven(iova == physaddr because SART can't do any remapping)
06:28svenand yeah, if i send it to hibernate and wake it up again it just sends the same initial message
06:43marcanok, so it's a different flow for DCP then
06:44marcanis that really a size?
06:44marcanI have it as part of the message type
06:44marcan0x103 for crash, 0x104 for translatedva, and apparently 0x108 for allocate?
06:44marcanI agree it smells like a size given where it is, but then all messages have the same type...
06:46svensee -re
06:52sventl;dr: yes, it's a size
06:58bisko has joined #asahi-dev
07:00JTL has quit [Quit: WeeChat 2.9]
07:00JTL has joined #asahi-dev
07:01bisko has quit []
07:01JTL has quit []
07:01JTL has joined #asahi-dev
07:01JTL has quit []
07:02JTL has joined #asahi-dev
07:03JTL has quit []
07:03JTL has joined #asahi-dev
07:06JTL has quit []
07:06JTL has joined #asahi-dev
07:06JTL has quit []
07:06JTL has joined #asahi-dev
07:11bisko has joined #asahi-dev
07:14chadmed has quit [Remote host closed the connection]
07:15chadmed has joined #asahi-dev
07:25x56 has quit [Ping timeout: 480 seconds]
07:29JTL has quit [Quit: WeeChat 2.9]
07:29JTL has joined #asahi-dev
07:31x56 has joined #asahi-dev
07:35quarkyalice has quit [Read error: Connection reset by peer]
07:37quarkyalice has joined #asahi-dev
07:43aleasto has joined #asahi-dev
08:01bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:02bisko has joined #asahi-dev
08:07Mary has joined #asahi-dev
09:04bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:09suricato has joined #asahi-dev
09:22JTL has quit [Quit: WeeChat 2.9]
09:22JTL has joined #asahi-dev
10:33bisko has joined #asahi-dev
10:47kettenis has joined #asahi-dev
10:48kettenisoh, this is where folks are hanging out today
14:32jbowen has quit [Quit: leaving]
14:43bps has quit [Ping timeout: 480 seconds]
15:39Mary has quit [Quit: The Lounge - https://thelounge.chat]
16:15PhilippvK has joined #asahi-dev
16:18phiologe has quit [Ping timeout: 480 seconds]
16:47PhilippvK has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
16:48phiologe has joined #asahi-dev
16:55bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:56bisko has joined #asahi-dev
17:00bisko has quit []
17:01bisko has joined #asahi-dev
17:03phiologe has quit [Ping timeout: 480 seconds]
17:04bisko has quit []
17:05bisko has joined #asahi-dev
17:21suricato_ has joined #asahi-dev
17:23suricato has quit [Ping timeout: 480 seconds]
18:02bps has joined #asahi-dev
18:46bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:49bisko has joined #asahi-dev
19:15aleasto has quit [Remote host closed the connection]
20:17alyssapipcet[m]: would like to give your DCP branch a try
20:27alyssacherrypicks cleanly, that's a start :)
20:28alyssanot sure where the corresponding DT / makefile / etc changes went
20:29pipcet[m]i, uh, think I decided to fix that "later" and put them all in the -dts branch :/
20:30pipcet[m]and, then, obviously, forgot and started playing with the DCP instead, getting nowhere near a working framebuffer after changing video modes :-(
20:31alyssaright...
20:33pipcet[m]alyssa: I don't think the DCP branch does anything on the mini, though?
20:38pipcet[m]you can set other properties, but the only one I can make do anything is property 0, which inverts all colors if set to 1.
20:41pipcet[m]oh. uhm. if set to 1 TWICE. The first set doesn't do anything. I think that's a bug somewhere though...
20:46alyssaI guess I also really need the uart stuff
20:48j_eyalyssa: m1n1 emulates enough of the samsung driver now
20:48pipcet[m]no console?
20:48alyssaj_ey: magic invoc?
20:49j_eyshouldn't need anything extra. just use picocom /dev/tty<something>
20:49DarkShadow4444 has joined #asahi-dev
20:49j_eywhere the something is the second m1n1 port
20:49alyssayeah, just haven't managed to boot linx in the hv yet
20:50j_ey/dev/ttyACM1 for me
20:55DarkShadow44 has quit [Ping timeout: 480 seconds]
21:03bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:06bisko has joined #asahi-dev
21:37alyssasven: I rebased Corellium's SMC driver on the new mailbox interface
21:37alyssausing the rtkit library, not the compat mailbox
21:38alyssathat was educational :')
21:45alyssamu-one/linux:smc-2 tip has the rebased driver
21:45j_eyalyssa: is the locked dart stuff needed for that?
21:46j_ey(or just in the tree because)
21:47DarkShadow44 has joined #asahi-dev
21:48DarkShadow4444 has quit [Read error: Connection reset by peer]
21:48DarkShadow44 has quit []
21:51alyssaj_ey: not for SMC, yes for DCP
21:51alyssajust in tree because this is me getting sidetracked from DCP
21:52alyssaseemed like a good warmup
21:57j_eydoes that driver actually provide an interface? in sysfs or whatever, it doesnt look like it
21:58alyssasmc? idk, I just check that pressing the power button generates a syslog in dmesg
22:00DarkShadow44 has joined #asahi-dev
22:01DarkShadow44 has quit []
22:02alyssaj_ey: no, the rtkit syslog
22:03DarkShadow44 has joined #asahi-dev
22:08alyssaso now i'm just trying to get DCP to boot with the new rtkit stuff
22:08alyssait's not going so hot
22:08jni'm always very tempted to pronounce RTkit like rootkit… hmmm…
22:13alyssaj_ey: it's accurate for an always-on processor with DMA running a proprietary OS 🙃
22:13alyssa(admittedly the "DMA" part is misleading if the DARTs are configured properly)
22:14j_eyjn needs a tinfoil hat
22:14aleasto has joined #asahi-dev
22:14jni have a tinbox hat!
22:14jnit's my cookie box
22:17alyssaDCP seems sort of alive?
22:18pipcet[m]doing what?
22:26suricato_ has quit [Ping timeout: 480 seconds]
22:29alyssanothing yet
22:32manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
22:32manawyrm has joined #asahi-dev
22:36alyssaDCP is alive!
22:36alyssaconfirmed from syslog. weeee!
22:37alyssaOk, I promised sven that once I had signs of life from the DCP I'd take a break. So ta ta for now
…