#asahi-dev · 2023-01-04 11:20
svenfrom the t2 folks: for 6.2.0-rc3-00010-g69b41ac87e4a nvme nvme0: Identify NS List failed (status=0xb) in dmesg and only /dev/nvme0 exists#asahi-dev · 2023-01-04 09:58
svenlet me poke the t2 people to see if they can test some 6.2-rc#asahi-dev · 2023-01-04 09:56
svenyeah, no access to any t2 mac here either#asahi-dev · 2023-01-04 09:56
marcansven: can't really test on one of those right now, but yeah I can just send it blind and see what happens#asahi-dev · 2023-01-04 09:54
svenmarcan: nvme nvme0: Identify NS List failed (status=0xb) seems to present in the T2 logs as well (e.g. https://bbs.archlinux.org/viewtopic.php?id=281389). they probably also need that NVME_QUIRK_IDENTIFY_CNS quirk#asahi-dev · 2023-01-04 01:38
psykosei hope so too :) never like seeing people become what they dislike, it's sad#asahi-dev · 2023-01-04 01:36
marcanyeah no, I'll give up on the project before turning into one of them thanks#asahi-dev · 2023-01-04 01:34
psykosea spiral of insanity until you yourself will turn into one of these, one day :p#asahi-dev · 2023-01-04 01:34
psykoseit's all a flat circle in the end eh :-)#asahi-dev · 2023-01-04 01:32
marcanthis time he's part of the problem#asahi-dev · 2023-01-04 01:32
marcanand *he* gave up on *that* one#asahi-dev · 2023-01-04 01:32
marcanyes, he was#asahi-dev · 2023-01-04 01:26
psykosewasn't rmk the same person helping you with some patch submission before a couple months back#asahi-dev · 2023-01-04 01:23
marcanthis is beyond stupid#asahi-dev · 2023-01-04 01:23
marcanseriously, what the actual fsck is up with some kernel developers/maintainers#asahi-dev · 2023-01-04 01:22
marcanguess he couldn't handle me pointing out that his patch series commits all the same sins my patch did, after he lectured me about it?#asahi-dev · 2023-01-04 01:20
marcanlol he actually said good bye#asahi-dev · 2023-01-03 20:55
rmkmarcan: good bye#asahi-dev · 2023-01-03 13:43
jannaubut responsible for the breakage is the reset as long as the power domain stays on#asahi-dev · 2023-01-03 13:43
jannauwell, the issue is that the dart is runtime suspended / resumed while the device is in use#asahi-dev · 2023-01-03 13:40
marcancould be, yeah#asahi-dev · 2023-01-03 13:36
jannaups_apcie_gp_sys is always-on on t600x so it ought to be the dart reset#asahi-dev · 2023-01-03 13:28
jannauI suspect it resets the dart while the device is in use#asahi-dev · 2023-01-03 13:27
jannaupcie works initially, ethernet seems to randomly break when trasmitting data. I think the issue is the reset in the dart resume function#asahi-dev · 2023-01-03 13:23
marcankilling the PCIe power domain breaks the init that m1n1 does#asahi-dev · 2023-01-03 13:23
marcanmy hack with DCP was to set the domain to always on and unset that in the DCP driver#asahi-dev · 2023-01-03 13:22
marcanwhich meant that the DART attaching to the DCP power domain before the FB or DCP itself was killing it#asahi-dev · 2023-01-03 13:22
marcanjannau: the problem is probably the same thing I ran into with DCP, that the genpd framework shuts down the PD as soon as *one* device attaches that claims to be RPM aware#asahi-dev · 2023-01-03 13:13
jannauyes, the soc specific ones and arm-smmu (not arm-smmu-v3)#asahi-dev · 2023-01-03 13:12
kettenisthose are basically only used for the GPUs#asahi-dev · 2023-01-03 13:11
kettenisI had a quick look the other day, and the only iommu drivers that seem to do runtime pm are the SoC-specific ones#asahi-dev · 2023-01-03 13:10
kettenisjannau: which other iommu drivers?#asahi-dev · 2023-01-03 12:51
jannauI wonder why this is not a problem on other systems. runtime pm in other iommu drivers looks close enough#asahi-dev · 2023-01-03 12:49
jannauugly workaround for now: add DL_FLAG_RPM_ACTIVE if dev_is_pci(dev) is true#asahi-dev · 2023-01-03 12:49
jannauthe issue might be that pm_runtime_enable() returns true for the pcie device in dart_probe_device(). sysfs claims that runtime pm is not used for them, but dart_probe_device() is too early to check the device runtime pm status anyway#asahi-dev · 2023-01-03 11:36
svenbah... and the acio driver is back to resetting the soc *sigh*#asahi-dev · 2023-01-03 11:34
jannauI would have expected that the device link / runtime pm code keeps the supplier on in that case#asahi-dev · 2023-01-03 11:33
jannauhmm, I mistook the quirks for a generic suspend/resume handling so there is no runtime pm the PCIe drivers#asahi-dev · 2023-01-03 11:27
kettenisbut that does mean there is a dependency that needs to be enforced#asahi-dev · 2023-01-03 11:25
kettenisif DMA is quiesced before the iommu is powered down, it should work#asahi-dev · 2023-01-03 11:11
jannauit looked like it uses generic runtime pm callbacks if pci drivers don't have their own callbacks. I stopped looking after that#asahi-dev · 2023-01-03 11:03
marcanit's not surprising that is broken#asahi-dev · 2023-01-03 11:03
marcanthe PCIe subsystem doesn't have an understanding of runtime PM#asahi-dev · 2023-01-03 10:45
jannaustill looks like the PCI's subsystem understanding of runtime pm is incompatible with powering the iommu down on suspend#asahi-dev · 2023-01-03 10:41
jannauthe dart_hw_reset() in runtime resume seems break PCIe. no issues so far after replacing the reset with a restore, i.e. instead of resetting tcr and ttbr it restores the old values and calls invalidate_tlb() only after the values are restored#asahi-dev · 2023-01-03 06:37
eilnoke back to work :) #asahi-dev · 2023-01-03 06:37
eilnconsidering only dma to L2 fails when in the upper range, i think it's a distance issue ("hint" seems right)#asahi-dev · 2023-01-03 06:36
eilnwhat a self-own, there's a semi-enforced iova upper limit .. "vm-size" #asahi-dev · 2023-01-02 23:53
jannauhttps://github.com/jannau/linux/tree/dcp/sleep is dcp/sleep rebased onto asahi-6.1-3_dcp-components, it still has issue (PCIe) but dcp runtime pm seems to work. tested on j274, j375 and j493 but not j314#asahi-dev · 2023-01-02 23:48
jannaureplaces Thierry's reserved region patches with the latest version. implemented by reverting the original commits and redoing the updated changes