#asahi-dev · 2021-09-19 09:30
svenyeah#asahi-dev · 2021-09-19 09:29
sven*that's#asahi-dev · 2021-09-19 09:29
svenok. so for i2c i can e.g. just ignore the "clock gate" that actually a pstate and just add a fixed reference clock?#asahi-dev · 2021-09-19 09:28
svennice. so essentially most of low-level power management is magic we can essentially ignore?#asahi-dev · 2021-09-19 09:27
svenstill waiting for my glasgow to arrive from that crowdfunding campaign. it's a pity the chip shortage happened just after that#asahi-dev · 2021-09-19 09:26
svenhah, nice!#asahi-dev · 2021-09-19 09:24
sven*figured#asahi-dev · 2021-09-19 09:24
svenohhhh... you figure out how the real registers work. nice.#asahi-dev · 2021-09-19 09:23
sveniirc xnu doesn't even load these clock-frequency-regs property from the device tree#asahi-dev · 2021-09-19 09:23
sven\o/#asahi-dev · 2021-09-19 06:58
svenjust woke up *yawn*#asahi-dev · 2021-09-19 06:58
svenand +be #asahi-dev · 2021-09-19 06:58
sven+for#asahi-dev · 2021-09-19 06:58
svenand smc j_ey is correct. the base works but it needs to hooked up to everything#asahi-dev · 2021-09-19 06:58
sveni've started atcphy a bit but there's not a lot there#asahi-dev · 2021-09-19 06:57
svenuh, yeah#asahi-dev · 2021-09-13 16:20
svensure#asahi-dev · 2021-09-13 16:12
sveni know how to do this now at least. just need to figure out why i2c isn't stable and do this usb_role_switch_register thingy correctly#asahi-dev · 2021-09-13 16:10
svenbut at least the "port status changed" interrupt on this TI chip is correct#asahi-dev · 2021-09-13 16:09
sveninstead of resetting both ports it uhh... de-registers and then re-registers the bus now#asahi-dev · 2021-09-13 16:08
svenokay, it's just 1/4-broken at this point then!#asahi-dev · 2021-09-13 16:08
sven[ 154.159954] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3#asahi-dev · 2021-09-13 16:08
svenso.. uh... i have half-broken usb hotplug now. and it's definitely not done in the way it's intended to be done :D#asahi-dev · 2021-09-13 15:50
svenhrm. so either my i2c driver is broken or this TI chip is a bit lazy and sometimes needs to be told twice to read data :/#asahi-dev · 2021-09-13 04:18
svenalyssa: yup, ioreg is great :)#asahi-dev · 2021-09-12 14:45
svenalyssa: ohh.. so it's your problem again? :>#asahi-dev · 2021-08-29 20:18
svenit's just disconnecting/reconnecting the type-c end that doesn't work for me#asahi-dev · 2021-08-29 20:18
svenmine works fine as long as i keep the type-c end connected#asahi-dev · 2021-08-29 20:15
svendoesn't matter, those work fine#asahi-dev · 2021-08-29 20:14
svenyeah, might be easier to just rely on the usb pd interrupts (which should exist) at that point#asahi-dev · 2021-08-29 20:11
svenjust a single channel with 64+32bit messages#asahi-dev · 2021-08-29 20:11
sventhat branch uses a dumb mailbox fwiw#asahi-dev · 2021-08-29 18:56
sveni think i'd prefer to have SART part of the ANS/NVMe node#asahi-dev · 2021-08-29 18:43
svenj_ey: ^--#asahi-dev · 2021-08-29 18:43
svenhttps://github.com/AsahiLinux/linux/commits/sven/20210829 too lazy to split it properly, but that contains the current WIP state. will at least put the nvme stuff back in the feature branches later this week#asahi-dev · 2021-08-29 18:36
svenand the backtrace from the PHY reset wasn't helpful to see how it was triggered#asahi-dev · 2021-08-29 18:35
sveni just see both the SMC notification and some USB PD interrupt and a few moments later it issues the PHY reset#asahi-dev · 2021-08-29 18:35
sveni'm not entirely sure. i haven't been able to see the direct call chain in the hv#asahi-dev · 2021-08-29 18:34
sventhere's still that pd chip on i2c. that should hopefully also have some interrupt to detect a new connection#asahi-dev · 2021-08-29 18:34
sventhat's at least what mac os does#asahi-dev · 2021-08-29 18:34
svenit appears so :/#asahi-dev · 2021-08-29 18:33
svenkettenis_: yes, because otherwise the other phy will get a reset as well and whatever is plugged in there will stop working#asahi-dev · 2021-08-29 18:32
svenbut that didn't work either#asahi-dev · 2021-08-29 18:32
svenyeah. then we though we found some bit in the phy registers to find the correct one#asahi-dev · 2021-08-29 18:29
svenso.. uh.. we were half-successful i guess :D#asahi-dev · 2021-08-29 18:29
svenand while we can theoretically hot plug usb-c devices now, we can't really distinguish between the two ports yet.#asahi-dev · 2021-08-29 18:27
svenyeah.. tracking pci.c in the future is going to be fun#asahi-dev · 2021-08-28 18:39
sven(*may still include hacks in the RTKit part)