]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/6.6.26/octeontx2-af-fix-issue-with-loading-coalesced-kpu-profiles.patch
Linux 6.1.85
[thirdparty/kernel/stable-queue.git] / releases / 6.6.26 / octeontx2-af-fix-issue-with-loading-coalesced-kpu-profiles.patch
1 From 0ba80d96585662299d4ea4624043759ce9015421 Mon Sep 17 00:00:00 2001
2 From: Hariprasad Kelam <hkelam@marvell.com>
3 Date: Tue, 26 Mar 2024 17:51:49 +0530
4 Subject: octeontx2-af: Fix issue with loading coalesced KPU profiles
5
6 From: Hariprasad Kelam <hkelam@marvell.com>
7
8 commit 0ba80d96585662299d4ea4624043759ce9015421 upstream.
9
10 The current implementation for loading coalesced KPU profiles has
11 a limitation. The "offset" field, which is used to locate profiles
12 within the profile is restricted to a u16.
13
14 This restricts the number of profiles that can be loaded. This patch
15 addresses this limitation by increasing the size of the "offset" field.
16
17 Fixes: 11c730bfbf5b ("octeontx2-af: support for coalescing KPU profiles")
18 Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
19 Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
20 Signed-off-by: David S. Miller <davem@davemloft.net>
21 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22 ---
23 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
27 +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
28 @@ -1669,7 +1669,7 @@ static int npc_fwdb_detect_load_prfl_img
29 struct npc_coalesced_kpu_prfl *img_data = NULL;
30 int i = 0, rc = -EINVAL;
31 void __iomem *kpu_prfl_addr;
32 - u16 offset;
33 + u32 offset;
34
35 img_data = (struct npc_coalesced_kpu_prfl __force *)rvu->kpu_prfl_addr;
36 if (le64_to_cpu(img_data->signature) == KPU_SIGN &&