2021-07-31
00:15fluffypup[m] has joined #asahi
01:12riker77_ has joined #asahi
01:17riker77 has quit [Ping timeout: 480 seconds]
01:17riker77_ is now known as riker77
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi
02:06quarkyalice has quit [Quit: Leaving]
02:07quarkyalice has joined #asahi
02:26chadmedfollowing all the interesting development has me REALLY tempted to drop some cash on a mac mini, but at the same time the M1X devices are really just around the corner and i'd also love to wait for those and test whatever quirks exist there vs plain M1
02:27chadmedafaict the only differences should be more Firestorm cores and more pcie/thunderbolt but honestly who knows what else will change
02:28PhilippvK has joined #asahi
02:32phiologe has quit [Ping timeout: 480 seconds]
02:37yuyichao has joined #asahi
03:44quarkyalice_ has joined #asahi
03:45quarkyalice has quit [Ping timeout: 480 seconds]
04:03apetresc has quit [Remote host closed the connection]
06:45apetresc has joined #asahi
07:50svenamw: sure. that's much less stable than the usb though. please don't use it for anything productive :)
08:06svenalso just pushed a new version that hopefully also compiles without CONFIG_PCI and cleans some minor things up
08:09svenkettenis_: so from what i can tell the linux code has no issues with issuing multiple commands in parallel
08:24thunfisch has quit [Quit: frrrp!]
08:26svenhrm, i also wonder if the remoteproc framework is better suited than the mailbox framework for all these coprocessors
08:31pipcet[m]would that give us a standard way to handle the reserved memory regions the IOPs know about?
08:33svennot sure, but it has e.g. rproc_boot which feels less awkward than requesting a fake mailbox in the nvme driver
08:40thunfisch has joined #asahi
08:46pipcet[m]"The function can only be called from a process context (for now)." in the documentation for rpmsg_send, though...
08:46kettenis_sven: there still needs to be a way to express that nvme depends on the remoteproc somehow
08:53aleasto has joined #asahi
08:57svenkettenis_: sure, i'm just wondering if all this system endpoint handling really fits into the mailbox framework.
09:00chadmedrproc does seem like a "more correct" way of handling some of this stuff, especially once (if?) we will be getting the kernel to load firmware rather than relying on iboot finding a macos stub and loading fw from that
09:02sveni can't claim i tested this, but from what i've seen so far the firmware is loaded by iboot and locked down
09:02chadmeddamn that sucks didnt realise that (though it should have been apparent given how iboot handles things)
09:05chadmedthat is true, theres no real harm in terms of ux too i guess, only the requirement of having a fairly chunky macos stub partition on the device which doesnt really matter in the grand scheme of things
09:07chadmedyeah im hoping so, only just if that requires us repackaging some of apple's proprietary stuff that might give us some legal troubles. the way i see it, allowing the macos installer to do its thing and "hijacking" it after its done is probably the least legally troublesome route
09:09chadmedi might play around with figuring out what exactly iboot needs to see a valid system and write a post-macos-install script that deletes everything else and sets up the partition just to boot m1n1.... at some point ;-P
09:09kettenis_I believe marcan's thinking about having a script run in the 1TR environment that just creates the APFS container/filesystem and populates it with bits downloaded from Apple's MacOS update server
09:12Andalu30 has joined #asahi
09:16chadmedit may be easier (by which i also mean legally less questionable) to have the user BYO "install macos xxx.app
09:19chadmedthat is how we did things for hackintosh when we needed specific files for reverting system-breaking updates as it puts the onus onto the user for acquiring those files. its also less likely to be subject to breaking changes. apple could at any time change update urls or encrypt files or whatever, this way we can be sure the user has them (or even a specific version of them)
09:21chadmedits also not exactly a hard thing to acquire if you actually have a mac since the app store will just download it into /Applications
09:22marcanyou can get restore images from Apple's server. it's not like the old macs; ever since T2 they have to support the DFU flow and that means having a publicly accessible API for this
09:23marcanin fact I plan to make the installer stream bits of the ipsw, so it doesn't have to download the whole thing
09:24marcanwe only need the recovery image and firmware bundles; we can skip the actual OS image which is most of it
09:25marcanI've already tested this, I already did a manual macOS install once, worked fine to the kernel (then exploded due to no sealed OS volume)
09:26marcanI'll probably spend some time on it soon, seeing as alyssa is signing up to do the DCP kernel driver apparently
09:53foxlet has joined #asahi
09:53foxletEven with old Macs you could get recovery images by polling the Software Update catalog, pretty much a plain plist.
10:05Andalu30 has quit [Remote host closed the connection]
10:05Andalu30 has joined #asahi
10:33pipcet[m]what's the status of DCP reverse-engineering? I'm looking at the "wtf" commit of the "dcp-clusterfuck" branch, and those names totally sound like it's production-ready
10:38bradfier_ has quit [Quit: Leaving...]
10:39bradfier has joined #asahi
10:51kettenis_sven: did you see my message about the USB DARTs not being in bypass mode when m1n1 starts?
10:55svenhrm, maybe i misremember because i saw that 0x80 (which someone claimed was the bypass offset) and assumed it was in bypass mode then
10:57kettenis_it would be convenient for u-boot to have them in bypass mode, but for security reasons that may be undesirable
11:04kettenis_although I haven't figured out yet how to make the dart driver probe without another device driver explicitly referencing it
11:18kettenis_that's what the current code does, but it adds (for now) apple-specific code to the generic dwc3 host driver
11:23DarkShadow44 has joined #asahi
11:28kettenis_ah, I think I could put the DART in bypass mode when the driver's bind function is called
11:45Andalu30 has quit [Ping timeout: 480 seconds]
11:48Andalu30 has joined #asahi
11:56Andalu30 has quit [Read error: No route to host]
11:58Andalu30 has joined #asahi
12:13Andalu30 has quit [Ping timeout: 480 seconds]
12:42marcanpipcet[m]: those names were alyssa's suggestion because she can't wait for me to clean up the code apparently :p
12:43pipcet[m]marcan: it's awesome, I approve of the names and can't wait to break things with the code :-)
12:43marcanthat should be enough functionality for a "real" graphics driver (i.e. proper vsync and hardware cursor)
12:44marcanmode switching probably works too but I didn't get around to trying it because I need to decode the structures that enumerate the modes, but that's a 30 min problem
12:44pipcet[m]lack of vsync is annoying, I'm not noticing the software cursor much, but my usage is hardly typical :-)
12:46kettenis_sven: using the bind function works so I'll just put the DART in bypass mode in u-boot
12:48kettenis_but for some reason u-boot isn't happy about the "dma-ranges" proprty you added to the "soc" node
13:23kettenis_I no longer need the code that checks the dma-ranges properties in u-boot now that I put the USB DARTs in bypass mode
13:25svenchanges to the dt for the m1 have to go through marcan while the iommu stuff goes through the iommu tree i think
13:25kettenis_ is now known as kettenis
13:26svenals, ugh, clocks. we'll need them at some point unless we just turn them all on in m1n1 and keep ignoring them
13:40pipcet[m]I suspect I messed up clock initialization order, but probably not relevant, just thought I'd mention it.
14:01Andalu30 has joined #asahi
14:33xerpi[m]This will make it easier to fuzz for the supported pixel formats/size/stride contraints :)
14:33aleasto has quit [Ping timeout: 480 seconds]
14:45aleasto has joined #asahi
14:52yuyichao has quit [Ping timeout: 480 seconds]
15:03Andalu30 has quit [Quit: Konversation terminated!]
15:06Andalu30 has joined #asahi
15:06Andalu30 has quit []
15:29Andalu30 has joined #asahi
15:40frode_0xa has joined #asahi
16:33Andalu30 has quit [Quit: Konversation terminated!]
16:36alyssamarcan: By the way, I assume I need to update macOS on the m1n1/linux/hv partition to sync DCP firmware version with what you have ?
16:37alyssa(I'm admittedly unsure how to do so since my only way of accessing the macOS there is through the hv... I guess I could flash back XNU and then reflash m1n1 after updating)
16:41marcanI need to write something to convert the Construct-based type definitions to something like C
17:07zopieux has quit [Ping timeout: 480 seconds]
17:09zopieux has joined #asahi
17:16roxfan2 is now known as roxfan
17:27Andalu30 has joined #asahi
17:30aleasto has quit [Ping timeout: 480 seconds]
17:31aleasto has joined #asahi
18:00Andalu30 has quit [Ping timeout: 480 seconds]
18:22alyssamarcan: Spent the morning wrapping my head around dcp-clusterfuck, wrote myself a cheat sheet of how the layers of crap fit together https://rosenzweig.io/DCP-Cheatsheet.md
18:23alyssaInput structs packed in shared memory, wrapped in a DCP packet structure with the tag name and lengths. The offset of the packet in shared memory is used as a pointer to send a DCPEp_Msg, which is the actual message sent over the ASC mailbox.
18:24alyssaThe shared memory itself is just a block mapped to the DCP DART and with the dart VA negotiated with the DCPEp_SetShmem packet
19:22roxfan2 has joined #asahi
19:27roxfan has quit [Ping timeout: 480 seconds]
19:27roxfan has joined #asahi
19:30roxfan2 has quit [Ping timeout: 480 seconds]
19:42LeviLynch[m] has joined #asahi
21:26Andalu30 has joined #asahi
21:57pipcet[m]alyssa: thank you for that, I think it makes sense now. I can make m1n1 turn the display backlight to full brightness even when iBoot leaves it at the "very dim" setting that macOS keeps resetting it to! it's very exciting! now I just need a Linux driver so I can play with it from userland...
22:30Andalu30 has quit [Quit: Konversation terminated!]
22:56aleasto has quit [Quit: Konversation terminated!]
23:32quarkyalice_ has quit [Ping timeout: 480 seconds]