alexstore06 has quit [Remote host closed the connection]
alexstore06 has joined #asahi-dev
alexstor_ has joined #asahi-dev
alexstore06 has quit [Ping timeout: 480 seconds]
alexstor_ has quit [Remote host closed the connection]
alexstore06 has joined #asahi-dev
jmr2 has joined #asahi-dev
<jmr2>
alyssa: you mentionned a while ago that you might be interested in merging j_ey's version of Corellium's spi+keyboard patches. I have the keyboard working on the Air, on top of your 20211022 branch. Let me know. j_ey: thanks for the work, and kettenis: thanks for yesterday's DT commit that gave me the clues I was missing.
<jmr2>
*merging in your tree, not upstream...
<j_ey>
jix: might interest you ^
<jix>
is there a tree with a separate DT for the air already? I'm trying to get an overview of things (just got my HW yesterday) and I noticed that I need to adjust the DT (remove 2 pcie darts) to get 20211022 to boot on my air
<jix>
and yeah I am very much interested :)
<jmr2>
No separate DT that I'm aware of. 20211022 boots successfully on my Air as-is.
<jix>
huh interesting I was getting a panic when initializing the 2nd pcie dart, and I checked the ADT on the device and it indeed just has one for me... is that not expected?
<kov>
jmr2, great, thanks, will give it a go in a bit! I think my dts looked almost like that, but I did not have the last bit, I assume the second to last is essentially cleanup right?
<j_ey>
yes
<j_ey>
if you mean the interrupts-extended bit
<kov>
exactly
<jix>
jmr2: I think I also tried it without the HV, but let me double check... in any case the DT wouldn't match my ADT
<jix>
yeah even without the HV I do get a panic in apple_dart_probe while probing the one at 682008000 which isn't in my ADT... so are ther different HW revisions? or what is happening here?
StupidYui has quit [Read error: Connection reset by peer]
<jmr2>
kov: second to last was required. Othewise, it was using aic as the parent, and failing to initialize, trying to read a 3rd interrupt cell. No idea why - I don't pretend to know what I'm doing...
<jmr2>
jix: no idea
yuyichao_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
jmr2 has quit [Quit: Page closed]
<j_ey>
probably related to the last change.. but the -extended is the way we should do it anyway
yuyichao has joined #asahi-dev
jacoxon has quit []
jacoxon has joined #asahi-dev
<jix>
ok, the macbook air ADT marcan posted a while back also only has the one pcie dart, so I asssume jmr2 might have used a config without CONFIG_APPLE_DART?
<jix>
probably would be a good idea to maintain different DTs at this point then and not put everything in the common t8103.dtsi
yuyichao_ has quit [Ping timeout: 480 seconds]
<marcan>
jix: the .dtsi is the SoC, the bits are supposed to be specialized in the .dts files that include it
<marcan>
the parent file can enable/disable blocks and such, and override things
<jix>
ah so all darts would be in the dtsi but the dts for the air would disable 2 of them?
<marcan>
yes
<marcan>
or possibly the converse
<marcan>
note how the dts already enables the UARTs selectively
<marcan>
meanwhile today I, uh, spent the whole day doing panic data recovery on a friends' iPhone :/
<jix>
well then let me rephrase: it'd be a good idea to maintain the DTs in a way that doesn't require manually patching things when not using a mac mini ;)
<marcan>
not exactly how I planned to spend the day. also the entire ecosystem of jailbreak/etc tooling is a gian mess outside of standard use cases
<marcan>
I think I was 20 levels deep in the problem stack and about to give up when I had a really lucky break and something fixed itself enough to let me continue and make it work again
yuyichao has quit [Ping timeout: 480 seconds]
<marcan>
jix: that's called we need mba/mbp DTs
<marcan>
m1n1 already has the ability to filter DTs by machine, I added that recently (it won't even boot a mini DT on an air any more)
<marcan>
so you just cat all of them together and it finds the right one
<jix>
I'm still a bit lost regarding what happens in which trees
<marcan>
yeah... after 5.16 I'm going to finally put together a bit of a canonical branch with this stuff
minecrell has quit [Read error: Connection reset by peer]
yuyichao has joined #asahi-dev
<marcan>
it's just all over the place right now
<marcan>
but a lot of things are getting mainlined
<marcan>
there were a bunch of weirdo dependency chains that are getting simplified now
<j_ey>
still very dependent on mailbox/rtkit
<marcan>
but feel free to send me some patches to add a DT for the air (and/or mbp); non-schema DT changes like these are easy to review, just CC the usual folks/MLs so everyone gets a chance to see it :)
minecrell has joined #asahi-dev
<marcan>
j_ey: yes, that's the next big blocker, for nvme and soon smc and gfx and more
<marcan>
also power states, but you can kind of ignore that the way the APIs work and just enable stuff in m1n1 prior to booting, kinda
<jix>
I completely lack the big picture regarding everything, but listing stuff that is present and not stuff that is absent does seem clearer to me
jmr2 has joined #asahi-dev
<jix>
if I have a working /dev/input/event1 (using the patches jmr2 collected) can I attach it to the console? can I do that automatically? I fail at finding the relevant documentation for this stuff
<j_ey>
set console=tty0 in your commandline args
<j_ey>
im not sure of how to make it the default, other than that
<jix>
unrelated, but something freezes for me sometimes if I leave linux running in the HV for longer ... virtual uart and hypervisor ^C don't respond anymore, but the devices are still there until I hard reboot
<jix>
console=tty0 did the trick, thanks :)
<j_ey>
I get that sometimes, dunno why
<jix>
although now I'm puzzled how that ends up doing this, given that without it, the keyboard input didn't end up in /dev/tty0 AFAICT
aleasto has quit [Quit: Konversation terminated!]
aleasto has joined #asahi-dev
<jmr2>
j_ey, kov: you're correct - it's the added interrupt-cells that's important. interrupt-parent+interrupts and interrupts-extended both work. However, using interrupts-extended give a "Missing property '#interrupt-cells'" warning when compiling the DTB, which is not present when using the two-lines syntax. I only tested with interrupts-extended after fixing that warning. Sorry for the confusion.
<j_ey>
jmr2: no worries
<jix>
jmr2: do you have CONFIG_APPLE_DART set? if not that would probably explain why you didn't have the issues I had with the DT
aleasto has quit [Quit: Konversation terminated!]
<jmr2>
jix: yes, it's set. I started from alyssa's config, available here: www.rosenzweig.io/.config
<jmr2>
But given that you have a workaround, I'm not sure it's worth digging that much.
<jmr2>
Could be because I'm using a version of m1n1 from a little while ago. Given marcan's comments, updating is on my list.
aleasto has joined #asahi-dev
<kettenis>
there are a few different ways how we can handle the different models
<kettenis>
the DTs for the different models I mean
nsklaus has quit [Read error: Connection reset by peer]
nsklaus has joined #asahi-dev
nsklaus has quit []
<kettenis>
one question I have is what we should do with the nodes for the root ports
<kettenis>
my current thinking is that the mba/mbp should only have one root port node and the mini should have all three
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jmr2>
marcan: just FYI, m1n1 2736f0d (Sept. 24th, on stub partition) chainloading 73180e2 (latest) and then running linux.py still successfully boots an air with a j274 DT.