2021-06-06
00:22al3xtjames has quit [Quit: Ping timeout (120 seconds)]
00:23al3xtjames has joined #asahi
01:00DragoonAethis has quit [Quit: hej-hej!]
01:00DragoonAethis has joined #asahi
01:09hspak has quit [Quit: bye]
01:12hspak has joined #asahi
01:12bgb_ has joined #asahi
01:39bgb_ has quit [Ping timeout: 480 seconds]
02:01bgb_ has joined #asahi
02:09bgb_ has quit [Ping timeout: 480 seconds]
02:15PhilippvK has joined #asahi
02:17bgb_ has joined #asahi
02:18phiologe has quit [Ping timeout: 480 seconds]
02:30bgb_ has quit [Ping timeout: 480 seconds]
02:55bgb_ has joined #asahi
03:03bgb_ has quit [Ping timeout: 480 seconds]
03:29bgb_ has joined #asahi
03:34ihaveamac has quit [Quit: fail]
03:36ihaveamac has joined #asahi
03:38bgb_ has quit [Ping timeout: 480 seconds]
04:02marvin24_ has joined #asahi
04:05marvin24 has quit [Ping timeout: 480 seconds]
05:12VinDuv has joined #asahi
05:50marcanso it sounds like we can probably expect the GPU to share the CPU page tables, and have its own SPRR reg to do remapping
05:50marcanbloom: do you know if Linux supports this kind of thing? IIRC the PS4 does it like this with their OS, but I don't know if the linux amdgpu driver could ever do that
05:51marcanseems like it would save a ton of management/overhead for unified memory systems if the GPU can just outright use the userspace page tables
06:15malvo has quit [Ping timeout: 480 seconds]
06:15malvo has joined #asahi
08:20svenpeter[m]Ohh… makes sense
08:21svenpeter[m]I wonder how it selects the user space table then
08:21svenpeter[m]And the GPU just reusing the page tables would also explain why there’s no DART in front of it
08:53jannaumac os doesn't seem to be happy with the usb-pd controller. it writes [0x00], [0x14] and reads [0x0b 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00] all over after short initialisation
08:55sven(https://www.ti.com/lit/ug/slvuan1a/slvuan1a.pdf?ts=1622969685240&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTPS65982)
08:55jannauno, at least the aic interrupt of the first cell (106) is not firing. I'm not convinced that it is actually a aic interrupt
08:55pipcet[m]since the IRQ line is shared, it's probably trying to handle the interrupt for the PD chip that m1n1 stole.
09:01pipcet[m]yes, that's the issue I meant. if you keep power plugged in from boot everything is fine, if I come home and re-plug power it breaks.
09:02pipcet[m]I believe that's correct, yes. Charging is more of an annoyance because you get a spontaneous reboot when the battery's empty.
09:08svenwell, or if it's replugged. i think mac os actually goes through the whole phy init sequence
09:09pipcet[m]and we can detect when a device is unplugged from the physical port but we cannot detect when a device is removed from an adapter connected to the port, right?
09:09sveni can't detect unplugging in device mode but the linux xhci driver seems to get disconnect events
09:11pipcet[m]there has got to be an irq or status register somewhere, just relying on the xhci driver to disconnect isn't good enough.
09:13pipcet[m]mask the IRQs for the m1n1 uart, then get another mmiotrace in macos to see whether it's the PD IRQ
09:18pipcet[m]jannau: probably obvious, but you are writing 0x16 for the other port, right, not for the one we're mmiotracing?
09:41thunfisch has quit [Quit: frrrp!]
09:42thunfisch has joined #asahi
09:59yuyichao has joined #asahi
10:02bps has joined #asahi
10:03yuyichao_ has quit [Ping timeout: 480 seconds]
10:05adamcstephens is now known as Guest1032
10:05adamcstephens has joined #asahi
10:08pugguu has joined #asahi
10:08pugguu has quit []
10:08pugguu has joined #asahi
10:09bgb_ has joined #asahi
10:09Guest1032 has quit [Ping timeout: 480 seconds]
10:17ohdamn[m] has quit []
10:21bgb_ has quit [Ping timeout: 480 seconds]
10:31bgb_ has joined #asahi
10:34choozy has joined #asahi
10:41go4godvin has joined #asahi
10:45jannauusb-c cable plugs are signalled through gpio irqs. on disconnect mac os starts reading from gpio_base + 0x800 until it finds bit 106 set at offset 0x80c
10:46marvin24_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
10:46marvin24 has joined #asahi
10:47marvin24 has quit []
10:47marvin24 has joined #asahi
10:47jannauit rewrites pin 106's config then and acknowledges the irq and starts communicating with the tps6598x
10:48svenok. so then we'll probably have to do the phy reset sequence whenever we heard from that tps chip as well
11:01pugguu has quit [Read error: Connection reset by peer]
11:30bps has quit [Remote host closed the connection]
11:30bps has joined #asahi
11:56bgb_ has quit [Ping timeout: 480 seconds]
12:20bgb_ has joined #asahi
12:28bgb_ has quit [Ping timeout: 480 seconds]
12:34bloomNot too much interesting here most of the time, rather than just a "there is new work for you GPU, wake the f up"
12:35bloomI did a little digging on IOP, and that's normal -- it's meant to be low bandwidth, with shared memory used for high bandwidth transaction.
12:41bloomas well as, what's inside the shmem? is it just the buffer prepared by userspace passed through unmodified? would be convenient, but seems unlikely.
12:45svenbloom: would it make sense if the GPU has just the same view of memory as the userspace app?
12:50svenit mainly talks about sprr/gxf but it also mentions that the gpu may reuse the same pagetables as the cpu
12:51bgb_ has joined #asahi
12:53bloomFrom userspace's PoV, stuff in GPU memory has very different CPU vs GPU virtual addresses.
12:59bgb_ has quit [Ping timeout: 480 seconds]
13:09bloomNothing else in the ADT has rtkit-private-* fields, despite a half dozen coprocessors running RTKit.
13:15VinDuv has quit [Quit: Leaving.]
13:21bgb_ has joined #asahi
13:29bgb_ has quit [Ping timeout: 480 seconds]
13:56bgb_ has joined #asahi
14:05bgb_ has quit [Ping timeout: 480 seconds]
14:31bgb_ has joined #asahi
14:39bgb_ has quit [Ping timeout: 480 seconds]
14:40VinDuv has joined #asahi
15:07bgb_ has joined #asahi
15:07bisko has joined #asahi
15:08bps has quit [Remote host closed the connection]
15:08bps has joined #asahi
15:15bgb_ has quit [Ping timeout: 480 seconds]
15:19zorun has quit [Ping timeout: 480 seconds]
15:19bisko has quit [Read error: Connection reset by peer]
15:25klaus has quit [Ping timeout: 480 seconds]
15:27klaus has joined #asahi
15:29bps has quit [Ping timeout: 480 seconds]
15:35bisko has joined #asahi
15:35bisko has quit []
15:39bgb_ has joined #asahi
15:48bgb_ has quit [Ping timeout: 480 seconds]
15:48hspak4 has joined #asahi
15:50klaus1 has joined #asahi
15:50klaus has quit [Ping timeout: 480 seconds]
15:52hspak has quit [Ping timeout: 480 seconds]
15:52hspak4 is now known as hspak
17:09marvin24 has quit [Quit: marvin24]
17:09marvin24 has joined #asahi
18:13jannaudoes wifi work in mac os with m1n1's hypervisor? trying to see which AIC irq it (the gpio controller) uses but it doesn't seem to work
18:14pipcet[m]jannau: IIRC macos wifi was sensitive to timing things, so when my code ran too slowly it wouldn't work...
18:16Nspace has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
18:29pipcet[m]I haven't figured out how to decode that message yet, but essentially you get an interrupt from the SMC mailbox, discard the message, and you can check whether the power button was pressed, and whether it's currently pressed.
18:34jannauI would assume so two. why develop a different solution just because the mini misses a couple of keys
18:40pipcet[m]anyway, the SMC has a large number of four-character keys, most of which will need to be decoded at some point. I wonder which of those the mini has.
18:42jannauno irq activity on scanning or joining networks. might it be used when the pcie link is powered down?
19:30pugguu has joined #asahi
19:38pugguu has quit [Read error: Connection reset by peer]
19:39pugguu has joined #asahi
20:05pugguu has quit [Ping timeout: 480 seconds]
20:11VinDuv has quit [Quit: Leaving.]
20:38bps has joined #asahi
21:12svenpeter[m]The “normal” interrupts will be the pcie MSIs. That gpio must be something else
21:13svenpeter[m]Possibly waking up the machine like kettenis suggested
21:18klaus2 has joined #asahi
21:24klaus1 has quit [Ping timeout: 480 seconds]
21:29bsandro has joined #asahi
21:42klaus3 has joined #asahi
21:43klaus3 is now known as klaus
21:46klaus is now known as nsklaus
21:47klaus2 has quit [Ping timeout: 480 seconds]
21:50choozy has quit [Remote host closed the connection]
21:52jannaumakes sense. based on the pin config I don't think the second cell codes the AIC interrupt
21:54eta has quit [Remote host closed the connection]
21:57eta has joined #asahi
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:01yrlf has joined #asahi
22:02pipcet[m]jannau: also wouldn't make much sense to hardcode that in the ADT so you'd have to change the device tree to flip IRQ priorities
22:02nsklaus has quit [Quit: WeeChat 3.1]
22:02klaus has joined #asahi
22:03klaus has quit []
22:04nsklaus has joined #asahi