octeontx2-af: cn10K: support for sched lmtst and other features
Geetha sowjanya
maintainerPATCH 1/1 octeontx2-af: cn10K: support for sched lmtst and other features
From: Harman Kalra <[email protected]>
Enhancing the mailbox scope to support important configurations like enabling scheduled LMTST, disable LMTLINE prefetch, disable early completion for ordered LMTST, as per request from the application. On FLR these configurations will be reset to default. This patch also adds the 95XXO silicon version to octeontx2 silicon list.
--- .../net/ethernet/marvell/octeontx2/af/mbox.h | 6 +- .../net/ethernet/marvell/octeontx2/af/rvu.h | 8 +- .../ethernet/marvell/octeontx2/af/rvu_cn10k.c | 90 ++++++++++++++++--- .../ethernet/marvell/octeontx2/af/rvu_reg.h | 3 + 4 files changed, 91 insertions(+), 16 deletions(-)
drivers/net/ethernet/marvell/octeontx2/af/mbox.h +5 -1
@@ -273,7 +273,7 @@ M(NIX_BP_ENABLE, 0x8016, nix_bp_enable, nix_bp_cfg_req, \ nix_bp_cfg_rsp) \ M(NIX_BP_DISABLE, 0x8017, nix_bp_disable, nix_bp_cfg_req, msg_rsp) \ M(NIX_GET_MAC_ADDR, 0x8018, nix_get_mac_addr, msg_req, nix_get_mac_addr_rsp) \ -M(NIX_CN10K_AQ_ENQ, 0x8019, nix_cn10k_aq_enq, nix_cn10k_aq_enq_req, \ +M(NIX_CN10K_AQ_ENQ, 0x801b, nix_cn10k_aq_enq, nix_cn10k_aq_enq_req, \ nix_cn10k_aq_enq_rsp) \ M(NIX_GET_HW_INFO, 0x801c, nix_get_hw_info, msg_req, nix_hw_info) \ M(NIX_BANDPROF_ALLOC, 0x801d, nix_bandprof_alloc, nix_bandprof_alloc_req, \
@@ -1383,6 +1383,10 @@ struct set_vf_perm {struct lmtst_tbl_setup_req {struct mbox_msghdr hdr; +u64 dis_sched_early_comp :1 ; +u64 sch_ena :1 ; +u64 dis_line_pref :1 ; +u64 ssow_pf_func :13 ;u16 base_pcifunc;u8 use_local_lmt_region;u64 lmt_iova;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h +5 -3
@@ -245,6 +245,7 @@ struct rvu_pfvf {u8 nix_tx_intf;/* NIX0_TX/NIX1_TX interface to NPC */ u8 lbkid;/* NIX0/1 lbk link ID */ u64 lmt_base_addr;/* Preseving the pcifunc's lmtst base addr*/ +u64 lmt_map_ent_w1;/* Preseving the word1 of lmtst map table entry*/ unsigned long flags;struct sdp_node_info *sdp_info; };
@@ -556,9 +557,10 @@ static inline bool is_rvu_95xx_A0(struct rvu *rvu)*/ #define PCI_REVISION_ID_96XX 0x00#define PCI_REVISION_ID_95XX 0x10 -#define PCI_REVISION_ID_LOKI 0x20 +#define PCI_REVISION_ID_95XXN 0x20#define PCI_REVISION_ID_98XX 0x30#define PCI_REVISION_ID_95XXMM 0x40 +#define PCI_REVISION_ID_95XXO 0xE0static inline bool is_rvu_otx2 (struct rvu *rvu) {
@@ -567,8 +569,8 @@ static inline bool is_rvu_otx2(struct rvu *rvu)u8 midr = pdev->revision &0xF0 ;return (midr ==PCI_REVISION_ID_96XX || midr ==PCI_REVISION_ID_95XX || - midr ==PCI_REVISION_ID_LOKI || midr ==PCI_REVISION_ID_98XX || - midr ==PCI_REVISION_ID_95XXMM ); + midr ==PCI_REVISION_ID_95XXN || midr ==PCI_REVISION_ID_98XX || + midr ==PCI_REVISION_ID_95XXMM || midr ==PCI_REVISION_ID_95XXO ); } static inline u16 rvu_nix_chan_cgx(struct rvu *rvu, u8 cgxid,
drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c +78 -12
126 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h +3 -0
@@ -704,5 +704,8 @@#define APR_AF_LMT_CFG (0x000ull)#define APR_AF_LMT_MAP_BASE (0x008ull)#define APR_AF_LMT_CTL (0x010ull) +#define APR_LMT_MAP_ENT_DIS_SCH_CMP_SHIFT 23 +#define APR_LMT_MAP_ENT_SCH_ENA_SHIFT 22 +#define APR_LMT_MAP_ENT_DIS_LINE_PREF_SHIFT 21#endif /* RVU_REG_H */
Signature · 1 line
2.17.1
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 10 lines · On Thu, 26 Aug 2021 18:03:40 +0530 you wrote:
From: Harman Kalra <[email protected]>
Enhancing the mailbox scope to support important configurations like enabling scheduled LMTST, disable LMTLINE prefetch, disable early completion for ordered LMTST, as per request from the application. On FLR these configurations will be reset to default. This patch also adds the 95XXO silicon version to octeontx2 silicon list.
[...]
Here is the summary with links:
- [net-next] octeontx2-af: cn10K: support for sched lmtst and other features
https://git.kernel.org/netdev/net-next/c/49d6baea7986
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html