* [PATCH net] eth: fbnic: fix s390 build.
@ 2024-07-17 11:25 Paolo Abeni
2024-07-17 13:29 ` Jakub Kicinski
2024-07-17 13:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Paolo Abeni @ 2024-07-17 11:25 UTC (permalink / raw)
To: netdev
Cc: Alexander Duyck, Jakub Kicinski, kernel-team, David S. Miller,
Eric Dumazet
Building the fbnic nn s390, yield a build bug:
In function ‘fbnic_config_drop_mode_rcq’,
inlined from ‘fbnic_enable’ at drivers/net/ethernet/meta/fbnic/fbnic_txrx.c:1836:4:
././include/linux/compiler_types.h:510:45: error: call to ‘__compiletime_assert_919’ declared with attribute error: FIELD_PREP: value too large for the field
The relevant mask is 9 bits wide, and the related value is the cacheline
aligned size of struct skb_shared_info.
On s390 the cacheline size is 256 bytes, and skb_shared_info minimum
size on 64 bits system is 320 bytes.
Avoid building the driver for such arch.
Fixes: 0cb4c0a13723 ("eth: fbnic: Implement Rx queue alloc/start/stop/free")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
Arguably this is quite sub-optimal, but sharing anyway to have a
short-term solution handy.
---
drivers/net/ethernet/meta/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/meta/Kconfig b/drivers/net/ethernet/meta/Kconfig
index d8f5e9f9bb33..a9f078212c78 100644
--- a/drivers/net/ethernet/meta/Kconfig
+++ b/drivers/net/ethernet/meta/Kconfig
@@ -20,6 +20,7 @@ if NET_VENDOR_META
config FBNIC
tristate "Meta Platforms Host Network Interface"
depends on X86_64 || COMPILE_TEST
+ depends on S390=n
depends on PCI_MSI
select PHYLINK
help
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] eth: fbnic: fix s390 build.
2024-07-17 11:25 [PATCH net] eth: fbnic: fix s390 build Paolo Abeni
@ 2024-07-17 13:29 ` Jakub Kicinski
2024-07-17 13:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Jakub Kicinski @ 2024-07-17 13:29 UTC (permalink / raw)
To: Paolo Abeni
Cc: netdev, Alexander Duyck, kernel-team, David S. Miller,
Eric Dumazet
On Wed, 17 Jul 2024 13:25:06 +0200 Paolo Abeni wrote:
> Arguably this is quite sub-optimal, but sharing anyway to have a
> short-term solution handy.
Agreed. We also need a fix for frag count > 25, it seems.
I'll send another fix, but this one is more urgent so let me
apply already.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] eth: fbnic: fix s390 build.
2024-07-17 11:25 [PATCH net] eth: fbnic: fix s390 build Paolo Abeni
2024-07-17 13:29 ` Jakub Kicinski
@ 2024-07-17 13:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-07-17 13:40 UTC (permalink / raw)
To: Paolo Abeni; +Cc: netdev, alexanderduyck, kuba, kernel-team, davem, edumazet
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 17 Jul 2024 13:25:06 +0200 you wrote:
> Building the fbnic nn s390, yield a build bug:
>
> In function ‘fbnic_config_drop_mode_rcq’,
> inlined from ‘fbnic_enable’ at drivers/net/ethernet/meta/fbnic/fbnic_txrx.c:1836:4:
> ././include/linux/compiler_types.h:510:45: error: call to ‘__compiletime_assert_919’ declared with attribute error: FIELD_PREP: value too large for the field
>
> The relevant mask is 9 bits wide, and the related value is the cacheline
> aligned size of struct skb_shared_info.
>
> [...]
Here is the summary with links:
- [net] eth: fbnic: fix s390 build.
https://git.kernel.org/netdev/net/c/0e03c643dc93
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-07-17 13:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 11:25 [PATCH net] eth: fbnic: fix s390 build Paolo Abeni
2024-07-17 13:29 ` Jakub Kicinski
2024-07-17 13:40 ` patchwork-bot+netdevbpf
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.