* [PATCH net 0/3] bnxt_en: 3 bug fixes.
@ 2020-07-12 0:48 Michael Chan
2020-07-12 22:29 ` David Miller
0 siblings, 1 reply; 11+ messages in thread
From: Michael Chan @ 2020-07-12 0:48 UTC (permalink / raw)
To: davem; +Cc: netdev, kuba
2 Fixes related to PHY/link settings. The last one fixes the sizing of
the completion ring.
Please also queue for -stable. Thanks.
Michael Chan (1):
bnxt_en: Fix completion ring sizing with TPA enabled.
Vasundhara Volam (2):
bnxt_en: Fix race when modifying pause settings.
bnxt_en: Init ethtool link settings after reading updated PHY
configuration.
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 22 +++++++++++++++-------
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 5 ++++-
2 files changed, 19 insertions(+), 8 deletions(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net 0/3] bnxt_en: 3 bug fixes.
2020-07-12 0:48 [PATCH net 0/3] bnxt_en: 3 bug fixes Michael Chan
@ 2020-07-12 22:29 ` David Miller
0 siblings, 0 replies; 11+ messages in thread
From: David Miller @ 2020-07-12 22:29 UTC (permalink / raw)
To: michael.chan; +Cc: netdev, kuba
From: Michael Chan <michael.chan@broadcom.com>
Date: Sat, 11 Jul 2020 20:48:22 -0400
> 2 Fixes related to PHY/link settings. The last one fixes the sizing of
> the completion ring.
>
> Please also queue for -stable. Thanks.
Series applied and queued up for -stable, thanks.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH net 0/3] bnxt_en: 3 Bug fixes
@ 2023-03-29 1:30 Michael Chan
2023-03-30 4:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 11+ messages in thread
From: Michael Chan @ 2023-03-29 1:30 UTC (permalink / raw)
To: davem; +Cc: netdev, edumazet, kuba, pabeni, gospo
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
This series contains 3 small bug fixes covering ethtool self test, PCI
ID string typos, and some missing 200G link speed ethtool reporting logic.
Kalesh AP (2):
bnxt_en: Fix reporting of test result in ethtool selftest
bnxt_en: Fix typo in PCI id to device description string mapping
Michael Chan (1):
bnxt_en: Add missing 200G link speed reporting
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 8 ++++----
drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 +
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 3 +++
3 files changed, 8 insertions(+), 4 deletions(-)
--
2.18.1
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4209 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net 0/3] bnxt_en: 3 Bug fixes
2023-03-29 1:30 [PATCH net 0/3] bnxt_en: 3 Bug fixes Michael Chan
@ 2023-03-30 4:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 11+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-03-30 4:50 UTC (permalink / raw)
To: Michael Chan; +Cc: davem, netdev, edumazet, kuba, pabeni, gospo
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 28 Mar 2023 18:30:18 -0700 you wrote:
> This series contains 3 small bug fixes covering ethtool self test, PCI
> ID string typos, and some missing 200G link speed ethtool reporting logic.
>
> Kalesh AP (2):
> bnxt_en: Fix reporting of test result in ethtool selftest
> bnxt_en: Fix typo in PCI id to device description string mapping
>
> [...]
Here is the summary with links:
- [net,1/3] bnxt_en: Fix reporting of test result in ethtool selftest
https://git.kernel.org/netdev/net/c/83714dc3db0e
- [net,2/3] bnxt_en: Fix typo in PCI id to device description string mapping
https://git.kernel.org/netdev/net/c/62aad36ed31a
- [net,3/3] bnxt_en: Add missing 200G link speed reporting
https://git.kernel.org/netdev/net/c/581bce7bcb7e
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] 11+ messages in thread
* [PATCH net 0/3] bnxt_en: 3 bug fixes
@ 2025-07-10 21:39 Michael Chan
2025-07-10 21:39 ` [PATCH net 1/3] bnxt_en: Fix DCB ETS validation Michael Chan
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Michael Chan @ 2025-07-10 21:39 UTC (permalink / raw)
To: davem
Cc: netdev, edumazet, kuba, pabeni, andrew+netdev, pavan.chebbi,
andrew.gospodarek
The first one fixes a possible failure when setting DCB ETS. The
second one fixes the ethtool coredump (-W 2) not containing all the FW
traces. The third one fixes the DMA unmap length when transmitting
XDP_REDIRECT packets.
Shravya KN (1):
bnxt_en: Fix DCB ETS validation
Shruti Parab (1):
bnxt_en: Flush FW trace before copying to the coredump
Somnath Kotur (1):
bnxt_en: Set DMA unmap len correctly for XDP_REDIRECT
.../net/ethernet/broadcom/bnxt/bnxt_coredump.c | 18 +++++++++++-------
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c | 2 ++
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 2 +-
3 files changed, 14 insertions(+), 8 deletions(-)
--
2.30.1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH net 1/3] bnxt_en: Fix DCB ETS validation
2025-07-10 21:39 [PATCH net 0/3] bnxt_en: 3 bug fixes Michael Chan
@ 2025-07-10 21:39 ` Michael Chan
2025-07-10 21:39 ` [PATCH net 2/3] bnxt_en: Flush FW trace before copying to the coredump Michael Chan
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: Michael Chan @ 2025-07-10 21:39 UTC (permalink / raw)
To: davem
Cc: netdev, edumazet, kuba, pabeni, andrew+netdev, pavan.chebbi,
andrew.gospodarek, Shravya KN, Sreekanth Reddy
From: Shravya KN <shravya.k-n@broadcom.com>
In bnxt_ets_validate(), the code incorrectly loops over all possible
traffic classes to check and add the ETS settings. Fix it to loop
over the configured traffic classes only.
The unconfigured traffic classes will default to TSA_ETS with 0
bandwidth. Looping over these unconfigured traffic classes may
cause the validation to fail and trigger this error message:
"rejecting ETS config starving a TC\n"
The .ieee_setets() will then fail.
Fixes: 7df4ae9fe855 ("bnxt_en: Implement DCBNL to support host-based DCBX.")
Reviewed-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Shravya KN <shravya.k-n@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
---
drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
index 0dbb880a7aa0..71e14be2507e 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c
@@ -487,7 +487,9 @@ static int bnxt_ets_validate(struct bnxt *bp, struct ieee_ets *ets, u8 *tc)
if ((ets->tc_tx_bw[i] || ets->tc_tsa[i]) && i > bp->max_tc)
return -EINVAL;
+ }
+ for (i = 0; i < max_tc; i++) {
switch (ets->tc_tsa[i]) {
case IEEE_8021QAZ_TSA_STRICT:
break;
--
2.30.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH net 2/3] bnxt_en: Flush FW trace before copying to the coredump
2025-07-10 21:39 [PATCH net 0/3] bnxt_en: 3 bug fixes Michael Chan
2025-07-10 21:39 ` [PATCH net 1/3] bnxt_en: Fix DCB ETS validation Michael Chan
@ 2025-07-10 21:39 ` Michael Chan
2025-07-10 21:39 ` [PATCH net 3/3] bnxt_en: Set DMA unmap len correctly for XDP_REDIRECT Michael Chan
2025-07-11 14:40 ` [PATCH net 0/3] bnxt_en: 3 bug fixes patchwork-bot+netdevbpf
3 siblings, 0 replies; 11+ messages in thread
From: Michael Chan @ 2025-07-10 21:39 UTC (permalink / raw)
To: davem
Cc: netdev, edumazet, kuba, pabeni, andrew+netdev, pavan.chebbi,
andrew.gospodarek, Shruti Parab, Kalesh AP
From: Shruti Parab <shruti.parab@broadcom.com>
bnxt_fill_drv_seg_record() calls bnxt_dbg_hwrm_log_buffer_flush()
to flush the FW trace buffer. This needs to be done before we
call bnxt_copy_ctx_mem() to copy the trace data.
Without this fix, the coredump may not contain all the FW
traces.
Fixes: 3c2179e66355 ("bnxt_en: Add FW trace coredump segments to the coredump")
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Shruti Parab <shruti.parab@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
---
.../net/ethernet/broadcom/bnxt/bnxt_coredump.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c
index ce97befd3cb3..67e70d3d0980 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c
@@ -368,23 +368,27 @@ static u32 bnxt_get_ctx_coredump(struct bnxt *bp, void *buf, u32 offset,
if (!ctxm->mem_valid || !seg_id)
continue;
- if (trace)
+ if (trace) {
extra_hlen = BNXT_SEG_RCD_LEN;
+ if (buf) {
+ u16 trace_type = bnxt_bstore_to_trace[type];
+
+ bnxt_fill_drv_seg_record(bp, &record, ctxm,
+ trace_type);
+ }
+ }
+
if (buf)
data = buf + BNXT_SEG_HDR_LEN + extra_hlen;
+
seg_len = bnxt_copy_ctx_mem(bp, ctxm, data, 0) + extra_hlen;
if (buf) {
bnxt_fill_coredump_seg_hdr(bp, &seg_hdr, NULL, seg_len,
0, 0, 0, comp_id, seg_id);
memcpy(buf, &seg_hdr, BNXT_SEG_HDR_LEN);
buf += BNXT_SEG_HDR_LEN;
- if (trace) {
- u16 trace_type = bnxt_bstore_to_trace[type];
-
- bnxt_fill_drv_seg_record(bp, &record, ctxm,
- trace_type);
+ if (trace)
memcpy(buf, &record, BNXT_SEG_RCD_LEN);
- }
buf += seg_len;
}
len += BNXT_SEG_HDR_LEN + seg_len;
--
2.30.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH net 3/3] bnxt_en: Set DMA unmap len correctly for XDP_REDIRECT
2025-07-10 21:39 [PATCH net 0/3] bnxt_en: 3 bug fixes Michael Chan
2025-07-10 21:39 ` [PATCH net 1/3] bnxt_en: Fix DCB ETS validation Michael Chan
2025-07-10 21:39 ` [PATCH net 2/3] bnxt_en: Flush FW trace before copying to the coredump Michael Chan
@ 2025-07-10 21:39 ` Michael Chan
2025-07-11 14:40 ` [PATCH net 0/3] bnxt_en: 3 bug fixes patchwork-bot+netdevbpf
3 siblings, 0 replies; 11+ messages in thread
From: Michael Chan @ 2025-07-10 21:39 UTC (permalink / raw)
To: davem
Cc: netdev, edumazet, kuba, pabeni, andrew+netdev, pavan.chebbi,
andrew.gospodarek, Somnath Kotur
From: Somnath Kotur <somnath.kotur@broadcom.com>
When transmitting an XDP_REDIRECT packet, call dma_unmap_len_set()
with the proper length instead of 0. This bug triggers this warning
on a system with IOMMU enabled:
WARNING: CPU: 36 PID: 0 at drivers/iommu/dma-iommu.c:842 __iommu_dma_unmap+0x159/0x170
RIP: 0010:__iommu_dma_unmap+0x159/0x170
Code: a8 00 00 00 00 48 c7 45 b0 00 00 00 00 48 c7 45 c8 00 00 00 00 48 c7 45 a0 ff ff ff ff 4c 89 45
b8 4c 89 45 c0 e9 77 ff ff ff <0f> 0b e9 60 ff ff ff e8 8b bf 6a 00 66 66 2e 0f 1f 84 00 00 00 00
RSP: 0018:ff22d31181150c88 EFLAGS: 00010206
RAX: 0000000000002000 RBX: 00000000e13a0000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ff22d31181150cf0 R08: ff22d31181150ca8 R09: 0000000000000000
R10: 0000000000000000 R11: ff22d311d36c9d80 R12: 0000000000001000
R13: ff13544d10645010 R14: ff22d31181150c90 R15: ff13544d0b2bac00
FS: 0000000000000000(0000) GS:ff13550908a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005be909dacff8 CR3: 0008000173408003 CR4: 0000000000f71ef0
PKRU: 55555554
Call Trace:
<IRQ>
? show_regs+0x6d/0x80
? __warn+0x89/0x160
? __iommu_dma_unmap+0x159/0x170
? report_bug+0x17e/0x1b0
? handle_bug+0x46/0x90
? exc_invalid_op+0x18/0x80
? asm_exc_invalid_op+0x1b/0x20
? __iommu_dma_unmap+0x159/0x170
? __iommu_dma_unmap+0xb3/0x170
iommu_dma_unmap_page+0x4f/0x100
dma_unmap_page_attrs+0x52/0x220
? srso_alias_return_thunk+0x5/0xfbef5
? xdp_return_frame+0x2e/0xd0
bnxt_tx_int_xdp+0xdf/0x440 [bnxt_en]
__bnxt_poll_work_done+0x81/0x1e0 [bnxt_en]
bnxt_poll+0xd3/0x1e0 [bnxt_en]
Fixes: f18c2b77b2e4 ("bnxt_en: optimized XDP_REDIRECT support")
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
---
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c
index 4a6d8cb9f970..09e7e8efa6fa 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c
@@ -115,7 +115,7 @@ static void __bnxt_xmit_xdp_redirect(struct bnxt *bp,
tx_buf->action = XDP_REDIRECT;
tx_buf->xdpf = xdpf;
dma_unmap_addr_set(tx_buf, mapping, mapping);
- dma_unmap_len_set(tx_buf, len, 0);
+ dma_unmap_len_set(tx_buf, len, len);
}
void bnxt_tx_int_xdp(struct bnxt *bp, struct bnxt_napi *bnapi, int budget)
--
2.30.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH net 0/3] bnxt_en: 3 bug fixes
2025-07-10 21:39 [PATCH net 0/3] bnxt_en: 3 bug fixes Michael Chan
` (2 preceding siblings ...)
2025-07-10 21:39 ` [PATCH net 3/3] bnxt_en: Set DMA unmap len correctly for XDP_REDIRECT Michael Chan
@ 2025-07-11 14:40 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 11+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-07-11 14:40 UTC (permalink / raw)
To: Michael Chan
Cc: davem, netdev, edumazet, kuba, pabeni, andrew+netdev,
pavan.chebbi, andrew.gospodarek
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 10 Jul 2025 14:39:35 -0700 you wrote:
> The first one fixes a possible failure when setting DCB ETS. The
> second one fixes the ethtool coredump (-W 2) not containing all the FW
> traces. The third one fixes the DMA unmap length when transmitting
> XDP_REDIRECT packets.
>
> Shravya KN (1):
> bnxt_en: Fix DCB ETS validation
>
> [...]
Here is the summary with links:
- [net,1/3] bnxt_en: Fix DCB ETS validation
https://git.kernel.org/netdev/net/c/b74c2a2e9cc4
- [net,2/3] bnxt_en: Flush FW trace before copying to the coredump
https://git.kernel.org/netdev/net/c/100c08c89d17
- [net,3/3] bnxt_en: Set DMA unmap len correctly for XDP_REDIRECT
https://git.kernel.org/netdev/net/c/3cdf199d4755
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] 11+ messages in thread
* [PATCH net 0/3] bnxt_en: 3 bug fixes
@ 2025-08-25 17:59 Michael Chan
2025-08-27 1:00 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 11+ messages in thread
From: Michael Chan @ 2025-08-25 17:59 UTC (permalink / raw)
To: davem
Cc: netdev, edumazet, kuba, pabeni, andrew+netdev, pavan.chebbi,
andrew.gospodarek
The first one fixes a memory corruption issue that can happen when
FW resources change during ifdown with TCs created. The next two
fix FW resource reservation logic for TX rings and stats context.
Michael Chan (2):
bnxt_en: Adjust TX rings if reservation is less than requested
bnxt_en: Fix stats context reservation logic
Sreekanth Reddy (1):
bnxt_en: Fix memory corruption when FW resources change during ifdown
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 36 +++++++++++++++++++----
1 file changed, 30 insertions(+), 6 deletions(-)
--
2.30.1
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net 0/3] bnxt_en: 3 bug fixes
2025-08-25 17:59 Michael Chan
@ 2025-08-27 1:00 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 11+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-08-27 1:00 UTC (permalink / raw)
To: Michael Chan
Cc: davem, netdev, edumazet, kuba, pabeni, andrew+netdev,
pavan.chebbi, andrew.gospodarek
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 25 Aug 2025 10:59:24 -0700 you wrote:
> The first one fixes a memory corruption issue that can happen when
> FW resources change during ifdown with TCs created. The next two
> fix FW resource reservation logic for TX rings and stats context.
>
> Michael Chan (2):
> bnxt_en: Adjust TX rings if reservation is less than requested
> bnxt_en: Fix stats context reservation logic
>
> [...]
Here is the summary with links:
- [net,1/3] bnxt_en: Fix memory corruption when FW resources change during ifdown
https://git.kernel.org/netdev/net/c/2747328ba271
- [net,2/3] bnxt_en: Adjust TX rings if reservation is less than requested
https://git.kernel.org/netdev/net/c/1ee581c24dfd
- [net,3/3] bnxt_en: Fix stats context reservation logic
https://git.kernel.org/netdev/net/c/b4fc8faacfea
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] 11+ messages in thread
end of thread, other threads:[~2025-08-27 1:00 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-10 21:39 [PATCH net 0/3] bnxt_en: 3 bug fixes Michael Chan
2025-07-10 21:39 ` [PATCH net 1/3] bnxt_en: Fix DCB ETS validation Michael Chan
2025-07-10 21:39 ` [PATCH net 2/3] bnxt_en: Flush FW trace before copying to the coredump Michael Chan
2025-07-10 21:39 ` [PATCH net 3/3] bnxt_en: Set DMA unmap len correctly for XDP_REDIRECT Michael Chan
2025-07-11 14:40 ` [PATCH net 0/3] bnxt_en: 3 bug fixes patchwork-bot+netdevbpf
-- strict thread matches above, loose matches on Subject: below --
2025-08-25 17:59 Michael Chan
2025-08-27 1:00 ` patchwork-bot+netdevbpf
2023-03-29 1:30 [PATCH net 0/3] bnxt_en: 3 Bug fixes Michael Chan
2023-03-30 4:50 ` patchwork-bot+netdevbpf
2020-07-12 0:48 [PATCH net 0/3] bnxt_en: 3 bug fixes Michael Chan
2020-07-12 22:29 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.