linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: DIXLOR <dixlor@gmail.com>
To: linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: [PATCH] AMD IOMMU WARN NONRT
Date: Sat, 27 Feb 2016 14:39:43 +0300	[thread overview]
Message-ID: <56D18AFF.40308@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1043 bytes --]

diff -ur a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
--- a/drivers/iommu/amd_iommu.c    2016-02-17 23:31:25.000000000 +0300
+++ b/drivers/iommu/amd_iommu.c    2016-02-27 14:36:34.928583707 +0300
@@ -1952,10 +1952,10 @@
      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_NONRT(!irqs_disabled());

      /* lock domain */
      spin_lock(&domain->lock);
@@ -2118,10 +2118,10 @@
      struct protection_domain *domain;

      /*
-     * 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_NONRT(!irqs_disabled());

      if (WARN_ON(!dev_data->domain))
          return;




[-- Attachment #2: Криптографическая подпись S/MIME --]
[-- Type: application/pkcs7-signature, Size: 3577 bytes --]

                 reply	other threads:[~2016-02-27 11:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56D18AFF.40308@gmail.com \
    --to=dixlor@gmail.com \
    --cc=linux-rt-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).