From: "Cc: Joerg Roedel" <joro@8bytes.org>
To: Mike Galbraith <umgwanakikbuti@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Sagar Arun Kamble <sagar.a.kamble@intel.com>
Subject: Re: [patch] drivers/iommu: Fix iova DEBUG_PREEMPT splat
Date: Wed, 15 Jun 2016 15:59:50 +0200 [thread overview]
Message-ID: <20160615135950.GM26566@8bytes.org> (raw)
In-Reply-To: <1465822596.4006.2.camel@gmail.com>
On Mon, Jun 13, 2016 at 02:56:36PM +0200, Mike Galbraith wrote:
>
> Signed-off-by: Mike Galbraith <umgwanakikbuti@gmail.com>
> Cc: Joerg Roedel <joro@8bytes.org>
> ---
> drivers/iommu/iova.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> --- a/drivers/iommu/iova.c
> +++ b/drivers/iommu/iova.c
> @@ -749,8 +749,9 @@ static bool __iova_rcache_insert(struct
> bool can_insert = false;
> unsigned long flags;
>
> + local_irq_save(flags);
> cpu_rcache = this_cpu_ptr(rcache->cpu_rcaches);
> - spin_lock_irqsave(&cpu_rcache->lock, flags);
> + spin_lock(&cpu_rcache->lock);
>
> if (!iova_magazine_full(cpu_rcache->loaded)) {
> can_insert = true;
> @@ -812,8 +813,9 @@ static unsigned long __iova_rcache_get(s
> bool has_pfn = false;
> unsigned long flags;
>
> + local_irq_save(flags);
> cpu_rcache = this_cpu_ptr(rcache->cpu_rcaches);
> - spin_lock_irqsave(&cpu_rcache->lock, flags);
> + spin_lock(&cpu_rcache->lock);
>
> if (!iova_magazine_empty(cpu_rcache->loaded)) {
> has_pfn = true;
>From an earlier patch submitted by Sagar (Cc'ed) I think the right fix
is to just make the code use get_cpu_ptr/put_cpu_ptr instead of
this_cpu_ptr.
Joerg
prev parent reply other threads:[~2016-06-15 14:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-13 12:56 [patch] drivers/iommu: Fix iova DEBUG_PREEMPT splat Mike Galbraith
2016-06-15 13:59 ` Cc: Joerg Roedel [this message]
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=20160615135950.GM26566@8bytes.org \
--to=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sagar.a.kamble@intel.com \
--cc=umgwanakikbuti@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.