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

2025-04-15 Thread Thomas Zimmermann
Hi Am 15.04.25 um 16:19 schrieb Boris Brezillon: On Tue, 15 Apr 2025 16:02:20 +0200 Thomas Zimmermann wrote: Test struct drm_gem_object.import_attach.dmabuf to detect imported objects. Warn if the stored state is inconsistent. During object clenaup, the dma_buf field might be NULL. Testing i

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

2025-04-15 Thread Boris Brezillon
On Tue, 15 Apr 2025 16:02:20 +0200 Thomas Zimmermann wrote: > Test struct drm_gem_object.import_attach.dmabuf to detect imported > objects. Warn if the stored state is inconsistent. > > During object clenaup, the dma_buf field might be NULL. Testing it in > an object's free callback then incorre

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

2025-04-15 Thread Thomas Zimmermann
Test struct drm_gem_object.import_attach.dmabuf to detect imported objects. Warn if the stored state is inconsistent. During object clenaup, 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