lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1490383355-23176-15-git-send-email-jliang@xilinx.com>
Date:   Fri, 24 Mar 2017 12:22:30 -0700
From:   Wendy Liang <wendy.liang@...inx.com>
To:     <bjorn.andersson@...aro.org>
CC:     <linux-remoteproc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        "Wendy Liang" <wendy.liang@...inx.com>,
        Wendy Liang <jliang@...inx.com>,
        Michal Simek <michal.simek@...inx.com>
Subject: [RFC LINUX PATCH 14/19] remoteproc virtio: handle rproc vdev notification

From: Wendy Liang <wendy.liang@...inx.com>

If there is a vdev notification from the remote, rproc virtio
will mark the config_wait_complete to wake up any client who
is waiting for the remote to respond.

Signed-off-by: Wendy Liang <jliang@...inx.com>
Signed-off-by: Michal Simek <michal.simek@...inx.com>
---
 drivers/remoteproc/remoteproc_virtio.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c
index c6f7ca4..577344e 100644
--- a/drivers/remoteproc/remoteproc_virtio.c
+++ b/drivers/remoteproc/remoteproc_virtio.c
@@ -58,6 +58,7 @@ irqreturn_t rproc_virtio_interrupt(struct rproc *rproc, int notifyid)
 {
 	struct rproc_id_rsc *rsc;
 	struct rproc_vring *rvring;
+	struct rproc_vdev *rvdev;
 
 	dev_dbg(&rproc->dev, "virtio index %d is interrupted\n", notifyid);
 
@@ -71,8 +72,9 @@ irqreturn_t rproc_virtio_interrupt(struct rproc *rproc, int notifyid)
 			return IRQ_NONE;
 		return vring_interrupt(0, rvring->vq);
 	} else if (rsc->rsc_type == RPROC_IDR_VDEV) {
-		dev_info(&rproc->dev, "vdev intr is not supported yet.\n");
-		return IRQ_NONE;
+		rvdev = rsc->rsc_ptr;
+		complete_all(&rvdev->config_wait_complete);
+		return IRQ_HANDLED;
 	}
 
 	dev_err(&rproc->dev, "Unknown rsc type: 0x%x\n", rsc->rsc_type);
-- 
1.9.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ