#
✕ nick:amarioguy
#asahi-dev · 2024-07-29 16:08
amarioguythe ones defined in "ranges" property i mean
#asahi-dev · 2024-07-29 16:07
amarioguyare the 32-bit PCIe BARs (the ones defined in /soc/pcie0 in the FDT) mapped in the HV?
#asahi-dev · 2024-06-12 16:44
amarioguyjannau: ahh i see
#asahi-dev · 2024-06-12 11:09
amarioguyah didn't notice that one, thanks
#asahi-dev · 2024-06-12 11:07
amarioguyso it's not just peripherals that are on multiple dies)
#asahi-dev · 2024-06-12 11:07
amarioguyactually had one more question, when i try to use libfdt (don't have the open firmware abstractions in my firmware the way that linux/u-boot do), seems like using aliases (example being /die0/pinctrl_ap for example, trying to use the die0 alias to refer to the first die) don't work whatsoever (fdt_path_offset returns that the paths with aliases are not found, /soc/aic doesn't work either
#asahi-dev · 2024-06-09 19:43
amarioguyjannau: ahh i see, how do you verify that the link is properly up?
#asahi-dev · 2024-06-09 18:58
amarioguyjannau: i have the code for loading firmware in place, does that need to be done before the device can show up on the bridge?
#asahi-dev · 2024-06-09 18:20
amarioguy(yes i know it's been months since i've been on, irl stuff became a lot)
#asahi-dev · 2024-06-09 18:19
amarioguyhey just had a quick question, i'm doing the PCIe port bringup sequence (as defined in U-Boot pcie-apple.c, setting up the PHY, REFCLK, etc), but the USB-A controller on the mac studio doesn't seem to be detected even after the entire pcie bus is being probed. is there something you need to do after the bringup sequence to make the USB-A controller itself visible on the PCIe bus?
#asahi-dev · 2023-10-31 00:29
amarioguymarcan: sounds like you got a few device trees to look at next week :P
#asahi-dev · 2023-10-10 16:59
amarioguyhttps://patchwork.ozlabs.org/project/uboot/patch/20230829172519.72803-1-ivo.ivanov@null.net/
#asahi-dev · 2023-10-10 16:59
amarioguykettenis: was talking with someone who is working on other Apple devices that aren't Macs, they're wanting to submit a patch to u-boot upstream that makes the 'mach-apple' stuff able to be adapted to non M1 or M2 socs, could you at least ack the patch for review?
#asahi-dev · 2023-09-16 22:58
amarioguysven: ah got it, thanks for the info
#asahi-dev · 2023-09-16 21:25
amarioguyditto the rc question for "port1", etc, does each P2P bridge have it's own ECAM region?
#asahi-dev · 2023-09-16 21:22
amarioguy(the "pcie-apple" stuff in u-boot/linux)
#asahi-dev · 2023-09-16 21:22
amarioguyand i'm almost scared to ask...but if apple hw is ecam compliant, a bit curious why we needed to roll our own passthrough driver? just DART/MSI stuff ig?
#asahi-dev · 2023-09-16 21:21
amarioguy(for the pcie node)
#asahi-dev · 2023-09-16 21:21
amarioguybtw what is "rc" supposed to be in the apple devicetrees? is that just a bespoke mechanism of apple's pcie thing or is that actually in the standard?
#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 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: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
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
amarioguymarcan: ah that makes sense, so i just assign a BAR to the device?
#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-08-20 12:00
amarioguybefore then i'll test if linux still brings up dcp properly
#asahi-dev · 2023-08-20 11:59
amarioguyi might just blow away the install on here ngl it's not like i used sonoma terribly much
#asahi-dev · 2023-08-20 11:51
amarioguyjannau: https://gist.github.com/amarioguy/67de41aed2adec2254a1714f6098ab93
#asahi-dev · 2023-08-20 11:43
amarioguyjannau: will do
#asahi-dev · 2023-08-20 11:29
amarioguydidn't test linux booting yet, can do so but don't have a rootfs installed yet so i'd need to go do that later today
#asahi-dev · 2023-08-20 11:28
amarioguyjannau: ventura version is 13.4.1
#asahi-dev · 2023-08-20 00:12
amarioguyjannau: https://gist.github.com/amarioguy/6d14f247f8453517c5491986caf9079b
#asahi-dev · 2023-08-19 23:54
amarioguygetting that log, one sec
#asahi-dev · 2023-08-19 23:53
amarioguyjannau: m1 ultra studio
#asahi-dev · 2023-08-19 23:20
amarioguyhrm seems like when i install the m1n1 custom boot object on a ventura partition, doesn't seem to set up the boot time framebuffer correctly? (even w/ a display connected it keeps using the fake framebuffer) (note that i do have a sonoma partition on this mac so the first stage iboot is the sonoma one)
#asahi-dev · 2023-06-26 15:09
amarioguyalright got it, thanks for explaining!
#asahi-dev · 2023-06-26 12:29
amarioguymarcan: btw quick m1n1 architecture question real quick, what exactly determines whether a guest exception (like MSR traps) is handled by the C side or the python side?
#asahi-dev · 2023-06-23 21:22
amarioguyfacepalms
#asahi-dev · 2023-06-23 21:22
amarioguyokay okay never mind i was being a complete idiot
#asahi-dev · 2023-06-23 21:03
amarioguywill bit twiddle to see just in case but just asking in case someone knows already :P
#asahi-dev · 2023-06-23 21:03
amarioguyis it just me or did apple change which bit they were using to trap SMCs on T6000 and newer SoCs? seems like HID1 and EHID20 don't work anymore, does apple trap them differently now or just different HID regs?
#asahi-dev · 2023-06-19 21:33
amarioguybtw sorry for asking, but do we have ability to shut off a cluster manually on apple platforms (as in once all the cores are powered down, power the cluster down too), m1n1 doesn't seem to support that
#asahi-dev · 2023-06-18 20:12
amarioguyjannau: ah fair, got it
#asahi-dev · 2023-06-18 17:21
amarioguyquick question is there a way from the ADT to check if a core is fused off or not? (long story need to be able to check if a core is fused off) or would i need to infer it being fused off based on board id or smth?
#asahi-dev · 2023-05-25 13:47
amarioguy(was busy with academics, then busy with some preservation stuff)
#asahi-dev · 2023-05-25 13:47
amarioguyhiii i'm back, what did i miss the past few months
#asahi-dev · 2023-03-14 12:41
amarioguysounds like this mailbox subsystem is... """interesting"""
#asahi-dev · 2023-03-14 12:23
amarioguystill not the best at MSR bit twiddling :D

plus ›