]> 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)
commitec79e16bbb99e27b69aa0692ecb332afb3cb20eb
tree15cb054626415e80f476282d93a85f9cfa4a5cff
parentdc6135c468250146409ce41581614fdcc54000f9
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