[01/20] common/cnxk: increase resource count for bitmap alloc

Message ID 20220207072932.22409-1-ndabilpuram@marvell.com (mailing list archive)
State Changes Requested, archived
Delegated to: Jerin Jacob
Headers
Series [01/20] common/cnxk: increase resource count for bitmap alloc |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-testing warning apply patch failure

Commit Message

Nithin Dabilpuram Feb. 7, 2022, 7:29 a.m. UTC
  From: Satha Rao <skoteshwar@marvell.com>

CN10K supports up to 832 resources at SMQ level, so increase
bitmap count to 1024.

Signed-off-by: Satha Rao <skoteshwar@marvell.com>
---

Depends-on: Series-20935 ("common/cnxk: use XAQ create API for inline device")
Depends-on: Series-20934 ("common/cnxk: add workaround for vWQE flush")
 drivers/common/cnxk/roc_nix_priv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Jerin Jacob Feb. 17, 2022, 1:11 p.m. UTC | #1
On Mon, Feb 7, 2022 at 1:00 PM Nithin Dabilpuram
<ndabilpuram@marvell.com> wrote:
>
> From: Satha Rao <skoteshwar@marvell.com>
>
> CN10K supports up to 832 resources at SMQ level, so increase
> bitmap count to 1024.
>
> Signed-off-by: Satha Rao <skoteshwar@marvell.com>


Please rebase to next-net-mrvl and fix the following checkpatch issues.

[for-next-net]dell[dpdk-next-net-mrvl] $ git pw series apply 21483
Failed to apply patch:
Applying: common/cnxk: increase resource count for bitmap alloc
Applying: common/cnxk: realloc inline device XAQ AURA
Applying: common/cnxk: adjust shaper rates to lower boundaries
Applying: common/cnxk: support inline device API without ROC NIX
Applying: common/cnxk: use common SA init API for default options
error: sha1 information is lacking or useless (drivers/common/cnxk/version.map).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0005 common/cnxk: use common SA init API for default options
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".


check patch issues:


CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#2065: FILE: drivers/net/cnxk/cn10k_rx.h:963:
+                                        roc_npa_aura_handle_to_aura(

CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#2092: FILE: drivers/net/cnxk/cn10k_rx.h:987:
+                                        roc_npa_aura_handle_to_aura(

total: 0 errors, 0 warnings, 3 checks, 2235 lines checked

> ---
>
> Depends-on: Series-20935 ("common/cnxk: use XAQ create API for inline device")
> Depends-on: Series-20934 ("common/cnxk: add workaround for vWQE flush")
>  drivers/common/cnxk/roc_nix_priv.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/common/cnxk/roc_nix_priv.h b/drivers/common/cnxk/roc_nix_priv.h
> index deb2a6b..4d2a7d8 100644
> --- a/drivers/common/cnxk/roc_nix_priv.h
> +++ b/drivers/common/cnxk/roc_nix_priv.h
> @@ -31,7 +31,7 @@ struct nix_qint {
>  };
>
>  /* Traffic Manager */
> -#define NIX_TM_MAX_HW_TXSCHQ 512
> +#define NIX_TM_MAX_HW_TXSCHQ 1024
>  #define NIX_TM_HW_ID_INVALID UINT32_MAX
>
>  /* TM flags */
> --
> 2.8.4
>
  
Jerin Jacob Feb. 17, 2022, 1:13 p.m. UTC | #2
On Mon, Feb 7, 2022 at 1:00 PM Nithin Dabilpuram
<ndabilpuram@marvell.com> wrote:
>
> From: Satha Rao <skoteshwar@marvell.com>
>
> CN10K supports up to 832 resources at SMQ level, so increase
> bitmap count to 1024.
>
> Signed-off-by: Satha Rao <skoteshwar@marvell.com>
> ---

Please change the subject as common/cnxk: increase SMQ resource count

> Depends-on: Series-20935 ("common/cnxk: use XAQ create API for inline device")
> Depends-on: Series-20934 ("common/cnxk: add workaround for vWQE flush")
>  drivers/common/cnxk/roc_nix_priv.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/common/cnxk/roc_nix_priv.h b/drivers/common/cnxk/roc_nix_priv.h
> index deb2a6b..4d2a7d8 100644
> --- a/drivers/common/cnxk/roc_nix_priv.h
> +++ b/drivers/common/cnxk/roc_nix_priv.h
> @@ -31,7 +31,7 @@ struct nix_qint {
>  };
>
>  /* Traffic Manager */
> -#define NIX_TM_MAX_HW_TXSCHQ 512
> +#define NIX_TM_MAX_HW_TXSCHQ 1024
>  #define NIX_TM_HW_ID_INVALID UINT32_MAX
>
>  /* TM flags */
> --
> 2.8.4
>
  

Patch

diff --git a/drivers/common/cnxk/roc_nix_priv.h b/drivers/common/cnxk/roc_nix_priv.h
index deb2a6b..4d2a7d8 100644
--- a/drivers/common/cnxk/roc_nix_priv.h
+++ b/drivers/common/cnxk/roc_nix_priv.h
@@ -31,7 +31,7 @@  struct nix_qint {
 };
 
 /* Traffic Manager */
-#define NIX_TM_MAX_HW_TXSCHQ 512
+#define NIX_TM_MAX_HW_TXSCHQ 1024
 #define NIX_TM_HW_ID_INVALID UINT32_MAX
 
 /* TM flags */