-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Frank Du <frank.du@intel.com>
- Loading branch information
Showing
6 changed files
with
151 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
patches/ice_drv/1.14.9/0001-vf-support-kahawai-runtime-rl-queue.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
From 552f64367fd7c166497ac364d9169386de3811cc Mon Sep 17 00:00:00 2001 | ||
From: "Du, Frank" <frank.du@intel.com> | ||
Date: Wed, 3 Aug 2022 10:34:14 +0800 | ||
Subject: [PATCH 1/4] vf: support kahawai runtime rl queue | ||
|
||
Signed-off-by: Du, Frank <frank.du@intel.com> | ||
--- | ||
src/ice_virtchnl.c | 10 +++++++++- | ||
1 file changed, 9 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/ice_virtchnl.c b/src/ice_virtchnl.c | ||
index 74f9c2c..0150e4b 100644 | ||
--- a/src/ice_virtchnl.c | ||
+++ b/src/ice_virtchnl.c | ||
@@ -3619,6 +3619,11 @@ static int ice_vc_cfg_q_bw(struct ice_vf *vf, u8 *msg) | ||
|
||
memcpy(vf->qs_bw, qs_bw, len); | ||
|
||
+ /* for kahawai runtime rl */ | ||
+ if (vf->qs_bw) | ||
+ if (ice_vf_cfg_qs_bw(vf, qbw->num_queues)) | ||
+ v_ret = VIRTCHNL_STATUS_ERR_PARAM; | ||
+ | ||
err_bw: | ||
kfree(qs_bw); | ||
|
||
@@ -3782,11 +3787,12 @@ skip_non_adq_checks: | ||
if (qpi->txq.ring_len > 0) { | ||
vsi->tx_rings[q_idx]->dma = qpi->txq.dma_ring_addr; | ||
vsi->tx_rings[q_idx]->count = qpi->txq.ring_len; | ||
- | ||
+#if 0 /* for kahawai runtime rl */ | ||
/* Disable any existing queue first */ | ||
if (ice_vf_vsi_dis_single_txq(vf, vsi, q_idx, | ||
qpi->txq.queue_id)) | ||
goto error_param; | ||
+#endif | ||
|
||
/* Configure a queue with the requested settings */ | ||
if (ice_vsi_cfg_single_txq(vsi, vsi->tx_rings, q_idx)) { | ||
@@ -3877,8 +3883,10 @@ skip_non_adq_checks: | ||
} | ||
} | ||
|
||
+#if 0 /* for kahawai runtime rl */ | ||
if (ice_vf_cfg_qs_bw(vf, qci->num_queue_pairs)) | ||
goto error_param; | ||
+#endif | ||
|
||
/* send the response to the VF */ | ||
return ice_vc_send_msg_to_vf(vf, VIRTCHNL_OP_CONFIG_VSI_QUEUES, | ||
-- | ||
2.34.1 | ||
|
28 changes: 28 additions & 0 deletions
28
patches/ice_drv/1.14.9/0002-ice-set-ICE_SCHED_DFLT_BURST_SIZE-to-2048.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 1b547829735bae74d13c1430c4ece3d7bbfed217 Mon Sep 17 00:00:00 2001 | ||
From: Frank Du <frank.du@intel.com> | ||
Date: Tue, 21 Feb 2023 09:37:27 +0800 | ||
Subject: [PATCH 2/4] ice: set ICE_SCHED_DFLT_BURST_SIZE to 2048 | ||
|
||
For st2110 rl burst optimization | ||
|
||
Signed-off-by: Frank Du <frank.du@intel.com> | ||
--- | ||
src/ice_type.h | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/ice_type.h b/src/ice_type.h | ||
index 8540587..abdb5ee 100644 | ||
--- a/src/ice_type.h | ||
+++ b/src/ice_type.h | ||
@@ -1072,7 +1072,7 @@ enum ice_rl_type { | ||
#define ICE_SCHED_DFLT_RL_PROF_ID 0 | ||
#define ICE_SCHED_NO_SHARED_RL_PROF_ID 0xFFFF | ||
#define ICE_SCHED_INVAL_PROF_ID 0xFFFF | ||
-#define ICE_SCHED_DFLT_BURST_SIZE (15 * 1024) /* in bytes (15k) */ | ||
+#define ICE_SCHED_DFLT_BURST_SIZE (2 * 1024) /* in bytes (2k) */ | ||
|
||
/* Access Macros for Tx Sched RL Profile data */ | ||
#define ICE_TXSCHED_GET_RL_PROF_ID(p) le16_to_cpu((p)->info.profile_id) | ||
-- | ||
2.34.1 | ||
|
27 changes: 27 additions & 0 deletions
27
patches/ice_drv/1.14.9/0003-vf-allow-VIRTCHNL_VF_LARGE_NUM_QPAIRS-for-ICE_LUT_VS.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 2f58bdf0923662cd43d2aac6e23089b81731b607 Mon Sep 17 00:00:00 2001 | ||
From: Frank Du <frank.du@intel.com> | ||
Date: Wed, 21 Feb 2024 13:14:05 +0800 | ||
Subject: [PATCH 3/4] vf: allow VIRTCHNL_VF_LARGE_NUM_QPAIRS for ICE_LUT_VSI | ||
|
||
Signed-off-by: Frank Du <frank.du@intel.com> | ||
--- | ||
src/ice_virtchnl.c | 3 +-- | ||
1 file changed, 1 insertion(+), 2 deletions(-) | ||
|
||
diff --git a/src/ice_virtchnl.c b/src/ice_virtchnl.c | ||
index 0150e4b..acafebe 100644 | ||
--- a/src/ice_virtchnl.c | ||
+++ b/src/ice_virtchnl.c | ||
@@ -760,8 +760,7 @@ static int ice_vc_get_vf_res_msg(struct ice_vf *vf, u8 *msg) | ||
if (vf->driver_caps & VIRTCHNL_VF_OFFLOAD_USO) | ||
vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_USO; | ||
|
||
- if (vf->driver_caps & VIRTCHNL_VF_LARGE_NUM_QPAIRS && | ||
- vsi->rss_lut_type != ICE_LUT_VSI) | ||
+ if (vf->driver_caps & VIRTCHNL_VF_LARGE_NUM_QPAIRS) | ||
vfres->vf_cap_flags |= VIRTCHNL_VF_LARGE_NUM_QPAIRS; | ||
|
||
/* Negotiate DCF capability. */ | ||
-- | ||
2.34.1 | ||
|
26 changes: 26 additions & 0 deletions
26
patches/ice_drv/1.14.9/0004-version-update-to-Kahawai_1.14.9_20240613.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From e444a61d379f7d18fdae4e3051403c6ec099ef80 Mon Sep 17 00:00:00 2001 | ||
From: Frank Du <frank.du@intel.com> | ||
Date: Thu, 13 Jun 2024 10:11:29 +0800 | ||
Subject: [PATCH 4/4] version: update to Kahawai_1.14.9_20240613 | ||
|
||
Signed-off-by: Frank Du <frank.du@intel.com> | ||
--- | ||
src/ice_main.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/ice_main.c b/src/ice_main.c | ||
index 95e18ea..3a5df55 100644 | ||
--- a/src/ice_main.c | ||
+++ b/src/ice_main.c | ||
@@ -32,7 +32,7 @@ | ||
#define DRV_VERSION_MINOR 14 | ||
#define DRV_VERSION_BUILD 9 | ||
|
||
-#define DRV_VERSION "1.14.9" | ||
+#define DRV_VERSION "Kahawai_1.14.9_20240613" | ||
#define DRV_SUMMARY "Intel(R) Ethernet Connection E800 Series Linux Driver" | ||
#ifdef ICE_ADD_PROBES | ||
#define DRV_VERSION_EXTRA "_probes" | ||
-- | ||
2.34.1 | ||
|