[Nouveau] [PATCH 1/2] drmmode: make event handler leave a note that there are stuck events

2020-08-15 Thread Ilia Mirkin
We don't really expect to have too many events in the queue. If there are, then the algorithm we use isn't appropriate. Add a warning when the queue gets very long, as it's an indication of something having gone wrong. Signed-off-by: Ilia Mirkin --- src/drmmode_display.c | 11 +++ 1 file

[Nouveau] [PATCH 2/2] present: fix handling of drmWaitVBlank failures

2020-08-15 Thread Ilia Mirkin
When drmWaitVBlank fails, make sure to remove the event from the queue. Signed-off-by: Ilia Mirkin --- Note this needs a bit more testing, and also double-checking what the "correct" way of dealing with these errors is. I was able to trigger errors with "xset dpms force off", but perhaps there a

Re: [Nouveau] Accumulating CPU load from Xorg process with DRI3

2020-08-15 Thread Ilia Mirkin
I've tracked down at least one source of these, which is that we don't handle drmWaitVBlank errors properly in the PRESENT logic (which would be used in conjunction with DRI3). These errors, broadly, will happen while strings are turned off and/or in DPMS sleep. Did your monitors go to sleep while