2021-03-12
00:06bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:12m42uko has quit [Ping timeout: 258 seconds]
01:05TomJepp has quit [Ping timeout: 260 seconds]
02:03m42uko has joined #asahi-dev
02:42riker77_ has joined #asahi-dev
02:44riker77 has quit [Ping timeout: 272 seconds]
02:44riker77_ is now known as riker77
03:12_whitelogger has joined #asahi-dev
03:43PhilippvK has quit [Ping timeout: 260 seconds]
03:43phiologe has joined #asahi-dev
04:02bisko has joined #asahi-dev
04:35h_ro[m] has joined #asahi-dev
04:40odmir has quit [Remote host closed the connection]
05:34taziden has quit [Ping timeout: 272 seconds]
05:44taziden has joined #asahi-dev
05:48acelogic has joined #asahi-dev
06:22VinDuv has joined #asahi-dev
06:36mxw39 has quit [Quit: Konversation terminated!]
06:52rwhitby has quit [Ping timeout: 264 seconds]
07:00acelogic has quit [Ping timeout: 256 seconds]
07:17VinDuv has quit [Quit: Leaving.]
07:32ake has joined #asahi-dev
07:53svenhttps://f.svpe.de/efc9f31e4b723c52f1d6265cd2e971b50b564c25f1a73c6982d745dc293f982a_m1n1_usb_mac.txt and it finally enumerates on mac os as well :)
07:59akeMay I ask about pci? When I tried to read pci config apcie@0x690000000, I got 0xffffffff. Do I need to enable something before being able to access pci config?
08:15marcanake: those, and some initialization stuff. I haven't looked at it yet, but kettenis has it in u-boot
08:35svenusb requires some clocks (clock-gates in the ADT which refers to entries in two properties of the pmgr node) to make MMIO reads/writes work and then some magic PHY pokes to allow the drd controller to come out of reset
08:40tanmayd has joined #asahi-dev
08:41marcansven: you don't use IRQs, right? ideally I want the USB thing to be a polled loop, so the whole thing can run in IRQ/exception context too
08:42svenI have a usb_dwc3_task() function that doesn't block (except for some while(timeout-- && read32(...) & SOME_FLAG)
08:47tanmayd has quit [Remote host closed the connection]
08:50tanmayd has joined #asahi-dev
08:54marcaneither way my protocol is mostly synchronous on the host->device side so it doesn't really matter
08:56svenyeah, that's what I assume. during the enumeration phase it (obviously) times out rather quickly
09:00Spectrejan[m] has quit [Quit: Idle for 30+ days]
09:05marcanyeah, should be fine for mmiotrace as long as you plug it in *before* launching the guest of course
09:06marcankinda curious how macOS will react to me randomly stalling MMIO writes when my buffers are full
09:06marcanprobably will just make stuff dog slow if it's the GPU, but I wonder if there are timeouts
09:21bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:48ake has quit [Quit: Leaving]
11:40KindOne has quit [Ping timeout: 264 seconds]
11:41KindOne has joined #asahi-dev
11:48tanmayd has quit [Ping timeout: 246 seconds]
12:02tanmayd has joined #asahi-dev
12:26acelogic has joined #asahi-dev
12:27ake has joined #asahi-dev
12:32arnd has quit [Changing host]
12:32arnd has joined #asahi-dev
12:34riker77 has quit [Ping timeout: 272 seconds]
12:36acelogic has quit [Ping timeout: 256 seconds]
12:40riker77 has joined #asahi-dev
12:57acelogic has joined #asahi-dev
13:10ake has quit [Remote host closed the connection]
13:10ake has joined #asahi-dev
13:11ake has quit [Remote host closed the connection]
13:42tarzeau_ is now known as tarzeau
13:48choozy has joined #asahi-dev
13:55luca020400 has quit [Remote host closed the connection]
13:55luca020400 has joined #asahi-dev
14:02ake has joined #asahi-dev
14:07choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
14:42acelogic has quit [Ping timeout: 245 seconds]
14:45ake has quit [Remote host closed the connection]
14:46ake has joined #asahi-dev
14:46ake has quit [Remote host closed the connection]
14:47acelogic has joined #asahi-dev
14:57TomJepp has joined #asahi-dev
15:18ake has joined #asahi-dev
15:24ake has quit [Remote host closed the connection]
15:25ake has joined #asahi-dev
15:25ake has quit [Remote host closed the connection]
15:40bisko has joined #asahi-dev
16:26acelogic has quit [Remote host closed the connection]
16:27ake has joined #asahi-dev
16:27ake has quit [Client Quit]
16:41marcankettenis: open("dt.bin", "wb").write(readmem(ba.devtree - ba.virt_base + ba.phys_base, ba.devtree_size))
16:48svenmarcan: you've just gotten very familiar with memory barriers, haven't you? i have a rather strange bug here that might be related:
16:48svenso I have u32 n_events = read32(SOME_MMIO_REGISTER); if (n_events < 0) return; u32 event = read32(SOMETHING_IN_RAM);
16:49svencould the cpu somehow speculate its way to the read32 from RAM, read the "invalid value", then an event actually happens, then the mmio read completes and i end up with that stale event value?
17:16VinDuv has joined #asahi-dev
18:29mxw39 has joined #asahi-dev
18:34odmir has joined #asahi-dev
19:04mxw39 has quit [Quit: Konversation terminated!]
19:06mxw39 has joined #asahi-dev
19:09bisko has quit [Quit: Textual IRC Client: www.textualapp.com]
19:36kettenisusing the serial thingy that bluerise created for me connected to an OpenBSD arm64 machine
19:37kettenisthis is a USB serial dongle that connects to a breadboard with some resistors to connect to the m1
19:38kettenisand then there is a breakout of the PD signals that goes to another OpenBSD arm64 box with a hacked kernel that sends the vendor-specific PD commands to turn on the serial ;)
19:46tanmayd17 has joined #asahi-dev
19:48tanmayd has quit [Ping timeout: 256 seconds]
19:53marcanthat's kind of odd; the read loop retries until it gets all the data, so a timeout means it got 0 bytes at some point
19:54marcanyou can try reducing the baud rate in setup.py (p.set_baud(1500000) etc) or commenting out that code; if that fixes it then it's probably something along those lines
19:58marcantimeouts *reading* data would indicate the o-droid isn't keeping up; timeouts *writing* data would mean the M1 isn't keeping up, which shouldn't really happen for memory writes given it's a tight read loop (but can happen if you e.g. trip an IRQ asynchronously and it spends some time printing out info)
19:59marcanI had this issue with my Glasgow UART; it got fixed increasing the on-device FIFO size (yay FPGA implementations)
20:15ketteniswithout the device tree diff you should still be able to get a prompt on serial and framebuffer
20:32br377 has quit [Quit: WeeChat 1.4]
20:41pg12_ has quit [Read error: Connection reset by peer]
20:42pg12 has joined #asahi-dev
20:43tanmayd17 has quit [Ping timeout: 246 seconds]
20:55KindTwo has joined #asahi-dev
20:57KindOne has quit [Ping timeout: 272 seconds]
20:57KindTwo is now known as KindOne
21:06mxw39 has quit [Quit: Konversation terminated!]
21:12mxw39 has joined #asahi-dev
21:48kettenisso what I did to test grub is to simply dd the debian debian-10.8.0-arm64-netinst.iso to a USB stick and plug that in
21:52jannauyes, it's a little annoying to update the dts in m1n1 when the one in the kernel tree is not stable
22:06jannauyes, it's not expected to change except for added devices once the initial bringup is merged
22:15roxfan has quit [Remote host closed the connection]
22:20roxfan has joined #asahi-dev
22:30VinDuv has left #asahi-dev [#asahi-dev]
23:04rwhitby has joined #asahi-dev
23:24choozy has joined #asahi-dev