From: Shijith Thotton <sthotton@marvell.com>
To: <virtualization@lists.linux.dev>, <mst@redhat.com>,
<jasowang@redhat.com>, <dan.carpenter@linaro.org>
Cc: "Satha Rao" <skoteshwar@marvell.com>,
schalla@marvell.com, vattunuru@marvell.com,
ndabilpuram@marvell.com, jerinj@marvell.com,
"Shijith Thotton" <sthotton@marvell.com>,
"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
"Eugenio Pérez" <eperezma@redhat.com>,
"open list" <linux-kernel@vger.kernel.org>
Subject: [PATCH v2 2/4] vdpa/octeon_ep: handle device config change events
Date: Thu, 21 Nov 2024 19:09:44 +0530 [thread overview]
Message-ID: <20241121134002.990285-2-sthotton@marvell.com> (raw)
In-Reply-To: <20241121134002.990285-1-sthotton@marvell.com>
From: Satha Rao <skoteshwar@marvell.com>
The first interrupt of the device is used to notify the host about
device configuration changes, such as link status updates. The ISR
configuration area is updated to indicate a config change event when
triggered.
Signed-off-by: Satha Rao <skoteshwar@marvell.com>
Signed-off-by: Shijith Thotton <sthotton@marvell.com>
---
drivers/vdpa/octeon_ep/octep_vdpa_main.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/vdpa/octeon_ep/octep_vdpa_main.c b/drivers/vdpa/octeon_ep/octep_vdpa_main.c
index e10cb26a3206..b060df57bb59 100644
--- a/drivers/vdpa/octeon_ep/octep_vdpa_main.c
+++ b/drivers/vdpa/octeon_ep/octep_vdpa_main.c
@@ -74,6 +74,14 @@ static irqreturn_t octep_vdpa_intr_handler(int irq, void *data)
}
}
+ /* Check for config interrupt. Config uses the first interrupt */
+ if (unlikely(ring_start == 0 && ioread8(oct_hw->isr))) {
+ iowrite8(0, oct_hw->isr);
+
+ if (oct_hw->config_cb.callback)
+ oct_hw->config_cb.callback(oct_hw->config_cb.private);
+ }
+
return IRQ_HANDLED;
}
--
2.25.1
next prev parent reply other threads:[~2024-11-21 13:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-21 13:39 [PATCH v2 1/4] vdpa/octeon_ep: enable support for multiple interrupts per device Shijith Thotton
2024-11-21 13:39 ` Shijith Thotton [this message]
2024-12-06 2:13 ` [PATCH v2 2/4] vdpa/octeon_ep: handle device config change events Jason Wang
2024-11-21 13:39 ` [PATCH v2 3/4] vdpa/octeon_ep: read vendor-specific PCI capability Shijith Thotton
2024-12-06 2:21 ` Jason Wang
2024-12-06 7:25 ` [EXTERNAL] " Shijith Thotton
2024-11-21 13:39 ` [PATCH v2 4/4] vdpa/octeon_ep: add interrupt handler for virtio crypto device Shijith Thotton
2024-12-06 2:38 ` Jason Wang
2024-12-06 11:58 ` Shijith Thotton
2024-12-09 9:29 ` Shijith Thotton
2024-11-21 14:02 ` [PATCH v2 1/4] vdpa/octeon_ep: enable support for multiple interrupts per device Dan Carpenter
2024-12-06 1:25 ` Jason Wang
2024-12-06 2:31 ` Jason Wang
2024-12-09 9:39 ` Shijith Thotton
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=20241121134002.990285-2-sthotton@marvell.com \
--to=sthotton@marvell.com \
--cc=dan.carpenter@linaro.org \
--cc=eperezma@redhat.com \
--cc=jasowang@redhat.com \
--cc=jerinj@marvell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=ndabilpuram@marvell.com \
--cc=schalla@marvell.com \
--cc=skoteshwar@marvell.com \
--cc=vattunuru@marvell.com \
--cc=virtualization@lists.linux.dev \
--cc=xuanzhuo@linux.alibaba.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