]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: load NPC profile via firmware database
authorHarman Kalra <hkalra@marvell.com>
Thu, 27 May 2021 09:44:36 +0000 (15:14 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 May 2021 21:16:21 +0000 (14:16 -0700)
commitdaf1f290344dbeaba90befb596731f4e94862164
tree15cb054626415e80f476282d93a85f9cfa4a5cff
parentdee4027c5b9163f218c33243be4c6a1d19d84bb1
octeontx2-af: load NPC profile via firmware database

Currently NPC profile (KPU + MKEX) can be loaded using firmware
binary in filesystem scheme. Enhancing the functionality to load
NPC profile image from system firmware database. It uses the same
technique as used for loading MKEX profile. Firstly firmware binary
in kernel is checked for a valid image else tries to load NPC profile
from firmware database and at last uses default profile if no proper
image found.

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <Sunil.Goutham@marvell.com>
Signed-off-by: George Cherian <george.cherian@marvell.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c