* [net Patch] octeontx2-af: Fix issue with loading coalesced KPU profiles
@ 2024-03-26 12:21 Hariprasad Kelam
2024-03-26 15:53 ` Kalesh Anakkur Purayil
2024-03-29 11:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Hariprasad Kelam @ 2024-03-26 12:21 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: kuba, davem, sgoutham, gakula, jerinj, lcherian, sbhatta, hkelam,
naveenm, edumazet, pabeni
The current implementation for loading coalesced KPU profiles has
a limitation. The "offset" field, which is used to locate profiles
within the profile is restricted to a u16.
This restricts the number of profiles that can be loaded. This patch
addresses this limitation by increasing the size of the "offset" field.
Fixes: 11c730bfbf5b ("octeontx2-af: support for coalescing KPU profiles")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
---
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
index e350242bbafb..be709f83f331 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
@@ -1657,7 +1657,7 @@ static int npc_fwdb_detect_load_prfl_img(struct rvu *rvu, uint64_t prfl_sz,
struct npc_coalesced_kpu_prfl *img_data = NULL;
int i = 0, rc = -EINVAL;
void __iomem *kpu_prfl_addr;
- u16 offset;
+ u32 offset;
img_data = (struct npc_coalesced_kpu_prfl __force *)rvu->kpu_prfl_addr;
if (le64_to_cpu(img_data->signature) == KPU_SIGN &&
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [net Patch] octeontx2-af: Fix issue with loading coalesced KPU profiles
2024-03-26 12:21 [net Patch] octeontx2-af: Fix issue with loading coalesced KPU profiles Hariprasad Kelam
@ 2024-03-26 15:53 ` Kalesh Anakkur Purayil
2024-03-29 11:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Kalesh Anakkur Purayil @ 2024-03-26 15:53 UTC (permalink / raw)
To: Hariprasad Kelam
Cc: netdev, linux-kernel, kuba, davem, sgoutham, gakula, jerinj,
lcherian, sbhatta, naveenm, edumazet, pabeni
[-- Attachment #1: Type: text/plain, Size: 1517 bytes --]
On Tue, Mar 26, 2024 at 5:53 PM Hariprasad Kelam <hkelam@marvell.com> wrote:
>
> The current implementation for loading coalesced KPU profiles has
> a limitation. The "offset" field, which is used to locate profiles
> within the profile is restricted to a u16.
>
> This restricts the number of profiles that can be loaded. This patch
> addresses this limitation by increasing the size of the "offset" field.
>
> Fixes: 11c730bfbf5b ("octeontx2-af: support for coalescing KPU profiles")
> Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
LGTM
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
> ---
> drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
> index e350242bbafb..be709f83f331 100644
> --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
> +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
> @@ -1657,7 +1657,7 @@ static int npc_fwdb_detect_load_prfl_img(struct rvu *rvu, uint64_t prfl_sz,
> struct npc_coalesced_kpu_prfl *img_data = NULL;
> int i = 0, rc = -EINVAL;
> void __iomem *kpu_prfl_addr;
> - u16 offset;
> + u32 offset;
>
> img_data = (struct npc_coalesced_kpu_prfl __force *)rvu->kpu_prfl_addr;
> if (le64_to_cpu(img_data->signature) == KPU_SIGN &&
> --
> 2.17.1
>
>
--
Regards,
Kalesh A P
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4239 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [net Patch] octeontx2-af: Fix issue with loading coalesced KPU profiles
2024-03-26 12:21 [net Patch] octeontx2-af: Fix issue with loading coalesced KPU profiles Hariprasad Kelam
2024-03-26 15:53 ` Kalesh Anakkur Purayil
@ 2024-03-29 11:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-03-29 11:50 UTC (permalink / raw)
To: Hariprasad Kelam
Cc: netdev, linux-kernel, kuba, davem, sgoutham, gakula, jerinj,
lcherian, sbhatta, naveenm, edumazet, pabeni
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:
On Tue, 26 Mar 2024 17:51:49 +0530 you wrote:
> The current implementation for loading coalesced KPU profiles has
> a limitation. The "offset" field, which is used to locate profiles
> within the profile is restricted to a u16.
>
> This restricts the number of profiles that can be loaded. This patch
> addresses this limitation by increasing the size of the "offset" field.
>
> [...]
Here is the summary with links:
- [net] octeontx2-af: Fix issue with loading coalesced KPU profiles
https://git.kernel.org/netdev/net/c/0ba80d965856
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-29 11:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-26 12:21 [net Patch] octeontx2-af: Fix issue with loading coalesced KPU profiles Hariprasad Kelam
2024-03-26 15:53 ` Kalesh Anakkur Purayil
2024-03-29 11:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox