00:15 fdobridge: <g​fxstrand> `Pass: 402160, Fail: 510, Crash: 26, Skip: 1730079, Timeout: 2, Flake: 593, Duration: 1:10:01`
00:15 fdobridge: <g​fxstrand> Fixed 324 tests, sadly none of them were flakes or causing flakes/hangs.
00:33 fdobridge: <a​irlied> @gfxstrand 24592 says it fixes some crashers
02:11 fdobridge: <a​irlied> @gfxstrand I moved your s8 support to a new MR, rebased it, fixed kind selection, made it turing+ for now, clears/copies work but still causing gpu hangs with draws
02:12 fdobridge: <e​sdrastarsis> Oh, Debian already has a GSP firmware package available
02:14 fdobridge: <a​irlied> I wonder how they picked a version
02:24 culuar: it's really sophisticated language, but overall semantics analysis are recursive cause it needs a context in which the words provide the meaning, inference rule is not searching any context, it does all syntactically, in the context of this solver it makes sense that it is non-iterative procedure for the resolution rule. But the rest of it comes with debugging with say gdb and DWARF metainfo.
02:25 fdobridge: <g​fxstrand> Thanks!
02:26 fdobridge: <g​fxstrand> I'm doing a serial run now. We'll see if I can figure out the hangs from that tomorrow.
02:26 fdobridge: <g​fxstrand> It's about a 6h run if deqp-runner is to be believed
02:27 fdobridge: <g​fxstrand> @airlied Do you have IRC mod on #Nouveau?
02:28 fdobridge: <a​irlied> I have ops I think
02:29 fdobridge: <a​irlied> so do you
02:30 fdobridge: <g​fxstrand> I do? 😂
02:32 fdobridge: <g​fxstrand> I should probably learn how to use them
02:33 fdobridge: <a​irlied> both you and me are in the list as CHANOP in chanserv
02:36 fdobridge: <g​fxstrand> k
03:00 airlied: dakr: sent you a lockdep trace on rh email
03:01 fdobridge: <a​irlied> I wonder what magic s8 needs
03:04 culuar: in those terms, would inference be faster or slower, it actually is suppose to be slower in when transformed to computer world, but since computers are forced to emulate language and human brain by regulation to match semiotics, they forced the design to be faster. So that is what that scottish author actually is trying to say.
03:13 fdobridge: <a​irlied> okay the locking issues is pre-gsp ampere+ and gsp
03:18 fdobridge: <a​irlied> hmm push_sync is broken unfortunately with the new uapi, we don't get fail until the next push submit
03:18 fdobridge: <a​irlied> since exec returns errors but we don't send errors on sync objs as we know that can cause bad stuff
03:29 fdobridge: <g​fxstrand> If we had an ioctl to check for channel death, there's a vk_device hook for it that gets called periodically.
03:30 fdobridge: <g​fxstrand> In particular it gets called before `vkWaitSemaphore()` and `vkWaitForFences()` return.
03:31 fdobridge: <g​fxstrand> We can still implement Vulkan without it, it just lets us know a little earlier.
03:33 fdobridge: <a​irlied> null exec is that ioctl really
03:34 fdobridge: <a​irlied> granted we could make it nullier
03:34 fdobridge: <a​irlied> so maybe an alternate ioctl would be useful
03:43 fdobridge: <a​irlied> @gfxstrand https://gitlab.freedesktop.org/nouvelles/kernel/-/commit/bd644d97b300001f6a69a0efd47f1da89e5cf505.patch first pass
03:45 fdobridge: <g​fxstrand> Being able to query for any dead channel would be useful too. Maybe return the first dead one?
03:46 fdobridge: <g​fxstrand> Also, are you planning to take a lock before you walk that linked list. 😅
03:51 fdobridge: <a​irlied> abi16 get/put is the lock afaik
03:52 fdobridge: <a​irlied> will we ever really have more than 1 channel on a fd?
03:53 fdobridge: <a​irlied> ah well s8 traces from the prop driver are telling me they definitely do more stuff for s8 than d24/s8 but what more they do is not very obvious
03:53 fdobridge: <a​irlied> but there appears to be some s8 clears to 0xff before clears to 0x0
03:53 fdobridge: <a​irlied> but not sure if that is just some ZCULL workarounds
04:21 fdobridge: <g​fxstrand> Yeah. Channel is per-queue, fd is per-device.
04:22 fdobridge: <g​fxstrand> Weird...
04:30 fdobridge: <a​irlied> ah real queues 😛
04:30 fdobridge: <g​fxstrand> I'm not surprised there might be workarounds. What surprised me is that rendering just seemed to not work. Maybe it was the PTE thing, though.
04:31 fdobridge: <g​fxstrand> Yeah, pretty sure we already support those properly. Have for a while now, actually.
04:32 fdobridge: <g​fxstrand> I should probably plumb stuff through a bit so we don't allocate subchannels we don't need. Line, a DMA-only queue doesn't need 3D or compute subchannels. 🤔
04:32 fdobridge: <a​irlied> the PTE fixed clears for me, but rendering still doesn't work
04:32 fdobridge: <a​irlied> gr: DATA_ERROR 00000135 [] ch 4 [01ffe43000 deqp-vk[3181]] subc 0 class c597 mthd 0d78 data 00000006
04:32 fdobridge: <a​irlied> on the first draw to ti
04:32 fdobridge: <g​fxstrand> I should probably plumb stuff through a bit so we don't allocate subchannels we don't need. Like, a DMA-only queue doesn't need 3D or compute subchannels. 🤔 (edited)
04:32 fdobridge: <g​fxstrand> Ah, yes, the universal error message. 😅
04:33 fdobridge: <a​irlied> yeah something went wrong, please try again
04:34 fdobridge: <a​irlied> the d24s8 version of the test works fine, and the command streams are the same apart from the stencil bit
04:34 fdobridge: <a​irlied> whereas nvidia does a bit different
04:35 fdobridge: <g​fxstrand> 🙃
04:36 fdobridge: <a​irlied> https://people.freedesktop.org/~airlied/scratch/nv-traces/ has traces, stencil-op and ds-op are s8 and d24s8 from nvidia
04:38 fdobridge: <a​irlied> added ptrs in the MR
04:43 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> Where?
06:05 fdobridge: <g​fxstrand> `[109149.353018] nouveau 0000:17:00.0: deqp-vk[77832]: pushbuf push count exceeds limit: 514 max 512`
06:05 fdobridge: <g​fxstrand> @airlied I thought you said there was no limit. 😛
06:11 fdobridge: <g​fxstrand> Fortunately, with the new UAPI, splitting pusbufs is relatively easy
06:12 fdobridge: <g​fxstrand> But I'm wondering if I really need to split or if we just need to improve the kernel
06:19 fdobridge: <a​irlied> Didn't think we limited it. But maybe the ring space limits it
06:19 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> So the new uAPI was a lie? 🤔
06:19 fdobridge: <g​fxstrand> nouvaeu_exec.c:390
06:20 fdobridge: <g​fxstrand> No, with the new uAPI, splitting stuff up in NVK is trivial. It's still way better.
06:20 fdobridge: <g​fxstrand> I mean, it's not totally trivial with all that old UAPI code in the way but, once we delete that, it'll be really easy.
06:25 fdobridge: <g​fxstrand> @airlied, dakr: I started a serial CTS run 4 hours ago and it's got 3 hours left. I have yet to see a single fault. I see a dozen segmentation faults, two hung shaders and two of those push count messages. No faults.
06:25 fdobridge: <g​fxstrand> Oh, and so far only 1 flake.
06:26 fdobridge: <g​fxstrand> @airlied, dakr: I suspect the remaining faults (and corresponding flakes) are also kernel bugs. Maybe something wrong with eviction that's causing it to not wait properly on pending work before swapping stuff out from underneath us?
06:57 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> I see a NvGspRm nouveau option in Ben's kernel (is it used to disable the GSP support?)
07:50 fdobridge: <a​irlied> @gfxstrand hey does dEQP-VK.memory.allocation.basic.size_8KiB.forward.count_4000 fail for you?
07:50 fdobridge: <a​irlied> I'm hitting a 4k limit of allocations that I'm not sure who is at fault, tomorrow me will try and work it out
07:51 fdobridge: <a​irlied> I think we can burn that limit check
07:51 airlied: dakr: ^
09:24 fdobridge: <e​sdrastarsis> It's to enable the support
09:36 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> I didn't need this to use GSP before
09:38 fdobridge: <e​sdrastarsis> But now you need it, as the support is still WIP gsp is disabled by default
10:15 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> I wonder if the early GSP blobs are MIT-licensed (because they're binary blob firmware) :nouveau:
10:52 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> Anyway I packaged the Turing/Ampere GSP blobs in an Arch package :nouveau:
10:57 fdobridge: <b​utterflies> > if the early GSP blobs are MIT-licensed
10:57 fdobridge: <b​utterflies> Yes (as in, the bootstrap)
14:48 fdobridge: <g​fxstrand> Here's the full dmesg from my overnight serial run. No faults. Only two shader hangs.
14:48 fdobridge: <g​fxstrand> https://cdn.discordapp.com/attachments/1034184951790305330/1139208671935598602/message.txt
15:03 fdobridge: <k​arolherbst🐧🦀> yeah... so I don't exactly know what it is, but I _think_ nouveau is kinda able to mess up command submissions if multiple processes submit things at the same time. I sadly have no solid evidence of this...
15:04 fdobridge: <k​arolherbst🐧🦀> but threaded runs were always more crashy, but one reason for that is that a dead channel could wipe other channels as well if the gr needs rebooting
15:05 fdobridge: <k​arolherbst🐧🦀> anyway.. I'm sure it's something silly
15:10 dakr: airlied: dEQP-VK.memory.allocation.basic.size_8KiB.forward.count_4000 does pass on my end
15:45 fdobridge: <g​fxstrand> It's not that. I have exactly 2 channel deaths in that run. That doesn't explain 500 flakes.
15:46 fdobridge: <g​fxstrand> `Pass: 402772, Fail: 501, Crash: 13, Skip: 1730079, Timeout: 2, Flake: 3, Duration: 7:08:52`
15:46 fdobridge: <k​arolherbst🐧🦀> the point is, if the runner tries a failed test again and it passes, the channel might have been killed caused by another test killing its channel
15:47 fdobridge: <k​arolherbst🐧🦀> and then running it again fixes it
15:47 fdobridge: <g​fxstrand> Yes, i know. But there are exactly 2 resets in that entire run.
15:47 fdobridge: <g​fxstrand> 2 resets * 18 threads is a maximum of 36 tests affected by that
15:47 fdobridge: <k​arolherbst🐧🦀> right, I think some of that threading stuff is in the channel recovery, but I also think there are other threading issues besides those
15:48 fdobridge: <k​arolherbst🐧🦀> sometimes it feels like contexts mess up eather other states
15:49 fdobridge: <g​fxstrand> Yeah, given that most of what we're seeing at this point is faults, I suspect one of two thing:
15:49 fdobridge: <g​fxstrand> 1. We have a binding race in NVK or the CTS that somehow doesn't show up EVER in a serial run.
15:49 fdobridge: <g​fxstrand> 2. We have a kernel bug either pertaining to multiple contexts in flight or to memory pressure and eviction
15:49 fdobridge: <g​fxstrand> Given the statistics of 400k tests, I really don't think 1 is likely.
15:49 fdobridge: <g​fxstrand> Yeah, given that most of what we're seeing at this point is faults, I suspect one of two thing:
15:49 fdobridge: <g​fxstrand>
15:49 fdobridge: <g​fxstrand> 1. We have a binding race in NVK or the CTS that somehow doesn't show up EVER in a serial run.
15:49 fdobridge: <g​fxstrand> 2. We have a kernel bug either pertaining to multiple contexts in flight or to memory pressure and eviction
15:49 fdobridge: <g​fxstrand> Given the statistics of 400k tests, I really don't think 1 is likely. (edited)
15:49 fdobridge: <g​fxstrand> Yeah, given that most of what we're seeing at this point is faults, I suspect one of two thing:
15:49 fdobridge: <g​fxstrand> 1. We have a binding race in NVK or the CTS that somehow doesn't show up EVER in a serial run.
15:49 fdobridge: <g​fxstrand> 2. We have a kernel bug either pertaining to multiple contexts in flight or to memory pressure and eviction
15:49 fdobridge: <g​fxstrand> Given the statistics of 400k tests, I really don't think 1 is likely. (edited)
15:49 fdobridge: <g​fxstrand> Yeah, given that most of what we're seeing at this point is faults, I suspect one of two thing:
15:49 fdobridge: <g​fxstrand> 1. We have a binding race in NVK or the CTS that somehow doesn't show up EVER in a serial run.
15:49 fdobridge: <g​fxstrand>
15:49 fdobridge: <g​fxstrand> 2. We have a kernel bug either pertaining to multiple contexts in flight or to memory pressure and eviction
15:49 fdobridge: <g​fxstrand> Given the statistics of 400k tests, I really don't think 1 is likely. (edited)
15:49 fdobridge: <g​fxstrand> Yeah, given that most of what we're seeing at this point is faults, I suspect one of two thing:
15:49 fdobridge: <g​fxstrand> 1. We have a binding race in NVK or the CTS that somehow doesn't show up EVER in a serial run.
15:49 fdobridge: <g​fxstrand> 2. We have a kernel bug either pertaining to multiple contexts in flight or to memory pressure and eviction
15:50 fdobridge: <g​fxstrand> Given the statistics of 400k tests, I really don't think 1 is likely. (edited)
15:50 fdobridge: <k​arolherbst🐧🦀> yeah.. sooo.. command submission is a bit of a pita and I think it involves forcing/switching to a gpu context
15:50 fdobridge: <k​arolherbst🐧🦀> but I don't actually know for sure
15:50 fdobridge: <k​arolherbst🐧🦀> I'd have to read up on that code, but I wouldn't be surprised if the kernel can submit to a wrong context
15:50 fdobridge: <k​arolherbst🐧🦀> how many dead channels do you see in a threaded run?
15:52 fdobridge: <g​fxstrand> IDK about the dead channel message itself but I see hundreds of faults
15:52 fdobridge: <k​arolherbst🐧🦀> mhh yeah...
15:52 fdobridge: <k​arolherbst🐧🦀> so I think there is the possibility to mess up other channels
15:53 fdobridge: <k​arolherbst🐧🦀> It also kinda feels like that something is racing on the channel ids as well
15:53 fdobridge: <k​arolherbst🐧🦀> for whatever reason
15:54 fdobridge: <k​arolherbst🐧🦀> maybe I just write some userspace code to fuzz that stuff, just submit hundreds of things or something
15:55 fdobridge: <g​fxstrand> That doesn't sound like a bad plan. You can put that code in IGT
15:55 fdobridge: <g​fxstrand> 🙂
15:55 fdobridge: <k​arolherbst🐧🦀> what concerns me that we literally put the channel id in the submission ioctl.. what if...
15:56 fdobridge: <g​fxstrand> Wait... The nouveau kernel isn't assuming that's a globally unique key is it? 🤯
15:56 fdobridge: <k​arolherbst🐧🦀> that's my working theory
15:56 fdobridge: <g​fxstrand> That would be v. bad
15:56 fdobridge: <!​[NVK Whacker] Echo (she) 🇱🇹> Like not resetting a variable's value 🐸
15:56 fdobridge: <k​arolherbst🐧🦀> yeah...
16:14 fdobridge: <g​fxstrand> Looks like the one shader hang will get fixed by reclocking.
17:17 fdobridge: <g​fxstrand> Hrm... If there are lots of long shaders, it's possible that, when we run in parallel, shaders that complete in plenty of time in the serial run also time out. If those resets break other channels, that could explain it, too.
17:21 fdobridge: <g​fxstrand> I would say that the solution is to do my threaded runs with GSP except I have a feeling that might not be such a good idea. 😂
17:48 fdobridge: <k​arolherbst🐧🦀> ahh yeah.. might run into some weird timeouts
17:48 fdobridge: <k​arolherbst🐧🦀> I've seen some issues going away on older GPUs when the users clocked up the GPU
17:48 fdobridge: <k​arolherbst🐧🦀> nah, GSP is fine.. probably 😄
17:49 fdobridge: <k​arolherbst🐧🦀> I've done a CTS run on Ada with GSP
17:49 fdobridge: <k​arolherbst🐧🦀> threaded it was kinda a hit and miss, but serial it should be totally fine
17:54 fdobridge: <a​irlied> I'm doing threaded gsp runs on ampere most days, i think my flake numbers are similiar
17:54 fdobridge: <g​fxstrand> 🫤
17:54 fdobridge: <a​irlied> Also gsp has one explosion mode that takes out the test run randomky
17:55 fdobridge: <g​fxstrand> The faults make me really suspect context juggling or eviction.
17:55 fdobridge: <a​irlied> And I think this 4000 alloc limit might be gsp related
17:56 fdobridge: <g​fxstrand> Why? I don't get an Alloc limit at all. It's all just page tables. We should be about to point PTEs at as many things as we want.
17:58 fdobridge: <a​irlied> Yeah no idea just noticed the tests failing
17:58 fdobridge: <a​irlied> Like I don't think I'm running out of vram after 4000 8k alloca
17:59 fdobridge: <a​irlied> Was old uapi flakes about the same?
18:02 fdobridge: <a​irlied> https://gitlab.freedesktop.org/nouvelles/kernel/-/commit/6aff9ad3d1f69502d43f8d83c7f5297470f9adb6.patch was something I wrote before
18:02 fdobridge: <a​irlied> But I doubt it will make any difference
18:31 fdobridge: <a​irlied> @gfxstrand care to paste the failures.csv from the single thread run?
18:37 airlied: dakr: actually if we do remove that limit on pushbuf, I think there's a chance u_memcpya can be overflowed
18:37 airlied: but it can probably be overflowed now with the signal/waits stuff
18:39 fdobridge: <g​fxstrand> https://cdn.discordapp.com/attachments/1034184951790305330/1139266761909354576/message.txt
18:42 fdobridge: <a​irlied> thanks!
20:13 dakr: airlied: Oh! Guess, you mean because of "size *= nmemb"?
20:13 airlied: yup
20:13 airlied: I sent a second patch
20:14 airlied: I think we need vmemdup_user_array
20:15 dakr: where did you sent them?
20:21 airlied: dri-devel + nouveau
20:22 airlied: https://patchwork.freedesktop.org/series/122304/
22:46 dakr: gfxstrand, airlied: since the pushbuf limit of 512 wasn't enough, what's the worst case amount to expect?
22:51 fdobridge: <a​irlied> Not sure if Vulkan advertised any limit, do we have any limitation other than kmalloc?
22:51 fdobridge: <a​irlied> The ring might have a limit I suppose
22:53 dakr: airlied: Just trying to figure out if I want to get rid of an extra copy of this array..
22:56 dakr: However, I think we can get rid of it either way. I think I took this over from how I initialize VM_BIND jobs. There I wasn't sure if we will ever have to case where we need to generate jobs from the kernel side and hence don't deal with userptrs, hence I abstracted this part.
23:07 dakr: airlied: for the channel it seems to be 1023, but I'm not entirely sure tbh..
23:09 fdobridge: <g​fxstrand> We can split in userspace if we know the limit. We couldn't before, not practically, but we can now.
23:10 fdobridge: <g​fxstrand> But so can the kernel
23:10 fdobridge: <g​fxstrand> Worst case, split the job into N jobs and put the in-fences on the first one and the out-fences on the last one.
23:29 dakr: gfxstrand: I think doing it in the kernel would be nice, that nothing userspace should be bothered with.
23:37 dakr: My initial idea for jobs larger than the channel size would be to return the scheduler a dummy fence in run_job(), fill up the ring, emit a real fence and in its fence callback fill the ring up again. Once we don't have anything anymore to fill the ring up again signal the dummy fence.