#
#asahi-dev · 2023-09-10 20:38
jannaumarcan: asahi alarm needs a mesa-asahi-edge rebuild for llvm-16
#asahi-dev · 2023-09-10 19:27
jannauok, no worries
#asahi-dev · 2023-09-10 19:26
amarioguyjannau: i just ended up blowing away the install and reinstalling 12.3.1 lol, wasn't really using the ventura or sonoma partitions too much anyways
#asahi-dev · 2023-09-10 19:03
jannauthat said, I still have to test the PR on m1 devices
#asahi-dev · 2023-09-10 19:02
jannauif not trying you could try https://github.com/AsahiLinux/m1n1/pull/329/commits/598659fe070df237fd4a87a3b18f6d22fc4af743
#asahi-dev · 2023-09-10 19:02
jannauamarioguy: any progress with the cursed mac studio dcp swap_surfface in m1n1?
#asahi-dev · 2023-09-10 18:57
sven(maybe not for the apple case where you know about all devices but to do it correctly for the general case of arbitrary pcie busses)
#asahi-dev · 2023-09-10 18:56
svenyeah, I’d try to avoid writing that code myself. That uboot and Linux code is partly hard to follow because the whole setup is a bit tricky
#asahi-dev · 2023-09-10 18:56
amarioguymarcan: yeah i'm pretty sure it does, i'm probably just being dumb and not seeing smth obvious lol
#asahi-dev · 2023-09-10 18:56
marcananyway, I really need to sleep :p
#asahi-dev · 2023-09-10 18:55
marcan(that can do this for you)
#asahi-dev · 2023-09-10 18:55
marcanI would hope edk2 already has some semblance of PCIe support?
#asahi-dev · 2023-09-10 18:55
amarioguyyea that tracks, bus0 seems to just be all the root bridges (w/devices behind those bridges)
#asahi-dev · 2023-09-10 18:55
svenyou’ll also have to configure all the bridges above the device
#asahi-dev · 2023-09-10 18:55
amarioguy(long story short, trying to upload XHCI controller fw in my edk2 fork lol, was trying to follow u-boot code beforehand)
#asahi-dev · 2023-09-10 18:54
amarioguyah neat
#asahi-dev · 2023-09-10 18:54
marcanamarioguy: yes (after doing a whole bunch of other pcie init)
#asahi-dev · 2023-09-10 18:54
marcanj`ey: same codebase
#asahi-dev · 2023-09-10 18:54
amarioguymarcan: ah that makes sense, so i just assign a BAR to the device?
#asahi-dev · 2023-09-10 18:53
j`eywhy do isp and ave share anything?
#asahi-dev · 2023-09-10 18:52
marcanI mean if you're not running on u-boot of course
#asahi-dev · 2023-09-10 18:52
marcan(via ECAM writes)
#asahi-dev · 2023-09-10 18:51
marcanthere's no firmware, you are the firmware so you get to *assign* a BAR.
#asahi-dev · 2023-09-10 18:51
amarioguytrying to follow the u-boot and linux code that probes for it has not exactly been the easiest lol, is it just a read from the ECAM region?
#asahi-dev · 2023-09-10 18:51
amarioguyquick question, how exactly do you probe for the PCIe XHCI host controller BAR (or in U-boot terms, the "HCCR"/"HCOR")
#asahi-dev · 2023-09-10 17:38
eilnthere's a firmware bug causing an irq hang (preventing more logs). It should be as chatty as ISP. I was trying to patch the instruction, but apparently since ventura we can't write to segment-ranges anymore, hence I was downgrading earlier
#asahi-dev · 2023-09-10 17:37
ChaosPrincessalso, thats fw ver?
#asahi-dev · 2023-09-10 17:36
ChaosPrincesseiln: yes, the firmware sends the address it wants the kernel to add to iovas
#asahi-dev · 2023-09-10 17:35
eilnalso echo "1 2 hi" > /tmp/ave_log.cfg gets the userspace driver to talk a lot. I'm fairly certain this is a scanf CVE
#asahi-dev · 2023-09-10 17:35
eilnthey handle memory really, really weird. the firmware iova starts at ipc_iova and is masked by 0x80000000.
#asahi-dev · 2023-09-10 17:34
eilntrash code, but https://pastebin.com/yrXQvf61
#asahi-dev · 2023-09-10 17:34
ChaosPrincessim still in the "huge piles of hardcoded register pokes" phase
#asahi-dev · 2023-09-10 17:34
marcanprobably easier to hack on the code separately at first
#asahi-dev · 2023-09-10 17:34
marcanbut that refactoring can come later too, up to you
#asahi-dev · 2023-09-10 17:33
marcanif code can be shared here, it might make sense to have some kind of libispfw or something, especially since both of these drivers are in media/ (ane OTOH, not sure, depends on how different it ends up being)
#asahi-dev · 2023-09-10 17:31
ChaosPrincesseiln: not directly on top of isp, but using isp as reference, terminal outputs the logs, yes, but the channel table is different, the iovas are 0xffffffff, i am diffing to find out how exactly the current channel position is signalled
#asahi-dev · 2023-09-10 17:30
eilnChaosPrincess: you built on the isp stuff right? the ipc code can nearly be shared. the TERMINAL channel outputs the logs w/o having to memdiff
#asahi-dev · 2023-09-10 17:30
eilnI went to dim my computer, but I should reply
#asahi-dev · 2023-09-10 17:26
marcanthe various m1n1 shells have a hook where if a "mon" variable exists, it'll call mon.poll() after every input
#asahi-dev · 2023-09-10 17:25
ChaosPrincessty
#asahi-dev · 2023-09-10 17:25
marcanproxyutils.RegMonitor
#asahi-dev · 2023-09-10 17:24
marcanthat's regmon
#asahi-dev · 2023-09-10 17:24
ChaosPrincessmarcan: didn't you have something on stream that showed pretty coloured hexdump diffs?
#asahi-dev · 2023-09-10 17:23
marcan\o/
#asahi-dev · 2023-09-10 17:15
ChaosPrincessin other news, ave firmware finally talks to me: "FW Cfg: prod, tag: AppleAVE2FW-6040.2.1, SHA: f5fece645"
#asahi-dev · 2023-09-10 17:15
ChaosPrincessdoes m1n1 have a convenient way to diff a large memory range?
#asahi-dev · 2023-09-10 17:11
marcanand yeah, mood
#asahi-dev · 2023-09-10 17:11
marcananyway, good night ;)
#asahi-dev · 2023-09-10 17:10
marcan(I'm assuming that's what it is since it matches)
#asahi-dev · 2023-09-10 17:10
marcanthat should be in the device tree then, since it's in the ADT too

plus ›