2021-06-08
00:07yuyichao_ has joined #asahi
00:10adamcstephens has joined #asahi
00:11yuyichao has quit [Ping timeout: 480 seconds]
00:15bgb has joined #asahi
00:30bgb has quit [Ping timeout: 480 seconds]
01:19adamcstephens has quit [Quit: The Lounge - https://thelounge.chat]
01:35bgb has joined #asahi
01:59mini has quit [Ping timeout: 480 seconds]
01:59mini has joined #asahi
02:05mini_ has joined #asahi
02:05aquijoule_ has joined #asahi
02:09mini has quit [Ping timeout: 480 seconds]
02:09mini_ is now known as mini
02:09adamcstephens has joined #asahi
02:10richbridger has quit [Ping timeout: 480 seconds]
02:12PhilippvK has joined #asahi
02:15mini has quit [Remote host closed the connection]
02:15mini has joined #asahi
02:16phiologe has quit [Ping timeout: 480 seconds]
02:48adamcstephens has quit [Ping timeout: 480 seconds]
02:53adamcstephens has joined #asahi
03:01adamcstephens is now known as Guest1248
03:01adamcstephens has joined #asahi
03:06Guest1248 has quit [Ping timeout: 480 seconds]
03:10marvin24_ has joined #asahi
03:13marvin24 has quit [Ping timeout: 480 seconds]
05:25VinDuv has joined #asahi
06:22VinDuv has quit [Quit: Leaving.]
07:03al3xtjames has joined #asahi
07:03al3xtjames has quit [Quit: Ping timeout (120 seconds)]
07:55EER has joined #asahi
08:09bisko has joined #asahi
08:17bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:22sven(and, as usual, i'm just doing the plumbing. this is mostly based on arnd's nvme platform split)
08:24svenhttps://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=nvme-platform "This is completely untested and probably does not work."
08:25tomtastic has quit [Ping timeout: 480 seconds]
08:25tomtastic has joined #asahi
08:26arndmarcan had mentioned he would look into getting it to work in the near future when I initially created the patches, so I did not bother setting up an environment for testing the PCIe side of it, and I never got far enough with the mac in the office to actually try things out on that either
08:26sveni just had half an hour while waiting for something to install on my actual work machine and figured i'd give it a try
08:27sventhe pcie side is completely untested and the platform side needed two or three on line changes
08:27Firefox317 has joined #asahi
08:28Firefox317Hey guys! Do you know what's up with the m1n1 wiki? When I access https://github.com/AsahiLinux/m1n1/wiki I get redirected to https://github.com/AsahiLinux/m1n1
08:29Firefox317j_ey: Aha, that is where all the information is. Thanks!
08:37Emantorbgb: I did a small redesign of the Reclaimerlabs FUSB302 breakout board (https://www.tindie.com/products/reclaimerlabs/usb-c-power-delivery-phy-breakout-board/) which includes the SBU pins: https://github.com/Emantor/USB-PD-Breakout/tree/topic/separate_sbu_port
09:01Firefox317 has quit [Quit: Page closed]
09:24kettenis_ is now known as kettenis
09:34pipcet[m]I think it's more interesting that you can't reboot the remote processors that you communicate with using the mailbox, so you can't leave the hardware in the state you found it.
09:40kettenispipcet[m]: it must be possible to reset the thing, since iBoot uses the NVMe storage but in U-Boot I had to start it up again
09:42pipcet[m]by the way, I stole your code for barebox experiments and found I needed to reorder the device tree so the SMC mbox is initialized before the ANS mbox... any idea on how to represent that in the DT properly, if it's actually correct?
09:46kettenisit shouldn't matter in which order the mailboxes are initialized, but currently it does
09:51Graypup_ has quit [Quit: meow]
09:51Graypup_ has joined #asahi
09:51Graypup_ has quit []
09:52Graypup_ has joined #asahi
09:52Emantorpipcet[m]: can you gist your config somewhere? Really wondering why gadget/chainloading barebox from m1n1 is not working for me.
09:59pipcet[m]Emantor: https://gist.github.com/pipcet/8c4a019b2a9c6d242ef986c958cf051a, I'll put the device trees there in a second
10:03pipcet[m]you probably need to ignore the NVME/mbox/DART/i2c stuff unless you're using my repo, but framebuffer and USB gadget should work without those (as long as you chainload from a new m1n1)
10:07arndsven: if you boot into Linux with the nvme driver, are you able to run 'nvme id-ctrl /dev/nvme0n1'? I'm curious to see if it uses the host memory buffer (hmpre/hmmin/hmmaxd)
10:15sveni only have a very minimal ramdisk that comes without nvme. any other way to get that info?
10:25sveni patched the kernel to printk those values after nvme_identify_ctrl and i think they're all zero
10:33arndsven: ok, adding those printks would have been my first suggestion, all zeroes just means it has no HBM and presumably uses an internal DRAM cache like every high-end device does
11:20os has quit [Quit: The Lounge - https://thelounge.chat]
11:26_jannau_arnd: but where is the dram cache? stolen from unified memory? the storage controller is integrated according to apple
11:33arnd_jannau_: my first guess would be in the same package as the NAND flash, at least if that comes in a custom package
11:34kettenisthe SART is a very simple IOMMU which gives the side-processor that handles NVMe access to the SOCs address space
11:39arndkettenis: that happens a lot. if you use irccloud, you'll now see my picture next to what I write, it used to also assign the same colour icon to both of us
11:43arndkettenis: 400MB seems quite a lot for the cache, but that must be what it's used for. The Linux NVMe driver allocates at most 128MB unless you override it with a boot time or module option.
11:45os has joined #asahi
11:50choozy has joined #asahi
12:00GreatGodvin has joined #asahi
12:02pipcet[m]Emantor: ah, that's good to know. do you want to write a keyboard driver for barebox on the MBP? ;-)
12:03Emantorpipcet[m]: I don't have a MBP, can't really without the hardware ;) But if ehci works you should be able to use a USB keyboard.
12:05pipcet[m]does that work for you? I tried briefly and it didn't immediately work, but I'm still using old phy sequences...
12:06GreatGodvin has quit [Quit: GreatGodvin]
12:07GreatGodvin has joined #asahi
12:08bisko has joined #asahi
12:22adamcstephens has quit [Quit: The Lounge - https://thelounge.chat]
12:22adamcstephens has joined #asahi
12:37bisko has quit [Remote host closed the connection]
12:38bisko has joined #asahi
13:02marcanand yeah, a big next one is going to be IOP mailbox, especially since that's a dep for graphics too
13:03marcanit's on my list, but if someone wants to tackle it while I work on the mmiotrace side by all means
13:03marcanI'll probably hack up some basic m1n1-based gpu driver scripts first before jumping into linux
13:06marcan(unless we make m1n1 do it all, but... that kind of smells like relying on the bootloader a bit too much)
13:06marcan(especially since I fully expect resets to be necessary to get us out of trouble during development)
13:20bgb has quit [Ping timeout: 480 seconds]
14:22GreatGodvin has quit [Quit: GreatGodvin]
14:22GreatGodvin has joined #asahi
14:23GreatGodvin has quit []
14:23choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
14:35bgb has joined #asahi
14:47balrog has quit [Quit: Bye]
14:51bgb has quit [Ping timeout: 480 seconds]
14:53tomtastic has quit [Quit: ZNC - https://znc.in]
14:54tomtastic has joined #asahi
15:19bgb has joined #asahi
15:30svenarnd: https://github.com/AsahiLinux/linux/commit/69142df77238252d5ab52d940bcff054c4dcd551 that's all i had to fix i your patches to make nvme as a platform device work
15:32bgb has quit [Ping timeout: 480 seconds]
15:34arndsven: actually in my build tree, I added a hack to only allow building CONFIG_BLK_DEV_NVME_PLATFORM when CONFIG_PCI is also set
15:36arndI did not want to take that last step in order to make rebasing easier until the nvme maintainers are ready to merge it
15:39svenmy limited understanding is that a platform device is defined in a device tree (or possibly even in some code directly) as opposed to a device that can be enumerated on a bus
15:42arndoriginally platform devices were always defined in board files or architecture code, such as
15:42jryans is now known as Guest1328
15:43arndwhen we converted embedded powerpc platform code to DT, we started out with having a separate device type for devices defined in there, but ended up merging the two as a ton of drivers ended up needing to support both board files and DT booting
15:45arndit's a bit of an anachronism now since only a few hundred non-DT boards remain, compared to over 2000 dts files in tree, and more that work with mainline kernels but were never submitted for inclusion
15:52EER_ has joined #asahi
15:57Guest1328 is now known as jryans
15:57jryans has quit [Quit: authenticating]
15:57jryans has joined #asahi
15:58EER has quit [Ping timeout: 480 seconds]
16:22choozy has joined #asahi
17:10aleasto has joined #asahi
17:14VinDuv has joined #asahi
17:17aleasto has quit [Quit: Konversation terminated!]
17:26aleasto has joined #asahi
17:29aleasto has quit []
17:29aleasto has joined #asahi
19:05arndsven: ah, now the build bot started reporting the !CONFIG_PCI failures on your tree that I had seen earlier. Curiously it doesn't happen on a defconfig build with PCI disabled, it needs some other config options that I have not analyzed yet.
19:08arndj_ey: yes, the kernel zero-day bot builds all branches of git repos that feed into linux-next
19:11arndoh, actually it doesn't. In this case there must be some other heuristic, maybe they started building all trees with recent commits that forked from torvalds/linux.git
19:20Andalu30 has joined #asahi
19:36aleasto has quit [Remote host closed the connection]
19:52choozy has quit [Remote host closed the connection]
20:24kettenishttps://github.com/kettenis/u-boot/blob/apple-m1-m1n1-nvme/drivers/mailbox/apple-mbox.c
20:25svenarnd: ah, yes. still some cleanup work left to be done. i think that build bot might take any git url it finds in MAINTAINERS
20:35VinDuv has quit [Quit: Leaving.]
20:40Andalu30 has quit [Quit: Konversation terminated!]
20:59choozy has joined #asahi
21:05EER_ has quit [Remote host closed the connection]
22:30choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
22:47bloomPhilosophically it doesn't make any sense to have a nonzero value in the first byte of msg[1], since the channel ID is supposed to be there.
23:10zopieux has quit [Quit: zopieux]
23:10zopieux has joined #asahi