01:59fdobridge: <ishitatsuyuki> Was looking into implementing split barriers (with layout transitions) on RADV but immediately hit a roadblock. The problem is like this:
01:59fdobridge: <ishitatsuyuki> 1. We need to wait for the pre-transition execution barrier.
01:59fdobridge: <ishitatsuyuki> 2. We then perform the transition and wait for it to complete (+fuse with post-transition execution barrier).
01:59fdobridge: <ishitatsuyuki> Here 1. and 2. are both blocking operations, and you can only defer one blocking operation at once (i.e. Promise.then() style stuff is not possible in hardware). As far as I've examined nouveau stuff the command processor seems to work in a similar way wrt semaphores. Any idea if nouveau will also hit this problem, or NV hardware has some magic to handle this?
20:24cobbler: Hey, anyone got any idea why load on my GPU completely freezes my system?
20:35apteryx: cobbler: did you look at https://nouveau.freedesktop.org/HangDiagnosis.html ?
20:46apteryx: also perhaps browsing the existing known issues at https://gitlab.freedesktop.org/mesa/mesa/-/issues?label_name%5B%5D=nouveau
20:50cobbler: no sysrq keys work at all after the hang, and i couldn't find any issues similar to mine on the gitlab
20:51cobbler: dmesg output
21:02fdobridge: <gfxstrand> How's TK1 support looking kernel-side?
21:12fdobridge: <karolherbst🐧🦀> mhhh... okayish?
21:32fdobridge: <marysaka> You have a TK1 around? :nya_peek:
21:33fdobridge: <marysaka> If you need any testing/debugging on TX1 I have quite a lot of them ^^'
21:39cobbler: so, can anyone help me with this? by the way, it's an eGPU
21:47karolherbst: cobbler: eGPU? mhh I can imagine something being odd with the controller or some workaround we didn't add yet
21:47karolherbst: cobbler: is this running coreboot?
21:47cobbler: libreboot yeah
21:48karolherbst: kinda looks like the GPU is crashing
21:48cobbler: weird, it works completely fine with proprietary nvidia drivers
21:49karolherbst: yeah.. but some PCIe controllers are funky and nvidia has tons of workarounds
21:50karolherbst: could also be d3cold/d3hot doing weird things
21:50karolherbst: cobbler: mind booting with `nouveau.runpm=0`?
21:50cobbler: sure, gimme a sec
21:50karolherbst: I doubt it changes things, but I also don't want this to be the issue and we didn't try it
21:51karolherbst: but it shouldn't change things, because it's already crashing at driver init
21:51karolherbst: but who knows.. that "timer: stalled at ffffffffffffffff" basically means the GPU is not accessible anymore
21:52karolherbst: this line is also kinda weird: "nouveau 0000:04:00.0: bus: MMIO read of 00000000 FAULT at 3e6684 [ PRIVRING ]"
21:52fdobridge: <gfxstrand> Have you tried NVK out on them at all? In theory it might work but IDK.
21:54fdobridge: <marysaka> I guess I know what to do about those boards again now 😄
21:54karolherbst: cobbler: it's also kinda funky that the GPU loads twice
21:55karolherbst: anyway.. GPU hot unplug is totally not supported and drivers are kinda crashing on that atm
21:56karolherbst: cobbler: but anyway.. we don't have the bandwidth to support eGPUs at the moment, because that does require some bigger driver changes
22:03karolherbst: cobbler: seems like you didn't get my last messages
22:03karolherbst: anyway.. eGPUs are not supported as we lack the bandwidth to actually fix all those issues
22:03cobbler: i'm joined on matrix so i saw them
22:03cobbler: hence the "welp"
22:04karolherbst: it might also be that the controller is a bit funky and reconnects the device once on boot or whatever
22:04karolherbst: it's already weird enough that nouveau loads the device twice
22:04cobbler: this is what i get for buying a random gpu off of ebay huh
22:04cobbler: i tried to get another dmesg but alas the file is empty
22:04karolherbst: ehh. the GPU might be fine, just eGPU cases and thunderbolt is.. funky
22:04cobbler: oh you thought i was using thunderbolt? no no no, this is expresscard
22:05cobbler: yep :|
22:05fdobridge: <Mohamexiety> that's a really old eGPU...
22:05karolherbst: well.. technically it's the same thing
22:06karolherbst: something weird with interrupts is going on I think
22:06cobbler: by the way, on that last boot, there was no strange reconnection
22:06karolherbst: also "[ 193.713217] DMAR: [DMA Read NO_PASID] Request device [04:00.0] fault addr 0x0 [fault reason 0x06] PTE Read access is not set" is probably not helping
22:07karolherbst: yeah.. so the second load in the log looks more reasonable
22:07karolherbst: just that the firmware loading process fails as we don't really get an answer back or something
22:07karolherbst: also command submission totally doesn't seem to work
22:11cobbler: here's dmesg from another boot if this helps at all: http://0x0.st/HNJd.txt
22:12karolherbst: cobbler: do you know if that GPU works properly in a normal desktop?
22:13cobbler: there is a slim chance i'm able to check
22:13cobbler: only desktop computer i have is mega old
22:13karolherbst: well.. as long as it has a PCIe slot it should be good enough
22:13cobbler: i'll go open it up
22:14karolherbst: I put 20 years old GPUs in my 2 year old motherboard, so the reverse should also work, no? :D
22:30fdobridge: <ByLaws> Yeah I think it's the same on NV
22:30fdobridge: <ByLaws> At least maxwell
22:30fdobridge: <ByLaws> You can signal a sema async and then wait for it
22:31fdobridge: <ByLaws> You can signal a sema async and then acquire it (edited)
22:32fdobridge: <ByLaws> You can signal a sema async and then acquire it but that wouldn't really help here (edited)
22:36fdobridge: <ByLaws> You can signal a sema async and then acquire it which half gets you there but not really (edited)
23:23cobbler: couldn't get the desktop to boot :/
23:38karolherbst: cobbler: mhhh.. sad
23:39karolherbst: what's the problem?
23:39cobbler: no idea