#
…

2021-10-30

00:01kajiryoji has quit []
00:01rohin2 has joined #asahi
00:02kajiryoji has joined #asahi
00:20ihaveamac has quit [Quit: fail]
00:22ihaveamac has joined #asahi
00:36rohin2 has quit [Ping timeout: 480 seconds]
00:48kajiryoji has quit []
00:49kajiryoji has joined #asahi
00:52kajiryoji has quit []
00:54kajiryoji has joined #asahi
01:07kajiryoji has quit []
01:12kajiryoji has joined #asahi
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi
01:34chadmed has quit [Quit: Konversation terminated!]
01:36chadmed has joined #asahi
01:40psykose has quit [Remote host closed the connection]
01:41psykose has joined #asahi
01:42psykose has quit [Remote host closed the connection]
01:48psykose has joined #asahi
02:07PhilippvK has joined #asahi
02:09phiologe has quit [Ping timeout: 480 seconds]
02:34chadmed has quit [Quit: Konversation terminated!]
02:43chadmed has joined #asahi
02:44DarkShadow44 has quit [Quit: ZNC - https://znc.in]
02:51rkt has joined #asahi
03:02long[m] has joined #asahi
03:19DarkShadow44 has joined #asahi
03:22marvin24_ has joined #asahi
03:26marvin24 has quit [Ping timeout: 480 seconds]
03:58kov has quit [Quit: Coyote finally caught me]
03:58kov has joined #asahi
04:05phiologe has joined #asahi
04:06rkt has quit [Quit: rkt]
04:07PhilippvK has quit [Ping timeout: 480 seconds]
04:16rkt has joined #asahi
04:22chadmed has quit [Remote host closed the connection]
04:29marvin24 has joined #asahi
04:33marvin24_ has quit [Ping timeout: 480 seconds]
04:58hexchain has quit [Quit: Goodbye!]
05:01hexchain has joined #asahi
05:29darkapex1 has joined #asahi
05:35darkapex has quit [Ping timeout: 480 seconds]
05:37rkt has quit [Quit: rkt]
05:56rkt has joined #asahi
07:01chadmed has joined #asahi
07:40chadmed has quit [Ping timeout: 480 seconds]
07:42kajiryoji has quit [Ping timeout: 480 seconds]
07:42kajiryoji has joined #asahi
07:59gladiac has quit [Quit: k thx bye]
08:00gladiac has joined #asahi
08:21jacoxon has joined #asahi
08:30aleasto has joined #asahi
09:09rkt has quit [Quit: rkt]
09:15rkt has joined #asahi
09:21___nick___ has joined #asahi
09:21___nick___ has quit []
09:22___nick___ has joined #asahi
09:26aleasto has quit [Quit: Konversation terminated!]
09:26aleasto has joined #asahi
09:29aleasto has quit [Remote host closed the connection]
09:30aleasto has joined #asahi
09:35rkt has quit [Quit: rkt]
09:48rkt has joined #asahi
09:59darkapex has joined #asahi
09:59darkapex1 has quit [Read error: Connection reset by peer]
10:00rkt has quit [Quit: rkt]
10:09rkt has joined #asahi
10:14bps2 has quit [Ping timeout: 480 seconds]
10:20FikretCanGrbz[m] has joined #asahi
10:21FikretCanGrbz[m] is now known as cangurbuz[m]
10:58VinDuvok, m1n1 seems to mostly work on the 14" MBP with UART_BASE changed and mmu, pmgr and usb removed :)
11:15svenYeah, who needs a mmu or usb anyway :D
11:17svenWeird that the mmu fails though. Maybe just some new chicken bits though
11:17svenI remember how enabling mmu broke without those as well
11:18svenUsb probably fails because it can’t be powered on without pmgr
11:18VinDuvyeah, chickens.c doesn’t recognize the cpu model so it applies half of the chicken bits I think
11:19svenHrm. Or maybe they changed something with SPRR/GXF but that would surprise me for this iteration
11:37aleasto has quit [Ping timeout: 480 seconds]
11:53aleasto has joined #asahi
12:11VinDuvThe MMU error: https://paste.debian.net/plainh/72286d9b (I also had a SError after but it was caused by the automatic reboot poking the wrong addresses for the WDT; WDT_BASE should be set to 0x2922b0000 in start.S)
12:16sventhey probably moved the TZ registers
12:17svenyou can just make mmu_unmap_carveouts return immediately
12:17sventhough that error shouldn't matter all that much
12:18j_eysven: pinctrl in -next btw :3
12:19svenhm, looks like they also moved the RAM around
12:19j_eywhat are the tz regs?
12:20tom has joined #asahi
12:20sventhe locked down memory region that SErrors if you try to read/write from it
12:20svenit's the only part of trustzone they use
12:21sveni actually think the registers might be the same
12:22svenit's just that RAM starts at 0x10_0000_0000 now
12:22tom has quit []
12:22hir0pro has joined #asahi
12:22j_eyand that bit of code doesnt read the ADT
12:23j_eylets not tell markan so he has something to do on monday :P
12:24VinDuvlooks like it dies after printing “MMU: SCTLR_EL1: 30100180 -> 30901085”
12:24svenyeah, that turns on the MMU
12:24svenpossibly because not enough RAM is mapped
12:24sven+it dies
12:24svenif RAM starts at 0x10_0000_0000 now we don't map that i think
12:25sorear.o( new channel for spoilers )
12:25svenor it just needs some of the chicken bits
12:26svenah, no, i think the current code will create some wrong mappings
12:26svenso when it enables the MMU the page it's running from disappears
12:26j_eybeen there
12:26svenand the exception handlers won't work because they're not mapped either :D
12:27j_eyalso been there :P
12:29svenVinDuv: so as a quick hack you can probably replace 0x0800000000 with 0x1000000000 in memory.c
12:29svenand then maybe the REGION_RWX_EL0, etc. defines need to be changed as well so that they don't overlap
12:41___nick___ has quit [Ping timeout: 480 seconds]
12:44___nick___ has joined #asahi
12:55rkt has quit [Quit: rkt]
13:02hir0pro has quit [Quit: hir0pro]
13:04kettenisah, so I'll need a new memory map for u-boot for these new machines
13:04* svenis just guessing fwiw
13:04sveni only have my "old" m1 here
13:06ketteniswell, they've probably also moved around the pcie stuff
13:12rkt has joined #asahi
13:19hir0pro has joined #asahi
14:25rkt has quit [Quit: rkt]
15:06VinDuvsven: changing the addresses did not seem to fix anything, but I’ve probably messed up something somewhere
15:10svenor it might actually need new chicken bits to work correctly
15:11aleasto has quit [Read error: No route to host]
15:15svenanyway, i'm sure marcan will figure it out on monday :D
15:16svenwe don't wanna steal all his fun doing remote debugging :)
15:16VinDuvand probably a bunch of refactoring to remove hardcoded addresses…
15:17svens/0x0800000000/ram_start/ :P
15:18svenohh... but true... there are also other hardcoded addresses in there
15:21svenhrm. i guess remove the early uart debug (unless we want some hack to identify the mmio range there), then get uart, ram_start and watchdog from the ADT
15:22kettenisprobably useful to keep early uart as a debug option
15:26VinDuvhmm, there’s something else I don’t quite understand: it looks like m1n1’s proxy always opens the serial port at 115200 baud (unless M1N1DEVICE has a specified baudrate) and then switches both ends to 1500000
15:27aleasto has joined #asahi
15:27VinDuvso if I close the shell and restart it, the proxy will be at 115200 and the target at 1500000 so it doesn’t work
15:28kettenis115200 is plenty for a serial console and 1500000 isn't supported by all usb serial dongles and more susceptible to line noise
15:28kettenisbut 115200 is a bit slow for uploading a linux kernel
15:31VinDuvI don’t remember marcan having problems with it but I guess it’s because his serial adapter has auto baudrate
15:33svendoesn't the proxy code try both baudrates during setup?
15:33sveni always use two m1 macs and never had any issues
15:36VinDuvah you’re right, I’ve missed that part of the code
15:38VinDuvIn my case it’s the proxy.iodev_whoami() call in bootstrap_port which fails
15:39VinDuvI don’t really understand how that would work since it sends a proxy command before trying to adjust the baud rate?
15:39sventhat's indeed weird
15:40svenhm, but reading that code it's fine if that one fails
15:41svenif you're using USB it doesn't matter because there's no baudrate and it'll never fail anyway
15:42svenand if you're using UART it'll try to adjust the baudrate if it failed
15:42VinDuvOn my Mac the proxy.iodev_whoami raises m1n1.proxy.UartTimeout which is not caught
15:43svenhrm, now that i'm reading the code again it also confuses me :D
15:44svenso the iodev_whoami is meant to detect if you're connected via USB and to just skip baudrate adjustment then
15:44svendoes just catching the UartTimeout fix that issue?
15:45sven(i just realized i haven't used the hw uart in a long time so maybe it's actually a bit broken right now)
15:47VinDuvIt works but it’s a bit slow since it waits for the default timeout
15:48svensounds like this might be a regression then
15:56svenwill test it later myself with the usb serial
15:57VinDuvPretty sure it’ll work but I’m still unsure about the whole iodev_whoami thing
15:57svenit's just meant to detect if you're using the usb uart
15:58svenoh, also that patch is wrong python :D
15:59j_eythe 'except' bit?
15:59svenit needs additional brackets
15:59VinDuvYeah but if you’re using the non-usb uart and it returns without raising any exception, it means the baudrate is good
15:59j_eyshould do_baud default to False sven ?
16:00svendon't think so. if whoami fails due a wrong baudrate we want to try changing it. i think.
16:00j_eyoh right
16:00VinDuvIf it raises ProxyCommandError the baudrate is also good I think
16:00svenbut we might still want to increase the baudrate
16:01VinDuvah, true
16:01sveni think the only time we don't want to try messing with the baudrate is if we're running over usb
16:12dsrt^ has joined #asahi
16:31m6wiq has joined #asahi
16:36hir0pro has quit [Quit: hir0pro]
16:46tomtastic has quit [Quit: ZNC - https://znc.in]
16:47tomtastic has joined #asahi
16:50jg has joined #asahi
16:59jg has quit [Quit: Page closed]
17:04zopieux has quit [Ping timeout: 480 seconds]
17:07zopieux has joined #asahi
17:29hir0pro has joined #asahi
18:27hir0pro has quit [Quit: hir0pro]
18:37VinDuv(and should not mess with usb-serial)
18:39VinDuv(I also had some issues with chainload timing out but it looks like it’s just because the MMU-less m1n1 is a bit too slow to finish starting…)
18:39sveni also get some timeouts sometimes after a reboot fwiw. but they haven't been very consistent and i haven't been able to figure out why they happen
18:40svenlike once every 15-20 reboots or so chainload times out a few times before it works
18:40svenbut anyway, i already like those new comments in that file!
18:41sveni'm not sure about the UartTimeout path but the rest looks good to me
18:45VinDuvI’m assuming iodev_whoami is simple enough so a timeout can only mean mismatched baudrate
18:45svenand there's a iface.nop later anyway that will fail if there was any other problem
18:46jacoxon has quit []
18:47jacoxon has joined #asahi
19:12aleasto has quit [Remote host closed the connection]
19:28jacoxon has quit []
20:05DarkShadow44 has quit [Quit: ZNC - https://znc.in]
20:06DarkShadow44 has joined #asahi
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:37m6wiq has quit [Remote host closed the connection]
20:50jacoxon has joined #asahi
20:51tomtastic has quit [Quit: ZNC - https://znc.in]
20:53tomtastic has joined #asahi
21:15tomtastic has quit [Quit: ZNC - https://znc.in]
21:15tomtastic has joined #asahi
22:18jacoxon has quit []
22:30skali has joined #asahi
22:37tomtastic has quit [Ping timeout: 480 seconds]
22:37tomtastic has joined #asahi
23:06skali has quit [Quit: Textual IRC Client: www.textualapp.com]
23:26X-Scale` has joined #asahi
23:31X-Scale has quit [Ping timeout: 480 seconds]
…