We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1dd0a8 commit 272e4f9Copy full SHA for 272e4f9
drivers/iommu/amd_iommu.c
@@ -2030,6 +2030,12 @@ static int __attach_device(struct iommu_dev_data *dev_data,
2030
{
2031
int ret;
2032
2033
+ /*
2034
+ * Must be called with IRQs disabled. Warn here to detect early
2035
+ * when its not.
2036
+ */
2037
+ WARN_ON(!irqs_disabled());
2038
+
2039
/* lock domain */
2040
spin_lock(&domain->lock);
2041
@@ -2190,6 +2196,12 @@ static void __detach_device(struct iommu_dev_data *dev_data)
2190
2196
2191
2197
struct protection_domain *domain;
2192
2198
2199
2200
2201
2202
2203
2204
2193
2205
if (WARN_ON(!dev_data->domain))
2194
2206
return;
2195
2207
0 commit comments