Re: BUG / design challenge: vmwgfx + PRIME handle free == clobbering errno

2024-01-12 Thread Daniel Vetter
On Fri, Dec 22, 2023 at 08:27:14PM -0500, Zack Rusin wrote: > On Tue, Dec 19, 2023 at 11:15 AM Stefan Hoffmeister > wrote: > > > > > > Hi, > > > > vmwgfx implements drmPrimeFDToHandle in terms of the TTM resource manager. > > > > At the same time, the driver advertises > > > >

Re: BUG / design challenge: vmwgfx + PRIME handle free == clobbering errno

2024-01-11 Thread Xaver Hugl
Am Mi., 10. Jan. 2024 um 01:28 Uhr schrieb Zack Rusin < zack.ru...@broadcom.com>: > On Tue, Jan 9, 2024 at 11:06 AM Xaver Hugl wrote: > > > > Hi, > > > > KWin does use DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT. > > Can you point me to the code that implements it? Just wanted to take a > quick look,

Re: BUG / design challenge: vmwgfx + PRIME handle free == clobbering errno

2024-01-09 Thread Zack Rusin
On Tue, Jan 9, 2024 at 11:06 AM Xaver Hugl wrote: > > Hi, > > KWin does use DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT. Can you point me to the code that implements it? Just wanted to take a quick look, because I didn't see the cursor on KDE 6 after fixing the kernel oops. > Tying the check to >

Re: BUG / design challenge: vmwgfx + PRIME handle free == clobbering errno

2024-01-09 Thread Xaver Hugl
Hi, KWin does use DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT. Tying the check to DRM_CLIENT_CAP_ATOMIC instead would IMO make more sense though (even if it's still weird) and would work with older versions of KWin and other compositors. Greetings, Xaver Hugl

Re: BUG / design challenge: vmwgfx + PRIME handle free == clobbering errno

2023-12-22 Thread Zack Rusin
On Tue, Dec 19, 2023 at 11:15 AM Stefan Hoffmeister wrote: > > > Hi, > > vmwgfx implements drmPrimeFDToHandle in terms of the TTM resource manager. > > At the same time, the driver advertises > > .driver_features = > DRIVER_MODESET | DRIVER_RENDER | DRIVER_ATOMIC | DRIVER_GEM, > >

BUG / design challenge: vmwgfx + PRIME handle free == clobbering errno

2023-12-19 Thread Stefan Hoffmeister
Hi, vmwgfx implements drmPrimeFDToHandle in terms of the TTM resource manager. At the same time, the driver advertises .driver_features = DRIVER_MODESET | DRIVER_RENDER | DRIVER_ATOMIC | DRIVER_GEM, Given that, a userland application will call drmCloseBufferHandle to