#
…

2022-12-13

00:03jannaumarcan: PR with a revert (Aand tracing fixes) in https://github.com/AsahiLinux/linux/pull/90
00:07roxfan2 has joined #asahi-dev
00:10roxfan has quit [Ping timeout: 480 seconds]
00:45user982492 has joined #asahi-dev
00:48renatorabelo has quit [Ping timeout: 480 seconds]
00:51marcancyrozap: could possibly be a PCIe issue
00:51marcanthe 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
00:51marcan(<32bit writes don't work)
01:10user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:31user982492 has joined #asahi-dev
02:30marcanjannau: someone mentioned a race between gdm and DCP (probably). right now the DRM device is only registered asynchronously of the probe function, right?
02:31marcancan we add a completion or something to either DCP or display subsystem to ensure that when all probe functions have returned DCP is alive?
02:31marcanI 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
04:15digicyc has quit [Remote host closed the connection]
04:15digicyc has joined #asahi-dev
05:13user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:23bcrumb has joined #asahi-dev
06:56bcrumb_ has joined #asahi-dev
06:58bcrumb has quit [Ping timeout: 480 seconds]
07:07bcrumb_ has quit [Quit: WeeChat 3.7.1]
07:23renatorabelo has joined #asahi-dev
07:23bcrumb has joined #asahi-dev
07:23bcrumb has quit []
07:23bcrumb has joined #asahi-dev
07:23bcrumb has quit []
07:28amw has joined #asahi-dev
07:50SSJ_GZ has joined #asahi-dev
07:51arekm has quit [Remote host closed the connection]
08:03kettenismarcan: instead of setting the suspend frquency in the cpufreq driver, would marking the lowest state as "opp-suspend" work?
08:05MajorBiscuit has joined #asahi-dev
08:05marcankettenis: not with the current driver, the code would have to be changed to explicitly pick that up from the OPP
08:05marcanlike policy->suspend_freq = dev_pm_opp_get_suspend_opp_freq(...) / 1000
08:05kettenisnot worth it then ;)
08:17bcrumb has joined #asahi-dev
08:28cyrozapmarcan: 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
08:28cyrozapxHCI spec is _huge_ so progress on that is slow :/
08:28marcantell me about it (I wrote the QEMU virtual xHCI emulation...)
08:29marcanit could also be a driver issue though, perhaps a bad interaction with that particular IOMMU driver
08:31cyrozapYeah, 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_.
08:41arekm has joined #asahi-dev
08:41_jannau_marcan: yes, we probably should use dcp/depext* as components of the drm driver (include/linux/component.h)
08:41arekm has quit [Remote host closed the connection]
08:42cyrozapmarcan: 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
08:42_jannau_full device links would be an alternative but I haven't looked into what would be required to create them
08:42cyrozapASM1142: 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.
08:43_jannau_would be annoying if we had to create custom of device probe for that to add the device links
08:44marcanah neat, drm_of_component_* is a thing
08:46marcancyrozap: 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
08:46marcanit could be something dumb like that
08:56arekm has joined #asahi-dev
09:05cyrozapmarcan: 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
09:05cyrozapa "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
09:05cyrozaptime after the original bad write.
09:06marcanyeah, makes sense
09:40SSJ_GZ has quit [Read error: No route to host]
09:40SSJ_GZ has joined #asahi-dev
09:48ncopagood morning! how is the 6.1.0 rebase going?
09:49ncopai 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?
09:50j`eythe rebase is done.. but it needs a few extra changes on top
09:50j`ey(asahi-wip is the rebase, but there were some breakages)
09:51j`eyncopa: the asahi branch is made up of feature/topic branches: the bits/ branches (eg: bits/130-cpufreq)
09:51j`eyeach of those is rebased, and then theyre all merged into one branch
09:52MajorBiscuit has quit [Ping timeout: 480 seconds]
10:00ncopaso, i bought a mbp with the intention to run (and build) alpine linux on it
10:00ncopawould it make sense to add alpine linux as an option for the asahi installer?
10:01bcrumb has quit [Quit: WeeChat 3.7.1]
10:18svensure, I assume you’re involved with the alpine Linux project?
10:22mpssven: ncopa is alpine project leader
10:23ncopawell, founder at least
10:24mpsand I hope he will save me from trying to make alpine easier on m1 ;)
10:24renatorabelo has quit [Ping timeout: 480 seconds]
10:24mps(though alpine is already easy)
10:26j`eyncopa: https://github.com/AsahiLinux/asahi-installer/blob/main/data/installer_data.json this is probably the only relevant part of the installer
10:29renatorabelo has joined #asahi-dev
10:30renatorabelo has quit [Read error: Connection reset by peer]
10:33MajorBiscuit has joined #asahi-dev
10:46kettenismarcan: the asahi streams are no longer listed under https://www.youtube.com/@marcan42/videos
10:47kettenistook me some effort yesterday to find the last stream
10:48kettenismaybe not
10:48kettenisbut that is where I looked
10:49j`eypretty sure that's just a youtube change?
10:49kettenisbecause why would I click on "Live" of I wanted to see a stream that had already finished?
10:49kettenisso yes, youtube UI retardedness
10:49_jannau_yes, it's a youtube change splitting (old) live streams from videos
10:53kettenissorry for the noise
12:08svenncopa: shouldn’t be an issue then since that probably as official as it gets ;)
12:08sven*that’s
12:09svenwe 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
12:30ncopayeah, i understand that. i wouldn't want add it there unless i have a plan for long term maintenance
12:53ncopawhere are the source to generatae the zip files here? https://de.mirror.asahilinux.org/os/
13:08jluthra has quit [Remote host closed the connection]
13:08jluthra has joined #asahi-dev
13:35j`eyncopa: yup
13:36ncopai have read up a bit on the boot loader etc, and got some help from mps. this is a bit complicated :)
13:37ncopanow, 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
13:38ncopaso, I'm thinking that i should have 2 instances of asahi. one dev env and one smaller that i wipe to test the installer
13:39ncopaif i understand things correcly, i should create a second 2.5GB iBoot/MacOS/m1n1 APFS container + uefi partition + rootfs?
13:40j`eyyou can just run the installer a second time, yup
13:40ncopaor can i reuse the APFS container and only create a second uefi + root partition?
13:50j`eynot sure, but I guess if you want to test normal user installs, just having the second copy would be best?
13:51ncopayeah, that makes sense
13:51j`eyncopa: which model did you get?
13:51kettenisthe APFS and UEFI partition are more or less tied together so that wouldn't make sense
13:51ncopampb 14" 2021
13:52kettenismultiple OSes could share a single set of APFS+UEFI, but then they get the same set of firmware and the same device tree
13:53kettenisthat means an upgrade of any of those components from one OS may break the other OS
13:54kettenisif your goal is to make alpine work well alongside asahi, you should install asahi first and then create the partitions for alpine
13:54ncopayeah, i'll create a second APFS+UEFI+rootfs
13:55kettenisand make sure that whenever alpine touches the UEFI partition, it uses "its" UEFI partition (the 2nd one)
14:31Retr0id5 has joined #asahi-dev
14:31Retr0id has quit [Read error: Connection reset by peer]
14:31Retr0id5 is now known as Retr0id
14:55sirn- has joined #asahi-dev
14:59sirn has quit [Ping timeout: 480 seconds]
14:59sirn- is now known as sirn
15:02millenialhacker has joined #asahi-dev
15:16bcrumb has joined #asahi-dev
15:24bcrumb has quit [Quit: WeeChat 3.7.1]
15:35zzywysm_ncopa: reminder that you can't redistribute Apple's firmware blobs
16:06bcrumb has joined #asahi-dev
16:08c10l has quit [Quit: Ping timeout (120 seconds)]
16:09c10l has joined #asahi-dev
16:26bcrumb has quit [Ping timeout: 480 seconds]
16:27cylm has joined #asahi-dev
16:35bcrumb has joined #asahi-dev
16:35c10l has quit [Quit: Ping timeout (120 seconds)]
16:36c10l has joined #asahi-dev
16:36bcrumb has quit [Read error: Connection reset by peer]
16:38ncopai didn't. will read. thanks
16:38ncopaa lot to read...
16:40mpsncopa: oh yes, I forgot to tell you about above url, sorry
16:43bcrumb has joined #asahi-dev
16:49bcrumb has quit [Quit: WeeChat 3.7.1]
18:14MajorBiscuit has quit [Ping timeout: 480 seconds]
18:27user982492 has joined #asahi-dev
18:39joske has joined #asahi-dev
18:42joske has quit []
18:43millenialhacker has quit []
19:24zzywysm has joined #asahi-dev
19:28iaguis has joined #asahi-dev
19:31zzywysm_ has quit [Ping timeout: 480 seconds]
19:32zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:32cylm has quit [Ping timeout: 480 seconds]
19:35zzywysm has joined #asahi-dev
19:37zzywysm has quit []
19:38zzywysm has joined #asahi-dev
19:40psykose has quit [Remote host closed the connection]
19:40psykose has joined #asahi-dev
19:51derzahl has joined #asahi-dev
20:10yamii has quit [Quit: WeeChat 3.6]
20:11yamii has joined #asahi-dev
20:36TheFirst has quit [Ping timeout: 480 seconds]
20:40user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:44TheFirst has joined #asahi-dev
20:46user982492 has joined #asahi-dev
20:54^GaveUp^ has joined #asahi-dev
20:58TheFirst has quit [Ping timeout: 480 seconds]
20:58^GaveUp^ is now known as TheFirst
21:05user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:44MajorBiscuit has joined #asahi-dev
21:56kujeger- has joined #asahi-dev
21:57kujeger has quit [Ping timeout: 480 seconds]
22:02___nick___ has joined #asahi-dev
22:03___nick___ has quit []
22:05___nick___ has joined #asahi-dev
22:20MajorBiscuit has quit [Ping timeout: 480 seconds]
22:32beeblebrox has quit [Quit: Konversation terminated!]
23:23derzahl has quit [Ping timeout: 480 seconds]
23:38eli has joined #asahi-dev
23:43derzahl has joined #asahi-dev
23:57systwi_ has joined #asahi-dev
…