Re: [PATCH net] qed: Fix missing bar_id comparison in qed_hw_bar_size()

From: patchwork-bot+netdevbpf

Date: Wed Nov 25 2026 - 10:44:01 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 19 Nov 2026 09:04:12 -0800 you wrote:
> When PGLUE_B_REG_PF_BAR{0,1}_SIZE reads back as 0 on older management
> firmware with multi-hwfn devices, qed_hw_bar_size() logs that it assumes
> 256 KiB for GRC (BAR_ID_0) and 512 KiB for DB (BAR_ID_1), but evaluates:
>
> return BAR_ID_0 ? 256 * 1024 : 512 * 1024;
>
> Because BAR_ID_0 is enum constant 0, the ternary condition is always
> false and qed_hw_bar_size() unconditionally returns 512 KiB even for
> BAR_ID_0, doubling the computed GRC BAR offset for the second hardware
> function.
>
> [...]

Here is the summary with links:
- [net] qed: Fix missing bar_id comparison in qed_hw_bar_size()
https://git.kernel.org/netdev/net-next/c/8301cdd07d43

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html