00:00airlied: there are some rm api controls NV0073
00:02airlied: which we appear to call
06:40ad__: Lyude: issue created https://gitlab.freedesktop.org/drm/nouveau/-/issues/348
08:01ad__: airlied: i may be completely wrong, but looks like nouveau uses nvif-> stuff for backlight access. From what i see. nvif is kind of system call (ioctl), so looks different stuff than nv0073
08:32ad__: nouveau code is really new to me and wide, anyway, available to collaborate, or testing as needed
11:14fdobridge: <ahuillet> (it's funny, I can't ping you from discord) -- I suggest you try to figure out what Nouveau does, and compare to openRM. https://github.com/NVIDIA/open-gpu-kernel-modules/blob/main/src/nvidia-modeset/src/nvkms.c#L6649
11:18fdobridge: <mohamexiety> you can write the IRC username and they get an IRC ping I think, but this may vary from client to client
11:18fdobridge: <ahuillet> oh wait, the implementation of that seems like it might not be done in GSP-RM actually?
11:19fdobridge: <ahuillet> it seems that the blob writes to https://github.com/NVIDIA/open-gpu-kernel-modules/blob/main/src/common/inc/displayport/dpcd.h#L1181 to change the brightness (if I'm reading things properly)
11:21fdobridge: <ahuillet> also this https://github.com/NVIDIA/open-gpu-kernel-modules/blob/main/src/common/inc/displayport/dpcd.h#L1105
12:20fdobridge: <ahuillet> I may be very wrong (first time reading through this), but it seems that DRM passes the NV0073 ctrl to GSP, but I wonder if it is actually implemented by GSP -- seems like you need to write the DP register directly from the kernel, not through GSP (maybe?).
12:32fdobridge: <marysaka> Yesterday I tried to do a full CTS run (without WSI) and it got stuck at some point then got a null pointer, is it the same issue on VMM that was discussed before? https://gist.github.com/marysaka/559a7659d9b6bef50cc94e7827925cfb
15:17fdobridge: <gfxstrand> Yeah, I'm pretty sure that one's been fixed. Grab my NVK branch. It's 6.8.2 + one patch.
15:18fdobridge: <marysaka> Okay thank you!
16:16fdobridge: <mhenning> Oh, it looks like that patch (" nouveau/uvmm: fix addr/range calcs for remap operations ") didn't make it into 6.8.3.
16:19fdobridge: <gfxstrand> :blobcatnotlikethis:
16:37fdobridge: <mhenning> @airlied ^ was that patch supposed to hit stable? (I don't have a clear understanding of the kernel workflow.)
16:37fdobridge: <airlied> It will eventually, it isn't sent to Linus yet
16:39fdobridge: <mhenning> Okay, I'll be patient then. Thanks.
16:40fdobridge: <!DodoNVK (she) 🇱🇹> Is it CC'd to linux-stable though?
19:33Lyude: btw - fixing some DP aux related issues with nouveau today that may have been making runtime PM flaky for some people :) (and also were the cause of all of the GSP error failure spam)
20:05fdobridge: <ahuillet> what was the problem?
20:09airlied: Lyude: btw have you seen the cursor plane bug?
20:10Lyude: airlied: oh i haven't yet
20:11Lyude: also ahuillet - the problem is that GSP just does not like when drivers try to do aux transactions on any kind of port that isn't actually connected and it can occasionally cause timeouts and also error spam from aux requests to GSP failing
20:12Lyude: I've basically fixed it for the most part by just disabling aux transactions entirely when we think a connector isn't connected (and making sure to temporarily enable them during probing), along with more strictly enforcing that we don't probe eDP ports more then once ever
20:13airlied: https://gitlab.freedesktop.org/drm/nouveau/-/issues/344
20:13Lyude: though, now I've discovered we can also get some fun errors as a result of userspace racing with the connector probe status and trying to enable a display that isn't actually there anymore, so now I've gotta figure out a way to deal with that
20:13airlied: Lyude: getting gsp timeouts is probably fine, as long as we don't report them
20:13Lyude: TimurTabi: does NV_ERR_BROKEN_FB carry non-framebuffer related meaning? I'm noticing that seems to be the response we get if we attempt link training on a port that isn't actually there anymore
20:14Lyude: airlied: it's not in this case, actually! we both do report them and I've seen it somehow cause runtime PM resume to time out
20:14Lyude: and the errors are kind of nonsense (0xffff, so "generic error") that we can't really properly interpret as "this just failed because the connector isn't there)
20:15Lyude: as for the other link training errors - they don't break anything but I'd like to at least know if we can reliably silence them somehow when we unplug something
20:15Lyude: airlied: oh right i forgot about that issue sheesh
20:16Lyude: I am taking a look at the backlight stuff that was mentioned yesterday today, so I can take some time to look at that as well
20:57Lyude: oh hey - looks like nvidia's driver does the same thing I was thinking of having us do (e.g. disabling link training if the connector is marked as disconnected by GSP)
21:02fdobridge: <rinlovesyou> does this include DP audio? 👉 👈
22:12Lyude: rinlovesyou: unfortunately no, for the time being this is just to keep current nouveau.ko in good shape until the messia^W^W^W^W^W^Wnew driver comes
23:48fdobridge: <gfxstrand> @karolherbst @marysaka I'd like your thoughts on https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28587 when you get a few minutes
23:49fdobridge: <gfxstrand> It's not all that interesting. I just want to make sure folks are okay with the module structure since everything else we do with Rust will depend on it. Screwing that up too badly will make for a lot of refactoring in future.