* [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build.
@ 2024-10-15 13:56 Paolo Abeni
2024-10-15 15:45 ` Alexander Lobakin
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Paolo Abeni @ 2024-10-15 13:56 UTC (permalink / raw)
To: intel-wired-lan
Cc: Przemek Kitszel, netdev, Tony Nguyen, Wenjun Wu, Jakub Kicinski
The kernel test robot reported a build failure on m68k in the intel
driver due to the recent shapers-related changes.
The mentioned arch has funny alignment properties, let's be explicit
about the binary layout expectation introducing a padding field.
Fixes: 608a5c05c39b ("virtchnl: support queue rate limit and quanta size configuration")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410131710.71Wt6LKO-lkp@intel.com/
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
include/linux/avf/virtchnl.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
index 223e433c39fe..13a11f3c09b8 100644
--- a/include/linux/avf/virtchnl.h
+++ b/include/linux/avf/virtchnl.h
@@ -1499,6 +1499,7 @@ VIRTCHNL_CHECK_STRUCT_LEN(8, virtchnl_queue_chunk);
struct virtchnl_quanta_cfg {
u16 quanta_size;
+ u16 pad;
struct virtchnl_queue_chunk queue_select;
};
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build.
2024-10-15 13:56 [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build Paolo Abeni
@ 2024-10-15 15:45 ` Alexander Lobakin
2024-10-16 4:16 ` Paul Menzel
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Alexander Lobakin @ 2024-10-15 15:45 UTC (permalink / raw)
To: Paolo Abeni
Cc: Przemek Kitszel, netdev, Tony Nguyen, Jakub Kicinski,
intel-wired-lan, Wenjun Wu
From: Paolo Abeni <pabeni@redhat.com>
Date: Tue, 15 Oct 2024 15:56:35 +0200
> The kernel test robot reported a build failure on m68k in the intel
> driver due to the recent shapers-related changes.
>
> The mentioned arch has funny alignment properties, let's be explicit
> about the binary layout expectation introducing a padding field.
>
> Fixes: 608a5c05c39b ("virtchnl: support queue rate limit and quanta size configuration")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202410131710.71Wt6LKO-lkp@intel.com/
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> ---
> include/linux/avf/virtchnl.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
> index 223e433c39fe..13a11f3c09b8 100644
> --- a/include/linux/avf/virtchnl.h
> +++ b/include/linux/avf/virtchnl.h
> @@ -1499,6 +1499,7 @@ VIRTCHNL_CHECK_STRUCT_LEN(8, virtchnl_queue_chunk);
>
> struct virtchnl_quanta_cfg {
> u16 quanta_size;
> + u16 pad;
> struct virtchnl_queue_chunk queue_select;
> };
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Thanks,
Olek
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build.
2024-10-15 13:56 [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build Paolo Abeni
2024-10-15 15:45 ` Alexander Lobakin
@ 2024-10-16 4:16 ` Paul Menzel
2024-10-16 22:49 ` Jacob Keller
2024-10-22 14:00 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 8+ messages in thread
From: Paul Menzel @ 2024-10-16 4:16 UTC (permalink / raw)
To: Paolo Abeni
Cc: intel-wired-lan, Przemek Kitszel, netdev, Tony Nguyen, Wenjun Wu,
Jakub Kicinski
Dear Paolo,
Thank you for the patch. I’d remove the dot/period at the end of the
summary/title though, and maybe I’d be also more specific:
virtchnl: Introduce padding field to fix m68k build
Am 15.10.24 um 15:56 schrieb Paolo Abeni:
> The kernel test robot reported a build failure on m68k in the intel
> driver due to the recent shapers-related changes.
>
> The mentioned arch has funny alignment properties, let's be explicit
> about the binary layout expectation introducing a padding field.
>
> Fixes: 608a5c05c39b ("virtchnl: support queue rate limit and quanta size configuration")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202410131710.71Wt6LKO-lkp@intel.com/
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> ---
> include/linux/avf/virtchnl.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
> index 223e433c39fe..13a11f3c09b8 100644
> --- a/include/linux/avf/virtchnl.h
> +++ b/include/linux/avf/virtchnl.h
> @@ -1499,6 +1499,7 @@ VIRTCHNL_CHECK_STRUCT_LEN(8, virtchnl_queue_chunk);
>
> struct virtchnl_quanta_cfg {
> u16 quanta_size;
> + u16 pad;
> struct virtchnl_queue_chunk queue_select;
> };
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Kind regards,
Paul
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build.
2024-10-15 13:56 [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build Paolo Abeni
2024-10-15 15:45 ` Alexander Lobakin
2024-10-16 4:16 ` Paul Menzel
@ 2024-10-16 22:49 ` Jacob Keller
2024-10-17 6:39 ` Paolo Abeni
2024-10-22 14:00 ` patchwork-bot+netdevbpf
3 siblings, 1 reply; 8+ messages in thread
From: Jacob Keller @ 2024-10-16 22:49 UTC (permalink / raw)
To: Paolo Abeni, intel-wired-lan
Cc: Przemek Kitszel, netdev, Tony Nguyen, Wenjun Wu, Jakub Kicinski
On 10/15/2024 6:56 AM, Paolo Abeni wrote:
> The kernel test robot reported a build failure on m68k in the intel
> driver due to the recent shapers-related changes.
>
> The mentioned arch has funny alignment properties, let's be explicit
> about the binary layout expectation introducing a padding field.
>
> Fixes: 608a5c05c39b ("virtchnl: support queue rate limit and quanta size configuration")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202410131710.71Wt6LKO-lkp@intel.com/
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> ---
> include/linux/avf/virtchnl.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
> index 223e433c39fe..13a11f3c09b8 100644
> --- a/include/linux/avf/virtchnl.h
> +++ b/include/linux/avf/virtchnl.h
> @@ -1499,6 +1499,7 @@ VIRTCHNL_CHECK_STRUCT_LEN(8, virtchnl_queue_chunk);
>
> struct virtchnl_quanta_cfg {
> u16 quanta_size;
> + u16 pad;
> struct virtchnl_queue_chunk queue_select;
There's a hidden 2 byte padding because queue_select requires 4-byte
alignment. We assume this, as the VIRTCHNL_CHECK_STRUCT_LEN for this
structure is 12 bytes.
On mk68k, we must not be adding this padding, which results in a 10 byte
structure, failing the size check for VIRTCHNL_CHECK_STRUCT_LEN,
resulting in the compilation error?
Adding the explicit size aligns with the actual expected layout and size
for this structure, fixing mk68k without affecting the other architectures.
Ok.
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
> };
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build.
2024-10-16 22:49 ` Jacob Keller
@ 2024-10-17 6:39 ` Paolo Abeni
2024-10-18 12:57 ` Przemek Kitszel
0 siblings, 1 reply; 8+ messages in thread
From: Paolo Abeni @ 2024-10-17 6:39 UTC (permalink / raw)
To: Jacob Keller, intel-wired-lan
Cc: Przemek Kitszel, netdev, Tony Nguyen, Wenjun Wu, Jakub Kicinski
On 10/17/24 00:49, Jacob Keller wrote:
> On 10/15/2024 6:56 AM, Paolo Abeni wrote:
>> The kernel test robot reported a build failure on m68k in the intel
>> driver due to the recent shapers-related changes.
>>
>> The mentioned arch has funny alignment properties, let's be explicit
>> about the binary layout expectation introducing a padding field.
>>
>> Fixes: 608a5c05c39b ("virtchnl: support queue rate limit and quanta size configuration")
>> Reported-by: kernel test robot <lkp@intel.com>
>> Closes: https://lore.kernel.org/oe-kbuild-all/202410131710.71Wt6LKO-lkp@intel.com/
>> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
>> ---
>> include/linux/avf/virtchnl.h | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
>> index 223e433c39fe..13a11f3c09b8 100644
>> --- a/include/linux/avf/virtchnl.h
>> +++ b/include/linux/avf/virtchnl.h
>> @@ -1499,6 +1499,7 @@ VIRTCHNL_CHECK_STRUCT_LEN(8, virtchnl_queue_chunk);
>>
>> struct virtchnl_quanta_cfg {
>> u16 quanta_size;
>> + u16 pad;
>> struct virtchnl_queue_chunk queue_select;
>
> There's a hidden 2 byte padding because queue_select requires 4-byte
> alignment. We assume this, as the VIRTCHNL_CHECK_STRUCT_LEN for this
> structure is 12 bytes.
>
> On mk68k, we must not be adding this padding, which results in a 10 byte
> structure, failing the size check for VIRTCHNL_CHECK_STRUCT_LEN,
> resulting in the compilation error?
Exactly!
> Adding the explicit size aligns with the actual expected layout and size
> for this structure, fixing mk68k without affecting the other architectures.
>
> Ok.
>
> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Thanks,
Please LMK if you prefer/agree to have this one applied directly on
net-next, to reduce build issues spawning around ASAP.
Paolo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build.
2024-10-17 6:39 ` Paolo Abeni
@ 2024-10-18 12:57 ` Przemek Kitszel
2024-10-18 20:23 ` Keller, Jacob E
0 siblings, 1 reply; 8+ messages in thread
From: Przemek Kitszel @ 2024-10-18 12:57 UTC (permalink / raw)
To: Paolo Abeni, Jacob Keller, Tony Nguyen
Cc: netdev, intel-wired-lan, Wenjun Wu, Jakub Kicinski
On 10/17/24 08:39, Paolo Abeni wrote:
> On 10/17/24 00:49, Jacob Keller wrote:
>> On 10/15/2024 6:56 AM, Paolo Abeni wrote:
>>> The kernel test robot reported a build failure on m68k in the intel
>>> driver due to the recent shapers-related changes.
>>>
>>> The mentioned arch has funny alignment properties, let's be explicit
>>> about the binary layout expectation introducing a padding field.
>>>
>>> Fixes: 608a5c05c39b ("virtchnl: support queue rate limit and quanta
>>> size configuration")
>>> Reported-by: kernel test robot <lkp@intel.com>
>>> Closes: https://lore.kernel.org/oe-kbuild-all/202410131710.71Wt6LKO-
>>> lkp@intel.com/
>>> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
>>> ---
>>> include/linux/avf/virtchnl.h | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
>>> index 223e433c39fe..13a11f3c09b8 100644
>>> --- a/include/linux/avf/virtchnl.h
>>> +++ b/include/linux/avf/virtchnl.h
>>> @@ -1499,6 +1499,7 @@ VIRTCHNL_CHECK_STRUCT_LEN(8,
>>> virtchnl_queue_chunk);
>>> struct virtchnl_quanta_cfg {
>>> u16 quanta_size;
>>> + u16 pad;
>>> struct virtchnl_queue_chunk queue_select;
>>
>> There's a hidden 2 byte padding because queue_select requires 4-byte
>> alignment. We assume this, as the VIRTCHNL_CHECK_STRUCT_LEN for this
>> structure is 12 bytes.
>>
>> On mk68k, we must not be adding this padding, which results in a 10 byte
>> structure, failing the size check for VIRTCHNL_CHECK_STRUCT_LEN,
>> resulting in the compilation error?
>
> Exactly!
>
>> Adding the explicit size aligns with the actual expected layout and size
>> for this structure, fixing mk68k without affecting the other
>> architectures.
>>
>> Ok.
>>
>> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
>
> Thanks,
>
> Please LMK if you prefer/agree to have this one applied directly on net-
> next, to reduce build issues spawning around ASAP.
>
> Paolo
>
Would be convenient, no objections!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build.
2024-10-18 12:57 ` Przemek Kitszel
@ 2024-10-18 20:23 ` Keller, Jacob E
0 siblings, 0 replies; 8+ messages in thread
From: Keller, Jacob E @ 2024-10-18 20:23 UTC (permalink / raw)
To: Kitszel, Przemyslaw, Paolo Abeni, Nguyen, Anthony L
Cc: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org,
Wenjun Wu, Jakub Kicinski
> -----Original Message-----
> From: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
> Sent: Friday, October 18, 2024 5:58 AM
> To: Paolo Abeni <pabeni@redhat.com>; Keller, Jacob E
> <jacob.e.keller@intel.com>; Nguyen, Anthony L <anthony.l.nguyen@intel.com>
> Cc: netdev@vger.kernel.org; intel-wired-lan@lists.osuosl.org; Wenjun Wu
> <wenjun1.wu@intel.com>; Jakub Kicinski <kuba@kernel.org>
> Subject: Re: [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build.
>
> On 10/17/24 08:39, Paolo Abeni wrote:
> > On 10/17/24 00:49, Jacob Keller wrote:
> >> On 10/15/2024 6:56 AM, Paolo Abeni wrote:
> >>> The kernel test robot reported a build failure on m68k in the intel
> >>> driver due to the recent shapers-related changes.
> >>>
> >>> The mentioned arch has funny alignment properties, let's be explicit
> >>> about the binary layout expectation introducing a padding field.
> >>>
> >>> Fixes: 608a5c05c39b ("virtchnl: support queue rate limit and quanta
> >>> size configuration")
> >>> Reported-by: kernel test robot <lkp@intel.com>
> >>> Closes: https://lore.kernel.org/oe-kbuild-all/202410131710.71Wt6LKO-
> >>> lkp@intel.com/
> >>> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> >>> ---
> >>> include/linux/avf/virtchnl.h | 1 +
> >>> 1 file changed, 1 insertion(+)
> >>>
> >>> diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
> >>> index 223e433c39fe..13a11f3c09b8 100644
> >>> --- a/include/linux/avf/virtchnl.h
> >>> +++ b/include/linux/avf/virtchnl.h
> >>> @@ -1499,6 +1499,7 @@ VIRTCHNL_CHECK_STRUCT_LEN(8,
> >>> virtchnl_queue_chunk);
> >>> struct virtchnl_quanta_cfg {
> >>> u16 quanta_size;
> >>> + u16 pad;
> >>> struct virtchnl_queue_chunk queue_select;
> >>
> >> There's a hidden 2 byte padding because queue_select requires 4-byte
> >> alignment. We assume this, as the VIRTCHNL_CHECK_STRUCT_LEN for this
> >> structure is 12 bytes.
> >>
> >> On mk68k, we must not be adding this padding, which results in a 10 byte
> >> structure, failing the size check for VIRTCHNL_CHECK_STRUCT_LEN,
> >> resulting in the compilation error?
> >
> > Exactly!
> >
> >> Adding the explicit size aligns with the actual expected layout and size
> >> for this structure, fixing mk68k without affecting the other
> >> architectures.
> >>
> >> Ok.
> >>
> >> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
> >
> > Thanks,
> >
> > Please LMK if you prefer/agree to have this one applied directly on net-
> > next, to reduce build issues spawning around ASAP.
> >
> > Paolo
> >
>
> Would be convenient, no objections!
Yes please. I applied it to iwl-next yesterday, but I think its great if you can take it immediately
Thanks,
Jake
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build.
2024-10-15 13:56 [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build Paolo Abeni
` (2 preceding siblings ...)
2024-10-16 22:49 ` Jacob Keller
@ 2024-10-22 14:00 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 8+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-10-22 14:00 UTC (permalink / raw)
To: Paolo Abeni
Cc: intel-wired-lan, anthony.l.nguyen, przemyslaw.kitszel, wenjun1.wu,
kuba, netdev
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Tue, 15 Oct 2024 15:56:35 +0200 you wrote:
> The kernel test robot reported a build failure on m68k in the intel
> driver due to the recent shapers-related changes.
>
> The mentioned arch has funny alignment properties, let's be explicit
> about the binary layout expectation introducing a padding field.
>
> Fixes: 608a5c05c39b ("virtchnl: support queue rate limit and quanta size configuration")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202410131710.71Wt6LKO-lkp@intel.com/
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
>
> [...]
Here is the summary with links:
- [iwl-next] virtchnl: fix m68k build.
https://git.kernel.org/netdev/net-next/c/d811ac148f0a
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] 8+ messages in thread
end of thread, other threads:[~2024-10-22 14:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-15 13:56 [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build Paolo Abeni
2024-10-15 15:45 ` Alexander Lobakin
2024-10-16 4:16 ` Paul Menzel
2024-10-16 22:49 ` Jacob Keller
2024-10-17 6:39 ` Paolo Abeni
2024-10-18 12:57 ` Przemek Kitszel
2024-10-18 20:23 ` Keller, Jacob E
2024-10-22 14:00 ` 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