ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
<rqou_> sven: is gadget mode supposed to work with your atcphy code? when i connect a cable in such a way, i see atcphy attempting to switch to USB3 mode, the UDC driver loads, the linux gadget framework also loads, but the other machine doesn't see anything
alcazar has quit [Ping timeout: 480 seconds]
kettenis_ has joined #asahi-dev
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alcazar has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
alcazar has quit [Ping timeout: 480 seconds]
wfsegg4g2s[m] has joined #asahi-dev
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
<wfsegg4g2s[m]> Hey! Im interested in booting the kernel on a IPad 4, im wondering how I would get information to create device trees from it
<wfsegg4g2s[m]> /how it happened for the Apple M1 processors
<matthewayers[m]> wfsegg4g2s: Unfortunately this is not possible on the iPad 4 because iOS/iPadOS devices are locked down in a way that the M-series chips are not.
alcazar has quit [Ping timeout: 480 seconds]
<wfsegg4g2s[m]> matthewayers[m]: could rooting it help?
alcazar has joined #asahi-dev
<Jamie[m]1> it has checkm8 so it’s presumably possible in theory, but it’d require reverse engineering and implementing drivers for all the hardware that’s changed in between the A6X and M1, not just device tree changes
<wfsegg4g2s[m]> Jamie[m]1: Yeah, device tree changes would just be the very start
<wfsegg4g2s[m]> * very start though
yuyichao has joined #asahi-dev
doggkruse has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
<rqou_> on a checkm8-able device you should be able to pull what is essentially the ADT info using `ioreg`, but a _lot_ has probably changed between the A6X and the M1
alcazar has joined #asahi-dev
<wfsegg4g2s[m]> <rqou_> "on a checkm8-able device you..." <- isnt ioreg for the Macintosh exclusively?
<rqou_> back in the day there existed ioreg that ran on ios devices, but idk if that works on modern jailbreaks
<wfsegg4g2s[m]> Would there be any other methods to get the adt then?
alcazar has quit [Ping timeout: 480 seconds]
<rqou_> iBoot has to hand it to the kernel at some point, but idk if there exists any existing tooling to work with any of this
<wfsegg4g2s[m]> rqou_: I cant find it yet(then again ive been searching for 2 minutes) only thing I could find was a root shell executing ioreg...is that how it would go?
<wfsegg4g2s[m]> rqou_: probably not
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
phiologe has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
<nicolas17> wait what
<nicolas17> A6X is 32-bit lol, it would need a huge amount of changes
PhilippvK has quit [Ping timeout: 480 seconds]
<nicolas17> I don't know if there's even a good exploit for checkm8 for that SoC
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kenzie has quit [Ping timeout: 480 seconds]
<wfsegg4g2s[m]> nicolas17: There is!
<nicolas17> I'd like to see asahi ported to (checkm8-affected) A-series chips too, but 64-bit feels like a basic requirement...
<wfsegg4g2s[m]> nicolas17: why is 64-bit a basic requirement?
alcazar has joined #asahi-dev
<nicolas17> because otherwise it's *way* too different from the existing M1 work
<wfsegg4g2s[m]> Id be happy with ~Asahi with KDE mobile and angelfish
<wfsegg4g2s[m]> nicolas17: Thats because it is!
alcazar has quit [Ping timeout: 480 seconds]
kenzie has joined #asahi-dev
<nicolas17> rqou_: can the ADT be extracted from the ipsw too? or is that in a different format?
<rqou_> dunno
<poplar> ...ok apparently I have to turn off notifications on "tree" here.
<nicolas17> lol, can't you make it trigger on the whole word only?
<poplar> That was the whole word
<nicolas17> ah I see it was said as a separate word earlier
alcazar has joined #asahi-dev
<kevans91> anyone have a built Image.gz they'd be willing to toss somewhere? I have an m1n1 change to linux.py that I'd like to test, but not really any linux build setup (and no real use for setting one up otherwise)
<kevans91> er, presumably that's the kernel payload
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
kov has quit [Quit: Coyote finally caught me]
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
nicolas17 has quit [Quit: Konversation terminated!]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
<jannau> rqou_: not a problem with https://github.com/jannau/m1n1/tree/dcp-nb and https://github.com/jannau/linux/tree/asahi-dcp-nb it changes the way how the premapped memory regions are expressed in the fdt
<rqou_> kk, will give that a try. thanks
<jannau> I haven't tested it with u-boot myself yet, also only tested on t8103
alcazar has joined #asahi-dev
doggkruse has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
the_lanetly_052 has joined #asahi-dev
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
<jannau> kevans91: you could use the vmlinuz-asahi from https://cdn.asahilinux.org/aarch64/asahi/linux-asahi-5.17.rc7.20220310.5-2-aarch64.pkg.tar.xz it will not boot fully without modules/initrd but I guess you're just interested in whether it still boots
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alexsv has joined #asahi-dev
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rqou_> does anybody know of a linux tool that can decode a raw prores bitstream? or do i really need to slap some kind of container like mov or mkv around it?
alcazar has joined #asahi-dev
<rqou_> jannau: m1n1 branch dcp-nb crashes and reboots on m1 max
<rqou_> fwiw branch dcp _did_ boot until it got to grub, after which grub would complain it was out of memory
alcazar has quit [Ping timeout: 480 seconds]
<kode54> you could try ffmpeg's prores codecs, assuming they even work with current spec
<kode54> but they probably assume a container at least
alcazar has joined #asahi-dev
<jannau> rqou_: https://www.jannau.net/uboot_dcp_rsv_mem.diff would fix the u-boot problem, I'll look after *dcp-nb on t600x tonight
<sven> rqou_: in theory yes, but I never tested Gadget mode with usb3. It does work with usb2 only though
<sven> wouldn’t surprise me if the atcphy init needs to be done slightly different though
<rqou_> sven: huh, i was specifically testing usb2 and got nothing
<sven> did you have atcphy enabled?
<rqou_> yes, atcphy was enabled, with a cable that only supports usb2
<rqou_> i saw the trace messages stating that it was switching to USB3 mode
<sven> try again with atcphy disabled
<rqou_> i'll try that later
<rqou_> oh i see, you're saying it should work with the default "no atcphy module" usb2-only mode that m1n1 sets things up in?
alcazar has quit [Ping timeout: 480 seconds]
<sven> yes
<sven> it wouldn’t surprise me at all if there’s something missing inside atcphy to make it work there as well
alcazar has joined #asahi-dev
joske has joined #asahi-dev
<joske> jannau: on air, your asahi-dcp-nb boots, but then the screen is blank (using that branch for both m1n1 and linux)
<joske> with u-boot
alcazar has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #asahi-dev
joske has quit [Remote host closed the connection]
alcazar has joined #asahi-dev
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
Major_Biscuit has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Ping timeout: 480 seconds]
Guest325 has quit []
foxtrot has joined #asahi-dev
CME has quit []
CME has joined #asahi-dev
foxtrot is now known as Guest1315
c10l531 has quit []
c10l531 has joined #asahi-dev
VinDuv_ has joined #asahi-dev
gruetze_ has joined #asahi-dev
kit_ty_kate has quit [Remote host closed the connection]
Guest1315 has quit []
kit_ty_kate1 has joined #asahi-dev
VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
alcazar has joined #asahi-dev
southey has joined #asahi-dev
VinDuv_ is now known as VinDuv
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
Major_Biscuit has quit []
MajorBiscuit has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
c10l531 is now known as c10l
alcazar has joined #asahi-dev
<kettenis_> jannau: the fact that you need that u-boot change suggests that you're on the wrong track with this iommu reserved region binding
<_jannau_> kettenis_: that's for the already abandoned binding proposal
alcazar has quit [Ping timeout: 480 seconds]
<kettenis_> ah, good
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
kameks has joined #asahi-dev
the_lanetly_052 has quit [Remote host closed the connection]
alcazar has joined #asahi-dev
the_lanetly_052 has joined #asahi-dev
the_lanetly_052 has quit [Ping timeout: 480 seconds]
alcazar has quit [Ping timeout: 480 seconds]
kov has joined #asahi-dev
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
psykose has joined #asahi-dev
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
bps has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
bps has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
amarioguy has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
amarioguy has quit [Ping timeout: 480 seconds]
amarioguy has joined #asahi-dev
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
Glanzmann has joined #asahi-dev
veloek has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
veloek has quit [Quit: leaving]
alcazar has joined #asahi-dev
veloek has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
amarioguy has quit [Remote host closed the connection]
amarioguy has joined #asahi-dev
bps2 has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
yuyichao has quit [Ping timeout: 480 seconds]
bps has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
amarioguy has quit [Ping timeout: 480 seconds]
amarioguy has joined #asahi-dev
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
bps3 has joined #asahi-dev
<amarioguy> does m1n1 in hypervisor mode support tracing the SEP mailbox access?
<amarioguy> iirc some presentation in 2016 mentioned that was handled by the AKF driver
<amarioguy> yes, i'm volunteering to take on SEP work
<amarioguy> idk if this belongs in the RE chat or smth, will move there if that's the case
bps2 has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
the_lanetly_052 has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
wCPO6 has joined #asahi-dev
alcazar has joined #asahi-dev
yuyichao has joined #asahi-dev
Guest1043 has quit [Ping timeout: 480 seconds]
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
kameks has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nicolas17 has joined #asahi-dev
<amarioguy> quick question, i realize this may sound dumb but i'm not sure how Asahi does this, but do we use pull requests for committing changes to the asahi branch, or do we use mailing lists ala mainline Linux
<amarioguy> or do we just make our own branch
<j`ey> make your own branch, markan will pull it in if its 'good enough'
<_jannau_> we shout at marcan for kernel patches to be integrated into asahi. pull request do not work due to rebasing
<brentr123[m]> Does anybody know if the Ubuntu devs are using asahis code?
alcazar has joined #asahi-dev
<j`ey> I havent seen anyone representing Ubuntu here
<jn> in time, asahi patches will inevitably land in ubuntu
<jn> simply because they are landing in mainline linux
<j`ey> yeah but m1n1 and uboot et al need specific work
<jn> true
<kevans91> jannau: perfect, thanks!
alcazar has quit [Ping timeout: 480 seconds]
roxfan2 has joined #asahi-dev
<kevans91> this seems to fix the u-boot support in the proxyclient: https://github.com/AsahiLinux/m1n1/pull/189
amarioguy has quit [Remote host closed the connection]
alcazar has joined #asahi-dev
<kevans91> (broken in the sense that it didn't work by default because tty_dev is optional)
alcazar has quit [Ping timeout: 480 seconds]
bps3 has quit [Ping timeout: 480 seconds]
gladiac has quit [Quit: k thx bye]
alcazar has joined #asahi-dev
gladiac has joined #asahi-dev
gladiac has quit []
gladiac has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
<kettenis_> j`ey: I still think a UEFI-aware distro should just work on these systems once a kernel with the proper hardware support is available
<kettenis_> m1n1 and u-boot updates from the OS may be nice to have, but shouldn't be essential
<j`ey> yeah, true
<kettenis_> and I think it would make sense for the Asahi installer to have an update mode that allows you to update the firmware and m1n1/u-boot
<kettenis_> and folks who want to boot multiple OSes may need a distro that is aware of the paired ESP concept
alcazar has joined #asahi-dev
<marcan> the main issue is going to be the firmware copy script and dealing with multi ESP
<marcan> and yes, it will have an update/reinstall mode, not the least because apparently Apple sometimes breaks m1n1 with their updates...
alcazar has quit [Ping timeout: 480 seconds]
<Glanzmann> j`ey: A user contacted me today regarding an issue with Debian. He wanted to install Ubuntu. I did not find a single ubuntu mirror with arm64 ... so we ended up installing Debian.
<Glanzmann> marcan: I installed 12.3.1 on two systems (mini and air), no breakage for me.
alcazar has joined #asahi-dev
doggkruse has joined #asahi-dev
<jannau> Glanzmann: main ubuntu arm64 mirror is http://ports.ubuntu.com/
<Glanzmann> jannau: Thanks, I've written it down.
fjtyfhd has joined #asahi-dev
fjtyfhd has quit []
alcazar has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Ping timeout: 480 seconds]
caef^ has joined #asahi-dev
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
yamii has joined #asahi-dev
MajorBiscuit has quit [Ping timeout: 480 seconds]
the_lanetly_052 has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
<nicolas17> now that there's more people around
<nicolas17> someone yesterday asked about getting Linux running on A6X, I personally think it would be interesting to get it working on A-series chips, but A6X would take an absurd amount of work because it's 32-bit
<nicolas17> but I don't actually know; how much of asahi's work would be even relevant?
alcazar has quit [Ping timeout: 480 seconds]
<sven> there might be some stuff that can be reused (i2c) but I’d expect many things to be very different
<marcan> some jellybean drivers like UART/SPI might work, maybe PMGR too? definitely not cpufreq, maaybe some of the RTKit stuff with a lot of porting work if it's similar?
<sven> some of the later chips with that checkm8 bug might be possible, but I know that at least dart is different
<sven> and I think those also used dwc2
<marcan> I wonder when they even introduced i2c, I wouldn't be surprised if that pasemi block is recent-ish and they were using samsung before
<sven> yeah, maaaaybe some rtkit stuff. But I think even nvme used to be different
<marcan> also AIC, even if similar, would be wired completely differently to the FIQ stuff
<sven> true
<nicolas17> sven: my thought was "later chips are doable, even though it may take a lot of work for some peripherals; but 32-bit is a step way too far"
<marcan> yeah, pretty much
<sven> yeah
<marcan> I mean I expect it to just work on A14 if you have a way to run the code
<nicolas17> but I wasn't sure if that was right
<marcan> and going back from that would get progressively harder
<sven> yeah. I know that the last chip with the checkm8 but would already be quite some effort
<marcan> I do know the UART driver works all the way back at least, someone already tried that one :')
<marcan> but that's to be expected
<sven> i don’t think DCP existed then and usb was definitely dwc2 with a different phy
<marcan> DCP is definitely recent
<marcan> so yeah, whole bespoke display controller driver to write there
<nicolas17> oh yeah DCP
<nicolas17> DCP is A14
<sven> so lots of work either way
<sven> someone should “just” find a bootrom bug so that I can run Linux on those M1 iPads please ;)
alcazar has joined #asahi-dev
<brentr123[m]> sven: How about for those devices that have checkrain
<brentr123[m]> Oh nevermind specifically M1
<sven> please re-read the discussion, we’ve covered that
<nicolas17> last week I suddenly remembered I still had the sandcastle APFS volume in my iPhone 7 eating a gigabyte or two ^^
alcazar has quit [Ping timeout: 480 seconds]
caef^ has quit [Ping timeout: 480 seconds]
nyx_o has quit [Quit: WeeChat 3.5]
alcazar has joined #asahi-dev
roxfan2 is now known as roxfan
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
chengsun has joined #asahi-dev
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
c10l has quit []
nyx_o has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
the_lanetly_052 has joined #asahi-dev
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
c10l has joined #asahi-dev
alcazar has joined #asahi-dev
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
the_lanetly_052__ has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
the_lanetly_052 has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
c10l has quit [Quit: Bye o/]
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
c10l has joined #asahi-dev
c10l has quit []
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
c10l has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
c10l has quit []
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
<jannau> rqou_: t600x is fixed, m1n1 didn't set the dart type
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
alcazar has joined #asahi-dev
_whitelogger has joined #asahi-dev
<j`ey> rqou_: 4k or 16k page size?
sirn has joined #asahi-dev
phire_ has joined #asahi-dev
ChaosPrincess has joined #asahi-dev
the_lanetly_052___ has joined #asahi-dev
jakebot has joined #asahi-dev
robinp_ has joined #asahi-dev
riatre has joined #asahi-dev
hizonx has joined #asahi-dev
lethalbit has joined #asahi-dev
dougall has joined #asahi-dev
<rqou_> ah, 4k with the patch that's been floating around
abrasive has joined #asahi-dev
<j`ey> I guess jannau is only testing with 16K for nw
<j`ey> *now
<rqou_> actually, wait
<rqou_> i might have accidentally dropped the 4k patch from my kernel
<j`ey> that wont affect this, afaict
alcazar has joined #asahi-dev
MajorBiscuit has quit [Quit: WeeChat 3.4]
alcazar has quit [Ping timeout: 480 seconds]
shenki has joined #asahi-dev
alcazar has joined #asahi-dev
<rqou_> it still doesn't work, but it gets much further once i remember to actually cherry-pick in the 4k page patch
alcazar has quit [Ping timeout: 480 seconds]
<rqou_> the pile of "denying map of invalid buffer X for pidoma" seems sus, but i don't really know anything about this code or hardware
alcazar has joined #asahi-dev
c10l has joined #asahi-dev
c10l has quit []
<rqou_> oh huh, this is indeed a 4k kernel limitation
caef^ has joined #asahi-dev
c10l has joined #asahi-dev
<rqou_> because sven apparently wrote "Disable get_sgtable for granule > PAGE_SIZE" "While this function *probably* works correctly without any changes for granule > PAGE_SIZE I don't have any code to actually test it and cannot reason about how the function is supposed to work. Disable it instead until we run into a use case where it's required."
<rqou_> but it looks like the new DCP driver indeed requires that function?
c10l has quit []
c10l has joined #asahi-dev
alcazar has quit [Ping timeout: 480 seconds]
<j`ey> probably via drm_gem_cma_get_sg_table
<rqou_> no it just outright calls that function when mapping buffers for the DCP
<j`ey> ohh
<j`ey> I would just suggest using 16k for now :P
<rqou_> aaand, with that, i have a working DCP driver that boots to the desktop!
<rqou_> good job jannau et al
<rqou_> no i care about FEX that much to really want this to work
<j`ey> then try remove that early return in get_sgtable ;)
c10l has quit [Quit: Bye o/]
<rqou_> yeah, i literally just did
<rqou_> and it works
<j`ey> ohh
<rqou_> DCP works and gets to desktop, with the notch breaking the UI and everything
c10l has joined #asahi-dev
<j`ey> black hole
alcazar has joined #asahi-dev
<rqou_> hmm, broke nvme?
<rqou_> but it worked via m1n1 hv
<Dcow[m]1> how you get to desktop without nvme?
<rqou_> no, it was working earlier when i was testing it in the m1n1 hypervisor
<rqou_> but setting up an untethered boot doesn't seem to work
alcazar has quit [Ping timeout: 480 seconds]
atsalyuk has quit [Ping timeout: 480 seconds]
<rqou_> very likely there's a race condition?
<Dcow[m]1> oh, sven love them
alcazar has joined #asahi-dev
<rqou_> yeah, i seem to be losing the race condition now
<rqou_> but DCP itself works
alcazar has quit [Ping timeout: 480 seconds]
<rqou_> perhaps sven could investigate this? https://gist.github.com/rqou/9166943e1d3e102f701beea79ac5e8ea
<rqou_> unfortunately i'm running, uh, this kernel https://github.com/rqou/linux/tree/work
<rqou_> which is the asahi branch + sven's atcphy + my own m1 max atcphy + DCP + rebased 4k iommu patch
<rqou_> not exactly the standard thing everyone else is
<j`ey> hmm I saw 'NVMMU TCB invalidation failed' before th patch from marcan to shutdown nvme in uboot
<j`ey> SART error. Interrupt status 0x80, SART has interrupts..?
alcazar has joined #asahi-dev
alcazar has quit [Remote host closed the connection]
bps3 has joined #asahi-dev
<rqou_> looks like i can win the race condition by moving apple_dcp/apple_piodma/appledrm into the initramfs, but keeping the nvme driver linked into the kernel
<rqou_> i sure hope i don't end up with major disk corruption due to a hidden bug at some point in the future
<rqou_> but yeah, tl;dr everything works
<rqou_> fwiw attempting to not load the DCP driver until the desktop is reached and then manually modprobe-ing it doesn't work either
<rqou_> anyways, final list of problems: DCP driver doesn't work with sven's iommu patch. the disabling of get_sgtable has to be reverted. after that, a race condition happens with the nvme, which can be worked around by putting DCP into the initramfs