#
#asahi-dev · 2023-01-21 13:31
svenmaybe I don’t remember correctly and the issue was just that the bit changed without a data status changes irq
#asahi-dev · 2023-01-21 13:30
jannaumacos checks it after it gets AttentionReceived irqs
#asahi-dev · 2023-01-21 13:28
svenor, well, the bit works iirc but I didn’t get an irq
#asahi-dev · 2023-01-21 13:27
sveniirc I found an interrupt though
#asahi-dev · 2023-01-21 13:27
svenim pretty sure that doesn’t work with my usb3/DP hub and yet it works on macOS
#asahi-dev · 2023-01-21 13:25
jannauare you still looking for HPD irqs? apple seems to use DATA STATUS (0x50) bit 14 / 15 even for dp altmode. annotated as TBT HPD in the tps 65987ddh trm
#asahi-dev · 2023-01-21 13:21
svenguess that just leaves figuring out how to correctly trigger the bus rescan and cleaning up a bunch of hacks until I can look into DP-over-usb4 then
#asahi-dev · 2023-01-21 13:13
chadmed_povik: is there anything i can cherry pick to get V/ISENSE working in some capacity? i want to wire up and start testing the safety daemon at some point next week if possible
#asahi-dev · 2023-01-21 12:49
TheLinkyour clearance got revoked ;)
#asahi-dev · 2023-01-21 12:48
svenoh that's just great. any update to PCI_PREF_MEMORY_BASE or PCI_PREF_MEMORY_LIMIT clears that bit again 🙃
#asahi-dev · 2023-01-21 12:38
svenurgh... but I can't set it in apple_pcie_setup_port because something seems to disable it again :/
#asahi-dev · 2023-01-21 12:33
svenwell... looks like that #define even already exists: #define PORT_PREFMEM_ENABLE 0x00994
#asahi-dev · 2023-01-21 12:32
chadmed\o/
#asahi-dev · 2023-01-21 12:31
svenwell... there we go
#asahi-dev · 2023-01-21 12:31
sven64 bytes from fra24s08-in-f3.1e100.net (142.250.186.163): icmp_seq=1 ttl=115 time=19.8 ms
#asahi-dev · 2023-01-21 12:30
svenbit 1 in port_base + 0x994 must be set to allow reads to that prefetchable region
#asahi-dev · 2023-01-21 12:30
svenoh for fuck's sake...
#asahi-dev · 2023-01-21 12:15
svennot sure yet what the error is but it seems that the entire prefetchable memory region reads as -1 on the usb4 pcie controller
#asahi-dev · 2023-01-21 09:30
sveni'll take a closer look
#asahi-dev · 2023-01-21 09:30
svenhrm, I never checked but assumed that the linux pci code would do that correctly
#asahi-dev · 2023-01-21 09:17
kettenis_sven: are the pci bridges set up correctly?
#asahi-dev · 2023-01-21 08:46
svenalso, hotplugging too fast breaks acio and resets the soc it seems :D
#asahi-dev · 2023-01-21 08:43
sven(i.e. non-prefetchable ones work in linux while the only prefetchable bar that’s on the bus doesn’t)
#asahi-dev · 2023-01-21 08:41
svenonly difference to the working bars in Linux seems to be that the broken one is marked as prefetchable
#asahi-dev · 2023-01-21 08:41
svenI guess there’s still some magic init missing somewhere
#asahi-dev · 2023-01-21 08:41
svenhm, so it seems like that bar that only reads as -1 in Linux works fine in macOS
#asahi-dev · 2023-01-21 07:27
chadmedis there a way to get the 4cc/ascii code of an smc key back from smc_core?
#asahi-dev · 2023-01-21 03:25
amarioguyCPMU_AIC_PMI the macro of interest
#asahi-dev · 2023-01-21 03:25
amarioguyso that tracks
#asahi-dev · 2023-01-21 03:25
amarioguyotherwise fiq
#asahi-dev · 2023-01-21 03:25
amarioguy(the aic mode is set in xnu via a macro per device)
#asahi-dev · 2023-01-21 03:24
amarioguygot it that makes sense, looked at an older xnu drop it seemed to be defined for at least H9P/A10 but on newer source drops this does not appear to apply for h13
#asahi-dev · 2023-01-21 03:22
marcanbut that doesn't really buy you much
#asahi-dev · 2023-01-21 03:21
marcanmaybe it's just "deliver as IRQ directly" (like the GIC management IRQ, bypassing AIC)
#asahi-dev · 2023-01-21 03:21
marcanit doesn't make much sense either, it'd require a back channel from the CPUs to AIC which is implausible
#asahi-dev · 2023-01-21 03:21
amarioguyah fair
#asahi-dev · 2023-01-21 03:21
marcanI don't think I ever saw IRQ mode working
#asahi-dev · 2023-01-21 03:20
amarioguydo m series chips only have the option to deliver these as FIQs?
#asahi-dev · 2023-01-21 03:20
amarioguyjannau: one question on pmu stuff, why do we use the FIQ mode in linux instead of the AIC mode (ostensibly should deliver as an IRQ)? is that just a legacy holdover mode from idevices or smth?
#asahi-dev · 2023-01-21 01:11
chadmedin a way that does not involve a thousand lines of hard coded matches
#asahi-dev · 2023-01-21 01:10
chadmedbut at the same time the UX of having a giant list of keys called T*** P*** V*** and C*** is not very good, so it would be nice for the driver to rename ones we know as it goes
#asahi-dev · 2023-01-21 01:10
chadmedim looking at smc hwmon and i want to grab the list of supported keys at runtime like applesmc does because its going to get real ugly trying to hardcode the supported keys for each machine
#asahi-dev · 2023-01-21 01:09
chadmedis there a sane way to rename hwmon labels on the fly at runtime that doesnt involve hard coding it
#asahi-dev · 2023-01-20 21:49
jeffmiwnote that I have not lost any macos(I have 2 of them) or asahi data while doing the recovery
#asahi-dev · 2023-01-20 21:48
jeffmiwparted must have left the partition table in a state that iboot was not happy with.
#asahi-dev · 2023-01-20 21:47
jeffmiwlinux=>desktop
#asahi-dev · 2023-01-20 21:47
jeffmiwI deleted some partitions of the asahi minimal install to grow my asahi linux partition with parted. everything worked well till the next reboot without any sign of life
#asahi-dev · 2023-01-20 21:19
nicolas17how did it break in the first place?
#asahi-dev · 2023-01-20 21:18
jeffmiwok so I was running an old already installed version of usbmuxd. with the latest one, I was able to recover my mba M1 ! Thanks for the help. Now back to hwmon driver :)
#asahi-dev · 2023-01-20 21:01
nicolas17on some distros it auto starts on boot or on USB-device-connect (via udev)

plus ›