https://bugzilla.kernel.org/show_bug.cgi?id=214621
--- Comment #8 from Lang Yu (Lang.Yu@amd.com) --- (In reply to Christian König from comment #7)
Yeah, that won't work. As far as I can see the problem is not inside amdgpu, but rather inside the driver which is importing buffers from amdgpu.
At least, we should call drm_prime_gem_destroy() to detach dma-buf(if exists) before WARN_ON_ONCE(bo->pin_count).
And do you think if clients don't unmap/detach amdgpu dma-buf properly, should amdgpu do that work? Thanks!