Re: [PATCH v3] drm/gem: Internally test import_attach for imported objects

2025-05-06 Thread Thomas Zimmermann
Hi Am 05.05.25 um 09:29 schrieb Boris Brezillon: On Wed, 30 Apr 2025 11:07:17 +0200 Simona Vetter wrote: On Wed, Apr 16, 2025 at 11:38:03AM +0200, Simona Vetter wrote: On Wed, Apr 16, 2025 at 08:57:45AM +0200, Thomas Zimmermann wrote: Test struct drm_gem_object.import_attach to detect impor

Re: [PATCH v3] drm/gem: Internally test import_attach for imported objects

2025-05-05 Thread Boris Brezillon
On Wed, 30 Apr 2025 11:07:17 +0200 Simona Vetter wrote: > On Wed, Apr 16, 2025 at 11:38:03AM +0200, Simona Vetter wrote: > > On Wed, Apr 16, 2025 at 08:57:45AM +0200, Thomas Zimmermann wrote: > > > Test struct drm_gem_object.import_attach to detect imported objects. > > > > > > During object c

Re: [PATCH v3] drm/gem: Internally test import_attach for imported objects

2025-04-30 Thread Simona Vetter
On Wed, Apr 16, 2025 at 11:38:03AM +0200, Simona Vetter wrote: > On Wed, Apr 16, 2025 at 08:57:45AM +0200, Thomas Zimmermann wrote: > > Test struct drm_gem_object.import_attach to detect imported objects. > > > > During object clenanup, the dma_buf field might be NULL. Testing it in > > an object'

Re: [PATCH v3] drm/gem: Internally test import_attach for imported objects

2025-04-16 Thread Simona Vetter
On Wed, Apr 16, 2025 at 08:57:45AM +0200, Thomas Zimmermann wrote: > Test struct drm_gem_object.import_attach to detect imported objects. > > During object clenanup, the dma_buf field might be NULL. Testing it in > an object's free callback then incorrectly does a cleanup as for native > objects.

Re: [PATCH v3] drm/gem: Internally test import_attach for imported objects

2025-04-16 Thread Boris Brezillon
On Wed, 16 Apr 2025 08:57:45 +0200 Thomas Zimmermann wrote: > Test struct drm_gem_object.import_attach to detect imported objects. > > During object clenanup, the dma_buf field might be NULL. Testing it in > an object's free callback then incorrectly does a cleanup as for native Just pointing i

[PATCH v3] drm/gem: Internally test import_attach for imported objects

2025-04-16 Thread Thomas Zimmermann
Test struct drm_gem_object.import_attach to detect imported objects. During object clenanup, the dma_buf field might be NULL. Testing it in an object's free callback then incorrectly does a cleanup as for native objects. Happens for calls to drm_mode_destroy_dumb_ioctl() that clears the dma_buf fi