Re: WARNING: amd_iommu. linux-4.4.1-rt6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 23 Feb 2016, DIXLOR wrote:
> 
> [    1.828887] iommu: Adding device 0000:00:14.5 to group 10
> [    1.831805] ------------[ cut here ]------------
> [    1.831814] WARNING: CPU: 0 PID: 1 at drivers/iommu/amd_iommu.c:1958
> 0xffffffff812d6449()
>
> static int __attach_device(struct iommu_dev_data *dev_data,
>                            struct protection_domain *domain)
> {
>         int ret;
> 
>         /*
>          * Must be called with IRQs disabled. Warn here to detect early
>          * when its not.
>          */
>         WARN_ON(!irqs_disabled());
>         ^^^^^^^^^^^^^^^^^^^^^^^^^^  WARNING

The patch below fixes that.

Thanks,

	tglx

8<--------------------------------

--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -1952,10 +1952,10 @@ static int __attach_device(struct iommu_
 	int ret;
 
 	/*
-	 * Must be called with IRQs disabled. Warn here to detect early
-	 * when its not.
+	 * Must be called with IRQs disabled on a non RT kernel. Warn here to
+	 * detect early when its not.
 	 */
-	WARN_ON(!irqs_disabled());
+	WARN_ON_NORT(!irqs_disabled());
 
 	/* lock domain */
 	spin_lock(&domain->lock);
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux