]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Gather RVU blocks HW info
authorSunil Goutham <sgoutham@marvell.com>
Wed, 10 Oct 2018 12:44:23 +0000 (18:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Oct 2018 17:06:01 +0000 (10:06 -0700)
commitf9c33d0eb7bf56a51020555e48f35bd3d8a49f98
tree3646dac5f3fc31bbb57f716f5794a5ff4b25428d
parent75d64c4bbf1672c4d0d86208214b91dbf57ba18e
octeontx2-af: Gather RVU blocks HW info

This patch gathers NPA/NIX/SSO/SSOW/TIM/CPT RVU blocks's
HW info like number of LFs. Important register offsets
saved for later use to avoid code duplication for each block.
A bitmap is allocated for each of the blocks which later
on will be used to allocate a LF for a RVU PF/VF.

Also added RVU NIX/NPA block registers and few registers
of other blocks.

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h