Vasant Hegde
0b136493d3
iommu/amd: Reorder attach device code
...
Ideally in attach device path, it should take dev_data lock before
making changes to device data including IOPF enablement. So far dev_data
was using spinlock and it was hitting lock order issue when it tries to
enable IOPF. Hence Commit 526606b0a1 ("iommu/amd: Fix Invalid wait
context issue") moved IOPF enablement outside dev_data->lock.
Previous patch converted dev_data lock to mutex. Now its safe to call
amd_iommu_iopf_add_device() with dev_data->mutex. Hence move back PCI
device capability enablement (ATS, PRI, PASID) and IOPF enablement code
inside the lock. Also in attach_device(), update 'dev_data->domain' at
the end so that error handling becomes simple.
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com >
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com >
Link: https://lore.kernel.org/r/20241030063556.6104-11-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de >
2024-10-30 11:06:46 +01:00
..
2024-09-19 11:12:49 +02:00
2024-10-11 11:32:10 -07:00
2024-09-04 15:01:17 +01:00
2024-09-11 16:02:45 +02:00
2024-10-09 16:21:19 +02:00
2024-10-02 17:23:23 -04:00
2024-10-11 11:26:15 -07:00
2024-09-10 19:52:30 -05:00
2024-10-04 10:43:44 -07:00
2024-10-04 16:54:25 -04:00
2024-09-27 08:48:37 -07:00
2024-10-07 11:33:26 -07:00
2024-10-02 17:23:23 -04:00
2024-09-17 15:27:01 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-04 11:57:15 -07:00
2024-09-18 10:49:45 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-09 12:47:19 -07:00
2024-09-05 01:23:56 +09:00
2024-09-26 12:00:25 -07:00
2024-09-19 10:18:15 +02:00
2024-09-16 06:36:37 +02:00
2024-09-26 10:13:08 -07:00
2024-10-02 17:23:23 -04:00
2024-10-04 11:25:14 -07:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-27 08:18:43 -07:00
2024-10-08 16:01:58 +02:00
2024-10-29 10:03:42 +01:00
2024-10-02 17:23:23 -04:00
2024-10-02 16:42:28 -07:00
2024-09-19 10:18:15 +02:00
2024-10-07 08:42:32 -07:00
2024-09-27 08:18:43 -07:00
2024-10-05 10:31:04 -07:00
2024-09-17 16:51:45 +02:00
2024-09-25 22:30:33 +02:00
2024-10-02 17:23:23 -04:00
2024-09-27 08:18:43 -07:00
2024-10-02 16:42:28 -07:00
2024-10-30 11:06:46 +01:00
2024-09-17 22:20:12 +08:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-27 09:11:05 -05:00
2024-10-02 16:42:28 -07:00
2024-10-29 10:03:41 +01:00
2024-10-02 17:23:23 -04:00
2024-09-29 09:22:34 -07:00
2024-10-02 17:23:23 -04:00
2024-10-09 12:47:01 -07:00
2024-10-11 11:23:21 -07:00
2024-10-02 17:23:23 -04:00
2024-10-10 09:06:32 -07:00
2024-10-02 17:23:23 -04:00
2024-09-20 10:51:25 -04:00
2024-09-26 08:43:17 -07:00
2024-10-02 17:23:23 -04:00
2024-09-26 10:13:08 -07:00
2024-10-10 12:43:01 -05:00
2024-10-02 01:27:50 +02:00
2024-09-09 08:53:17 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-01 02:47:39 -07:00
2024-09-23 14:05:10 -07:00
2024-09-26 12:00:25 -07:00
2024-10-06 11:11:01 -07:00
2024-10-02 12:38:53 +02:00
2024-10-02 17:23:23 -04:00
2024-10-08 21:39:33 +02:00
2024-09-27 08:18:43 -07:00
2024-10-02 17:23:23 -04:00
2024-09-26 12:00:25 -07:00
2024-09-13 19:08:14 +01:00
2024-10-29 10:03:41 +01:00
2024-09-13 14:09:47 -07:00
2024-10-02 17:23:23 -04:00
2024-09-28 09:11:46 -07:00
2024-09-27 08:18:43 -07:00
2024-10-12 09:24:13 -07:00
2024-09-26 17:25:29 +02:00
2024-09-03 12:10:38 +02:00
2024-10-02 17:23:23 -04:00
2024-09-23 14:00:46 -07:00
2024-10-05 10:25:04 -07:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-09 12:22:06 +02:00
2024-10-11 11:41:20 -07:00
2024-09-11 15:17:43 +02:00
2024-10-02 17:23:23 -04:00
2024-10-12 09:24:13 -07:00
2024-09-11 16:02:54 +02:00
2024-10-13 09:21:36 -07:00
2024-10-07 11:33:26 -07:00
2024-09-27 08:18:43 -07:00
2024-10-07 11:33:26 -07:00
2024-10-08 21:47:18 +02:00
2024-09-27 08:18:43 -07:00
2024-10-07 11:33:26 -07:00
2024-09-06 19:18:32 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 16:14:30 +02:00
2024-09-04 17:24:58 -05:00