]> 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)
commite54da5194725d1f6f9503c538f1035b853618d16
tree3646dac5f3fc31bbb57f716f5794a5ff4b25428d
parent390765e737b5a7c7cdda70369fff699c77439434
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