drivers/baseband: PMD to support ACC101 device
RE: [PATCH v7 5/6] baseband/acc100: modify validation code for ACC101
In reply to Nicolas Chautru-----Original Message-----
From: Chautru, Nicolas <[email protected]>
Sent: Tuesday, May 31, 2022 5:32 PM
To: [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; Kinsella, Ray <[email protected]>; Richardson, Bruce <[email protected]>; [email protected]; Vargas, Hernan <[email protected]>; [email protected]; Chautru, Nicolas <[email protected]>
Subject: [PATCH v7 5/6] baseband/acc100: modify validation code for ACC101
The validation requirement is different for the two devices.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 51 ++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 12 deletions(-)
Thanks,
Hernan
drivers/baseband/acc100/rte_acc100_pmd.c +14 -0
@@ -1295,6 +1295,21 @@ RTE_BBDEV_TURBO_HALF_ITERATION_EVEN); } +#ifdef RTE_LIBRTE_BBDEV_DEBUG + +static inline bool +is_acc100 (struct acc100_queue *q) +{ +return (q->d->device_variant ==ACC100_VARIANT ); } + +static inline bool +validate_op_required (struct acc100_queue *q) { +return is_acc100 (q); +} +#endif + /* Fill in a frame control word for LDPC decoding. */ static inline void acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, @@ -2182,13 +2197,16 @@ static inline uint32_t hq_index(uint32_t offset) #ifdef RTE_LIBRTE_BBDEV_DEBUG /* Validates turbo encoder parameters */ static inline int -validate_enc_op(struct rte_bbdev_enc_op *op) +validate_enc_op(struct rte_bbdev_enc_op *op, struct acc100_queue *q) {
struct rte_bbdev_op_turbo_enc *turbo_enc = &op->turbo_enc; struct rte_bbdev_op_enc_turbo_cb_params *cb = NULL; struct rte_bbdev_op_enc_turbo_tb_params *tb = NULL; uint16_t kw, kw_neg, kw_pos;
+ if (!validate_op_required(q))
+ return 0;
+
if (op->mempool == NULL) {
rte_bbdev_log(ERR, "Invalid mempool pointer");
return -1;
@@ -2320,10 +2338,13 @@ static inline uint32_t hq_index(uint32_t offset) }
/* Validates LDPC encoder parameters */ static inline int -validate_ldpc_enc_op(struct rte_bbdev_enc_op *op)
+validate_ldpc_enc_op(struct rte_bbdev_enc_op *op, struct acc100_queue
+*q)
{
struct rte_bbdev_op_ldpc_enc *ldpc_enc = &op->ldpc_enc;
+ if (!validate_op_required(q))
+ return 0;
+
if (op->mempool == NULL) {
rte_bbdev_log(ERR, "Invalid mempool pointer"); return -1;
@@ -2373,10 +2394,13 @@ static inline uint32_t hq_index(uint32_t offset)
/* Validates LDPC decoder parameters */ static inline int -validate_ldpc_dec_op(struct rte_bbdev_dec_op *op)
+validate_ldpc_dec_op(struct rte_bbdev_dec_op *op, struct acc100_queue
+*q)
{
struct rte_bbdev_op_ldpc_dec *ldpc_dec = &op->ldpc_dec;
+ if (!validate_op_required(q))
+ return 0;
+
if (op->mempool == NULL) {
rte_bbdev_log(ERR, "Invalid mempool pointer"); return -1;
@@ -2429,7 +2453,7 @@ static inline uint32_t hq_index(uint32_t offset)
#ifdef RTE_LIBRTE_BBDEV_DEBUG
/* Validate op structure */
- if (validate_enc_op(op) == -1) {
+ if (validate_enc_op(op, q) == -1) {
rte_bbdev_log(ERR, "Turbo encoder validation failed"); return -EINVAL;
}
@@ -2483,7 +2507,7 @@ static inline uint32_t hq_index(uint32_t offset)
#ifdef RTE_LIBRTE_BBDEV_DEBUG
/* Validate op structure */
- if (validate_ldpc_enc_op(ops[0]) == -1) {
+ if (validate_ldpc_enc_op(ops[0], q) == -1) {
rte_bbdev_log(ERR, "LDPC encoder validation failed"); return -EINVAL;
}
@@ -2545,7 +2569,7 @@ static inline uint32_t hq_index(uint32_t offset)
#ifdef RTE_LIBRTE_BBDEV_DEBUG
/* Validate op structure */
- if (validate_ldpc_enc_op(op) == -1) {
+ if (validate_ldpc_enc_op(op, q) == -1) {
rte_bbdev_log(ERR, "LDPC encoder validation failed"); return -EINVAL;
}
@@ -2602,7 +2626,7 @@ static inline uint32_t hq_index(uint32_t offset)
#ifdef RTE_LIBRTE_BBDEV_DEBUG
/* Validate op structure */
- if (validate_enc_op(op) == -1) {
+ if (validate_enc_op(op, q) == -1) {
rte_bbdev_log(ERR, "Turbo encoder validation failed");
return -EINVAL;
}
@@ -2675,12 +2699,15 @@ static inline uint32_t hq_index(uint32_t offset) #ifdef RTE_LIBRTE_BBDEV_DEBUG
/* Validates turbo decoder parameters */ static inline int -validate_dec_op(struct rte_bbdev_dec_op *op)
+validate_dec_op(struct rte_bbdev_dec_op *op, struct acc100_queue *q)
{
struct rte_bbdev_op_turbo_dec *turbo_dec = &op->turbo_dec;
struct rte_bbdev_op_dec_turbo_cb_params *cb = NULL;
struct rte_bbdev_op_dec_turbo_tb_params *tb = NULL;
+ if (!validate_op_required(q))
+ return 0;
+
if (op->mempool == NULL) {
rte_bbdev_log(ERR, "Invalid mempool pointer"); return -1;
@@ -2822,7 +2849,7 @@ static inline uint32_t hq_index(uint32_t offset)
#ifdef RTE_LIBRTE_BBDEV_DEBUG
/* Validate op structure */
- if (validate_dec_op(op) == -1) {
+ if (validate_dec_op(op, q) == -1) {
rte_bbdev_log(ERR, "Turbo decoder validation failed"); return -EINVAL;
}
@@ -3047,7 +3074,7 @@ static inline uint32_t hq_index(uint32_t offset)
#ifdef RTE_LIBRTE_BBDEV_DEBUG
/* Validate op structure */
- if (validate_ldpc_dec_op(op) == -1) {
+ if (validate_ldpc_dec_op(op, q) == -1) {
rte_bbdev_log(ERR, "LDPC decoder validation failed"); return -EINVAL;
}
@@ -3151,7 +3178,7 @@ static inline uint32_t hq_index(uint32_t offset)
#ifdef RTE_LIBRTE_BBDEV_DEBUG
/* Validate op structure */
- if (validate_ldpc_dec_op(op) == -1) {
+ if (validate_ldpc_dec_op(op, q) == -1) {
rte_bbdev_log(ERR, "LDPC decoder validation failed"); return -EINVAL;
}
@@ -3241,7 +3268,7 @@ static inline uint32_t hq_index(uint32_t offset)
#ifdef RTE_LIBRTE_BBDEV_DEBUG
/* Validate op structure */
- if (validate_dec_op(op) == -1) {
+ if (validate_dec_op(op, q) == -1) {
rte_bbdev_log(ERR, "Turbo decoder validation failed"); return -EINVAL;
}
--
1.8.3.1
PATCH v7 6/6 baseband/acc100: configuration of ACC101 from PF
In reply to Nicolas ChautruAdding companion function common to ACC100/ACC101 which can be called from bbdev-test when running from PF.
--- app/test-bbdev/test_bbdev_perf.c | 6 +- drivers/baseband/acc100/rte_acc100_cfg.h | 4 +- drivers/baseband/acc100/rte_acc100_pmd.c | 314 ++++++++++++++++++++++++++++++- drivers/baseband/acc100/version.map | 3 +- 4 files changed, 318 insertions(+), 9 deletions(-)
app/test-bbdev/test_bbdev_perf.c +3 -3
@@ -711,11 +711,11 @@ typedef int (test_case_function)(struct active_device *ad,#endif #ifdef RTE_BASEBAND_ACC100 if ((get_init_device () == true) && - (!strcmp (info->drv.driver_name,ACC100PF_DRIVER_NAME ))) { + (!strcmp (info->drv.driver_name,ACC100PF_DRIVER_NAME ))) {struct rte_acc100_conf conf;unsigned int i; -printf ("Configure ACC100 FEC Driver %s with default values\n" , +printf ("Configure ACC100/ACC101 FEC Driver %s with default values\n" , info->drv.driver_name);/* clear default configuration before initialization */
@@ -760,7 +760,7 @@ typedef int (test_case_function)(struct active_device *ad, conf.q_dl_5g.aq_depth_log2 =ACC100_QMGR_AQ_DEPTH ;/* setup PF with configuration information */ - ret =rte_acc100_configure (info->dev_name, &conf); + ret =rte_acc10x_configure (info->dev_name, &conf);TEST_ASSERT_SUCCESS (ret,"Failed to configure ACC100 PF for bbdev %s" , info->dev_name);
drivers/baseband/acc100/rte_acc100_cfg.h +2 -2
@@ -90,7 +90,7 @@ struct rte_acc100_conf { };/** -* Configure a ACC100 device +* Configure a ACC100/ACC101 device in PF mode notably for bbdev-test * * @param dev_name * The name of the device. This is the short form of PCI BDF, e.g. 00:01.0.
@@ -104,7 +104,7 @@ struct rte_acc100_conf {*/ __rte_experimental int -rte_acc100_configure (const char *dev_name,struct rte_acc100_conf *conf); +rte_acc10x_configure (const char *dev_name,struct rte_acc100_conf *conf); #ifdef __cplusplus }
drivers/baseband/acc100/rte_acc100_pmd.c +312 -2
323 lines not on this page · raw message
drivers/baseband/acc100/version.map +1 -2
@@ -5,6 +5,5 @@ DPDK_22 { EXPERIMENTAL { global: - rte_acc100_configure; - + rte_acc10x_configure; };
Signature · 1 line
1.8.3.1
Re: [PATCH v7 6/6] baseband/acc100: configuration of ACC101 from PF
Quoted 11 lines · Nicolas Chautru
Adding companion function common to ACC100/ACC101 which can be called from bbdev-test when running from PF.
Signed-off-by Nicolas Chautru <[email protected]>--- app/test-bbdev/test_bbdev_perf.c | 6 +- drivers/baseband/acc100/rte_acc100_cfg.h | 4 +- drivers/baseband/acc100/rte_acc100_pmd.c | 314 ++++++++++++++++++++++++++++++- drivers/baseband/acc100/version.map | 3 +- 4 files changed, 318 insertions(+), 9 deletions(-)
Thanks,
Maxime
RE: [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices
In reply to Nicolas ChautruHi Akhil,
Checking that this series on track to be applied. Let me know if anything required from our end.
Quoted 79 lines
-----Original Message-----
From: Chautru, Nicolas <[email protected]>
Sent: Tuesday, May 31, 2022 3:32 PM
To: [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; Kinsella, Ray <[email protected]>; Richardson, Bruce <[email protected]>; [email protected]; Vargas, Hernan <[email protected]>; [email protected]; Chautru, Nicolas <[email protected]>
Subject: [PATCH v7 0/6]drivers/baseband: PMD to support ACC100/ACC101 devicesv7: updates suggested by Akhil and Maxime. Removed RTE prefix for internal #define, removed build-time single FEC engine configuration mode, documentation fix, coding guideline fix, renamed new file without rte prefix.
v6: use formally an unified driver for AC100 and AC101. Exposing single unified function for the PF device configuration used by bbdev-test.
v5: minor fix to doc and intermediate commit caught in CI
v4: incremental updates based on reviews Changed order of patchset to include two ACC100 specific commits first: updating formally the companion configure function from PF and the protection adjustment.
Then next 3 commits for the actual changes specific to ACC101: the device specific function for FCW 5GUL generation used as a local function, combined documentations into a single .rst common to both devices, updated comments, removed unused #defines.v3: Feedback from Tom Rix: missing copyright, refactor bbdev-test section calling the configure companion function for ACC100/101, taking the Pmon commit out which is not directly required.
v2: Based on good feedback from Thomas and David, now implementing the ACC101 PMD as a close derivative from existing ACC100 PMD with hooks to have different behaviour based on variant.
This prevents code duplication and only rely on different functions and behaviour when hardware requires or support differences.
Note that these are pending changes for ACC100 which would be specific to that device and not ACC101 but these can be managed based on the new implementation, ie.is_acc100()etc... (such incremental changes for ACC100 trending 22.11 but confirming this is future proof).
The serie also includes commits which were meant for ACC101 but are also valuable for ACC100.v1: This serie introduces the PMD for the new bbdev device ACC101 (aka Mount Cirrus).
This is a derivative from previous Mount Bryce ACC100 which includes silicon improvement, bug fixes, capacity improvement for 5GNR and feature improvement.Nicolas Chautru (6):
baseband/acc100: update companion PF configure function baseband/acc100: add protection for some negative scenario baseband/acc100: remove RTE prefix for internal macro baseband/acc100: introduce PMD for ACC101 baseband/acc100: modify validation code for ACC101 baseband/acc100: configuration of ACC101 from PFMAINTAINERS | 1 + app/test-bbdev/test_bbdev_perf.c | 6 +- doc/guides/bbdevs/acc100.rst | 37 +- doc/guides/bbdevs/features/acc101.ini | 13 + doc/guides/rel_notes/release_22_07.rst | 3 + drivers/baseband/acc100/acc100_pf_enum.h | 18 + drivers/baseband/acc100/acc101_pmd.h | 50 +++ drivers/baseband/acc100/rte_acc100_cfg.h | 4 +- drivers/baseband/acc100/rte_acc100_pmd.c | 687 ++++++++++++++++++++++++++++--- drivers/baseband/acc100/rte_acc100_pmd.h | 37 +- drivers/baseband/acc100/version.map | 3 +- 11 files changed, 768 insertions(+), 91 deletions(-) create mode 100644 doc/guides/bbdevs/features/acc101.ini create mode 100644 drivers/baseband/acc100/acc101_pmd.h--
1.8.3.1
Re: [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices
Hi Nicolas,
I wanted to take this in RC1 but I was unwell last couple of days. Can we push it to RC2? If not, please ask Thomas if he has time to pick it directly to main?
Regards,
Akhil
________________________________
From: Chautru, Nicolas <[email protected]>
Sent: Monday, 6 June, 2022, 8:24 pm
To: [email protected] <[email protected]>; Akhil Goyal <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: [email protected] <[email protected]>; Kinsella, Ray <[email protected]>; Richardson, Bruce <[email protected]>; [email protected] <[email protected]>; Vargas, Hernan <[email protected]>; [email protected] <[email protected]>
Subject: [EXT] RE: [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices
External Email
----------------------------------------------------------------------
Hi Akhil,
Checking that this series on track to be applied. Let me know if anything required from our end.
Quoted 79 lines
-----Original Message-----
From: Chautru, Nicolas <[email protected]>
Sent: Tuesday, May 31, 2022 3:32 PM
To: [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; Kinsella, Ray <[email protected]>; Richardson, Bruce <[email protected]>; [email protected]; Vargas, Hernan <[email protected]>; [email protected]; Chautru, Nicolas <[email protected]>
Subject: [PATCH v7 0/6]drivers/baseband: PMD to support ACC100/ACC101 devicesv7: updates suggested by Akhil and Maxime. Removed RTE prefix for internal #define, removed build-time single FEC engine configuration mode, documentation fix, coding guideline fix, renamed new file without rte prefix.
v6: use formally an unified driver for AC100 and AC101. Exposing single unified function for the PF device configuration used by bbdev-test.
v5: minor fix to doc and intermediate commit caught in CI
v4: incremental updates based on reviews Changed order of patchset to include two ACC100 specific commits first: updating formally the companion configure function from PF and the protection adjustment.
Then next 3 commits for the actual changes specific to ACC101: the device specific function for FCW 5GUL generation used as a local function, combined documentations into a single .rst common to both devices, updated comments, removed unused #defines.v3: Feedback from Tom Rix: missing copyright, refactor bbdev-test section calling the configure companion function for ACC100/101, taking the Pmon commit out which is not directly required.
v2: Based on good feedback from Thomas and David, now implementing the ACC101 PMD as a close derivative from existing ACC100 PMD with hooks to have different behaviour based on variant.
This prevents code duplication and only rely on different functions and behaviour when hardware requires or support differences.
Note that these are pending changes for ACC100 which would be specific to that device and not ACC101 but these can be managed based on the new implementation, ie.is_acc100()etc... (such incremental changes for ACC100 trending 22.11 but confirming this is future proof).
The serie also includes commits which were meant for ACC101 but are also valuable for ACC100.v1: This serie introduces the PMD for the new bbdev device ACC101 (aka Mount Cirrus).
This is a derivative from previous Mount Bryce ACC100 which includes silicon improvement, bug fixes, capacity improvement for 5GNR and feature improvement.Nicolas Chautru (6):
baseband/acc100: update companion PF configure function baseband/acc100: add protection for some negative scenario baseband/acc100: remove RTE prefix for internal macro baseband/acc100: introduce PMD for ACC101 baseband/acc100: modify validation code for ACC101 baseband/acc100: configuration of ACC101 from PFMAINTAINERS | 1 + app/test-bbdev/test_bbdev_perf.c | 6 +- doc/guides/bbdevs/acc100.rst | 37 +- doc/guides/bbdevs/features/acc101.ini | 13 + doc/guides/rel_notes/release_22_07.rst | 3 + drivers/baseband/acc100/acc100_pf_enum.h | 18 + drivers/baseband/acc100/acc101_pmd.h | 50 +++ drivers/baseband/acc100/rte_acc100_cfg.h | 4 +- drivers/baseband/acc100/rte_acc100_pmd.c | 687 ++++++++++++++++++++++++++++--- drivers/baseband/acc100/rte_acc100_pmd.h | 37 +- drivers/baseband/acc100/version.map | 3 +- 11 files changed, 768 insertions(+), 91 deletions(-) create mode 100644 doc/guides/bbdevs/features/acc101.ini create mode 100644 drivers/baseband/acc100/acc101_pmd.h--
1.8.3.1
RE: [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices
Thanks Akhil for your reply. It should be okay to apply it after rc1 once you feel better. Thanks
Nic
From: Akhil Goyal <[email protected]>
Sent: Monday, June 6, 2022 8:04 AM
To: Chautru, Nicolas <[email protected]>; [email protected]; [email protected]; [email protected]
Cc: [email protected]; Kinsella, Ray <[email protected]>; Richardson, Bruce <[email protected]>; [email protected]; Vargas, Hernan <[email protected]>; [email protected]
Subject: Re: [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices
Hi Nicolas,
I wanted to take this in RC1 but I was unwell last couple of days. Can we push it to RC2? If not, please ask Thomas if he has time to pick it directly to main?
Regards,
Akhil
________________________________
From: Chautru, Nicolas <[email protected]<mailto:[email protected]>>
Sent: Monday, 6 June, 2022, 8:24 pm
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; Akhil Goyal <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; Kinsella, Ray <[email protected]<mailto:[email protected]>>; Richardson, Bruce <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; Vargas, Hernan <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Subject: [EXT] RE: [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices
External Email
----------------------------------------------------------------------
Hi Akhil,
Checking that this series on track to be applied. Let me know if anything required from our end.
Quoted 79 lines
-----Original Message-----
From: Chautru, Nicolas <[email protected]<mailto:[email protected]>>
Sent: Tuesday, May 31, 2022 3:32 PM
To: [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>; Kinsella, Ray <[email protected]<mailto:[email protected]>>; Richardson, Bruce <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; Vargas, Hernan <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]>; Chautru, Nicolas <[email protected]<mailto:[email protected]>>
Subject: [PATCH v7 0/6]drivers/baseband: PMD to support ACC100/ACC101
devicesv7: updates suggested by Akhil and Maxime. Removed RTE prefix for internal #define, removed build-time single FEC engine configuration mode, documentation fix, coding guideline fix, renamed new file without rte prefix.
v6: use formally an unified driver for AC100 and AC101. Exposing single unified function for the PF device configuration used by bbdev-test.
v5: minor fix to doc and intermediate commit caught in CI
v4: incremental updates based on reviews Changed order of patchset to include two ACC100 specific commits first: updating formally the companion configure function from PF and the protection adjustment.
Then next 3 commits for the actual changes specific to ACC101: the device specific function for FCW 5GUL generation used as a local function, combined documentations into a single .rst common to both devices, updated comments, removed unused #defines.v3: Feedback from Tom Rix: missing copyright, refactor bbdev-test section calling the configure companion function for ACC100/101, taking the Pmon commit out which is not directly required.
v2: Based on good feedback from Thomas and David, now implementing the ACC101 PMD as a close derivative from existing ACC100 PMD with hooks to have different behaviour based on variant.
This prevents code duplication and only rely on different functions and behaviour when hardware requires or support differences.
Note that these are pending changes for ACC100 which would be specific to that device and not ACC101 but these can be managed based on the new implementation, ie.is_acc100()etc... (such incremental changes for ACC100 trending 22.11 but confirming this is future proof).
The serie also includes commits which were meant for ACC101 but are also valuable for ACC100.v1: This serie introduces the PMD for the new bbdev device ACC101 (aka Mount Cirrus).
This is a derivative from previous Mount Bryce ACC100 which includes silicon improvement, bug fixes, capacity improvement for 5GNR and feature improvement.Nicolas Chautru (6):
baseband/acc100: update companion PF configure function baseband/acc100: add protection for some negative scenario baseband/acc100: remove RTE prefix for internal macro baseband/acc100: introduce PMD for ACC101 baseband/acc100: modify validation code for ACC101 baseband/acc100: configuration of ACC101 from PFMAINTAINERS | 1 + app/test-bbdev/test_bbdev_perf.c | 6 +- doc/guides/bbdevs/acc100.rst | 37 +- doc/guides/bbdevs/features/acc101.ini | 13 + doc/guides/rel_notes/release_22_07.rst | 3 + drivers/baseband/acc100/acc100_pf_enum.h | 18 + drivers/baseband/acc100/acc101_pmd.h | 50 +++ drivers/baseband/acc100/rte_acc100_cfg.h | 4 +- drivers/baseband/acc100/rte_acc100_pmd.c | 687 ++++++++++++++++++++++++++++--- drivers/baseband/acc100/rte_acc100_pmd.h | 37 +- drivers/baseband/acc100/version.map | 3 +- 11 files changed, 768 insertions(+), 91 deletions(-) create mode 100644 doc/guides/bbdevs/features/acc101.ini create mode 100644 drivers/baseband/acc100/acc101_pmd.h--
1.8.3.1
RE: [EXT] [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices
In reply to Nicolas ChautruQuoted 49 lines
v7: updates suggested by Akhil and Maxime. Removed RTE prefix for internal #define, removed
build-time single FEC engine configuration mode, documentation fix, coding guideline fix, renamed new file without rte prefix.v6: use formally an unified driver for AC100 and AC101. Exposing single unified function for the PF device configuration used by bbdev-test.
v5: minor fix to doc and intermediate commit caught in CI
v4: incremental updates based on reviews Changed order of patchset to include two ACC100 specific commits first: updating formally the companion configure function from PF and the protection adjustment.
Then next 3 commits for the actual changes specific to ACC101: the device specific function for FCW 5GUL generation used as a local function, combined documentations into a single .rst common to both devices, updated comments, removed unused #defines.v3: Feedback from Tom Rix: missing copyright, refactor bbdev-test section calling the configure companion function for ACC100/101, taking the Pmon commit out which is not directly required.
v2: Based on good feedback from Thomas and David, now implementing the ACC101 PMD as a close derivative from existing ACC100 PMD with hooks to have different behaviour based on variant.
This prevents code duplication and only rely on different functions and behaviour when hardware requires or support differences.
Note that these are pending changes for ACC100 which would be specific to that device and not ACC101 but these can be managed based on the new implementation, ie.is_acc100()etc... (such incremental changes for ACC100 trending 22.11 but confirming this is future proof).
The serie also includes commits which were meant for ACC101 but are also valuable for ACC100.v1: This serie introduces the PMD for the new bbdev device ACC101 (aka Mount Cirrus).
This is a derivative from previous Mount Bryce ACC100 which includes silicon improvement, bug fixes, capacity improvement for 5GNR and feature improvement.Nicolas Chautru (6):
baseband/acc100: update companion PF configure function baseband/acc100: add protection for some negative scenario baseband/acc100: remove RTE prefix for internal macro baseband/acc100: introduce PMD for ACC101 baseband/acc100: modify validation code for ACC101 baseband/acc100: configuration of ACC101 from PF
Quoted 15 lines
MAINTAINERS | 1 + app/test-bbdev/test_bbdev_perf.c | 6 +- doc/guides/bbdevs/acc100.rst | 37 +- doc/guides/bbdevs/features/acc101.ini | 13 + doc/guides/rel_notes/release_22_07.rst | 3 + drivers/baseband/acc100/acc100_pf_enum.h | 18 + drivers/baseband/acc100/acc101_pmd.h | 50 +++ drivers/baseband/acc100/rte_acc100_cfg.h | 4 +- drivers/baseband/acc100/rte_acc100_pmd.c | 687 ++++++++++++++++++++++++++++--- drivers/baseband/acc100/rte_acc100_pmd.h | 37 +- drivers/baseband/acc100/version.map | 3 +- 11 files changed, 768 insertions(+), 91 deletions(-) create mode 100644 doc/guides/bbdevs/features/acc101.ini create mode 100644 drivers/baseband/acc100/acc101_pmd.h
Series applied to dpdk-next-crypto
Thanks.
RE: [EXT] [PATCH v7 0/6] drivers/baseband: PMD to support ACC100/ACC101 devices
Hi Nicolas,
Please submit a patch for renaming rte_acc100_pmd.h to acc100_pmd.h as it is an internal file.
Quoted 73 lines
Quoted 6 lines
v7: updates suggested by Akhil and Maxime. Removed RTE prefix for internal #define, removed
build-time single FEC engine configuration mode, documentation fix, coding guideline fix, renamed new file without rte prefix.Quoted 6 lines
v6: use formally an unified driver for AC100 and AC101. Exposing single unified function for the PF device configuration used by bbdev-test.
v5: minor fix to doc and intermediate commit caught in CI
v4: incremental updates based on reviews Changed order of patchset to
include
Quoted 5 lines
two ACC100 specific commits first: updating formally the companion configure function from PF and the protection adjustment.
Then next 3 commits for the actual changes specific to ACC101: the device specific function for FCW 5GUL generation used as a local function, combined documentations into a single .rst common to both devices, updatedcomments,
Quoted 6 lines
removed unused #defines.
v3: Feedback from Tom Rix: missing copyright, refactor bbdev-test section calling the configure companion function for ACC100/101, taking the Pmon commit out which is not directly required.
Quoted 6 lines
v2: Based on good feedback from Thomas and David, now implementing the ACC101 PMD as a close derivative from existing ACC100 PMD with hooks to have different behaviour based on variant.
This prevents code duplication and only rely on different functions and behaviour when hardware requires or support differences.
Note that these are pending changes for ACC100 which would be specific tothat
Quoted 7 lines
device and not ACC101 but these can be managed based on the new implementation, ie.
is_acc100()etc... (such incremental changes for ACC100 trending 22.11 but confirming this is future proof).
The serie also includes commits which were meant for ACC101 but are also valuable for ACC100.v1: This serie introduces the PMD for the new bbdev device ACC101 (aka
Mount
Quoted 14 lines
Cirrus).
This is a derivative from previous Mount Bryce ACC100 which includes silicon improvement, bug fixes, capacity improvement for 5GNR and feature improvement.Nicolas Chautru (6):
baseband/acc100: update companion PF configure function baseband/acc100: add protection for some negative scenario baseband/acc100: remove RTE prefix for internal macro baseband/acc100: introduce PMD for ACC101 baseband/acc100: modify validation code for ACC101 baseband/acc100: configuration of ACC101 from PFQuoted 15 lines
MAINTAINERS | 1 + app/test-bbdev/test_bbdev_perf.c | 6 +- doc/guides/bbdevs/acc100.rst | 37 +- doc/guides/bbdevs/features/acc101.ini | 13 + doc/guides/rel_notes/release_22_07.rst | 3 + drivers/baseband/acc100/acc100_pf_enum.h | 18 + drivers/baseband/acc100/acc101_pmd.h | 50 +++ drivers/baseband/acc100/rte_acc100_cfg.h | 4 +- drivers/baseband/acc100/rte_acc100_pmd.c | 687 ++++++++++++++++++++++++++++--- drivers/baseband/acc100/rte_acc100_pmd.h | 37 +- drivers/baseband/acc100/version.map | 3 +- 11 files changed, 768 insertions(+), 91 deletions(-) create mode 100644 doc/guides/bbdevs/features/acc101.ini create mode 100644 drivers/baseband/acc100/acc101_pmd.hSeries applied to dpdk-next-crypto
Thanks.