#
#asahi · 2023-06-26 19:30
karpouzioops forgot CONFIG_NVME_APPLE :)
#asahi · 2023-06-26 19:30
svens/high edge/rising edge/ ofc
#asahi · 2023-06-26 19:30
ydaltonalso i saw the i2c uses the _LOW version
#asahi · 2023-06-26 19:29
svenfor gpio interrupts you can actually configure which mode you want and have to make sure to select the right one
#asahi · 2023-06-26 19:29
sventhe MSI interrupts are high edge triggered as per that specification iirc
#asahi · 2023-06-26 19:28
svenfrom what we’ve seen anything AIC except for the pcie MSI interrupts are (high) level triggered
#asahi · 2023-06-26 19:28
ydaltonso either will work, but you'll have to find the better option, am i understanding that correctly?
#asahi · 2023-06-26 19:27
svenit all takes the same path either way so anything will work, it’s just a matter of describing the HW accurately in the fdt
#asahi · 2023-06-26 19:27
svenwe can’t reconfigure the low/high/etc. mode from any AIC interrupt
#asahi · 2023-06-26 19:24
ydaltonalright, i'll take a look at that python script
#asahi · 2023-06-26 19:22
j`eyRegMonitor class in python can do some diffing and stuff too
#asahi · 2023-06-26 19:22
j`ey yup
#asahi · 2023-06-26 19:20
ydaltonafaik m1n1 can hexdump memory regions right?
#asahi · 2023-06-26 19:20
ydaltonalthough tbh tracing mmio writes was gonna get old soon
#asahi · 2023-06-26 19:17
j`eyyes
#asahi · 2023-06-26 19:17
ydaltonwait that's R?
#asahi · 2023-06-26 19:16
j`eyhttps://twitter.com/ArcaneNibble/status/1577967077955993600
#asahi · 2023-06-26 19:16
ydaltonif i recall correctly, the way alyssa reverse engineered part of the gpu driver was to do it through macOS first
#asahi · 2023-06-26 19:14
j`eyto try understand things
#asahi · 2023-06-26 19:14
j`eyyeah that was some emulator they were working on
#asahi · 2023-06-26 19:13
ydaltonthe first one though, that looks like normal python code?
#asahi · 2023-06-26 19:13
ydaltonwow thanks, although i have no idea how to even write any of these
#asahi · 2023-06-26 19:12
j`eyhttps://github.com/ArcaneNibble/m1n1/tree/avd
#asahi · 2023-06-26 19:10
j`eyhttps://github.com/ArcaneNibble/m1-avd-reverse-engineering
#asahi · 2023-06-26 19:10
ydaltonlol, looking through the MMIO tracer i saw a stray 0xdeadcafe which piqued my curiosity
#asahi · 2023-06-26 19:09
ydaltoni haven't found anything, although that might be helpful
#asahi · 2023-06-26 19:08
j`eyalso have you tried to find the stuff that others have done with AVD?
#asahi · 2023-06-26 19:07
j`eyyou dont need the DT for that just yet!
#asahi · 2023-06-26 19:06
ydaltoni'm trying to figure out how the AVD works
#asahi · 2023-06-26 19:06
j`eyydalton: what's it for?
#asahi · 2023-06-26 19:05
ydaltoneh i'll see if _HIGH works since most other devices do that
#asahi · 2023-06-26 19:04
j`eyim assuming youre trying to make something that doesnt work.. work, otherwise you can just copy whatever the current DT does!
#asahi · 2023-06-26 19:03
ydaltonlol there it is
#asahi · 2023-06-26 19:02
j`eyfrom reverse engineering I guess!
#asahi · 2023-06-26 19:00
ydaltonbut how can you know when to use one or the other?
#asahi · 2023-06-26 18:58
ydaltonnever knew about that
#asahi · 2023-06-26 18:58
ydaltonah, it says all symbols
#asahi · 2023-06-26 18:57
j`eyhttps://elixir.bootlin.com/linux/latest/A/ident/IRQ_TYPE_LEVEL_LOW works for me
#asahi · 2023-06-26 18:57
ydaltonnext to the search there's a dropdown to choose if you want to look in C source code or device trees
#asahi · 2023-06-26 18:57
ydaltonoh, it's not a bug, its a feature??
#asahi · 2023-06-26 18:56
ydaltonhuh, i think bootlin's linux source code explorer is bugged, i searched for _LOW and it didn't show any apple silicon device trees
#asahi · 2023-06-26 18:54
ydaltonoh, in the i2c0 node, i see
#asahi · 2023-06-26 18:54
j`eyarch/arm64/boot/dts/apple/t8103-jxxx.dtsi
#asahi · 2023-06-26 18:53
ydaltonwhere's that?
#asahi · 2023-06-26 18:52
j`eyinterrupts = <106 IRQ_TYPE_LEVEL_LOW>;
#asahi · 2023-06-26 18:52
ydaltonto see _LOW
#asahi · 2023-06-26 18:52
ydaltoneven in other device trees (outside apple silicon) its pretty rare
#asahi · 2023-06-26 18:52
j`eythere are some _LOW ones
#asahi · 2023-06-26 18:51
ydaltoncan i just get away with using IRQ_TYPE_LEVEL_HIGH, seeing i haven't seen it in one of the linux device trees
#asahi · 2023-06-26 18:51
j`eyoh

plus ›