Commit 2da903d0 authored by Fan Gong's avatar Fan Gong Committed by Jakub Kicinski
Browse files

hinic3: RQ use RQ_CTXT_PREF_CI_HI instead of SQ_CTXT_PREF_CI_HI

parent afb81efc
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -162,6 +162,9 @@ struct hinic3_clean_queue_ctxt {
#define SQ_CTXT_WQ_BLOCK_SET(val, member)  \
	FIELD_PREP(SQ_CTXT_WQ_BLOCK_##member##_MASK, val)

/* reuse SQ macro for RQ because the hardware format is identical */
#define RQ_CTXT_PREF_CI_HI(val)            SQ_CTXT_PREF_CI_HI(val)

#define RQ_CTXT_PI_IDX_MASK                GENMASK(15, 0)
#define RQ_CTXT_CI_IDX_MASK                GENMASK(31, 16)
#define RQ_CTXT_CI_PI_SET(val, member)  \
@@ -629,7 +632,8 @@ static void hinic3_rq_prepare_ctxt(struct hinic3_io_queue *rq,
			    RQ_CTXT_PREF_SET(RQ_WQ_PREFETCH_THRESHOLD, CACHE_THRESHOLD));

	rq_ctxt->pref_ci_owner =
		cpu_to_le32(RQ_CTXT_PREF_SET(SQ_CTXT_PREF_CI_HI(ci_start), CI_HI) |
		cpu_to_le32(RQ_CTXT_PREF_SET(RQ_CTXT_PREF_CI_HI(ci_start),
					     CI_HI) |
			    RQ_CTXT_PREF_SET(1, OWNER));

	rq_ctxt->pref_wq_pfn_hi_ci =