#
…

2022-04-06

00:04alcazar has quit [Ping timeout: 480 seconds]
00:15alcazar has joined #asahi-dev
00:18rqou_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
00:23alcazar has quit [Ping timeout: 480 seconds]
00:26kettenis_ has joined #asahi-dev
00:31alcazar has joined #asahi-dev
00:39alcazar has quit [Ping timeout: 480 seconds]
00:49alcazar has joined #asahi-dev
00:57alcazar has quit [Ping timeout: 480 seconds]
01:02doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:05alcazar has joined #asahi-dev
01:10yuyichao has quit [Ping timeout: 480 seconds]
01:14alcazar has quit [Ping timeout: 480 seconds]
01:16wfsegg4g2s[m] has joined #asahi-dev
01:22alcazar has joined #asahi-dev
01:30alcazar has quit [Ping timeout: 480 seconds]
01:39alcazar has joined #asahi-dev
01:40wfsegg4g2s[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
01:40wfsegg4g2s[m] /how it happened for the Apple M1 processors
01:47matthewayers[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.
01:47alcazar has quit [Ping timeout: 480 seconds]
01:48wfsegg4g2s[m]matthewayers[m]: could rooting it help?
01:58alcazar has joined #asahi-dev
01:59Jamie[m]1it 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
02:02wfsegg4g2s[m]Jamie[m]1: Yeah, device tree changes would just be the very start
02:02wfsegg4g2s[m]* very start though
02:02yuyichao has joined #asahi-dev
02:06doggkruse has joined #asahi-dev
02:07alcazar has quit [Ping timeout: 480 seconds]
02:07rqou_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
02:16alcazar has joined #asahi-dev
02:19wfsegg4g2s[m]<rqou_> "on a checkm8-able device you..." <- isnt ioreg for the Macintosh exclusively?
02:21rqou_back in the day there existed ioreg that ran on ios devices, but idk if that works on modern jailbreaks
02:24wfsegg4g2s[m]Would there be any other methods to get the adt then?
02:24alcazar has quit [Ping timeout: 480 seconds]
02:24rqou_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
02:26wfsegg4g2s[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?
02:26wfsegg4g2s[m]rqou_: probably not
02:31alcazar has joined #asahi-dev
02:40alcazar has quit [Ping timeout: 480 seconds]
02:50alcazar has joined #asahi-dev
02:57phiologe has joined #asahi-dev
02:58alcazar has quit [Ping timeout: 480 seconds]
03:00nicolas17A6X is 32-bit lol, it would need a huge amount of changes
03:00PhilippvK has quit [Ping timeout: 480 seconds]
03:01nicolas17I don't know if there's even a good exploit for checkm8 for that SoC
03:02doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:06kenzie has quit [Ping timeout: 480 seconds]
03:06wfsegg4g2s[m]nicolas17: There is!
03:07nicolas17I'd like to see asahi ported to (checkm8-affected) A-series chips too, but 64-bit feels like a basic requirement...
03:08wfsegg4g2s[m]nicolas17: why is 64-bit a basic requirement?
03:08alcazar has joined #asahi-dev
03:08nicolas17because otherwise it's *way* too different from the existing M1 work
03:08wfsegg4g2s[m]Id be happy with ~Asahi with KDE mobile and angelfish
03:09wfsegg4g2s[m]nicolas17: Thats because it is!
03:16alcazar has quit [Ping timeout: 480 seconds]
03:18kenzie has joined #asahi-dev
03:20nicolas17rqou_: can the ADT be extracted from the ipsw too? or is that in a different format?
03:22poplar...ok apparently I have to turn off notifications on "tree" here.
03:22nicolas17lol, can't you make it trigger on the whole word only?
03:23poplarThat was the whole word
03:23nicolas17ah I see it was said as a separate word earlier
03:24alcazar has joined #asahi-dev
03:25kevans91anyone 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)
03:25kevans91er, presumably that's the kernel payload
03:32alcazar has quit [Ping timeout: 480 seconds]
03:41alcazar has joined #asahi-dev
03:47kov has quit [Quit: Coyote finally caught me]
03:50alcazar has quit [Ping timeout: 480 seconds]
04:00alcazar has joined #asahi-dev
04:08alcazar has quit [Ping timeout: 480 seconds]
04:18alcazar has joined #asahi-dev
04:26alcazar has quit [Ping timeout: 480 seconds]
04:34alcazar has joined #asahi-dev
04:42alcazar has quit [Ping timeout: 480 seconds]
04:43nicolas17 has quit [Quit: Konversation terminated!]
04:50alcazar has joined #asahi-dev
04:58alcazar has quit [Ping timeout: 480 seconds]
05:01jannaurqou_: 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
05:01rqou_kk, will give that a try. thanks
05:04jannauI haven't tested it with u-boot myself yet, also only tested on t8103
05:08alcazar has joined #asahi-dev
05:15doggkruse has joined #asahi-dev
05:16alcazar has quit [Ping timeout: 480 seconds]
05:24the_lanetly_052 has joined #asahi-dev
05:25alcazar has joined #asahi-dev
05:33alcazar has quit [Ping timeout: 480 seconds]
05:43alcazar has joined #asahi-dev
05:51alcazar has quit [Ping timeout: 480 seconds]
05:53jannaukevans91: 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
05:59alcazar has joined #asahi-dev
06:07alcazar has quit [Ping timeout: 480 seconds]
06:12alexsv has joined #asahi-dev
06:16alcazar has joined #asahi-dev
06:24alcazar has quit [Ping timeout: 480 seconds]
06:29doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:30rqou_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?
06:33alcazar has joined #asahi-dev
06:39rqou_jannau: m1n1 branch dcp-nb crashes and reboots on m1 max
06:40rqou_fwiw branch dcp _did_ boot until it got to grub, after which grub would complain it was out of memory
06:42alcazar has quit [Ping timeout: 480 seconds]
06:48kode54you could try ffmpeg's prores codecs, assuming they even work with current spec
06:48kode54but they probably assume a container at least
06:50alcazar has joined #asahi-dev
06:54jannaurqou_: https://www.jannau.net/uboot_dcp_rsv_mem.diff would fix the u-boot problem, I'll look after *dcp-nb on t600x tonight
06:54svenrqou_: in theory yes, but I never tested Gadget mode with usb3. It does work with usb2 only though
06:55svenwouldn’t surprise me if the atcphy init needs to be done slightly different though
06:55rqou_sven: huh, i was specifically testing usb2 and got nothing
06:55svendid you have atcphy enabled?
06:55rqou_yes, atcphy was enabled, with a cable that only supports usb2
06:56rqou_i saw the trace messages stating that it was switching to USB3 mode
06:56sventry again with atcphy disabled
06:56rqou_i'll try that later
06:57rqou_oh i see, you're saying it should work with the default "no atcphy module" usb2-only mode that m1n1 sets things up in?
06:59alcazar has quit [Ping timeout: 480 seconds]
07:07svenit wouldn’t surprise me at all if there’s something missing inside atcphy to make it work there as well
07:09alcazar has joined #asahi-dev
07:10joske has joined #asahi-dev
07:11joskejannau: on air, your asahi-dcp-nb boots, but then the screen is blank (using that branch for both m1n1 and linux)
07:11joskewith u-boot
07:17alcazar has quit [Ping timeout: 480 seconds]
07:21MajorBiscuit has joined #asahi-dev
07:24joske has quit [Remote host closed the connection]
07:27alcazar has joined #asahi-dev
07:39jluthra has quit [Remote host closed the connection]
07:39jluthra has joined #asahi-dev
07:44alcazar has quit [Ping timeout: 480 seconds]
07:54alcazar has joined #asahi-dev
08:02alcazar has quit [Ping timeout: 480 seconds]
08:11alcazar has joined #asahi-dev
08:18Major_Biscuit has joined #asahi-dev
08:19alcazar has quit [Ping timeout: 480 seconds]
08:19MajorBiscuit has quit [Ping timeout: 480 seconds]
08:22Guest325 has quit []
08:23foxtrot has joined #asahi-dev
08:24CME has quit []
08:24CME has joined #asahi-dev
08:24foxtrot is now known as Guest1315
08:25c10l531 has quit []
08:25c10l531 has joined #asahi-dev
08:27VinDuv_ has joined #asahi-dev
08:29gruetze_ has joined #asahi-dev
08:29kit_ty_kate has quit [Remote host closed the connection]
08:29Guest1315 has quit []
08:29kit_ty_kate1 has joined #asahi-dev
08:29VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
08:29alcazar has joined #asahi-dev
08:29southey has joined #asahi-dev
08:29VinDuv_ is now known as VinDuv
08:38alcazar has quit [Ping timeout: 480 seconds]
08:46alcazar has joined #asahi-dev
08:54alcazar has quit [Ping timeout: 480 seconds]
08:59alcazar has joined #asahi-dev
09:00Major_Biscuit has quit []
09:01MajorBiscuit has joined #asahi-dev
09:08alcazar has quit [Ping timeout: 480 seconds]
09:14c10l531 is now known as c10l
09:16alcazar has joined #asahi-dev
09:18kettenis_jannau: the fact that you need that u-boot change suggests that you're on the wrong track with this iommu reserved region binding
09:22_jannau_kettenis_: that's for the already abandoned binding proposal
09:25alcazar has quit [Ping timeout: 480 seconds]
09:33alcazar has joined #asahi-dev
09:42alcazar has quit [Ping timeout: 480 seconds]
09:48kameks has joined #asahi-dev
09:48the_lanetly_052 has quit [Remote host closed the connection]
09:49alcazar has joined #asahi-dev
09:49the_lanetly_052 has joined #asahi-dev
09:58the_lanetly_052 has quit [Ping timeout: 480 seconds]
10:02alcazar has quit [Ping timeout: 480 seconds]
10:12kov has joined #asahi-dev
10:13alcazar has joined #asahi-dev
10:21alcazar has quit [Ping timeout: 480 seconds]
10:29alcazar has joined #asahi-dev
10:37alcazar has quit [Ping timeout: 480 seconds]
10:45alcazar has joined #asahi-dev
10:59alcazar has quit [Ping timeout: 480 seconds]
11:09alcazar has joined #asahi-dev
11:17alcazar has quit [Ping timeout: 480 seconds]
11:25alcazar has joined #asahi-dev
11:34alcazar has quit [Ping timeout: 480 seconds]
11:42psykose has joined #asahi-dev
11:44alcazar has joined #asahi-dev
11:53alcazar has quit [Ping timeout: 480 seconds]
12:01bps has quit [Ping timeout: 480 seconds]
12:01alcazar has joined #asahi-dev
12:01bps has joined #asahi-dev
12:09alcazar has quit [Ping timeout: 480 seconds]
12:17alcazar has joined #asahi-dev
12:19amarioguy has joined #asahi-dev
12:25alcazar has quit [Ping timeout: 480 seconds]
12:27amarioguy has quit [Ping timeout: 480 seconds]
12:27amarioguy has joined #asahi-dev
12:35alcazar has joined #asahi-dev
12:43alcazar has quit [Ping timeout: 480 seconds]
12:45alcazar has joined #asahi-dev
12:48Glanzmann has joined #asahi-dev
12:52veloek has joined #asahi-dev
12:53alcazar has quit [Ping timeout: 480 seconds]
13:01veloek has quit [Quit: leaving]
13:03alcazar has joined #asahi-dev
13:09veloek has joined #asahi-dev
13:12alcazar has quit [Ping timeout: 480 seconds]
13:21alcazar has joined #asahi-dev
13:29alcazar has quit [Ping timeout: 480 seconds]
13:30alcazar has joined #asahi-dev
13:34amarioguy has quit [Remote host closed the connection]
13:34amarioguy has joined #asahi-dev
13:37bps2 has joined #asahi-dev
13:38alcazar has quit [Ping timeout: 480 seconds]
13:39yuyichao has quit [Ping timeout: 480 seconds]
13:44bps has quit [Ping timeout: 480 seconds]
13:48alcazar has joined #asahi-dev
13:57alcazar has quit [Ping timeout: 480 seconds]
13:58amarioguy has quit [Ping timeout: 480 seconds]
14:03amarioguy has joined #asahi-dev
14:07alcazar has joined #asahi-dev
14:15alcazar has quit [Ping timeout: 480 seconds]
14:18bps3 has joined #asahi-dev
14:20amarioguydoes m1n1 in hypervisor mode support tracing the SEP mailbox access?
14:20amarioguyiirc some presentation in 2016 mentioned that was handled by the AKF driver
14:20amarioguyyes, i'm volunteering to take on SEP work
14:20amarioguyidk if this belongs in the RE chat or smth, will move there if that's the case
14:24bps2 has quit [Ping timeout: 480 seconds]
14:25alcazar has joined #asahi-dev
14:26the_lanetly_052 has joined #asahi-dev
14:34alcazar has quit [Ping timeout: 480 seconds]
14:37wCPO6 has joined #asahi-dev
14:42alcazar has joined #asahi-dev
14:45yuyichao has joined #asahi-dev
14:47Guest1043 has quit [Ping timeout: 480 seconds]
14:51alcazar has quit [Ping timeout: 480 seconds]
15:01alcazar has joined #asahi-dev
15:09alcazar has quit [Ping timeout: 480 seconds]
15:11kameks has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
15:12nicolas17 has joined #asahi-dev
15:16amarioguyquick 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
15:16amarioguyor do we just make our own branch
15:17j`eymake your own branch, markan will pull it in if its 'good enough'
15:17_jannau_we shout at marcan for kernel patches to be integrated into asahi. pull request do not work due to rebasing
15:18brentr123[m]Does anybody know if the Ubuntu devs are using asahis code?
15:18alcazar has joined #asahi-dev
15:20j`eyI havent seen anyone representing Ubuntu here
15:21jnin time, asahi patches will inevitably land in ubuntu
15:21jnsimply because they are landing in mainline linux
15:22j`eyyeah but m1n1 and uboot et al need specific work
15:25kevans91jannau: perfect, thanks!
15:29alcazar has quit [Ping timeout: 480 seconds]
15:31roxfan2 has joined #asahi-dev
15:32kevans91this seems to fix the u-boot support in the proxyclient: https://github.com/AsahiLinux/m1n1/pull/189
15:35amarioguy has quit [Remote host closed the connection]
15:36alcazar has joined #asahi-dev
15:43kevans91(broken in the sense that it didn't work by default because tty_dev is optional)
15:45alcazar has quit [Ping timeout: 480 seconds]
15:47bps3 has quit [Ping timeout: 480 seconds]
15:49gladiac has quit [Quit: k thx bye]
15:49alcazar has joined #asahi-dev
15:49gladiac has joined #asahi-dev
15:50gladiac has quit []
15:50gladiac has joined #asahi-dev
16:04alcazar has quit [Ping timeout: 480 seconds]
16:06kettenis_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
16:07kettenis_m1n1 and u-boot updates from the OS may be nice to have, but shouldn't be essential
16:07j`eyyeah, true
16:08kettenis_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
16:09kettenis_and folks who want to boot multiple OSes may need a distro that is aware of the paired ESP concept
16:12alcazar has joined #asahi-dev
16:19marcanthe main issue is going to be the firmware copy script and dealing with multi ESP
16:19marcanand yes, it will have an update/reinstall mode, not the least because apparently Apple sometimes breaks m1n1 with their updates...
16:20alcazar has quit [Ping timeout: 480 seconds]
16:22Glanzmannj`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.
16:24Glanzmannmarcan: I installed 12.3.1 on two systems (mini and air), no breakage for me.
16:29alcazar has joined #asahi-dev
16:30doggkruse has joined #asahi-dev
16:30jannauGlanzmann: main ubuntu arm64 mirror is http://ports.ubuntu.com/
16:32Glanzmannjannau: Thanks, I've written it down.
16:36fjtyfhd has joined #asahi-dev
16:36fjtyfhd has quit []
16:37alcazar has quit [Ping timeout: 480 seconds]
16:41MajorBiscuit has quit [Ping timeout: 480 seconds]
16:46caef^ has joined #asahi-dev
16:47alcazar has joined #asahi-dev
16:56alcazar has quit [Ping timeout: 480 seconds]
17:06alcazar has joined #asahi-dev
17:09MajorBiscuit has joined #asahi-dev
17:14alcazar has quit [Ping timeout: 480 seconds]
17:18yamii has joined #asahi-dev
17:19MajorBiscuit has quit [Ping timeout: 480 seconds]
17:22the_lanetly_052 has quit [Ping timeout: 480 seconds]
17:23alcazar has joined #asahi-dev
17:25nicolas17now that there's more people around
17:27nicolas17someone 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
17:27nicolas17but I don't actually know; how much of asahi's work would be even relevant?
17:31alcazar has quit [Ping timeout: 480 seconds]
17:32sventhere might be some stuff that can be reused (i2c) but I’d expect many things to be very different
17:33marcansome 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?
17:33svensome of the later chips with that checkm8 bug might be possible, but I know that at least dart is different
17:33svenand I think those also used dwc2
17:33marcanI wonder when they even introduced i2c, I wouldn't be surprised if that pasemi block is recent-ish and they were using samsung before
17:33svenyeah, maaaaybe some rtkit stuff. But I think even nvme used to be different
17:34marcanalso AIC, even if similar, would be wired completely differently to the FIQ stuff
17:34nicolas17sven: 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"
17:34marcanyeah, pretty much
17:34marcanI mean I expect it to just work on A14 if you have a way to run the code
17:35nicolas17but I wasn't sure if that was right
17:35marcanand going back from that would get progressively harder
17:35svenyeah. I know that the last chip with the checkm8 but would already be quite some effort
17:35marcanI do know the UART driver works all the way back at least, someone already tried that one :')
17:35marcanbut that's to be expected
17:35sveni don’t think DCP existed then and usb was definitely dwc2 with a different phy
17:36marcanDCP is definitely recent
17:36marcanso yeah, whole bespoke display controller driver to write there
17:36nicolas17oh yeah DCP
17:36nicolas17DCP is A14
17:37svenso lots of work either way
17:37svensomeone should “just” find a bootrom bug so that I can run Linux on those M1 iPads please ;)
17:41alcazar has joined #asahi-dev
17:42brentr123[m]sven: How about for those devices that have checkrain
17:42brentr123[m]Oh nevermind specifically M1
17:42svenplease re-read the discussion, we’ve covered that
17:43nicolas17last week I suddenly remembered I still had the sandcastle APFS volume in my iPhone 7 eating a gigabyte or two ^^
17:49alcazar has quit [Ping timeout: 480 seconds]
17:51caef^ has quit [Ping timeout: 480 seconds]
18:00nyx_o has quit [Quit: WeeChat 3.5]
18:00alcazar has joined #asahi-dev
18:00roxfan2 is now known as roxfan
18:08alcazar has quit [Ping timeout: 480 seconds]
18:17alcazar has joined #asahi-dev
18:18chengsun has joined #asahi-dev
18:19c10l has quit [Quit: Bye o/]
18:23c10l has joined #asahi-dev
18:23c10l has quit []
18:23nyx_o has joined #asahi-dev
18:26alcazar has quit [Ping timeout: 480 seconds]
18:27the_lanetly_052 has joined #asahi-dev
18:35alcazar has joined #asahi-dev
18:43alcazar has quit [Ping timeout: 480 seconds]
18:50c10l has joined #asahi-dev
18:53alcazar has joined #asahi-dev
19:00doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:01alcazar has quit [Ping timeout: 480 seconds]
19:09alcazar has joined #asahi-dev
19:17alcazar has quit [Ping timeout: 480 seconds]
19:26alcazar has joined #asahi-dev
19:31the_lanetly_052__ has joined #asahi-dev
19:34alcazar has quit [Ping timeout: 480 seconds]
19:37the_lanetly_052 has quit [Ping timeout: 480 seconds]
19:42alcazar has joined #asahi-dev
19:50alcazar has quit [Ping timeout: 480 seconds]
19:59alcazar has joined #asahi-dev
20:01c10l has quit [Quit: Bye o/]
20:07alcazar has quit [Ping timeout: 480 seconds]
20:17alcazar has joined #asahi-dev
20:21c10l has joined #asahi-dev
20:22c10l has quit []
20:25alcazar has quit [Ping timeout: 480 seconds]
20:33alcazar has joined #asahi-dev
20:36c10l has joined #asahi-dev
20:41alcazar has quit [Ping timeout: 480 seconds]
20:42c10l has quit [Quit: Bye o/]
20:49c10l has joined #asahi-dev
20:50c10l has quit []
20:50alcazar has joined #asahi-dev
20:59alcazar has quit [Ping timeout: 480 seconds]
21:01jannaurqou_: t600x is fixed, m1n1 didn't set the dart type
21:08alcazar has joined #asahi-dev
21:17alcazar has quit [Ping timeout: 480 seconds]
21:26alcazar has joined #asahi-dev
21:39alcazar has quit [Ping timeout: 480 seconds]
21:40alcazar has joined #asahi-dev
21:49_whitelogger has joined #asahi-dev
21:51j`eyrqou_: 4k or 16k page size?
21:51sirn has joined #asahi-dev
21:51phire_ has joined #asahi-dev
21:51ChaosPrincess has joined #asahi-dev
21:51the_lanetly_052___ has joined #asahi-dev
21:51jakebot has joined #asahi-dev
21:51robinp_ has joined #asahi-dev
21:51riatre has joined #asahi-dev
21:51hizonx has joined #asahi-dev
21:51lethalbit has joined #asahi-dev
21:51dougall has joined #asahi-dev
21:52rqou_ah, 4k with the patch that's been floating around
21:53abrasive has joined #asahi-dev
21:53j`eyI guess jannau is only testing with 16K for nw
21:56rqou_actually, wait
21:56rqou_i might have accidentally dropped the 4k patch from my kernel
21:57j`eythat wont affect this, afaict
21:57alcazar has joined #asahi-dev
22:01MajorBiscuit has quit [Quit: WeeChat 3.4]
22:05alcazar has quit [Ping timeout: 480 seconds]
22:08shenki has joined #asahi-dev
22:11alcazar has joined #asahi-dev
22:14rqou_it still doesn't work, but it gets much further once i remember to actually cherry-pick in the 4k page patch
22:19alcazar has quit [Ping timeout: 480 seconds]
22:26rqou_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
22:27alcazar has joined #asahi-dev
22:41c10l has joined #asahi-dev
22:42c10l has quit []
22:45rqou_oh huh, this is indeed a 4k kernel limitation
22:46caef^ has joined #asahi-dev
22:46c10l has joined #asahi-dev
22:47rqou_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."
22:47rqou_but it looks like the new DCP driver indeed requires that function?
22:48c10l has quit []
22:49c10l has joined #asahi-dev
22:49alcazar has quit [Ping timeout: 480 seconds]
22:51j`eyprobably via drm_gem_cma_get_sg_table
22:51rqou_no it just outright calls that function when mapping buffers for the DCP
22:52j`eyI would just suggest using 16k for now :P
22:52rqou_aaand, with that, i have a working DCP driver that boots to the desktop!
22:52rqou_good job jannau et al
22:53rqou_no i care about FEX that much to really want this to work
22:55j`eythen try remove that early return in get_sgtable ;)
22:55c10l has quit [Quit: Bye o/]
22:55rqou_yeah, i literally just did
22:55rqou_and it works
22:55rqou_DCP works and gets to desktop, with the notch breaking the UI and everything
22:56c10l has joined #asahi-dev
22:56j`eyblack hole
22:57alcazar has joined #asahi-dev
23:01rqou_hmm, broke nvme?
23:01rqou_but it worked via m1n1 hv
23:04Dcow[m]1how you get to desktop without nvme?
23:04rqou_no, it was working earlier when i was testing it in the m1n1 hypervisor
23:04rqou_but setting up an untethered boot doesn't seem to work
23:05alcazar has quit [Ping timeout: 480 seconds]
23:07atsalyuk has quit [Ping timeout: 480 seconds]
23:11rqou_very likely there's a race condition?
23:11Dcow[m]1oh, sven love them
23:15alcazar has joined #asahi-dev
23:21rqou_yeah, i seem to be losing the race condition now
23:21rqou_but DCP itself works
23:23alcazar has quit [Ping timeout: 480 seconds]
23:25rqou_unfortunately i'm running, uh, this kernel https://github.com/rqou/linux/tree/work
23:26rqou_which is the asahi branch + sven's atcphy + my own m1 max atcphy + DCP + rebased 4k iommu patch
23:27rqou_not exactly the standard thing everyone else is
23:28j`eyhmm I saw 'NVMMU TCB invalidation failed' before th patch from marcan to shutdown nvme in uboot
23:29j`eySART error. Interrupt status 0x80, SART has interrupts..?
23:29alcazar has joined #asahi-dev
23:29alcazar has quit [Remote host closed the connection]
23:36bps3 has joined #asahi-dev
23:40rqou_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
23:40rqou_i sure hope i don't end up with major disk corruption due to a hidden bug at some point in the future
23:42rqou_but yeah, tl;dr everything works
23:43rqou_fwiw attempting to not load the DCP driver until the desktop is reached and then manually modprobe-ing it doesn't work either
23:46rqou_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
…