net/bnxt: add SRAM manager shared session
authorFarah Smith <farah.smith@broadcom.com>
Mon, 20 Sep 2021 07:42:13 +0000 (13:12 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 21 Sep 2021 04:42:08 +0000 (06:42 +0200)
commitfb97e5097385f953b969bfd713b19ea6ea6c0092
tree0d85e66fff1a49e4ab11723e40034d741efbdee3
parentadf0802e0c62224a2cb3ab0dce480144271b7996
net/bnxt: add SRAM manager shared session

Fix shared session support issues due to SRAM manager
additions. Shared session does not support slices within
RM blocks. Calculate resources required without slices
and determine base addresses using old methods for the
shared session.

Signed-off-by: Farah Smith <farah.smith@broadcom.com>
Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Shahaji Bhosle <sbhosle@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_core/tf_em_internal.c
drivers/net/bnxt/tf_core/tf_rm.c
drivers/net/bnxt/tf_core/tf_tbl_sram.c