(In reply to Michel Dänzer from comment #6) > Christian, any idea how the commit below could cause this? -EBADF means the file descriptor number is already closed. So maybe the application is trying to open/close the device multiple times and we have a bug in amdgpu_device_free_internal? Christian.