* [dpdk-dev] [PATCH] crypto/octeontx: sync mbox changes done in kernel drv
@ 2019-05-29 10:36 Anoob Joseph
2019-05-29 10:44 ` [dpdk-dev] [PATCH v2] crypto/octeontx: sync mbox changes done in kernel driver Anoob Joseph
0 siblings, 1 reply; 4+ messages in thread
From: Anoob Joseph @ 2019-05-29 10:36 UTC (permalink / raw)
To: Akhil Goyal, Pablo de Lara
Cc: Lukasz Bartosik, Jerin Jacob, Narayana Prasad, dev, Anoob Joseph
From: Lukasz Bartosik <lbartosik@marvell.com>
Synchronize mbox with latest changes in kernel driver
Change-Id: I2123bf5a0784eab2604cc2c82eead0af16e745ff
Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
drivers/crypto/octeontx/otx_cryptodev_mbox.c | 3 +++
drivers/crypto/octeontx/otx_cryptodev_mbox.h | 12 +++++-------
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/drivers/crypto/octeontx/otx_cryptodev_mbox.c b/drivers/crypto/octeontx/otx_cryptodev_mbox.c
index a8e51a8..daba776 100644
--- a/drivers/crypto/octeontx/otx_cryptodev_mbox.c
+++ b/drivers/crypto/octeontx/otx_cryptodev_mbox.c
@@ -24,6 +24,9 @@ otx_cpt_handle_mbox_intr(struct cpt_vf *cptvf)
CPT_LOG_DP_DEBUG("%s: Mailbox msg 0x%lx from PF",
cptvf->dev_name, (unsigned int long)mbx.msg);
switch (mbx.msg) {
+ case OTX_CPT_MSG_VF_UP:
+ cptvf->pf_acked = true;
+ break;
case OTX_CPT_MSG_READY:
{
otx_cpt_chipid_vfid_t cid;
diff --git a/drivers/crypto/octeontx/otx_cryptodev_mbox.h b/drivers/crypto/octeontx/otx_cryptodev_mbox.h
index b05d1c5..2d2e0e6 100644
--- a/drivers/crypto/octeontx/otx_cryptodev_mbox.h
+++ b/drivers/crypto/octeontx/otx_cryptodev_mbox.h
@@ -15,11 +15,6 @@
#define OTX_CPT_MBOX_MSG_TIMEOUT 2000 /* In Milli Seconds */
-#define OTX_CPT_MBOX_MSG_TYPE_REQ 0
-#define OTX_CPT_MBOX_MSG_TYPE_ACK 1
-#define OTX_CPT_MBOX_MSG_TYPE_NACK 2
-#define OTX_CPT_MBOX_MSG_TYPE_NOP 3
-
/* CPT mailbox structure */
struct cpt_mbox {
/** Message type MBOX[0] */
@@ -28,7 +23,8 @@ struct cpt_mbox {
uint64_t data;
};
-typedef enum {
+/* PF-VF message opcodes */
+enum otx_cpt_mbox_opcode {
OTX_CPT_MSG_VF_UP = 1,
OTX_CPT_MSG_VF_DOWN,
OTX_CPT_MSG_READY,
@@ -36,7 +32,9 @@ typedef enum {
OTX_CPT_MSG_QBIND_GRP,
OTX_CPT_MSG_VQ_PRIORITY,
OTX_CPT_MSG_PF_TYPE,
-} otx_cpt_mbox_opcode_t;
+ OTX_CPT_MBOX_MSG_TYPE_ACK,
+ OTX_CPT_MBOX_MSG_TYPE_NACK
+};
typedef union {
uint64_t u64;
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dpdk-dev] [PATCH v2] crypto/octeontx: sync mbox changes done in kernel driver
2019-05-29 10:36 [dpdk-dev] [PATCH] crypto/octeontx: sync mbox changes done in kernel drv Anoob Joseph
@ 2019-05-29 10:44 ` Anoob Joseph
2019-06-11 3:34 ` Anoob Joseph
2019-06-19 14:49 ` Akhil Goyal
0 siblings, 2 replies; 4+ messages in thread
From: Anoob Joseph @ 2019-05-29 10:44 UTC (permalink / raw)
To: Akhil Goyal, Pablo de Lara
Cc: Lukasz Bartosik, Jerin Jacob, Narayana Prasad, dev, Anoob Joseph
From: Lukasz Bartosik <lbartosik@marvell.com>
Synchronize mbox with latest changes in kernel driver
Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
drivers/crypto/octeontx/otx_cryptodev_mbox.c | 3 +++
drivers/crypto/octeontx/otx_cryptodev_mbox.h | 12 +++++-------
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/drivers/crypto/octeontx/otx_cryptodev_mbox.c b/drivers/crypto/octeontx/otx_cryptodev_mbox.c
index a8e51a8..daba776 100644
--- a/drivers/crypto/octeontx/otx_cryptodev_mbox.c
+++ b/drivers/crypto/octeontx/otx_cryptodev_mbox.c
@@ -24,6 +24,9 @@ otx_cpt_handle_mbox_intr(struct cpt_vf *cptvf)
CPT_LOG_DP_DEBUG("%s: Mailbox msg 0x%lx from PF",
cptvf->dev_name, (unsigned int long)mbx.msg);
switch (mbx.msg) {
+ case OTX_CPT_MSG_VF_UP:
+ cptvf->pf_acked = true;
+ break;
case OTX_CPT_MSG_READY:
{
otx_cpt_chipid_vfid_t cid;
diff --git a/drivers/crypto/octeontx/otx_cryptodev_mbox.h b/drivers/crypto/octeontx/otx_cryptodev_mbox.h
index b05d1c5..2d2e0e6 100644
--- a/drivers/crypto/octeontx/otx_cryptodev_mbox.h
+++ b/drivers/crypto/octeontx/otx_cryptodev_mbox.h
@@ -15,11 +15,6 @@
#define OTX_CPT_MBOX_MSG_TIMEOUT 2000 /* In Milli Seconds */
-#define OTX_CPT_MBOX_MSG_TYPE_REQ 0
-#define OTX_CPT_MBOX_MSG_TYPE_ACK 1
-#define OTX_CPT_MBOX_MSG_TYPE_NACK 2
-#define OTX_CPT_MBOX_MSG_TYPE_NOP 3
-
/* CPT mailbox structure */
struct cpt_mbox {
/** Message type MBOX[0] */
@@ -28,7 +23,8 @@ struct cpt_mbox {
uint64_t data;
};
-typedef enum {
+/* PF-VF message opcodes */
+enum otx_cpt_mbox_opcode {
OTX_CPT_MSG_VF_UP = 1,
OTX_CPT_MSG_VF_DOWN,
OTX_CPT_MSG_READY,
@@ -36,7 +32,9 @@ typedef enum {
OTX_CPT_MSG_QBIND_GRP,
OTX_CPT_MSG_VQ_PRIORITY,
OTX_CPT_MSG_PF_TYPE,
-} otx_cpt_mbox_opcode_t;
+ OTX_CPT_MBOX_MSG_TYPE_ACK,
+ OTX_CPT_MBOX_MSG_TYPE_NACK
+};
typedef union {
uint64_t u64;
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH v2] crypto/octeontx: sync mbox changes done in kernel driver
2019-05-29 10:44 ` [dpdk-dev] [PATCH v2] crypto/octeontx: sync mbox changes done in kernel driver Anoob Joseph
@ 2019-06-11 3:34 ` Anoob Joseph
2019-06-19 14:49 ` Akhil Goyal
1 sibling, 0 replies; 4+ messages in thread
From: Anoob Joseph @ 2019-06-11 3:34 UTC (permalink / raw)
To: Anoob Joseph, Akhil Goyal, Pablo de Lara
Cc: Lukas Bartosik, Jerin Jacob Kollanukkaran,
Narayana Prasad Raju Athreya, dev
Hi Akhil, Pablo,
This patch is ready for merge.
Thanks,
Anoob
> -----Original Message-----
> From: Anoob Joseph <anoobj@marvell.com>
> Sent: Wednesday, May 29, 2019 4:14 PM
> To: Akhil Goyal <akhil.goyal@nxp.com>; Pablo de Lara
> <pablo.de.lara.guarch@intel.com>
> Cc: Lukas Bartosik <lbartosik@marvell.com>; Jerin Jacob Kollanukkaran
> <jerinj@marvell.com>; Narayana Prasad Raju Athreya
> <pathreya@marvell.com>; dev@dpdk.org; Anoob Joseph
> <anoobj@marvell.com>
> Subject: [PATCH v2] crypto/octeontx: sync mbox changes done in kernel
> driver
>
> From: Lukasz Bartosik <lbartosik@marvell.com>
>
> Synchronize mbox with latest changes in kernel driver
>
> Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> ---
> drivers/crypto/octeontx/otx_cryptodev_mbox.c | 3 +++
> drivers/crypto/octeontx/otx_cryptodev_mbox.h | 12 +++++-------
> 2 files changed, 8 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/crypto/octeontx/otx_cryptodev_mbox.c
> b/drivers/crypto/octeontx/otx_cryptodev_mbox.c
> index a8e51a8..daba776 100644
> --- a/drivers/crypto/octeontx/otx_cryptodev_mbox.c
> +++ b/drivers/crypto/octeontx/otx_cryptodev_mbox.c
> @@ -24,6 +24,9 @@ otx_cpt_handle_mbox_intr(struct cpt_vf *cptvf)
> CPT_LOG_DP_DEBUG("%s: Mailbox msg 0x%lx from PF",
> cptvf->dev_name, (unsigned int long)mbx.msg);
> switch (mbx.msg) {
> + case OTX_CPT_MSG_VF_UP:
> + cptvf->pf_acked = true;
> + break;
> case OTX_CPT_MSG_READY:
> {
> otx_cpt_chipid_vfid_t cid;
> diff --git a/drivers/crypto/octeontx/otx_cryptodev_mbox.h
> b/drivers/crypto/octeontx/otx_cryptodev_mbox.h
> index b05d1c5..2d2e0e6 100644
> --- a/drivers/crypto/octeontx/otx_cryptodev_mbox.h
> +++ b/drivers/crypto/octeontx/otx_cryptodev_mbox.h
> @@ -15,11 +15,6 @@
>
> #define OTX_CPT_MBOX_MSG_TIMEOUT 2000 /* In Milli Seconds */
>
> -#define OTX_CPT_MBOX_MSG_TYPE_REQ 0
> -#define OTX_CPT_MBOX_MSG_TYPE_ACK 1
> -#define OTX_CPT_MBOX_MSG_TYPE_NACK 2
> -#define OTX_CPT_MBOX_MSG_TYPE_NOP 3
> -
> /* CPT mailbox structure */
> struct cpt_mbox {
> /** Message type MBOX[0] */
> @@ -28,7 +23,8 @@ struct cpt_mbox {
> uint64_t data;
> };
>
> -typedef enum {
> +/* PF-VF message opcodes */
> +enum otx_cpt_mbox_opcode {
> OTX_CPT_MSG_VF_UP = 1,
> OTX_CPT_MSG_VF_DOWN,
> OTX_CPT_MSG_READY,
> @@ -36,7 +32,9 @@ typedef enum {
> OTX_CPT_MSG_QBIND_GRP,
> OTX_CPT_MSG_VQ_PRIORITY,
> OTX_CPT_MSG_PF_TYPE,
> -} otx_cpt_mbox_opcode_t;
> + OTX_CPT_MBOX_MSG_TYPE_ACK,
> + OTX_CPT_MBOX_MSG_TYPE_NACK
> +};
>
> typedef union {
> uint64_t u64;
> --
> 2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH v2] crypto/octeontx: sync mbox changes done in kernel driver
2019-05-29 10:44 ` [dpdk-dev] [PATCH v2] crypto/octeontx: sync mbox changes done in kernel driver Anoob Joseph
2019-06-11 3:34 ` Anoob Joseph
@ 2019-06-19 14:49 ` Akhil Goyal
1 sibling, 0 replies; 4+ messages in thread
From: Akhil Goyal @ 2019-06-19 14:49 UTC (permalink / raw)
To: Anoob Joseph, Pablo de Lara
Cc: Lukasz Bartosik, Jerin Jacob, Narayana Prasad, dev
> From: Lukasz Bartosik <lbartosik@marvell.com>
>
> Synchronize mbox with latest changes in kernel driver
>
> Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> ---
> drivers/crypto/octeontx/otx_cryptodev_mbox.c | 3 +++
> drivers/crypto/octeontx/otx_cryptodev_mbox.h | 12 +++++-------
> 2 files changed, 8 insertions(+), 7 deletions(-)
>
Applied to dpdk-next-crypto
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-06-19 14:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-29 10:36 [dpdk-dev] [PATCH] crypto/octeontx: sync mbox changes done in kernel drv Anoob Joseph
2019-05-29 10:44 ` [dpdk-dev] [PATCH v2] crypto/octeontx: sync mbox changes done in kernel driver Anoob Joseph
2019-06-11 3:34 ` Anoob Joseph
2019-06-19 14:49 ` Akhil Goyal
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).