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)
commit5d16250b605963b8b45bf824b1889a6b3d64c662
tree15cb054626415e80f476282d93a85f9cfa4a5cff
parent3a7244152f9c22f32f37dfba2a9b070a90bf877a
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