ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
jnn has joined #asahi-dev
jn has quit [Read error: Connection reset by peer]
jnn has quit [Remote host closed the connection]
jn has joined #asahi-dev
hertz_ has joined #asahi-dev
hertz has quit [Ping timeout: 480 seconds]
eiln has joined #asahi-dev
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
whomst has joined #asahi-dev
eiln has quit [Remote host closed the connection]
eiln has joined #asahi-dev
chadmed_ has joined #asahi-dev
zrides has joined #asahi-dev
<eiln> what a self-own, there's a semi-enforced iova upper limit .. "vm-size"
<eiln> considering only dma to L2 fails when in the upper range, i think it's a distance issue ("hint" seems right)
<eiln> oke back to work :)
zrides has quit [Remote host closed the connection]
SSJ_GZ has joined #asahi-dev
pthariensflame has joined #asahi-dev
pthariensflame has quit []
eiln has quit [Remote host closed the connection]
bps has joined #asahi-dev
chadmed_ has quit [Ping timeout: 480 seconds]
bps has quit [Ping timeout: 480 seconds]
chadmed_ has joined #asahi-dev
SSJ_GZ has quit [Remote host closed the connection]
chadmed has quit [Ping timeout: 480 seconds]
cylm_ has joined #asahi-dev
amarioguy has quit [Remote host closed the connection]
llrcombs has quit []
amarioguy has joined #asahi-dev
rcombs has joined #asahi-dev
bps has joined #asahi-dev
chadmed_ has quit [Ping timeout: 480 seconds]
whomst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maria has quit [Ping timeout: 480 seconds]
bps has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-dev
maria has joined #asahi-dev
kujeger has joined #asahi-dev
<jannau> the 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
<jannau> still looks like the PCI's subsystem understanding of runtime pm is incompatible with powering the iommu down on suspend
<marcan> the PCIe subsystem doesn't have an understanding of runtime PM
<marcan> it's not surprising that is broken
MajorBiscuit has joined #asahi-dev
<jannau> it looked like it uses generic runtime pm callbacks if pci drivers don't have their own callbacks. I stopped looking after that
<kettenis> if DMA is quiesced before the iommu is powered down, it should work
<kettenis> but that does mean there is a dependency that needs to be enforced
bps has joined #asahi-dev
<jannau> hmm, I mistook the quirks for a generic suspend/resume handling so there is no runtime pm the PCIe drivers
<jannau> I would have expected that the device link / runtime pm code keeps the supplier on in that case
<sven> bah... and the acio driver is back to resetting the soc *sigh*
chengsun_ has joined #asahi-dev
chengsun has quit [Read error: Connection reset by peer]
realwakka has joined #asahi-dev
c10l has quit [Ping timeout: 480 seconds]
<jannau> the 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
<jannau> ugly workaround for now: add DL_FLAG_RPM_ACTIVE if dev_is_pci(dev) is true
<jannau> I wonder why this is not a problem on other systems. runtime pm in other iommu drivers looks close enough
c10l has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
<kettenis> jannau: which other iommu drivers?
<kettenis> I had a quick look the other day, and the only iommu drivers that seem to do runtime pm are the SoC-specific ones
roxfan2 is now known as roxfan
<kettenis> those are basically only used for the GPUs
realwakka has quit [Remote host closed the connection]
<jannau> yes, the soc specific ones and arm-smmu (not arm-smmu-v3)
djorz has joined #asahi-dev
<marcan> jannau: 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
<marcan> which meant that the DART attaching to the DCP power domain before the FB or DCP itself was killing it
<marcan> my hack with DCP was to set the domain to always on and unset that in the DCP driver
<marcan> killing the PCIe power domain breaks the init that m1n1 does
<jannau> pcie works initially, ethernet seems to randomly break when trasmitting data. I think the issue is the reset in the dart resume function
<jannau> I suspect it resets the dart while the device is in use
systwi has quit [Ping timeout: 480 seconds]
<jannau> ps_apcie_gp_sys is always-on on t600x so it ought to be the dart reset
systwi has joined #asahi-dev
<marcan> could be, yeah
<jannau> well, the issue is that the dart is runtime suspended / resumed while the device is in use
<jannau> but responsible for the breakage is the reset as long as the power domain stays on
hightower3 has joined #asahi-dev
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
Mudb0y has joined #asahi-dev
Mudb0y has quit [Read error: Connection reset by peer]
Mudb0y has joined #asahi-dev
hightower4 has quit [Ping timeout: 480 seconds]
Mudb0y has quit []
Mudb0y has joined #asahi-dev
Mudb0y has quit []
bcrumb has joined #asahi-dev
c10l has quit [Quit: Bye o/]
bcrumb has quit []
bcrumb has joined #asahi-dev
c10l has joined #asahi-dev
bcrumb has quit []
c10l has quit [Quit: Bye o/]
hightower3 has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Quit: WeeChat 3.6]
MajorBiscuit has joined #asahi-dev
c10l has joined #asahi-dev
MajorBiscuit has quit []
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
balrog has quit [Quit: Bye]
bcrumb has joined #asahi-dev
bcrumb has quit [Quit: WeeChat 3.7.1]
balrog has joined #asahi-dev
bcrumb has joined #asahi-dev
hightower2 has joined #asahi-dev
cylm_ has quit [Ping timeout: 480 seconds]
bps has quit [Ping timeout: 480 seconds]
nopeslide1 has joined #asahi-dev
nopeslide has quit [Ping timeout: 480 seconds]
bcrumb has quit [Quit: WeeChat 3.7.1]
hightower2 has quit [Ping timeout: 480 seconds]
SSJ_GZ has joined #asahi-dev
hightower2 has joined #asahi-dev
bps has joined #asahi-dev
bcrumb has joined #asahi-dev
bcrumb has quit [Quit: WeeChat 3.7.1]
bcrumb has joined #asahi-dev
bcrumb has quit []
pthariensflame has joined #asahi-dev
pthariensflame has quit []
bcrumb has joined #asahi-dev
bcrumb has quit [Quit: WeeChat 3.7.1]
hertz_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whomst has joined #asahi-dev
hertz has joined #asahi-dev
lewurm has quit [Ping timeout: 480 seconds]
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
lewurm has joined #asahi-dev
lewurm has quit [Ping timeout: 480 seconds]
<rmk> marcan: good bye
rmk has left #asahi-dev [#asahi-dev]
psykose_ has quit [Remote host closed the connection]
psykose has joined #asahi-dev
lewurm has joined #asahi-dev
___nick___ has quit [Ping timeout: 480 seconds]
lewurm has quit [Ping timeout: 480 seconds]
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blazra has joined #asahi-dev
lewurm has joined #asahi-dev
chadmed has joined #asahi-dev
SSJ_GZ has quit [Ping timeout: 480 seconds]
blazra has quit [Remote host closed the connection]
bps has quit [Ping timeout: 480 seconds]
blazra has joined #asahi-dev