#asahi-dev · 2023-02-19 18:01
svenno idea, I was just confused by first and second because I always think of the ports as atcphy0/1#asahi-dev · 2023-02-19 18:00
jannauargh, did I mix up the ports?#asahi-dev · 2023-02-19 17:58
svenand in that case the tipd at 0x3f must remain active #asahi-dev · 2023-02-19 17:57
svenuh, my setup usually is atcphy0 for the hv and atcphy1 for thunderbolt #asahi-dev · 2023-02-19 17:56
jannauyes, nothing suspicious changed there. is it normal that the second tps698x is not removed/disabled when using the first usb-c port for the HV?#asahi-dev · 2023-02-19 17:53
svenmaybe some probe ordering issue?#asahi-dev · 2023-02-19 17:53
svenhuh, I don’t think I changed anything there #asahi-dev · 2023-02-19 17:51
jannauno tps6598x interrupts explains why nothing happens on device plug#asahi-dev · 2023-02-19 17:18
svenoh, and if the nhi probed after plug you should see the host in boltctl list -a#asahi-dev · 2023-02-19 17:17
sventhat should be very verbose #asahi-dev · 2023-02-19 17:17
svenmake sure that debug prints for everything thunderbolt is enabled #asahi-dev · 2023-02-19 17:17
svenhave fun debugging I guess? ;)#asahi-dev · 2023-02-19 17:17
svenuhh.. that sound very broken #asahi-dev · 2023-02-19 17:16
jannaunothing on device plug#asahi-dev · 2023-02-19 17:16
svenusb4 might work if you set that vse thingy to 0x11 iirc#asahi-dev · 2023-02-19 17:15
svenanything in dmesg?#asahi-dev · 2023-02-19 17:15
jannauI would assume a passive cable#asahi-dev · 2023-02-19 17:15
jannauyes, tried replugging multiple devices. thunderbolt3 nvme adapter, thunderbolt3 monitor (afaik dp and usb) and usb4 hub. I expect the latter two to be broken#asahi-dev · 2023-02-19 17:14
svenuntil the tipd stuff is done you might have to change the value of that vse cable info thing manually #asahi-dev · 2023-02-19 17:13
svenand is the device actually tbt1,2 or 3 and are you using a passive cable?#asahi-dev · 2023-02-19 17:13
sventhe first plug is broken (again)#asahi-dev · 2023-02-19 17:12
svenhave you tried replugging the device?#asahi-dev · 2023-02-19 17:10
jannausven: any config dependencies except enabling the added CONFIG_* and PCI_HOTPLUG? I see the thunderbolt pcie controller but no devices#asahi-dev · 2023-02-19 16:54
jannauchadmed: I get an out of memory error from run_guest.py with a larger kernel (with debug symbols)#asahi-dev · 2023-02-19 15:43
svenyou'll also need https://github.com/AsahiLinux/m1n1/pull/288#asahi-dev · 2023-02-19 15:43
svenI don't care about bug reports, I only care about bug reports together with patches that fix them for now :P#asahi-dev · 2023-02-19 15:42
svennote that this only allows thunderbolt 1,2 and 3 (i.e. no USB3, no USB4, no DP) mainly because I've been too lazy to deal with tipd/typec yet.#asahi-dev · 2023-02-19 15:42
svenfor anyone who knows how to actually run and debug this (i.e. no end users!): https://github.com/AsahiLinux/linux/tree/atcphy-20230219#asahi-dev · 2023-02-19 14:51
sventhe device tree is also a bit of a mess because I need to bring down the DART on unplug as well (https://f.svpe.de/aa6c13322a846da8a88166c38603ba89cfee68a74d3cdbd5e4605d13f675f11e_acio_dt.txt)#asahi-dev · 2023-02-19 14:49
svenlol, so acio/nhi reset works now but I’m back to the first plug just not working :D#asahi-dev · 2023-02-19 14:37
povikanyway now it's clear#asahi-dev · 2023-02-19 14:37
povikah, i wasn't looking at the latest version#asahi-dev · 2023-02-19 14:34
jannauit either reserves the iova or suppurt direct (1:1) mappings#asahi-dev · 2023-02-19 14:33
povikright, now it makes sense#asahi-dev · 2023-02-19 14:33
povikwith the example being a 1:1 mapping of a region#asahi-dev · 2023-02-19 14:32
povikaha, the upstream series merely reserves the iovas, doesn't set up translation for those but assumes some other mechanism resolves those addresses#asahi-dev · 2023-02-19 14:21
jannauthe series ended up the way it is because asahi needs translation#asahi-dev · 2023-02-19 14:21
jannautranslation from iova to physical memory#asahi-dev · 2023-02-19 14:19
poviksetting up translation from iova space seems to be the whole point of the series :D#asahi-dev · 2023-02-19 14:19
povikwhat you mean by translation here?#asahi-dev · 2023-02-19 14:15
jannaustill depends on patches in the asahi tree to support mappings with translation. I plan to send them out after v6.3-rc1#asahi-dev · 2023-02-19 14:14
jannauit's not, but v13 got picked up for v6.3#asahi-dev · 2023-02-19 14:07
povikif you haven't seen there's this standard way to arrange the mappings ^-- (not sure if that was the final version of the series)#asahi-dev · 2023-02-19 14:06
povikhttps://lore.kernel.org/all/20220905170833.396892-1-thierry.reding@gmail.com/#asahi-dev · 2023-02-19 13:44
poviksven: yeah, that's exactly right#asahi-dev · 2023-02-19 13:25
svenmy cold is finally gone so that I can catch up on emails and try to get my inbox empty again ;)#asahi-dev · 2023-02-19 13:25
svensure :)#asahi-dev · 2023-02-19 13:25
jannauthanks for the reviews#asahi-dev · 2023-02-19 13:06
jannauthat's the way I understand it#asahi-dev · 2023-02-19 12:54
svenand "apple,sio-firmware-params" is just something that's passed to the SIO firmware using some rtkit messages?