Re: [PATCH v7 04/15] octeontx2-af: Add mailbox support infra

2018-10-06 Thread David Miller
From: sunil.kovv...@gmail.com Date: Sat, 6 Oct 2018 11:36:22 +0530 > + tx_hdr = (struct mbox_hdr *)(mdev->mbase + mbox->tx_start); > + rx_hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start); Since mdev->mbase is a void pointer, you do not need these casts, nor the parenthesis, at a

[PATCH v7 04/15] octeontx2-af: Add mailbox support infra

2018-10-05 Thread sunil . kovvuri
From: Aleksey Makarov This patch adds mailbox support infrastructure APIs. Each RVU device has a dedicated 64KB mailbox region shared with it's peer for communication. RVU AF has a separate mailbox region shared with each of RVU PFs and a RVU PF has a separate region shared with each of it's VF.