#
…

2021-06-09

00:05yrlf is now known as Guest1368
00:05yrlf has joined #asahi
00:05Guest1368 has quit [Read error: Connection reset by peer]
01:20bgb has joined #asahi
01:43aquijoule__ has joined #asahi
01:49aquijoule_ has quit [Ping timeout: 480 seconds]
02:12phiologe has joined #asahi
02:15PhilippvK has quit [Ping timeout: 480 seconds]
03:09marvin24 has joined #asahi
03:10bgb_ has joined #asahi
03:12marvin24_ has quit [Ping timeout: 480 seconds]
03:15bgb has quit [Ping timeout: 480 seconds]
04:35bgb_ has quit [Ping timeout: 480 seconds]
05:11VinDuv has joined #asahi
05:19Graypup__ has joined #asahi
05:20bgb_ has joined #asahi
05:22Graypup_ has quit [Ping timeout: 480 seconds]
05:25branon has quit [Ping timeout: 480 seconds]
05:33tomtastic has quit [Ping timeout: 480 seconds]
05:35bgb_ has quit [Ping timeout: 480 seconds]
05:48tomtastic has joined #asahi
05:49bgb_ has joined #asahi
06:07branon has joined #asahi
06:11bgb_ has quit [Ping timeout: 480 seconds]
06:17roxfan has quit [Ping timeout: 480 seconds]
06:20VinDuv has quit [Quit: Leaving.]
06:25bgb_ has joined #asahi
06:56pinskia has quit [Remote host closed the connection]
06:57pinskia has joined #asahi
07:14m42uko_ has quit [Ping timeout: 480 seconds]
08:16m42uko has joined #asahi
08:17minecrell has quit [Quit: Ping timeout (120 seconds)]
08:20minecrell has joined #asahi
08:20Namidairo has quit [Quit: ZNC - https://znc.in]
08:22Namidairo has joined #asahi
08:41GreatGodvin has joined #asahi
09:00m42uko_ has joined #asahi
09:03m42uko has quit [Ping timeout: 480 seconds]
09:14m42uko_ is now known as m42uko
09:32nepeat has quit [Ping timeout: 480 seconds]
09:36Ariadne has quit [Ping timeout: 480 seconds]
09:36linuxgemini has quit [Ping timeout: 480 seconds]
09:36ave has quit [Ping timeout: 480 seconds]
09:39robinp has quit [Remote host closed the connection]
09:42nepeat has joined #asahi
09:45tsida has quit [Remote host closed the connection]
09:55ave has joined #asahi
10:05linuxgemini has joined #asahi
10:24GreatGodvin has quit [Quit: GreatGodvin]
10:29aleasto has joined #asahi
11:09bgb_ has quit [Ping timeout: 480 seconds]
11:26_jannau_marcan: vdmtool has open merge requests as well: https://github.com/AsahiLinux/vdmtool/pulls
11:39ovf[m] has joined #asahi
11:44ovf has joined #asahi
12:03tsida has joined #asahi
12:35al3xtjames2 has joined #asahi
12:35al3xtjames has quit [Read error: Connection reset by peer]
12:35al3xtjames2 is now known as al3xtjames
12:55GreatGodvin has joined #asahi
12:58GreatGodvin has quit [Quit: WeeChat 3.1]
13:07GreatGodvin_ has joined #asahi
13:15GreatGodvin has joined #asahi
13:18GreatGodvin has quit []
13:18GreatGodvin has joined #asahi
13:21GreatGodvin has quit []
13:22GreatGodvin has joined #asahi
13:23GreatGodvin_ has quit []
13:23GreatGodvin has quit []
13:23GreatGodvin has joined #asahi
13:25GreatGodvin has quit []
13:25norwoodites has joined #asahi
13:25GreatGodvin has joined #asahi
13:27GreatGodvin has quit []
13:27GreatGodvin has joined #asahi
13:28pinskia has quit [Ping timeout: 480 seconds]
13:30GreatGodvin has quit []
13:30GreatGodvin has joined #asahi
13:31GreatGodvin has quit []
13:32GreatGodvin has joined #asahi
13:33GreatGodvin has quit []
14:14GreatGodvin has joined #asahi
14:14GreatGodvin has quit []
14:51PhilippvK has joined #asahi
14:54phiologe has quit [Ping timeout: 480 seconds]
15:00yrlf is now known as Guest1450
15:00yrlf has joined #asahi
15:04Guest1450 has quit [Ping timeout: 480 seconds]
15:08bgb_ has joined #asahi
15:19bloomkettenis: assuming those are names that corellium came up with as opposed to from XNU or standard terms, wondering if it makes sense to change A2I to OUT and I2A to IN, to be less jargony
15:25kettenis_ has joined #asahi
15:27kettenis has quit [Ping timeout: 480 seconds]
15:28marcan"came up with" like they "came up" with the USB PHY stuff? :P
15:29marcanA2I/I2A do make sense though (AP to IOP and vice versa); this makes sense from the POV of having the register names be reasonable when seen from both sides
15:29marcan_jannau_: thanks, merged :)
15:30marcanalso IOP also happens to be Nintendo terminology for the CPU mini used to run on so... :-)
15:30marcan(we called it the Starlet though)
15:31marcanthis IPC interface is giving me serious wii vibes
15:31marcanthere we called the regs "PPCMSG" and "ARMMSG" though, after the originator
15:34svenugh, the usb phy. that one's gonna be fun once we want usb 3 or thunderbolt support
15:34bgb_ has quit [Ping timeout: 480 seconds]
15:35marcanmeh, we'll figure it out
15:35marcanworst case just blob of mmiotrace stuff
15:35marcanthere's an IOP for TB, isn't there?
15:35marcanso chances are all the horrible stuff will be done there
15:35svenoh, we'll figure it out. i'm just not looking forward to that
15:36marcanI'm going to be more frustrated at having to read parts of the USB4 spec
15:36marcanI can't escape USB
15:36sventhere's at least some co-processor involved in thunderbolt
15:36svenhaven't looked into that at all because USB
15:36marcananyway, that's not a huge prio
15:37marcangraphics first tbh
15:37svenabsolutely
15:37marcanusb3 host at least though is usefu;
15:37marcanbut hopefully that won't be that bad
15:37svenyeah, let's see. i somehow managed to get the phy to work in both gadget and host mode for usb2 at least
15:37svenmaybe usb3 just works by accident as well
15:37marcandepends on the implementation
15:38marcanthey definitely have muxes for usb3/dp/tb/whatever
15:38marcanbut I don't know exactly at what level they mux (analog or digital or what)
15:38marcanwe'll see I guess
15:38svenno idea. at least the whole power stuff is done automagically by that TI chip
15:39marcanyeah, but I think those are the muxless ones? not sure though
15:39marcanI mean all the "atc" stuff in the adt is "apple type c" isn't it
15:39marcanso I think that's where the magic happens
15:39svenno idea. usually you apparently have to at least talk to the pd chip to switch it from source/sink/etc.
15:39svenand yeah, ATC is where the magic happens
15:39marcanyes, but I think the SS line muxing isn't done by that chip
15:39marcananwyay, mmiotrace will tell us things
15:40marcantomorrow I'm going to do a big overhaul of proxyclient/ into a proper python module tree
15:40marcanand start writing mmiotrace handlers
15:40svenyeah, i'm just saying that apple abstracted away the power stuff for sink/source inside the PD chip. so i'm kinda hoping they also abstracted away a lot of crap into whatever ATC is
15:40norwoodites is now known as pinskia
15:41marcanjust hope I don't need to debug this physically; I don't have a 5GHz scope :p
15:42svenah yes, that would be annoying
15:42marcan(though if down the line it really comes down to that, which I doubt, but if it does... this kind of thing is what patreon money is for, isn't it?)
15:55yuyichao_ has quit [Ping timeout: 480 seconds]
16:04VinDuv has joined #asahi
16:05jannaumarcan: mac os does not reenable the usb-pd's interrupts
16:05marcanthat sounds like a bug
16:06marcanbut in that case, m1n1 should do so when it shuts down USB
16:06svendoes it not re-enable the interrupts because the chip is removed from the ADT or does it *never* re-renable interrupts?
16:07jannauit does not reenable interrupts for the port not removed from the ADT
16:07jannauand the port is dead
16:08sventhat kinda lines up with our hypothesis that it uses the pd interrupts to reinitialize the phy whenever a device is connected
16:08jannauat least after replugging. nothing was plugged in during boot
16:09svenif their normal "new device connected" flow is pd innterrupt -> reinit phy -> kick xhci i'd expect it to never work if the PD interrupts are disable
16:11GreatGodvin has joined #asahi
16:11jannaumarcan: feel free to report the bug to apple
16:11jannaubooting with the keyboard connected works
16:12jannaubut dead after removing and replugging
16:12svenhm.. okay. so same behavior as linux right now
16:13svenso that means we'll find to figure out a way for the pd chip to somehow tell the phy driver to reinit everything
16:13GreatGodvin has quit []
16:13svenguess we might need that dwc glue node after all
16:14GreatGodvin has joined #asahi
16:14GreatGodvin has quit [Remote host closed the connection]
16:16svenjannau: how that gpio driver coming along btw? i think we should be able to use i2c-gpio to talk to the pd chip once that one works and see if we can find a sane way to fix replugging
16:16Andalu30 has joined #asahi
16:16jannauit reads register 0x5f during boot up
16:17jannauslowly, hadn't much time to work on it
16:18jannausven: did you see drivers/usb/typec/tipd/ in the kernel? that looks like it has already the glue code between the tps6598x and dwc3
16:19svenyes, but i'm not sure if that's enough to trigger a phy/dwc reset
16:19svensince m1n1 sends the SPSS command now that driver should work without any patches already
16:20sven(as soon as there's i2c and gpio-interrupt support)
16:34GreatGodvin has joined #asahi
16:35norwoodites has joined #asahi
16:38nsklaus_ has joined #asahi
16:38GreatGodvin has quit []
16:39nsklaus has quit [Ping timeout: 480 seconds]
16:40pinskia has quit [Ping timeout: 480 seconds]
16:41bloommarcan: yeah, that's fair,. I don't think having it be from the CPU side is inherently bad, though
16:41bloomunless you want to start writing firmware ;-)
16:44norwoodites is now known as pinskia
16:58aleasto has quit [Ping timeout: 480 seconds]
17:08roxfan has joined #asahi
17:14aleasto has joined #asahi
17:20aleasto has quit [Remote host closed the connection]
17:21aleasto has joined #asahi
17:22aleasto has quit []
17:25aleasto has joined #asahi
17:25aleasto has quit [Remote host closed the connection]
17:26aleasto has joined #asahi
17:38Andalu30 has quit [Ping timeout: 480 seconds]
17:45GreatGodvin has joined #asahi
17:48GreatGodvin has quit []
17:50bloommarcan: plz
17:56Andalu30 has joined #asahi
18:00Andalu30 has quit [Read error: Connection reset by peer]
18:39kettenis_bloom: what marcan says
18:44nsklaus_ /set <-- open a dedicated buffer where you can tweak everything,
18:44nsklaus_ /set <-- open a dedicated buffer where you can tweak everything,
18:44nsklaus_h sry for double input
18:44nsklaus_also, this dedicated buffer support filtering,
18:45nsklaus_you type an arbitrary string like: 'nick'
18:45bloomkettenis_: far enough
18:45nsklaus_and it ah
18:45bloom-ENOCONTEXT
18:45nsklaus_sorry, wrong channel my bad
18:45bloomkettenis_: also the marcan plz thing was for sven actually
18:47svenwhat did i do now? :D
18:48bloomidk check your DM logs I don't remember
18:48svenlol, ok
18:53kettenis_sven: the code that resets the dwc3 dart into bypass mode isn't hooked up to the codepath that boots a kernel is it?
18:54kettenis_ is now known as kettenis
18:54svendid i mess that up. let me check
18:55svenyup. i messed that up
18:57kettenisI think I'd like to use bypass mode for dwc3 in u-boot since it means I don't have to come up with a proper solution for some of the hacks I have now
18:57kettenisand i verified that it works for u-boot
18:58svenhrm, isn't the dart in bypass mode if m1n1 doesn't initialize usb?
18:59svenit won't put the dart back into bypass mode but if it never does usb_iodev_init it should still be left in bypass from iboot
18:59bloomkettenis: You should see my stack of patches at work to fix tests by just if 0'ing buggy code instead of fixing it :_p
19:01kettenissven: I'm loading u-boot over serial from a m1n1 chainloaded over serial from an older m1n1
19:01kettenisso I think I end up running usb_iodev_init()
19:02svenah, okay
19:06svenbloom: have you considered https://github.com/auchenberg/volkswagen as a solution to your test problem? :P
19:08bloomsven: ❤️
19:10kettenissven: works like a charm
19:32aleasto has quit [Remote host closed the connection]
20:36VinDuv has quit [Quit: Leaving.]
21:21bloomhow *do* charms work anyhow?
21:23svenlike my code apparently! ;)
22:31flying_sausages_ has joined #asahi
22:32flying_sausages has quit [Remote host closed the connection]
22:36klltkr has joined #asahi
23:40balrog has joined #asahi
…