#
…

2021-03-14

00:19dougall_ is now known as dougall
00:28zkrx has quit [Ping timeout: 256 seconds]
00:42choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
00:47really2 has joined #asahi-dev
01:00really2 has quit [Remote host closed the connection]
01:06zkrx has joined #asahi-dev
01:22Stary is now known as Stary2001
01:23Stary2001 is now known as Stary
02:06marcansven: I want it to support both, in parallel. I was already thinking about that yesterday :-)
02:07marcanbut get your USB backend merged; I'll refactor all of that to make it work like that
02:08marcanit just means making the uartproxy stuff into a state machine, which really only has to handle the command header (I can probably assume that once I get the magic command header in via an input, that I can block on the rest rom there)
02:09marcansame with the console, which will also cover the FB. I'll add a dispatcher or something and a function to let you turn console outputs on and off for performance
02:15jeffmiw has joined #asahi-dev
02:20jeffmiw has quit [Ping timeout: 256 seconds]
02:41jeffmiw has joined #asahi-dev
02:46jeffmiw has quit [Ping timeout: 265 seconds]
02:57phiologe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
02:58phiologe has joined #asahi-dev
03:41phiologe has quit [Ping timeout: 260 seconds]
04:17odmir has quit [Remote host closed the connection]
05:37phiologe has joined #asahi-dev
07:44KindOne has quit [Ping timeout: 272 seconds]
07:45KindOne has joined #asahi-dev
08:00KindOne has quit [Ping timeout: 260 seconds]
08:00KindTwo has joined #asahi-dev
08:02KindTwo is now known as KindOne
08:22mxw39 has quit [Quit: Konversation terminated!]
08:27VinDuv has joined #asahi-dev
09:08svenmarcan: sounds good. regarding the console: we'll also need a way to disable it for certain prints. (e.g. printing to usb from within the usb code might be bad a idea)
09:09marcanI bet I can handle that entirely within the console code
09:09marcanadd some reentrance check or something
09:09marcanper-target
09:11jeffmiw has joined #asahi-dev
09:14jeffmiw has quit [Remote host closed the connection]
09:38jeffmiw has joined #asahi-dev
09:39jeffmiw has quit [Remote host closed the connection]
10:23jeffmiw has joined #asahi-dev
10:32jeffmiw has quit [Remote host closed the connection]
10:33jeffmiw has joined #asahi-dev
10:50jeffmiw_ has joined #asahi-dev
10:50jeffmiw has quit [Read error: Connection reset by peer]
10:55jeffmiw_ has quit [Remote host closed the connection]
12:01jeffmiw has joined #asahi-dev
12:05jeffmiw has quit [Ping timeout: 260 seconds]
12:10svenhttps://github.com/AsahiLinux/m1n1/pull/36 so that's essentially the usb code without the PHY bringup (because I can't really sign that off) and the uartproxy/console integration
12:16svenand https://github.com/svenpeter42/m1n1/tree/usb-dwc3-serial-wip is with phy bringup (based on pongoos/kext disassembly :() and a quick uartproxy hack
12:17marcansven: this problem will go away once we have mmiotrace, but for the time being since this is kind of a chicken-and-egg there, if you can just add a printf() to all the read32/write32 calls and run it and paste a dump somewhere, we can call that clean
12:18marcanI'll write a version based on that
12:18marcan(will look into this later, have some unrelated last-minute stuff going on today)
12:36svenmarcan: https://f.svpe.de/749afd07925249e765a83887ad2281d363ba7e81a764dba9b75ecf3742c450de_phy_bringup.txt and that one is with the reg ranges extracted from the device tree
12:50dhewg has quit [Ping timeout: 265 seconds]
12:52dhewg has joined #asahi-dev
12:58svenloading kernels with this is fun :>
12:59sventhe bottleneck now actually is the reboot + building the kernel itself instead of waiting for the upload to finish
13:11marcanparallelize those :D
13:11marcanalso ccache helps
13:27_whitelogger has joined #asahi-dev
13:43kettenisregarding my earlier message: the secondary CPUs defenitely spin up with the MMU (and caches) disabled
13:55jeffmiw has joined #asahi-dev
13:55jeffmiw has quit [Client Quit]
13:57dottedmag has quit [Quit: QUIT]
14:01dottedmag has joined #asahi-dev
14:01dottedmag has joined #asahi-dev
14:30taziden has quit [Ping timeout: 264 seconds]
14:33taziden has joined #asahi-dev
15:05jeffmiw has joined #asahi-dev
15:07zkrx has quit [Ping timeout: 245 seconds]
15:10KindOne has quit [Ping timeout: 272 seconds]
15:13jeffmiwsven: thanks a lot, playing with it right now, it is enumerating, got a /dev/ttyACM0, can't get anything else yet, proxy shell or proxy linux are getting some proxy.UartTimeout checking what is wrong with my setup
15:13KindOne has joined #asahi-dev
15:14jeffmiwLooking at how to get the fb-console to debug also
15:19svenjeffmiw: does lsusb show the device with the string descriptors?
15:19sveni've only tested this with a mac os host so far but it should also work with linux
15:22svenhm, strange. i had to run shell.py twice before it work on a linux host
15:23svenor maybe not
15:24svenseems to work fine even with a linux host here
15:26kettenismarcan: seems the memory where the secondar CPUs are spinning isn't reserved?
15:34jeffmiw has quit [Ping timeout: 265 seconds]
15:40jeffmiw has joined #asahi-dev
15:41jeffmiwyes lsusb shows the device correctly
15:42jeffmiwprobably something with my setup
15:42svennothing strange in dmesg either?
15:43zkrx has joined #asahi-dev
16:00bastilian has quit [Quit: Idle for 30+ days]
16:34really2 has joined #asahi-dev
16:44odmir has joined #asahi-dev
16:46jeffmiwsven: no nothing strange in dmesg
16:47really2 has quit [Ping timeout: 256 seconds]
16:59marcankettenis: whoops, I could've sworn I reserved all of m1n1 but I guess I didn't
17:09kettenisby the looks of it you reserve none of it
17:09kettenisand when my kernel lands on top of it, the secondary cores don't spin up
17:11mxw39 has joined #asahi-dev
17:27marcankettenis: should be fixed now, sorry about that
17:51kettenishmm, that doesn't quite work
17:51kettenisu-boot ends up marking that memory as EfiBootServicesData
17:52kettenisand kernel thinks it can re-use this block of memory
17:52kettenisneed to read some docs to see what is supposed to happen
17:53marcanthat seems... wrong
18:04kettenisI don't necessarily disagree with you, but it seems that u-boot only considers entries under /reserved-memory that have the no-map property to be permanently off-limits
18:20marcanlinux definitely treats them as reserved forever, so this seems inconsistent
18:20marcanis there any known rationale for that behavior in u-boot?
18:30kettenisthis was changed not too long ago and the change references the EBBR
18:35kettenisand the clarification it claims to be made in the EBBR is completely absent as far as I can tell
18:40kettenisWhich points back at the device tree spec ;)
18:40kettenisAnd the "Memory Reservation Block and UEFI" sections is crystal clear
18:41kettenisu-boot is buggy
18:42kettenisI'll send them a patch
18:45marcanwhich admittely is... strange
18:45marcanI would only expect EfiBootServicesData for stuff marked `reusable`
18:49ketteniswell, I suppose they're mostly concerned about linux,cma-default and linux,dma-default nodes
18:55Chainsaw has joined #asahi-dev
19:06kettenispatch sent; let's see what they say
19:07kettenisalso pushed that patch to the apple-m1-m1n1 branch of my u-boot fork
19:08VinDuv has quit [Read error: Connection reset by peer]
19:08VinDuv has joined #asahi-dev
19:15kettenisthanks for the quick fix
19:21KindTwo has joined #asahi-dev
19:23KindOne has quit [Ping timeout: 256 seconds]
19:23KindTwo is now known as KindOne
21:23jeffmiw has quit [Ping timeout: 245 seconds]
21:24jeffmiw has joined #asahi-dev
21:50VinDuv has quit [Quit: Leaving.]
22:04jeffmiw has quit [Ping timeout: 256 seconds]
22:05vlixa has quit [Remote host closed the connection]
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
23:18svenmarcan: huh, looks like your -interline-spacing -1 produces a rather strange font.b file on mac os. the individual chars don't seem to line up nicely anymore
23:19svenVersion: ImageMagick 7.0.11-3 Q16 arm 2021-03-06 https://imagemagick.org fwiw
23:20svenanyway, bedtime for me. i'll update the fb console MR once the usb stuff is merged
…