#
#asahi-dev · 2023-04-16 12:49
jannauor at least m1n1's uart and usb are still dead
#asahi-dev · 2023-04-16 12:49
marcankettenis: if you feel like implementing oslog in u-boot, https://github.com/AsahiLinux/linux/commit/ea40aa13292f59a90688955bee581dbc3037fdd0
#asahi-dev · 2023-04-16 12:47
marcanthat's quite the crash
#asahi-dev · 2023-04-16 12:47
marcanhuh, wow.
#asahi-dev · 2023-04-16 12:47
jannauyes, works with main. without it I need to power cycle it. it's still dead after power cycle via usb-pd
#asahi-dev · 2023-04-16 12:45
marcanhaven't tested it as stage1 though
#asahi-dev · 2023-04-16 12:44
marcanjannau: seems to work for me with what's in m1n1:main (drop the logic, keep the ep start)
#asahi-dev · 2023-04-16 12:42
marcanno idea
#asahi-dev · 2023-04-16 12:41
ChaosPrincessmarcan: is there a way to make m1n1 reliably survive sleep
#asahi-dev · 2023-04-16 12:41
jannauseems to be dead after display init. I removed it completely though, i.e. not even starting the endpoint
#asahi-dev · 2023-04-16 12:39
marcanjannau: how does it break?
#asahi-dev · 2023-04-16 12:39
jannaumarcan: m1n1 breaks on j274 without oslog (12.3)
#asahi-dev · 2023-04-16 12:32
kettenisI'd better fix that on the OpenBSD side as well then
#asahi-dev · 2023-04-16 12:24
marcanthe change was backwards-compatible, I had just misinterpreted the protocol
#asahi-dev · 2023-04-16 12:23
marcanjannau: pushed m1n1 and the bringup branch, mtp should work now
#asahi-dev · 2023-04-16 12:19
kettenisbut I won't include them in the binding for now
#asahi-dev · 2023-04-16 12:19
kettenisunless I missed something the regions are still defined in t602x-die0.dts
#asahi-dev · 2023-04-16 12:15
marcanm1n1 uses it for what looks like a bug workaround which *may* be needed in linux eventually but I'm not sure, we can always add it later
#asahi-dev · 2023-04-16 12:15
marcandidn't I drop that?
#asahi-dev · 2023-04-16 12:12
kettenis(I'm considering submitting the bindings upstream to prevent myself from getting burned again)
#asahi-dev · 2023-04-16 12:11
kettenisis there a good reason to add them anyway?
#asahi-dev · 2023-04-16 12:11
kettenismarcan: we don't use the ltssmX regs anywhere in the PCIe drivers
#asahi-dev · 2023-04-16 12:10
marcanyeah, so we can drop it then
#asahi-dev · 2023-04-16 12:07
jannauerr, yes. 12.4
#asahi-dev · 2023-04-16 12:07
jannaubut based on the time I added it it would have been required on m1 with macos 12.x with x < 3
#asahi-dev · 2023-04-16 12:05
marcan12.4 you mean?
#asahi-dev · 2023-04-16 12:02
jannaut8112 dcp on 12.3 works without starting oslog
#asahi-dev · 2023-04-16 11:49
marcanOTOH it will need to be added to u-boot for MTP...
#asahi-dev · 2023-04-16 11:49
marcanI'm just going to remove it from m1n1 and we'll see if anything breaks :p
#asahi-dev · 2023-04-16 11:48
svendunno, it always worked without oslog for me but I don't even know what firmware I'm running
#asahi-dev · 2023-04-16 11:47
svenit does that for syslog
#asahi-dev · 2023-04-16 11:47
svenmaybe nvme just hangs after a while if it's not started?
#asahi-dev · 2023-04-16 11:47
marcanbut u-boot doesn't implement it...?
#asahi-dev · 2023-04-16 11:46
svenmaybe that's where that nvme comment comes from :D
#asahi-dev · 2023-04-16 11:46
svenohh... didn't jannau (?) notice that the endpoint was also required for nvme in some firmware version?
#asahi-dev · 2023-04-16 11:46
marcanhowever, I still see no messages in my old DCP logs
#asahi-dev · 2023-04-16 11:45
marcanha.
#asahi-dev · 2023-04-16 11:45
jannauin my logs I see endpoint 0x8 for dcp in 12.3, 12.4 and 13.2. it's gone in 13.3
#asahi-dev · 2023-04-16 11:44
ketteniswhich probably means that starting the endopoint for NVMe isn't necessary
#asahi-dev · 2023-04-16 11:43
marcanit's not implented in u-boot though
#asahi-dev · 2023-04-16 11:41
marcanso I have no idea where the logic came from
#asahi-dev · 2023-04-16 11:41
marcanhowever it sends no messages
#asahi-dev · 2023-04-16 11:41
marcannvme does have the endpoint
#asahi-dev · 2023-04-16 11:41
kettenismy OpenBSD commit messages says it was for NVMe
#asahi-dev · 2023-04-16 11:40
marcanI don't see oslog in my most recent dcp log
#asahi-dev · 2023-04-16 11:38
jannauI think I added it for dcp. iirc it just needed to be started
#asahi-dev · 2023-04-16 11:35
sveni vaugely remember someone adding it to get some co-processor to boot (or not hang after a while)
#asahi-dev · 2023-04-16 11:33
marcandoes anyone remember what we added oslog for? the current behavior seems patently wrong as far as MTP goes, but I have no idea why it's there at all
#asahi-dev · 2023-04-16 11:25
jannauyes, it is intertwined with the other port setup stuff. I currently just added 'if link up's which makes the code hard to read/follow
#asahi-dev · 2023-04-16 11:21
marcanfixing that

plus ›