mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexander Sverdlin <alexander.sverdlin@gmail.com>
To: Anshumali Gaur <agaur@marvell.com>,
	"conor.dooley@microchip.com" <conor.dooley@microchip.com>,
	"ulf.hansson@linaro.org" <ulf.hansson@linaro.org>,
	 "arnd@arndb.de" <arnd@arndb.de>,
	"linus.walleij@linaro.org" <linus.walleij@linaro.org>,
	 "nikita.shubin@maquefel.me" <nikita.shubin@maquefel.me>,
	"vkoul@kernel.org" <vkoul@kernel.org>,
	 "cyy@cyyself.name" <cyy@cyyself.name>,
	"krzysztof.kozlowski@linaro.org" <krzysztof.kozlowski@linaro.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Sunil Kovvuri Goutham <sgoutham@marvell.com>
Subject: Re: [PATCH 4/4] soc: marvell: rvu-pf: Handle function level reset (FLR) IRQs for VFs
Date: Wed, 25 Sep 2024 11:19:04 +0200	[thread overview]
Message-ID: <9d0bac264a62f4b5f161a53bcaca35b6cef42376.camel@gmail.com> (raw)
In-Reply-To: <DM6PR18MB3289700364A89C7714973C70B8692@DM6PR18MB3289.namprd18.prod.outlook.com>

Hi Anshumali!

On Wed, 2024-09-25 at 09:13 +0000, Anshumali Gaur wrote:
> > > +static irqreturn_t rvu_gen_pf_me_intr_handler(int irq, void *pf_irq)
> > > +{
> > > +	struct gen_pf_dev *pfdev = (struct gen_pf_dev *)pf_irq;
> > > +	int vf, reg, num_reg = 1;
> > > +	u64 intr;
> > > +
> > > +	if (pfdev->total_vfs > 64)
> > > +		num_reg = 2;
> > > +
> > > +	for (reg = 0; reg < num_reg; reg++) {
> > > +		intr = readq(pfdev->reg_base + RVU_PF_VFME_INTX(reg));
> > > +		if (!intr)
> > > +			continue;
> > > +		for (vf = 0; vf < 64; vf++) {
> > > +			if (!(intr & BIT_ULL(vf)))
> > > +				continue;
> > > +			/* clear trpend bit */
> > > +			writeq(BIT_ULL(vf), pfdev->reg_base +
> > RVU_PF_VFTRPENDX(reg));
> > > +			/* clear interrupt */
> > > +			writeq(BIT_ULL(vf), pfdev->reg_base +
> > RVU_PF_VFME_INTX(reg));
> > > +		}
> > > +	}
> > 
> > Should anything else have been performed in the IRQ handler besides
> > acknowledging the IRQ request?
> > 
> We are just acknowledging the IRQ request here. 

But what's the goal of requesting the IRQ in the first place then?

-- 
Alexander Sverdlin.


  reply	other threads:[~2024-09-25  9:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-20 11:23 [PATCH 0/4] soc: marvell: Add a general purpose RVU physical Anshumali Gaur
2024-09-20 11:23 ` [PATCH 1/4] soc: marvell: Add a general purpose RVU PF driver Anshumali Gaur
2024-09-20 22:30   ` Alexander Sverdlin
2024-09-21 21:38   ` Alexander Sverdlin
2024-09-20 11:23 ` [PATCH 2/4] soc: marvell: rvu-pf: Add PF to AF mailbox communication support Anshumali Gaur
2024-09-21 21:43   ` Alexander Sverdlin
2024-09-24 23:09   ` Alexander Sverdlin
2024-09-20 11:23 ` [PATCH 3/4] soc: marvell: rvu-pf: Add mailbox communication btw RVU VFs and PF Anshumali Gaur
2024-09-21 22:22   ` Alexander Sverdlin
2024-09-20 11:23 ` [PATCH 4/4] soc: marvell: rvu-pf: Handle function level reset (FLR) IRQs for VFs Anshumali Gaur
2024-09-21 22:49   ` Alexander Sverdlin
2024-09-25  9:13     ` Anshumali Gaur
2024-09-25  9:19       ` Alexander Sverdlin [this message]
2024-09-25 12:46         ` Anshumali Gaur

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=9d0bac264a62f4b5f161a53bcaca35b6cef42376.camel@gmail.com \
    --to=alexander.sverdlin@gmail.com \
    --cc=agaur@marvell.com \
    --cc=arnd@arndb.de \
    --cc=conor.dooley@microchip.com \
    --cc=cyy@cyyself.name \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nikita.shubin@maquefel.me \
    --cc=sgoutham@marvell.com \
    --cc=ulf.hansson@linaro.org \
    --cc=vkoul@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