ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
A_L_I_C_E has quit [Remote host closed the connection]
A_L_I_C_E has joined #asahi-dev
hightower3 has joined #asahi-dev
hightower2 has quit [Ping timeout: 480 seconds]
gabuscus has quit []
gabuscus has joined #asahi-dev
newiz has joined #asahi-dev
cylm has joined #asahi-dev
kedde has quit [Ping timeout: 480 seconds]
<marcan> jannau: Argh, I already had the installer changes locally, just didn't want to push to stop people from doing silly things..
chadmed_ has quit [Remote host closed the connection]
nyilas has joined #asahi-dev
Hibyehello has joined #asahi-dev
kedde has joined #asahi-dev
Hibyehello_ has quit [Ping timeout: 480 seconds]
newiz has quit [Quit: Konversation terminated!]
MajorBiscuit has joined #asahi-dev
<maz> eric_engestrom: you need to select the *PMU* that matches the core you are using.
<maz> the default is probably the PMU type that matches cores 0-3, which leads to nothing on core 4...
gladiac has joined #asahi-dev
<jannau> marcan: np, changes are not complicated and I had them most of them since the m2 mac mini arrived
nyilas has quit [Remote host closed the connection]
<jannau> did you see https://github.com/AsahiLinux/linux/pull/134 ? the ps_isp_sys change is maybe worth looking into further
<jannau> with the pcie fix the bringup branch works on m1/m1 max/m2 with dcp firmware 12.3 and 13.2
nyilas has joined #asahi-dev
Nae has joined #asahi-dev
<jannau> maz: would it make sense to support something like https://lore.kernel.org/lkml/YE+avkajxbGJMOoM@krava/T/ ? that looks to me like more intuitive default behavior
cylm has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Quit: WeeChat 3.6]
bps has joined #asahi-dev
<maz> jannau: can't see why not, given that this a pure userspace approach. I'm just worried that it will lead to "interesting" results on implementations that have events numbers that count vastly different things on different micro architectures...
<maz> for the Apple stuff, it's probably OK. but the ARM implementations are... insane.
<jannau> shouldn't that be still ok as long as perf doesn't aggregate counters from different PMUs? might be impossible to interpret the results but shouldn't be worse than not counting anything due to running on the wrong CPU
jn has quit [Read error: No route to host]
jn has joined #asahi-dev
<maz> jannau: if we don't get aggregation, it should be OK indeed.
kaprests has quit [Ping timeout: 480 seconds]
kaprests has joined #asahi-dev
bpye has quit [Ping timeout: 480 seconds]
bpye has joined #asahi-dev
nsklaus has joined #asahi-dev
<kettenis> hmm, I'm probably at the point where I want to do a "proper" uefi install on my m2 pro mini
<kettenis> or is it easy to produce the firmware init ramdisk cpio by running one of the python scripts on macOS?
<kettenis> in any case I just pushed the M2 Pro/Max U-Boot support to the asahi branch
<jannau> test.sh should work locally on macos
<jannau> that will install a broken m1n1 +dtb + u-boot boot.bin but I assume you're able update it
<chadmed> i shoehorned 13.2 support into the installer for the m2 pro mini a while ago but its horrid and uses a stale branch of m1n1
<chadmed> works though!
<kettenis> I did something similar, but initailly just did the proxy install
<kettenis> but I should be able to upload the cpio using the proxy shouldn't I?
Nae has quit [Quit: Connection closed for inactivity]
cylm has joined #asahi-dev
bpye has quit [Ping timeout: 480 seconds]
bps has quit [Ping timeout: 480 seconds]
cylm_ has joined #asahi-dev
cylm has quit [Ping timeout: 480 seconds]
bpye has joined #asahi-dev
DarkShadow44 has quit [Quit: ZNC - https://znc.in]
DarkShadow44 has joined #asahi-dev
Ariadne has quit [Remote host closed the connection]
Ariadne has joined #asahi-dev
stipa is now known as Guest10828
stipa has joined #asahi-dev
Guest10828 has quit [Read error: Connection reset by peer]
robinp has quit [Quit: Connection closed for inactivity]
chadmed has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-dev
bps has joined #asahi-dev
bcrumb has joined #asahi-dev
bcrumb has quit [Quit: WeeChat 3.8]
linuxgemini1 has joined #asahi-dev
cynthia has quit [Remote host closed the connection]
cynthia has joined #asahi-dev
linuxgemini has quit [Ping timeout: 480 seconds]
cynthia has quit [Ping timeout: 480 seconds]
cynthia has joined #asahi-dev
<marcan> let me just push the installer to dev, no point in making everyone's life difficult with this many people interested
<maz> marcan: now you're making it way too tempting for me to go and grab an M2 pro...
<marcan> pushed alx.sh/dev, you probably want to use 13.3 firmware since it sounds like that's going to be the new target
<marcan> obviously it will install a broken u-boot/kernel if you do a normal install, but good enough to get a rootfs on there and then develop in tethered mode
<marcan> plain m1n1 should work though, and I assume everyone here knows how to install custom m1n1/uboot builds :p
<marcan> maz: :)
<jannau> maz: your use case (serial, ethernet, usb3) is already supported :)
<marcan> still no display out, mine's still in a box pending that (it's going to be a server but I don't want to put it into prod until it's officially supported...)
<chadmed> maz: the thing is stupid fast and everything you need already works
<maz> stop it, all of you! :D
<kettenis> meanwhile, I have successfully ported the pcie changes to u-boot
<marcan> nice :)
<kettenis> marcan: found a minor issue in your driver while doing so
<marcan> my drivers, broken? never!
<marcan> (still no idea how MTP works on M2...)
<kettenis> the second phy_lane_ctl poke still uses the hardcoded register number
cynthia has quit [Ping timeout: 480 seconds]
<kettenis> so, no, not that one jannau ;)
<kettenis> (I fixed that one without realizing it was broken)
<marcan> jannau: grabbed that one
<marcan> kettenis: that one's just a bug on paper since there is only one nonzero value, but fixed :)
<kettenis> hey I didn't call it a bug ;)
<marcan> :>
<jannau> marcan: there are still devicetree fixes in https://github.com/AsahiLinux/linux/pull/134
cynthia has joined #asahi-dev
<jannau> the isp power-domain on j474 might justify a second look
<marcan> jannau: looks reasonable to me
minecrell has quit [Read error: Connection timed out]
<kettenis> I made a start looking at bcm4388; it seems the bcm4389 android driver has some bcm4388 bits in it
minecrell has joined #asahi-dev
<kettenis> I'm probably going to concentrate on asmedia fwload support in u-boot before pursuing that further though
<marcan> I would hope the wifi is mostly just another chipid/otp offset/tcm offset
<marcan> if I end up having to implement more firmware APIs for it... :/
<marcan> (at least for feature parity, wifi 6 who knows, we don't even have full WPA3 support yet)
<kettenis> definitely a different otp offset
<marcan> I never heard back from the broadcom guy about whether my WPA3 SAE patch worked on anything non-apple...
<marcan> I know it doesn't work on some raspberry pi thing, but that could just be firmware
<marcan> meanwhile still not a single email from cypress
<kettenis> I found the 0x15 "system vendor" tag, but didn't manage to work my way back to the start of the OTP area
j`ey_ is now known as j`ey
kedde has quit [Ping timeout: 480 seconds]
gladiac has quit [Quit: k thx bye]
leviz has joined #asahi-dev
leviz has quit []
leviz has joined #asahi-dev
leviz has quit []
gladiac has joined #asahi-dev
cylm_ has quit [Quit: WeeChat 3.6]
jn has quit [Remote host closed the connection]
jn has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
MajorBiscuit has quit []
MajorBiscuit has joined #asahi-dev
MajorBiscuit has quit [Ping timeout: 480 seconds]
bps has quit [Ping timeout: 480 seconds]
raveling has quit [Ping timeout: 480 seconds]
raveling has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
A_L_I_C_E has quit [Remote host closed the connection]
raveling has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
lawrence8 has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
A_L_I_C_E has joined #asahi-dev
lawrence has quit [Ping timeout: 480 seconds]
lawrence8 is now known as lawrence
A_L_I_C_E has quit [Read error: Connection reset by peer]
A_L_I_C_E has joined #asahi-dev
raveling has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
leviz has joined #asahi-dev
leviz has quit []
A_L_I_C_E has quit [Quit: Quit]
A_L_I_C_E has joined #asahi-dev
raveling has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
kettenis has quit [Ping timeout: 480 seconds]
kettenis has joined #asahi-dev
raveling has joined #asahi-dev
avi has joined #asahi-dev
avi has quit []
MajorBiscuit has quit [Quit: WeeChat 3.6]
raveling has quit [Ping timeout: 480 seconds]
A_L_I_C_E has quit [Read error: Connection reset by peer]
A_L_I_C_E has joined #asahi-dev
pthariensflame has joined #asahi-dev
gladiac has quit [Quit: k thx bye]
pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
<ChaosPrincess> so, whats the deal with devices having two darts
<ChaosPrincess> dispdfr has two, the adt shows reg = [Container:addr = 0x0000000028304000 size = 0x0000000000004000, Container:addr = 0x0000000028300000 size = 0x0000000000004000]
<ChaosPrincess> i did dart = DART.from_adt(u, "arm-io/dart-dispdfr") in m1n1, and then iova = dart.iomap(0, buf, fb_size)
<ChaosPrincess> wrote iova to reg, everything works
<ChaosPrincess> on linux i have in adt iommus = <&displaydfr_dart_1 0>; it has reg = <0x2 0x28304000 0x0 0x4000>;
<ChaosPrincess> writing iova to register, getting a translation fault from dart at 228300000
<ChaosPrincess> what am i doing wrong
raveling has joined #asahi-dev
<jannau> we usually ignore the second instance. except for dwc3. you did that implicitly with the python code
<jannau> def from_adt(cls, u, path, instance=0, **kwargs):
<jannau> def from_adt(cls, u, path, instance=0, **kwargs):
<jannau> dart_addr = u.adt[path].get_reg(instance)[0]
<ChaosPrincess> Yea i saw that python uses the first instance, the problem is that i am getting translation faults from second one
<jannau> either don't add the second instance to the dt or if that doesn't work add both iommus to displaydfr, cmp. with dwc3
A_L_I_C_E has quit [Read error: Connection reset by peer]
A_L_I_C_E has joined #asahi-dev
A_L_I_C_E has quit [Remote host closed the connection]
<sven> if you get translation faults on the second dart something tried to dma through it.
<sven> that usually only happens when that dart is actually used
<sven> do you recognize the fault address?
<sven> those two darts are very suspicious because they’re just next to each other
<sven> are you sure they are darts and not dart plus what apple calls SMMU or something like that?
<sven> Look at the dart node, there’s an instance property
<sven> for that dispdfr thingy it claims dart and smmu
<sven> so that second thing is that apple SMMU (not to be confused with arm‘s architectural SMMU)
<sven> just ignore it
<jannau> we use only instance 0 for dart-disp0/dispext*
<sven> that also seems to be dart plus smmu
<sven> just look at that instance property in the ADT. It’d a bit weird but if that thing contains the SMMU fourcc and the two regs of the dart are separated by 0x4000 the second thing isn’t a DART
<sven> I never figured out exactly what it is but it seems to expose the most recently accessed pagetable entries inside it’s MMIO
<sven> So it’s somehow related to the dart itself but no idea what exactly it does or why it’s separate
<sven> could just be a dart debug interface that’s not synthesized for each dart
bps has joined #asahi-dev
<kettenis> the model names for the M2 and M2 Pro mini in the dev installer are wrong
<kettenis> managed to work around it
nyilas has quit [Remote host closed the connection]
nsklaus has quit [Quit: ZZZzzz…]
bluetail42 has joined #asahi-dev
kedde has joined #asahi-dev
bluetail4 has quit [Ping timeout: 480 seconds]
raveling has quit [Ping timeout: 480 seconds]
A_L_I_C_E has joined #asahi-dev
raveling has joined #asahi-dev
pharonix71 has joined #asahi-dev
bps has quit [Remote host closed the connection]
<jannau> is there anything mtp related which could be global system fw dependent? it fails here with:
<jannau> 24e400000.mtp: RTKit buffer request outside SRAM region: [mem 0x24eca8000-0x24eca8fff]
<jannau> but I think the only thing I changed since yesterday is the 13.2 -> 13.3 macOS update
raveling has quit [Ping timeout: 480 seconds]
<jannau> not global firmware. still works when booted through the 12.3 stub. It's broken when booted via the hypervisor from the macOS 13.3 install
raveling has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
chadmed_ has joined #asahi-dev
raveling has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
A_L_I_C_E has quit [Remote host closed the connection]
amw has quit [Ping timeout: 480 seconds]