From: Aleksey Makarov <feumilieu@gmail.com>
To: Alexey Klimov <klimov.linux@gmail.com>
Cc: netdev@vger.kernel.org, Robert Richter <rric@kernel.org>,
David Daney <david.daney@cavium.com>,
Sunil Goutham <Sunil.Goutham@caviumnetworks.com>,
Aleksey Makarov <aleksey.makarov@caviumnetworks.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Robert Richter <robert.richter@caviumnetworks.com>,
Sunil Goutham <sgoutham@cavium.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH net-next 6/8] net: thunderx: Rework interrupt handler
Date: Sun, 30 Aug 2015 12:20:38 +0300 [thread overview]
Message-ID: <55E2CAE6.1040305@auriga.com> (raw)
In-Reply-To: <CALW4P++2cG5epoit8BXBjp7Z2PK=P5wqbxkDqrt6kCa7SaZK+g@mail.gmail.com>
On 29.08.2015 04:44, Alexey Klimov wrote:
>> -static irqreturn_t nicvf_intr_handler(int irq, void *nicvf_irq)
>> +static irqreturn_t nicvf_intr_handler(int irq, void *cq_irq)
>> +{
>> + struct nicvf_cq_poll *cq_poll = (struct nicvf_cq_poll *)cq_irq;
>> + struct nicvf *nic = cq_poll->nicvf;
>> + int qidx = cq_poll->cq_idx;
>> +
>> + nicvf_dump_intr_status(nic);
>> +
>> + /* Disable interrupts */
>> + nicvf_disable_intr(nic, NICVF_INTR_CQ, qidx);
>> +
>> + /* Schedule NAPI */
>> + napi_schedule(&cq_poll->napi);
>> +
>> + /* Clear interrupt */
>> + nicvf_clear_intr(nic, NICVF_INTR_CQ, qidx);
>> +
>> + return IRQ_HANDLED;
>> +}
>
> You're not considering spurious irqs in all new irq handlers here and
> below and schedule napi/tasklets unconditionally. Is it correct?
> For me it looks like previous implementation relied on reading of
> NIC_VF_INT to understand irq type and what actions should be
> performed. It generally had idea that no interrupt might occur.
1. The previous version of the handler did not handle spurious
interrupts either. Probably that means that the author of the patch
knows for sure that they do not happen.
2. Instead of reading the status register new version registers
different handlers for different irqs. I don't see why it can be wrong.
I am going to address your other suggestions in the next version of the
patchset.
Thank you
Aleksey Makarov
next prev parent reply other threads:[~2015-08-30 9:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-29 1:44 [PATCH net-next 6/8] net: thunderx: Rework interrupt handler Alexey Klimov
2015-08-30 9:20 ` Aleksey Makarov [this message]
2015-08-30 16:31 ` Sunil Kovvuri
-- strict thread matches above, loose matches on Subject: below --
2015-08-28 14:59 [PATCH net-next 1/8] net: thunderx: fix MAINTAINERS Aleksey Makarov
2015-08-28 14:59 ` [PATCH net-next 6/8] net: thunderx: Rework interrupt handler Aleksey Makarov
2015-08-28 21:26 ` David Miller
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=55E2CAE6.1040305@auriga.com \
--to=feumilieu@gmail.com \
--cc=Sunil.Goutham@caviumnetworks.com \
--cc=aleksey.makarov@caviumnetworks.com \
--cc=david.daney@cavium.com \
--cc=klimov.linux@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=robert.richter@caviumnetworks.com \
--cc=rric@kernel.org \
--cc=sgoutham@cavium.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 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).