From: Tejun Heo <tj@kernel.org>
To: Alexander Gordeev <agordeev@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: [PATCH v4 4/4] AHCI: Do not read HOST_IRQ_STAT reg in multi-MSI mode
Date: Sun, 28 Sep 2014 12:10:50 -0400 [thread overview]
Message-ID: <20140928161050.GC8050@mtj.dyndns.org> (raw)
In-Reply-To: <82c0cbbafd74eca0e346ca97f73838ba236315c3.1411648623.git.agordeev@redhat.com>
Hello, Alexander.
On Thu, Sep 25, 2014 at 03:13:24PM +0200, Alexander Gordeev wrote:
> @@ -1797,11 +1797,14 @@ static irqreturn_t ahci_port_thread_fn(int irq, void *dev_instance)
> unsigned long flags;
> u32 status;
>
> - spin_lock_irqsave(&ap->host->lock, flags);
> + spin_lock_irqsave(&pp->intr_lock, flags);
> status = pp->intr_status;
> if (status)
> pp->intr_status = 0;
> - spin_unlock_irqrestore(&ap->host->lock, flags);
> + spin_unlock_irqrestore(&pp->intr_lock, flags);
atomic_xchg() prolly is a better option here.
> +
> + if (!status)
> + return IRQ_NONE;
>
> spin_lock_bh(ap->lock);
> ahci_handle_port_interrupt(ap, port_mmio, status);
> @@ -1824,53 +1827,14 @@ static void ahci_update_intr_status(struct ata_port *ap)
>
> static irqreturn_t ahci_multi_irqs_intr(int irq, void *dev_instance)
> {
...
> + spin_lock(&pp->intr_lock);
> + ahci_update_intr_status(ap);
> + spin_unlock(&pp->intr_lock);
and atomic_or() in update_intr_status.
Thanks.
--
tejun
next prev parent reply other threads:[~2014-09-28 16:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-25 13:13 [PATCH v4 0/4] AHCI: Optimize interrupt processing " Alexander Gordeev
2014-09-25 13:13 ` [PATCH v4 1/4] AHCI: Cleanup checking of multiple MSIs/SLM modes Alexander Gordeev
2014-09-25 13:13 ` [PATCH v4 2/4] AHCI: Move host activation code into ahci_host_activate() Alexander Gordeev
2014-09-28 16:04 ` Tejun Heo
2014-09-29 10:18 ` Alexander Gordeev
2014-09-29 10:19 ` [PATCH] " Alexander Gordeev
2014-09-29 14:04 ` Tejun Heo
2014-09-25 13:13 ` [PATCH v4 3/4] AHCI: Make few function names more descriptive Alexander Gordeev
2014-09-28 16:04 ` Tejun Heo
2014-09-25 13:13 ` [PATCH v4 4/4] AHCI: Do not read HOST_IRQ_STAT reg in multi-MSI mode Alexander Gordeev
2014-09-28 16:10 ` Tejun Heo [this message]
2014-09-29 10:21 ` [PATCH] " Alexander Gordeev
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=20140928161050.GC8050@mtj.dyndns.org \
--to=tj@kernel.org \
--cc=agordeev@redhat.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@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
Powered by JetHome