#
…

2021-03-09

00:01really2 has joined #asahi-dev
00:05really2 has quit [Remote host closed the connection]
00:06really2 has joined #asahi-dev
00:11really2 has quit [Remote host closed the connection]
00:18aratuk has joined #asahi-dev
00:23aratuk has quit [Ping timeout: 246 seconds]
00:36aratuk has joined #asahi-dev
00:36really2 has joined #asahi-dev
00:38really2 has quit [Remote host closed the connection]
00:41really2 has joined #asahi-dev
00:42really2 has quit [Remote host closed the connection]
00:45really2 has joined #asahi-dev
00:50really2 has quit [Remote host closed the connection]
00:54really21 has joined #asahi-dev
03:13Namidairo has quit [Quit: ZNC - https://znc.in]
03:14Namidairo has joined #asahi-dev
03:47phiologe has quit [Ping timeout: 260 seconds]
03:47phiologe has joined #asahi-dev
03:51jobbe4 has joined #asahi-dev
03:52riker77_ has joined #asahi-dev
03:52Yuzu_ has joined #asahi-dev
03:52lewurm_ has joined #asahi-dev
03:53skg_ has joined #asahi-dev
03:54rafaelmartins_ has joined #asahi-dev
03:54thestr4ng3r_ has joined #asahi-dev
03:55larbob_ has joined #asahi-dev
03:55vup2 has joined #asahi-dev
03:55CDFH has joined #asahi-dev
03:56Esmil_ has joined #asahi-dev
03:59vimal has quit [*.net *.split]
03:59Yuzu has quit [*.net *.split]
03:59CDFH_ has quit [*.net *.split]
03:59jobbe has quit [*.net *.split]
03:59lewurm has quit [*.net *.split]
03:59thestr4ng3r has quit [*.net *.split]
03:59really21 has quit [*.net *.split]
03:59riker77 has quit [*.net *.split]
03:59skg has quit [*.net *.split]
03:59rafaelmartins has quit [*.net *.split]
03:59vup has quit [*.net *.split]
03:59Esmil has quit [*.net *.split]
03:59larbob has quit [*.net *.split]
03:59jobbe4 is now known as jobbe
03:59riker77_ is now known as riker77
04:08vimal has joined #asahi-dev
04:12really2 has joined #asahi-dev
04:12odmir has quit [Remote host closed the connection]
05:17mxw39 has quit [Quit: Konversation terminated!]
05:21larbob_ is now known as larbob
05:22larbob has joined #asahi-dev
05:22larbob has quit [Changing host]
05:23Emantor has quit [Quit: ZNC - http://znc.in]
05:24Emantor has joined #asahi-dev
05:36aratuk has quit [Remote host closed the connection]
05:41br377 has quit [Ping timeout: 240 seconds]
05:44br377 has joined #asahi-dev
06:28VinDuv has joined #asahi-dev
07:00really2 has quit [Ping timeout: 260 seconds]
07:04qyousef has quit [Ping timeout: 260 seconds]
07:25aratuk has joined #asahi-dev
07:29aratuk has quit [Ping timeout: 260 seconds]
07:38VinDuv has quit [Quit: Leaving.]
07:53amw has quit [Ping timeout: 260 seconds]
09:00_alice has quit [Quit: Idle for 30+ days]
09:40thestr4ng3r_ has quit [Read error: Connection reset by peer]
09:42thestr4ng3r has joined #asahi-dev
09:44leah2 has quit [Remote host closed the connection]
09:46leah2 has joined #asahi-dev
10:00aratuk has joined #asahi-dev
10:05aratuk has quit [Ping timeout: 265 seconds]
11:01richbridger has quit [Remote host closed the connection]
12:37the-mentor has quit [Quit: The Lounge - https://thelounge.chat]
12:37unrelentingtech has quit [Quit: Updating details, brb]
12:37the-mentor3 has joined #asahi-dev
12:37unrelentingtech has joined #asahi-dev
12:38Esmil_ is now known as Esmil
13:00Yuzu_ is now known as Yuzu
13:06vup2 is now known as vup
13:27richbridger has joined #asahi-dev
13:35aratuk has joined #asahi-dev
13:40aratuk has quit [Ping timeout: 265 seconds]
14:00aratuk has joined #asahi-dev
14:05aratuk has quit [Ping timeout: 260 seconds]
14:41qyousef has joined #asahi-dev
14:42Graypup_ has quit [Quit: ZNC 1.6.1 - http://znc.in]
14:43Graypup_ has joined #asahi-dev
15:14artemist has joined #asahi-dev
15:56maciejjo has quit [Remote host closed the connection]
15:56maciejjo has joined #asahi-dev
15:58odmir has joined #asahi-dev
15:59kettenisI extended the asahi linux device tree with the minimum nodes from the corellium device tree to bring up pcie
15:59kettenisloading u-boot works and it runs the OpenBSD bootloader which in turn loads the OpenBSD kernel
16:00kettenisunfortunately the kernel dies as the result of an SError exception as soon as it tries to exec init
16:05kettenisESR_EL1 doesn't seem to provide any hints here
16:07j`eykettenis: and it's not related to the ngnrne mode on pcie?
16:08kettenisshouldn't be
16:09kettenisI'd expect the SError to occur earlier if that was the case
16:19marcankettenis: corellium disable SError bus issues wholesale
16:19marcanmacos does not
16:19marcanthis tells me they are doing something wrong
16:19marcanare you mapping the PCIe BARs as nGnRE?
16:20marcanyou want to print the apple bus exception related registers
16:20marcanthose will tell you what kind of fault happened
16:20marcanADR has the physical address (with some stuff in the top bits)
16:21kettenisthanks, will do
16:22kettenisthanks to m1n1 I can now easily switch between the correllium preloader and, erh, well m1n1 ;)
16:24marcanfwiw, you can do msr((3, 3, 15, 8, 0), 0) with shell.py before chainloading u-boot
16:24marcanthat's what preloader does, which just shoves all those errors under the carpet
16:24marcanbut it might help confirm we're not dealing with something else here
16:24marcanah, but that won't do it for SMP secondaries
16:24marcanthough I think that one is per cluster
16:25marcanif so you have a 50/50 chance depending on the cpu :)
16:26marcaneither way, let me know what values you get, I can do a quick experiment to confirm what they mean
16:26kettenisstill running only on the first core
16:27marcanshould work then
16:28kettenisyup, that "fixes" it
16:29ketteniswill look at those IMPDEF registers
16:29kettenisthanks for the hints
16:30marcannp! let me know how it goes
16:31marcanI'll take the chance to document those registers a bit more, now that I have more tools to experiment with
16:31kettenisthat'd be great
16:32kettenisone issue I'm facing is that "TTY mode" doesn't seem to work for me
16:32kettenisat least it doesn't show any serial output from u-boot and my kernel
16:33ketteniscould very well be that the miniterm implementation in the python serial module is broken on OpenBSD
16:39jannaukettenis: serial console in uboot was working for me with u-boot a0de919efcd and trivial patches for the compatible strings, I think with miniterm
16:40kettenisI'm talking about the python miniterm implementation here
16:40kettenisif I use cu(4) I see the serial output
16:45kettenisah, looks like our exuart(4) driver is touching a register that it shouldn't
16:46kettenisshouldn't be too difficult to fix
16:46kettenisdinner first though
16:46kettenisthanks again marcan
16:46kettenisdo you want the register values?
16:47marcanmight be useful, yeah
16:47marcanI was just running some tests to update the docs
16:47jannauI think I saw serial output from u-boot in python miniterm booted from m1n1
16:47kettenisL2C_ERR_STS 0x11000ffc00000082
16:47kettenisL2C_ERR_ADR 0x28000023520002c
16:48kettenisL2C_ERR_INF 0x2
16:48kettenis0x235200000 is the physical address of the uart
16:50marcanI *think* 82 means recursive fault, but maybe it doesn't
16:50marcanL2C_ERR_INF 2 I'm not sure about
16:51marcanthe top bits in ADR are what I see for writes
16:51marcanah, I just repro'd
16:51marcanI get that for 16-bit or 8-bit writes to that register
16:53marcan2C is UFRACVAL supposedly
16:53marcanI think this bus interface only allows 32-bit writes
17:01choozy has joined #asahi-dev
17:37aratuk has joined #asahi-dev
17:42aratuk has quit [Ping timeout: 264 seconds]
17:45kettenisso u-boot messes this up
17:46kettenisit also doeas an 8-bit write to UTXH
17:46vimal has quit [Remote host closed the connection]
17:46kettenisinteresting that those writes trigger a SError but the written characters still appear on the serial line
17:49VinDuv has joined #asahi-dev
17:52Raqbit9 has joined #asahi-dev
17:52Raqbit has quit [Read error: Connection reset by peer]
17:52Raqbit9 is now known as Raqbit
19:34KindTwo has joined #asahi-dev
19:36KindOne has quit [Ping timeout: 276 seconds]
19:36KindTwo is now known as KindOne
19:38ketteniscpu7 at mainbus0 mpidr 10103: Apple Firestorm r1p1
19:38ketteniscpu7: 192KB 64b/line 6-way L1 VIPT I-cache, 128KB 64b/line 8-way L1 D-cache
19:39ketteniscpu7: 12288KB 128b/line 12-way L2 cache
19:51KindOne has quit [Ping timeout: 272 seconds]
19:56KindOne has joined #asahi-dev
20:01nemith_ is now known as nemith
20:04KindOne has quit [Ping timeout: 246 seconds]
20:04KindTwo has joined #asahi-dev
20:06KindTwo is now known as KindOne
20:09Stary is now known as stary-but-differ
20:14stary-but-differ is now known as Stary
20:20KindTwo has joined #asahi-dev
20:21KindOne has quit [Ping timeout: 272 seconds]
20:24KindOne has joined #asahi-dev
20:26KindTwo has quit [Ping timeout: 256 seconds]
21:14aratuk has joined #asahi-dev
21:19aratuk has quit [Ping timeout: 265 seconds]
22:00VinDuv has quit [Quit: Leaving.]
22:16Axenntio has joined #asahi-dev
22:19Axenntio_ has joined #asahi-dev
22:21Axenntio has quit [Ping timeout: 276 seconds]
22:22Axenntio_ has quit [Client Quit]
22:53amw has joined #asahi-dev
23:16choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
23:27brandas has quit [Quit: quit]
23:28_alice has joined #asahi-dev
23:29the-mentor3 has quit [Quit: Ping timeout (120 seconds)]
23:29the-mentor3 has joined #asahi-dev
23:34brandas has joined #asahi-dev
23:37comex_ is now known as comex
…