Skip to content

Commit 45a919b

Browse files
committed
Revert "Merge branch 'octeontx2-af-CPT'"
This reverts commit b4fbf0b, reversing changes made to 6c977c5. This seems like net-next material. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 300b655 commit 45a919b

File tree

5 files changed

+87
-277
lines changed

5 files changed

+87
-277
lines changed

drivers/net/ethernet/marvell/octeontx2/af/mbox.h

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ M(CPT_STATS, 0xA05, cpt_sts, cpt_sts_req, cpt_sts_rsp) \
195195
M(CPT_RXC_TIME_CFG, 0xA06, cpt_rxc_time_cfg, cpt_rxc_time_cfg_req, \
196196
msg_rsp) \
197197
M(CPT_CTX_CACHE_SYNC, 0xA07, cpt_ctx_cache_sync, msg_req, msg_rsp) \
198-
M(CPT_LF_RESET, 0xA08, cpt_lf_reset, cpt_lf_rst_req, msg_rsp) \
199-
M(CPT_FLT_ENG_INFO, 0xA09, cpt_flt_eng_info, cpt_flt_eng_info_req, \
200-
cpt_flt_eng_info_rsp) \
201198
/* SDP mbox IDs (range 0x1000 - 0x11FF) */ \
202199
M(SET_SDP_CHAN_INFO, 0x1000, set_sdp_chan_info, sdp_chan_info_msg, msg_rsp) \
203200
M(GET_SDP_CHAN_INFO, 0x1001, get_sdp_chan_info, msg_req, sdp_get_chan_info_msg) \
@@ -1612,8 +1609,6 @@ struct cpt_lf_alloc_req_msg {
16121609
u16 sso_pf_func;
16131610
u16 eng_grpmsk;
16141611
int blkaddr;
1615-
u8 ctx_ilen_valid : 1;
1616-
u8 ctx_ilen : 7;
16171612
};
16181613

16191614
#define CPT_INLINE_INBOUND 0
@@ -1697,28 +1692,6 @@ struct cpt_inst_lmtst_req {
16971692
u64 rsvd;
16981693
};
16991694

1700-
/* Mailbox message format to request for CPT LF reset */
1701-
struct cpt_lf_rst_req {
1702-
struct mbox_msghdr hdr;
1703-
u32 slot;
1704-
u32 rsvd;
1705-
};
1706-
1707-
/* Mailbox message format to request for CPT faulted engines */
1708-
struct cpt_flt_eng_info_req {
1709-
struct mbox_msghdr hdr;
1710-
int blkaddr;
1711-
bool reset;
1712-
u32 rsvd;
1713-
};
1714-
1715-
struct cpt_flt_eng_info_rsp {
1716-
struct mbox_msghdr hdr;
1717-
u64 flt_eng_map[CPT_10K_AF_INT_VEC_RVU];
1718-
u64 rcvrd_eng_map[CPT_10K_AF_INT_VEC_RVU];
1719-
u64 rsvd;
1720-
};
1721-
17221695
struct sdp_node_info {
17231696
/* Node to which this PF belons to */
17241697
u8 node_id;

drivers/net/ethernet/marvell/octeontx2/af/rvu.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,16 +1164,8 @@ static int rvu_setup_hw_resources(struct rvu *rvu)
11641164
goto nix_err;
11651165
}
11661166

1167-
err = rvu_cpt_init(rvu);
1168-
if (err) {
1169-
dev_err(rvu->dev, "%s: Failed to initialize cpt\n", __func__);
1170-
goto mcs_err;
1171-
}
1172-
11731167
return 0;
11741168

1175-
mcs_err:
1176-
rvu_mcs_exit(rvu);
11771169
nix_err:
11781170
rvu_nix_freemem(rvu);
11791171
npa_err:

drivers/net/ethernet/marvell/octeontx2/af/rvu.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ struct rvu_block {
108108
u64 lfreset_reg;
109109
unsigned char name[NAME_SIZE];
110110
struct rvu *rvu;
111-
u64 cpt_flt_eng_map[3];
112-
u64 cpt_rcvrd_eng_map[3];
113111
};
114112

115113
struct nix_mcast {
@@ -461,7 +459,6 @@ struct rvu {
461459
struct rvu_pfvf *pf;
462460
struct rvu_pfvf *hwvf;
463461
struct mutex rsrc_lock; /* Serialize resource alloc/free */
464-
struct mutex alias_lock; /* Serialize bar2 alias access */
465462
int vfs; /* Number of VFs attached to RVU */
466463
int nix_blkaddr[MAX_NIX_BLKS];
467464

@@ -513,7 +510,6 @@ struct rvu {
513510
struct ptp *ptp;
514511

515512
int mcs_blk_cnt;
516-
int cpt_pf_num;
517513

518514
#ifdef CONFIG_DEBUG_FS
519515
struct rvu_debugfs rvu_dbg;
@@ -528,8 +524,6 @@ struct rvu {
528524
struct list_head mcs_intrq_head;
529525
/* mcs interrupt queue lock */
530526
spinlock_t mcs_intrq_lock;
531-
/* CPT interrupt lock */
532-
spinlock_t cpt_intr_lock;
533527
};
534528

535529
static inline void rvu_write64(struct rvu *rvu, u64 block, u64 offset, u64 val)
@@ -552,17 +546,6 @@ static inline u64 rvupf_read64(struct rvu *rvu, u64 offset)
552546
return readq(rvu->pfreg_base + offset);
553547
}
554548

555-
static inline void rvu_bar2_sel_write64(struct rvu *rvu, u64 block, u64 offset, u64 val)
556-
{
557-
/* HW requires read back of RVU_AF_BAR2_SEL register to make sure completion of
558-
* write operation.
559-
*/
560-
rvu_write64(rvu, block, offset, val);
561-
rvu_read64(rvu, block, offset);
562-
/* Barrier to ensure read completes before accessing LF registers */
563-
mb();
564-
}
565-
566549
/* Silicon revisions */
567550
static inline bool is_rvu_pre_96xx_C0(struct rvu *rvu)
568551
{
@@ -882,7 +865,6 @@ void rvu_cpt_unregister_interrupts(struct rvu *rvu);
882865
int rvu_cpt_lf_teardown(struct rvu *rvu, u16 pcifunc, int blkaddr, int lf,
883866
int slot);
884867
int rvu_cpt_ctx_flush(struct rvu *rvu, u16 pcifunc);
885-
int rvu_cpt_init(struct rvu *rvu);
886868

887869
/* CN10K RVU */
888870
int rvu_set_channels_base(struct rvu *rvu);

0 commit comments

Comments
 (0)