On Sat, Oct 18, 2014 at 12:43:27AM +0300, Oded Gabbay wrote:Maybe, I need to think about that. Anyway, I'm still not convinced, please see next question.
3. Later, amdkfd's mmu notifier callback (kfd_process_notifier_release()) gets
called and releases more things that are related to the process.
In that function, amd_iommu_unbind_pasid() is explicitly called.
Can't you just register a delayed funtion in
kfd_process_notifier_release() and call amd_iommu_unbind_pasid() from
there?
especially since it is going to be turned into a generic IOMMU-API--
extension.
And especially since all these hacks could be avoided if the KFD driver
would just turn down everything on closing the file descriptor.
Joerg
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/