marcan 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
<jannau> marcan: PR with a revert (Aand tracing fixes) in https://github.com/AsahiLinux/linux/pull/90
roxfan2 has joined #asahi-dev
roxfan has quit [Ping timeout: 480 seconds]
user982492 has joined #asahi-dev
renatorabelo has quit [Ping timeout: 480 seconds]
<marcan> cyrozap: could possibly be a PCIe issue
<marcan> the SD card controller has the opposite problem: it has an issue on Apple machines that the same chips don't seem to have anywhere else
<marcan> (<32bit writes don't work)
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi-dev
<marcan> jannau: someone mentioned a race between gdm and DCP (probably). right now the DRM device is only registered asynchronously of the probe function, right?
<marcan> can we add a completion or something to either DCP or display subsystem to ensure that when all probe functions have returned DCP is alive?
<marcan> I think udev & co will only wait for probe to complete effectively, and without blocking there graphical stuff could try to start before DCP is actually there
digicyc has quit [Remote host closed the connection]
digicyc has joined #asahi-dev
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bcrumb has joined #asahi-dev
bcrumb_ has joined #asahi-dev
bcrumb has quit [Ping timeout: 480 seconds]
bcrumb_ has quit [Quit: WeeChat 3.7.1]
renatorabelo has joined #asahi-dev
bcrumb has joined #asahi-dev
bcrumb has quit []
bcrumb has joined #asahi-dev
bcrumb has quit []
amw has joined #asahi-dev
SSJ_GZ has joined #asahi-dev
arekm has quit [Remote host closed the connection]
<kettenis> marcan: instead of setting the suspend frquency in the cpufreq driver, would marking the lowest state as "opp-suspend" work?
MajorBiscuit has joined #asahi-dev
<marcan> kettenis: not with the current driver, the code would have to be changed to explicitly pick that up from the OPP
<marcan> like policy->suspend_freq = dev_pm_opp_get_suspend_opp_freq(...) / 1000
<kettenis> not worth it then ;)
bcrumb has joined #asahi-dev
<marcan> d
<cyrozap> marcan: I haven't ruled out PCIe as the issue yet, but based on the traces I've analyzed (I have some PCIe analyzer equipment), I don't believe it's an issue at the PCIe layer. I've been working on scripts to parse the trace data (https://github.com/cyrozap/agilent-pcie-analyzer-re), and have some (unpublished, hacked-together) code to do higher-level tracing and analysis of the xHCI traffic, but the
<cyrozap> xHCI spec is _huge_ so progress on that is slow :/
<marcan> tell me about it (I wrote the QEMU virtual xHCI emulation...)
<marcan> it could also be a driver issue though, perhaps a bad interaction with that particular IOMMU driver
<cyrozap> Yeah, that's the worst part--the bug could be in the hardware (I've already found a couple other hardware bugs), or in the firmware, or in the IOMMU driver, or in how the xhci driver interacts with the IOMMU driver. So, basically _anywhere_.
arekm has joined #asahi-dev
<_jannau_> marcan: yes, we probably should use dcp/depext* as components of the drm driver (include/linux/component.h)
arekm has quit [Remote host closed the connection]
<cyrozap> marcan: btw, if you want to deliberately trigger an IOMMU access fault, you can use the BAR0 registers to access the internal MMIO registers of the host controller's PCIe controller (holy indirection, Batman!) to perform arbitrary DMA reads and writes. I haven't publicly documented that for this generation of the host controller (I have some registers documented for the previous generation, the
<_jannau_> full device links would be an alternative but I haven't looked into what would be required to create them
<cyrozap> ASM1142: https://github.com/cyrozap/asmedia-xhc-re/blob/3817694cb8c47f1a959b91cf0b91749aeac3d5af/data/regs-asm1142.yaml#L561-L648), but it's basically the same register interface at a different offset, so I can provide that info if you need it.
<_jannau_> would be annoying if we had to create custom of device probe for that to add the device links
<marcan> ah neat, drm_of_component_* is a thing
<marcan> cyrozap: I already fixed one of these in the FireWire OHCI driver - some JMicron controllers overread queue entries (because they read a fixed size regardless of the queue entry type), so the driver has to leave a bit of space at the end to avoid it ever overreading into unmapped space
<marcan> it could be something dumb like that
arekm has joined #asahi-dev
<cyrozap> marcan: It very well could be. This controller has a limitation where it will read two 32-bit dwords when you tell it to read 1-8 bytes, and four dwords if you tell it to read 9-16 bytes, and while that shouldn't normally cause any issues, it wouldn't surprise me if there were more such quirks in its design. Especially since the PCIe interface has a "software-controlled" part (for use by the 8051) and
<cyrozap> a "hardware-controlled" part (for the USB data TX/RX), and even if the quirks of the software-controlled part don't cause issues, the as-yet unknown quirks of the hardware-controlled part could. Which is why I'm writing this analyzer code--to find exactly where the bad write happens, since the POWER9 doesn't send a Completer Abort TLP until the device tries reading again, which could be a very long
<cyrozap> time after the original bad write.
<marcan> yeah, makes sense
SSJ_GZ has quit [Read error: No route to host]
SSJ_GZ has joined #asahi-dev
<ncopa> good morning! how is the 6.1.0 rebase going?
<ncopa> i wonder if i should give the rebase a try? do you merge v6.1 -> asahi branch or do you rebase on top of v6.1?
<j`ey> the rebase is done.. but it needs a few extra changes on top
<j`ey> (asahi-wip is the rebase, but there were some breakages)
<j`ey> ncopa: the asahi branch is made up of feature/topic branches: the bits/ branches (eg: bits/130-cpufreq)
<j`ey> each of those is rebased, and then theyre all merged into one branch
<ncopa> aha
MajorBiscuit has quit [Ping timeout: 480 seconds]
<ncopa> so, i bought a mbp with the intention to run (and build) alpine linux on it
<ncopa> would it make sense to add alpine linux as an option for the asahi installer?
bcrumb has quit [Quit: WeeChat 3.7.1]
<sven> sure, I assume you’re involved with the alpine Linux project?
<ncopa> i am
<mps> sven: ncopa is alpine project leader
<ncopa> well, founder at least
<mps> and I hope he will save me from trying to make alpine easier on m1 ;)
renatorabelo has quit [Ping timeout: 480 seconds]
<mps> (though alpine is already easy)
<j`ey> ncopa: https://github.com/AsahiLinux/asahi-installer/blob/main/data/installer_data.json this is probably the only relevant part of the installer
renatorabelo has joined #asahi-dev
renatorabelo has quit [Read error: Connection reset by peer]
MajorBiscuit has joined #asahi-dev
<kettenis> marcan: the asahi streams are no longer listed under https://www.youtube.com/@marcan42/videos
<kettenis> took me some effort yesterday to find the last stream
<_jannau_> is there somewhere a link to https://www.youtube.com/@marcan42/videos ?
<kettenis> maybe not
<kettenis> but that is where I looked
<j`ey> pretty sure that's just a youtube change?
<kettenis> because why would I click on "Live" of I wanted to see a stream that had already finished?
<kettenis> so yes, youtube UI retardedness
<_jannau_> yes, it's a youtube change splitting (old) live streams from videos
<kettenis> sorry for the noise
<sven> ncopa: shouldn’t be an issue then since that probably as official as it gets ;)
<sven> *that’s
<sven> we only don’t want to put user-contributed images where there’s no real QA, etc. which would then lead to users spamming us and the distro with big reports neither requested
<sven> *bug
<ncopa> yeah, i understand that. i wouldn't want add it there unless i have a plan for long term maintenance
<ncopa> where are the source to generatae the zip files here? https://de.mirror.asahilinux.org/os/
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
<j`ey> ncopa: yup
<ncopa> i have read up a bit on the boot loader etc, and got some help from mps. this is a bit complicated :)
<ncopa> now, my plan is to have an install for building stuff, like kernels etc, and i would prefer not to wipe this dev env when working on the installer
<ncopa> so, I'm thinking that i should have 2 instances of asahi. one dev env and one smaller that i wipe to test the installer
<ncopa> if i understand things correcly, i should create a second 2.5GB iBoot/MacOS/m1n1 APFS container + uefi partition + rootfs?
<j`ey> you can just run the installer a second time, yup
<ncopa> or can i reuse the APFS container and only create a second uefi + root partition?
<qyliss> A
<j`ey> not sure, but I guess if you want to test normal user installs, just having the second copy would be best?
<ncopa> yeah, that makes sense
<j`ey> ncopa: which model did you get?
<kettenis> the APFS and UEFI partition are more or less tied together so that wouldn't make sense
<ncopa> mpb 14" 2021
<kettenis> multiple OSes could share a single set of APFS+UEFI, but then they get the same set of firmware and the same device tree
<kettenis> that means an upgrade of any of those components from one OS may break the other OS
<kettenis> if your goal is to make alpine work well alongside asahi, you should install asahi first and then create the partitions for alpine
<ncopa> yeah, i'll create a second APFS+UEFI+rootfs
<kettenis> and make sure that whenever alpine touches the UEFI partition, it uses "its" UEFI partition (the 2nd one)
Retr0id5 has joined #asahi-dev
Retr0id has quit [Read error: Connection reset by peer]
Retr0id5 is now known as Retr0id
sirn- has joined #asahi-dev
sirn has quit [Ping timeout: 480 seconds]
sirn- is now known as sirn
millenialhacker has joined #asahi-dev
bcrumb has joined #asahi-dev
bcrumb has quit [Quit: WeeChat 3.7.1]
<zzywysm_> ncopa: reminder that you can't redistribute Apple's firmware blobs
<ncopa> 👍
bcrumb has joined #asahi-dev
c10l has quit [Quit: Ping timeout (120 seconds)]
c10l has joined #asahi-dev
bcrumb has quit [Ping timeout: 480 seconds]
cylm has joined #asahi-dev
bcrumb has joined #asahi-dev
c10l has quit [Quit: Ping timeout (120 seconds)]
c10l has joined #asahi-dev
bcrumb has quit [Read error: Connection reset by peer]
<ncopa> i didn't. will read. thanks
<ncopa> a lot to read...
<mps> ncopa: oh yes, I forgot to tell you about above url, sorry
bcrumb has joined #asahi-dev
bcrumb has quit [Quit: WeeChat 3.7.1]
MajorBiscuit has quit [Ping timeout: 480 seconds]
user982492 has joined #asahi-dev
joske has joined #asahi-dev
joske has quit []
millenialhacker has quit []
zzywysm has joined #asahi-dev
iaguis has joined #asahi-dev
zzywysm_ has quit [Ping timeout: 480 seconds]
zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cylm has quit [Ping timeout: 480 seconds]
zzywysm has joined #asahi-dev
zzywysm has quit []
zzywysm has joined #asahi-dev
psykose has quit [Remote host closed the connection]
psykose has joined #asahi-dev
derzahl has joined #asahi-dev
yamii has quit [Quit: WeeChat 3.6]
yamii has joined #asahi-dev
TheFirst has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheFirst has joined #asahi-dev
user982492 has joined #asahi-dev
^GaveUp^ has joined #asahi-dev
TheFirst has quit [Ping timeout: 480 seconds]
^GaveUp^ is now known as TheFirst
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MajorBiscuit has joined #asahi-dev
kujeger- has joined #asahi-dev
kujeger has quit [Ping timeout: 480 seconds]
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
MajorBiscuit has quit [Ping timeout: 480 seconds]
beeblebrox has quit [Quit: Konversation terminated!]
derzahl has quit [Ping timeout: 480 seconds]
eli has joined #asahi-dev
derzahl has joined #asahi-dev
systwi_ has joined #asahi-dev