#
✕ nick:jannau
#asahi · 2021-06-09 16:05
jannaumarcan: mac os does not reenable the usb-pd's interrupts
#asahi · 2021-06-07 19:07
jannauyes, using the v3 patches as base
#asahi · 2021-06-07 18:55
jannauI've started working on the gpio driver btw
#asahi · 2021-06-07 18:47
jannauno new hardware, haha
#asahi · 2021-06-06 21:53
jannauit also doesn't make that much sense since the OS can read that from the pin config
#asahi · 2021-06-06 21:52
jannaumakes sense. based on the pin config I don't think the second cell codes the AIC interrupt
#asahi · 2021-06-06 18:46
jannausaving the network preferences crashed mac os
#asahi · 2021-06-06 18:43
jannaupipcet[m]: user facing there is just the power button and maybe the headphone jack
#asahi · 2021-06-06 18:42
jannauno irq activity on scanning or joining networks. might it be used when the pcie link is powered down?
#asahi · 2021-06-06 18:34
jannauI would assume so two. why develop a different solution just because the mini misses a couple of keys
#asahi · 2021-06-06 18:29
jannauworks == find networks
#asahi · 2021-06-06 18:28
jannauwlan works now after switching it on and off a couple of times
#asahi · 2021-06-06 18:26
jannaueven without mmio/irq tracing no wlan or bluetooth but probably still slower than usual
#asahi · 2021-06-06 18:15
jannausven: wlan node uses the gpio controller as interrupt-parent
#asahi · 2021-06-06 18:14
jannaumight be related to mmio/irq tracing
#asahi · 2021-06-06 18:13
jannaudoes wifi work in mac os with m1n1's hypervisor? trying to see which AIC irq it (the gpio controller) uses but it doesn't seem to work
#asahi · 2021-06-06 12:42
jannaucreating pull requests for pull requests now
#asahi · 2021-06-06 10:47
jannauit rewrites pin 106's config then and acknowledges the irq and starts communicating with the tps6598x
#asahi · 2021-06-06 10:45
jannauusb-c cable plugs are signalled through gpio irqs. on disconnect mac os starts reading from gpio_base + 0x800 until it finds bit 106 set at offset 0x80c
#asahi · 2021-06-06 09:57
jannauwithout usb-drd1 mmiotrace though
#asahi · 2021-06-06 09:56
jannauhttps://gist.github.com/jannau/acd78afdcf3ce20b5cc2549154afcd0f
#asahi · 2021-06-06 09:49
jannauthere's nothing if I disconnect the just the USB-A device
#asahi · 2021-06-06 09:44
jannauthere is something if I disconnect the usb-c to usb-a connector
#asahi · 2021-06-06 09:42
jannauI would expect a gpio irq, and then a read of gpio pin 106
#asahi · 2021-06-06 09:40
jannauno i2c traffic though on usb-c plug events
#asahi · 2021-06-06 09:38
jannaumac os startup is also much faster now with one usb-c port enabled
#asahi · 2021-06-06 09:36
jannauyes, looks much better now
#asahi · 2021-06-06 09:35
jannauprobably user error
#asahi · 2021-06-06 09:20
jannauwriting all zeros to 0x16/0x17 and all ones to 0x18/0x19 doesn't seem to help
#asahi · 2021-06-06 09:13
jannausven: writing 8 time 0x00 to 0x16 doesn't seem to help
#asahi · 2021-06-06 08:55
jannauno, at least the aic interrupt of the first cell (106) is not firing. I'm not convinced that it is actually a aic interrupt
#asahi · 2021-06-06 08:53
jannauhttps://gist.github.com/jannau/a7afdb8243b2ec571888ca8f78ee2d31
#asahi · 2021-06-06 08:53
jannaumac os doesn't seem to be happy with the usb-pd controller. it writes [0x00], [0x14] and reads [0x0b 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00] all over after short initialisation
#asahi · 2021-06-05 19:51
jannausecond interrupt cell is more likely flags, the second cell of the bluetooth node is 0x20_0002
#asahi · 2021-06-05 19:25
jannauhave you seen a pa semi manual? mac os uses 0x18, 0x2c and 0x44 in addition to the registers in the linux driver
#asahi · 2021-06-05 19:03
jannauyes, according to the ADT there's only hpmBusManager on it
#asahi · 2021-06-05 18:58
jannaui2c0 is very noisy as it its interrupt 627
#asahi · 2021-06-05 18:53
jannauI suspect the interrupts property for nodes which uses /arm-io/gpio as interrupt specifies gpio pin, index into /arm-io/gpio's interrupts to get the mapped AIC interrupt
#asahi · 2021-06-05 18:50
jannausven: I haven't found an obvious interrupt which fires at connect/disconnect. 190 from "/arm-io/gpio" is very noisy so I can't if that one is used
#asahi · 2021-06-05 18:01
jannau"/arm-io/gpio" for example
#asahi · 2021-06-05 17:58
jannauhmm, nodes which use "/arm-io/gpio" as parent have 2 cells
#asahi · 2021-06-05 17:54
jannauthe gpio nodes have 7? consectutive irqs
#asahi · 2021-06-05 17:45
jannauany idea why some adt nodes have "#interrupt-cells = 2"? interrupt property looks like it is consectutive interrupts
#asahi · 2021-06-05 10:40
jannauI'm off till later. https://gist.github.com/jannau/eaa1baa11ae615cc74293912d5c6c71c is the patch I use for usb-c/aic tracing
#asahi · 2021-06-05 10:32
jannaumaybe some gpio irq? or the usb-pd chip?
#asahi · 2021-06-05 10:31
jannauI'm not sure if the disconnects are exact, there might be regular USB traffic after I marked the position but before I disconnect
#asahi · 2021-06-05 10:30
jannausven: https://gist.github.com/jannau/104aef15592318f03c9cb2072710aa8e
#asahi · 2021-06-05 09:56
jannau858 seems to be triggered by USB traffic
#asahi · 2021-06-05 09:54
jannauI see only 857 after the disconnect
#asahi · 2021-06-05 09:51
jannausven: much better with filtering in m1n1: https://gist.github.com/jannau/8a1e86d6a3178bc328b3f25ca1a96a68

plus ›