* [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
@ 2023-09-13 12:23 Wei Hu
2023-09-18 17:40 ` Ferruh Yigit
0 siblings, 1 reply; 7+ messages in thread
From: Wei Hu @ 2023-09-13 12:23 UTC (permalink / raw)
To: dev, Long Li; +Cc: Wei Hu, stable
Enable 32 bit build on x86 Linux. Fixed build warnings and errors
when building in 32 bit.
Cc: stable@dpdk.org
Signed-off-by: Wei Hu <weh@microsoft.com>
---
v2: change port casting from size_t to uintptr_t.
---
drivers/net/mana/mana.c | 2 +-
drivers/net/mana/meson.build | 4 ++--
drivers/net/mana/mr.c | 18 +++++++++---------
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/net/mana/mana.c b/drivers/net/mana/mana.c
index 7630118d4f..896b53ed35 100644
--- a/drivers/net/mana/mana.c
+++ b/drivers/net/mana/mana.c
@@ -1260,7 +1260,7 @@ mana_probe_port(struct ibv_device *ibdev, struct ibv_device_attr_ex *dev_attr,
/* Create a parent domain with the port number */
attr.pd = priv->ib_pd;
attr.comp_mask = IBV_PARENT_DOMAIN_INIT_ATTR_PD_CONTEXT;
- attr.pd_context = (void *)(uint64_t)port;
+ attr.pd_context = (void *)(uintptr_t)port;
priv->ib_parent_pd = ibv_alloc_parent_domain(ctx, &attr);
if (!priv->ib_parent_pd) {
DRV_LOG(ERR, "ibv_alloc_parent_domain failed port %d", port);
diff --git a/drivers/net/mana/meson.build b/drivers/net/mana/meson.build
index 493f0d26d4..2d72eca5a8 100644
--- a/drivers/net/mana/meson.build
+++ b/drivers/net/mana/meson.build
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2022 Microsoft Corporation
-if not is_linux or not dpdk_conf.has('RTE_ARCH_X86_64')
+if not is_linux or not dpdk_conf.has('RTE_ARCH_X86')
build = false
- reason = 'only supported on x86_64 Linux'
+ reason = 'only supported on x86 Linux'
subdir_done()
endif
diff --git a/drivers/net/mana/mr.c b/drivers/net/mana/mr.c
index fec0dc961c..b8e6ea0bbf 100644
--- a/drivers/net/mana/mr.c
+++ b/drivers/net/mana/mr.c
@@ -53,7 +53,7 @@ mana_new_pmd_mr(struct mana_mr_btree *local_tree, struct mana_priv *priv,
}
DP_LOG(DEBUG,
- "registering memory chunk start 0x%" PRIx64 " len %u",
+ "registering memory chunk start 0x%" PRIxPTR " len %u",
ranges[i].start, ranges[i].len);
if (rte_eal_process_type() == RTE_PROC_SECONDARY) {
@@ -62,7 +62,7 @@ mana_new_pmd_mr(struct mana_mr_btree *local_tree, struct mana_priv *priv,
ranges[i].len);
if (ret) {
DP_LOG(ERR,
- "MR failed start 0x%" PRIx64 " len %u",
+ "MR failed start 0x%" PRIxPTR " len %u",
ranges[i].start, ranges[i].len);
return ret;
}
@@ -72,7 +72,7 @@ mana_new_pmd_mr(struct mana_mr_btree *local_tree, struct mana_priv *priv,
ibv_mr = ibv_reg_mr(priv->ib_pd, (void *)ranges[i].start,
ranges[i].len, IBV_ACCESS_LOCAL_WRITE);
if (ibv_mr) {
- DP_LOG(DEBUG, "MR lkey %u addr %p len %" PRIu64,
+ DP_LOG(DEBUG, "MR lkey %u addr %p len %zu",
ibv_mr->lkey, ibv_mr->addr, ibv_mr->length);
mr = rte_calloc("MANA MR", 1, sizeof(*mr), 0);
@@ -99,7 +99,7 @@ mana_new_pmd_mr(struct mana_mr_btree *local_tree, struct mana_priv *priv,
return ret;
}
} else {
- DP_LOG(ERR, "MR failed at 0x%" PRIx64 " len %u",
+ DP_LOG(ERR, "MR failed at 0x%" PRIxPTR " len %u",
ranges[i].start, ranges[i].len);
return -errno;
}
@@ -141,7 +141,7 @@ mana_find_pmd_mr(struct mana_mr_btree *local_mr_btree, struct mana_priv *priv,
mr = mana_mr_btree_lookup(local_mr_btree, &idx,
(uintptr_t)mbuf->buf_addr, mbuf->buf_len);
if (mr) {
- DP_LOG(DEBUG, "Local mr lkey %u addr 0x%" PRIx64 " len %" PRIu64,
+ DP_LOG(DEBUG, "Local mr lkey %u addr 0x%" PRIxPTR " len %zu",
mr->lkey, mr->addr, mr->len);
return mr;
}
@@ -162,7 +162,7 @@ mana_find_pmd_mr(struct mana_mr_btree *local_mr_btree, struct mana_priv *priv,
}
DP_LOG(DEBUG,
- "Added local MR key %u addr 0x%" PRIx64 " len %" PRIu64,
+ "Added local MR key %u addr 0x%" PRIxPTR " len %zu",
mr->lkey, mr->addr, mr->len);
return mr;
}
@@ -266,7 +266,7 @@ mana_mr_btree_lookup(struct mana_mr_btree *bt, uint16_t *idx,
return &table[base];
DP_LOG(DEBUG,
- "addr 0x%" PRIx64 " len %zu idx %u sum 0x%" PRIx64 " not found",
+ "addr 0x%" PRIxPTR " len %zu idx %u sum 0x%" PRIxPTR " not found",
addr, len, *idx, addr + len);
return NULL;
@@ -316,7 +316,7 @@ mana_mr_btree_insert(struct mana_mr_btree *bt, struct mana_mr_cache *entry)
uint16_t shift;
if (mana_mr_btree_lookup(bt, &idx, entry->addr, entry->len)) {
- DP_LOG(DEBUG, "Addr 0x%" PRIx64 " len %zu exists in btree",
+ DP_LOG(DEBUG, "Addr 0x%" PRIxPTR " len %zu exists in btree",
entry->addr, entry->len);
return 0;
}
@@ -340,7 +340,7 @@ mana_mr_btree_insert(struct mana_mr_btree *bt, struct mana_mr_cache *entry)
bt->len++;
DP_LOG(DEBUG,
- "Inserted MR b-tree table %p idx %d addr 0x%" PRIx64 " len %zu",
+ "Inserted MR b-tree table %p idx %d addr 0x%" PRIxPTR " len %zu",
table, idx, entry->addr, entry->len);
return 0;
--
2.34.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
2023-09-13 12:23 [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver Wei Hu
@ 2023-09-18 17:40 ` Ferruh Yigit
2023-09-19 2:44 ` Wei Hu
0 siblings, 1 reply; 7+ messages in thread
From: Ferruh Yigit @ 2023-09-18 17:40 UTC (permalink / raw)
To: Wei Hu, dev, Long Li; +Cc: stable, Kevin Traynor, Luca Boccassi
On 9/13/2023 1:23 PM, Wei Hu wrote:
> Enable 32 bit build on x86 Linux. Fixed build warnings and errors
> when building in 32 bit.
>
> Cc: stable@dpdk.org
>
This is not a fix, but adding 32bit support to the driver, so not sure
about backporting. cc'ed Kevin & Luca for guidance.
I will drop the tag while merging unles otherwise suggested by LTS
maintainers.
> Signed-off-by: Wei Hu <weh@microsoft.com>
>
Hi Wei,
Patch looks good, but it basically fixes the format specifiers that will
cause build error for 32 bit.
Is there any other change required to make driver functional for 32 bit,
or does it become functional with this change?
And if it does can you please confirm explicityly that driver tested on
32 bit with this patch?
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
2023-09-18 17:40 ` Ferruh Yigit
@ 2023-09-19 2:44 ` Wei Hu
2023-09-19 11:05 ` Ferruh Yigit
0 siblings, 1 reply; 7+ messages in thread
From: Wei Hu @ 2023-09-19 2:44 UTC (permalink / raw)
To: Ferruh Yigit, dev, Long Li; +Cc: stable, Kevin Traynor, Luca Boccassi
> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit@amd.com>
> Sent: Tuesday, September 19, 2023 1:41 AM
> To: Wei Hu <weh@microsoft.com>; dev@dpdk.org; Long Li
> <longli@microsoft.com>
> Cc: stable@dpdk.org; Kevin Traynor <ktraynor@redhat.com>; Luca Boccassi
> <bluca@debian.org>
> Subject: Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
>
> On 9/13/2023 1:23 PM, Wei Hu wrote:
> > Enable 32 bit build on x86 Linux. Fixed build warnings and errors when
> > building in 32 bit.
> >
> > Cc: stable@dpdk.org
> >
>
> This is not a fix, but adding 32bit support to the driver, so not sure about
> backporting. cc'ed Kevin & Luca for guidance.
>
> I will drop the tag while merging unles otherwise suggested by LTS
> maintainers.
Hi Ferruh,
We have a customer who needs it to be on 22.11.x. That is why I put "Cc: stable@dpdk.org" in it.
>
> > Signed-off-by: Wei Hu <weh@microsoft.com>
> >
>
> Hi Wei,
>
> Patch looks good, but it basically fixes the format specifiers that will cause
> build error for 32 bit.
>
> Is there any other change required to make driver functional for 32 bit, or does
> it become functional with this change?
> And if it does can you please confirm explicityly that driver tested on
> 32 bit with this patch?
Another patch, " net/mana: add 32 bit short doorbell", is required to make mana fully
functional with 32 bit applications. This patch is to fix some build time errors and warnings
when build in 32 bit. These patches can be independently built and they are addressing
two different issues. So, I put them into two independent patches.
I have tested it on 32 bit applications. They can run with this patch. Just mana would not
work as the applications still use 64 bit long door bells, which do not work for 32 bit apps.
Thanks,
Wei
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
2023-09-19 2:44 ` Wei Hu
@ 2023-09-19 11:05 ` Ferruh Yigit
2023-09-20 3:06 ` Wei Hu
0 siblings, 1 reply; 7+ messages in thread
From: Ferruh Yigit @ 2023-09-19 11:05 UTC (permalink / raw)
To: Wei Hu, dev, Long Li; +Cc: stable, Kevin Traynor, Luca Boccassi
On 9/19/2023 3:44 AM, Wei Hu wrote:
>> -----Original Message-----
>> From: Ferruh Yigit <ferruh.yigit@amd.com>
>> Sent: Tuesday, September 19, 2023 1:41 AM
>> To: Wei Hu <weh@microsoft.com>; dev@dpdk.org; Long Li
>> <longli@microsoft.com>
>> Cc: stable@dpdk.org; Kevin Traynor <ktraynor@redhat.com>; Luca Boccassi
>> <bluca@debian.org>
>> Subject: Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
>>
>> On 9/13/2023 1:23 PM, Wei Hu wrote:
>>> Enable 32 bit build on x86 Linux. Fixed build warnings and errors when
>>> building in 32 bit.
>>>
>>> Cc: stable@dpdk.org
>>>
>>
>> This is not a fix, but adding 32bit support to the driver, so not sure about
>> backporting. cc'ed Kevin & Luca for guidance.
>>
>> I will drop the tag while merging unles otherwise suggested by LTS
>> maintainers.
>
> Hi Ferruh,
>
> We have a customer who needs it to be on 22.11.x. That is why I put "Cc: stable@dpdk.org" in it.
>
Got it, lets get comment from the LTS maintainers.
>>
>>> Signed-off-by: Wei Hu <weh@microsoft.com>
>>>
>>
>> Hi Wei,
>>
>> Patch looks good, but it basically fixes the format specifiers that will cause
>> build error for 32 bit.
>>
>> Is there any other change required to make driver functional for 32 bit, or does
>> it become functional with this change?
>> And if it does can you please confirm explicityly that driver tested on
>> 32 bit with this patch?
>
> Another patch, " net/mana: add 32 bit short doorbell", is required to make mana fully
> functional with 32 bit applications. This patch is to fix some build time errors and warnings
> when build in 32 bit. These patches can be independently built and they are addressing
> two different issues. So, I put them into two independent patches.
>
> I have tested it on 32 bit applications. They can run with this patch. Just mana would not
> work as the applications still use 64 bit long door bells, which do not work for 32 bit apps.
>
Thanks Wei, for clarification.
As this patch enables the 32bit build of driver in meson, can you please
add comment log that 32bit driver is not functional yet?
Or maybe meson update can be moved to short doorbell patch, where driver
becomes functional for 32 bit, this patch can mention in commit log that
is preparation for 32 bit support, what do you think?
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
2023-09-19 11:05 ` Ferruh Yigit
@ 2023-09-20 3:06 ` Wei Hu
2023-09-20 10:03 ` Ferruh Yigit
0 siblings, 1 reply; 7+ messages in thread
From: Wei Hu @ 2023-09-20 3:06 UTC (permalink / raw)
To: Ferruh Yigit, dev, Long Li; +Cc: stable, Kevin Traynor, Luca Boccassi
> -----Original Message-----
> From: Ferruh Yigit <ferruh.yigit@amd.com>
> Sent: Tuesday, September 19, 2023 7:05 PM
> To: Wei Hu <weh@microsoft.com>; dev@dpdk.org; Long Li
> <longli@microsoft.com>
> Cc: stable@dpdk.org; Kevin Traynor <ktraynor@redhat.com>; Luca Boccassi
> <bluca@debian.org>
> Subject: Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
>
> On 9/19/2023 3:44 AM, Wei Hu wrote:
> >> -----Original Message-----
> >> From: Ferruh Yigit <ferruh.yigit@amd.com>
> >> Sent: Tuesday, September 19, 2023 1:41 AM
> >> To: Wei Hu <weh@microsoft.com>; dev@dpdk.org; Long Li
> >> <longli@microsoft.com>
> >> Cc: stable@dpdk.org; Kevin Traynor <ktraynor@redhat.com>; Luca
> >> Boccassi <bluca@debian.org>
> >> Subject: Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana
> >> driver
> >>
> >> On 9/13/2023 1:23 PM, Wei Hu wrote:
> >>> Enable 32 bit build on x86 Linux. Fixed build warnings and errors
> >>> when building in 32 bit.
> >>>
> >>> Cc: stable@dpdk.org
> >>>
> >>
> >> This is not a fix, but adding 32bit support to the driver, so not
> >> sure about backporting. cc'ed Kevin & Luca for guidance.
> >>
> >> I will drop the tag while merging unles otherwise suggested by LTS
> >> maintainers.
> >
> > Hi Ferruh,
> >
> > We have a customer who needs it to be on 22.11.x. That is why I put "Cc:
> stable@dpdk.org" in it.
> >
>
> Got it, lets get comment from the LTS maintainers.
>
> >>
> >>> Signed-off-by: Wei Hu <weh@microsoft.com>
> >>>
> >>
> >> Hi Wei,
> >>
> >> Patch looks good, but it basically fixes the format specifiers that
> >> will cause build error for 32 bit.
> >>
> >> Is there any other change required to make driver functional for 32
> >> bit, or does it become functional with this change?
> >> And if it does can you please confirm explicityly that driver tested
> >> on
> >> 32 bit with this patch?
> >
> > Another patch, " net/mana: add 32 bit short doorbell", is required to
> > make mana fully functional with 32 bit applications. This patch is to
> > fix some build time errors and warnings when build in 32 bit. These
> > patches can be independently built and they are addressing two different
> issues. So, I put them into two independent patches.
> >
> > I have tested it on 32 bit applications. They can run with this patch.
> > Just mana would not work as the applications still use 64 bit long door bells,
> which do not work for 32 bit apps.
> >
>
> Thanks Wei, for clarification.
>
> As this patch enables the 32bit build of driver in meson, can you please add
> comment log that 32bit driver is not functional yet?
>
> Or maybe meson update can be moved to short doorbell patch, where driver
> becomes functional for 32 bit, this patch can mention in commit log that is
> preparation for 32 bit support, what do you think?
Thanks Ferruh. I would like to add comment log that 32bit driver is not fully
functioning yet until short doorbell support is added. Meanwhile still keep
the meson update in within this patch to keep it complete. Hope this works
for you.
Wei
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
2023-09-20 3:06 ` Wei Hu
@ 2023-09-20 10:03 ` Ferruh Yigit
2023-09-20 11:22 ` Kevin Traynor
0 siblings, 1 reply; 7+ messages in thread
From: Ferruh Yigit @ 2023-09-20 10:03 UTC (permalink / raw)
To: Wei Hu, dev, Long Li; +Cc: stable, Kevin Traynor, Luca Boccassi
On 9/20/2023 4:06 AM, Wei Hu wrote:
>> -----Original Message-----
>> From: Ferruh Yigit <ferruh.yigit@amd.com>
>> Sent: Tuesday, September 19, 2023 7:05 PM
>> To: Wei Hu <weh@microsoft.com>; dev@dpdk.org; Long Li
>> <longli@microsoft.com>
>> Cc: stable@dpdk.org; Kevin Traynor <ktraynor@redhat.com>; Luca Boccassi
>> <bluca@debian.org>
>> Subject: Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
>>
>> On 9/19/2023 3:44 AM, Wei Hu wrote:
>>>> -----Original Message-----
>>>> From: Ferruh Yigit <ferruh.yigit@amd.com>
>>>> Sent: Tuesday, September 19, 2023 1:41 AM
>>>> To: Wei Hu <weh@microsoft.com>; dev@dpdk.org; Long Li
>>>> <longli@microsoft.com>
>>>> Cc: stable@dpdk.org; Kevin Traynor <ktraynor@redhat.com>; Luca
>>>> Boccassi <bluca@debian.org>
>>>> Subject: Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana
>>>> driver
>>>>
>>>> On 9/13/2023 1:23 PM, Wei Hu wrote:
>>>>> Enable 32 bit build on x86 Linux. Fixed build warnings and errors
>>>>> when building in 32 bit.
>>>>>
>>>>> Cc: stable@dpdk.org
>>>>>
>>>>
>>>> This is not a fix, but adding 32bit support to the driver, so not
>>>> sure about backporting. cc'ed Kevin & Luca for guidance.
>>>>
>>>> I will drop the tag while merging unles otherwise suggested by LTS
>>>> maintainers.
>>>
>>> Hi Ferruh,
>>>
>>> We have a customer who needs it to be on 22.11.x. That is why I put "Cc:
>> stable@dpdk.org" in it.
>>>
>>
>> Got it, lets get comment from the LTS maintainers.
>>
>>>>
>>>>> Signed-off-by: Wei Hu <weh@microsoft.com>
>>>>>
>>>>
>>>> Hi Wei,
>>>>
>>>> Patch looks good, but it basically fixes the format specifiers that
>>>> will cause build error for 32 bit.
>>>>
>>>> Is there any other change required to make driver functional for 32
>>>> bit, or does it become functional with this change?
>>>> And if it does can you please confirm explicityly that driver tested
>>>> on
>>>> 32 bit with this patch?
>>>
>>> Another patch, " net/mana: add 32 bit short doorbell", is required to
>>> make mana fully functional with 32 bit applications. This patch is to
>>> fix some build time errors and warnings when build in 32 bit. These
>>> patches can be independently built and they are addressing two different
>> issues. So, I put them into two independent patches.
>>>
>>> I have tested it on 32 bit applications. They can run with this patch.
>>> Just mana would not work as the applications still use 64 bit long door bells,
>> which do not work for 32 bit apps.
>>>
>>
>> Thanks Wei, for clarification.
>>
>> As this patch enables the 32bit build of driver in meson, can you please add
>> comment log that 32bit driver is not functional yet?
>>
>> Or maybe meson update can be moved to short doorbell patch, where driver
>> becomes functional for 32 bit, this patch can mention in commit log that is
>> preparation for 32 bit support, what do you think?
>
> Thanks Ferruh. I would like to add comment log that 32bit driver is not fully
> functioning yet until short doorbell support is added. Meanwhile still keep
> the meson update in within this patch to keep it complete. Hope this works
> for you.
>
I think it will do.
Can you please send those two patches in a same patchset, that gives
some context if we need to back trace it later?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
2023-09-20 10:03 ` Ferruh Yigit
@ 2023-09-20 11:22 ` Kevin Traynor
0 siblings, 0 replies; 7+ messages in thread
From: Kevin Traynor @ 2023-09-20 11:22 UTC (permalink / raw)
To: Ferruh Yigit, Wei Hu, dev, Long Li, Xueming(Steven) Li
Cc: stable, Luca Boccassi
On 20/09/2023 11:03, Ferruh Yigit wrote:
> On 9/20/2023 4:06 AM, Wei Hu wrote:
>>> -----Original Message-----
>>> From: Ferruh Yigit <ferruh.yigit@amd.com>
>>> Sent: Tuesday, September 19, 2023 7:05 PM
>>> To: Wei Hu <weh@microsoft.com>; dev@dpdk.org; Long Li
>>> <longli@microsoft.com>
>>> Cc: stable@dpdk.org; Kevin Traynor <ktraynor@redhat.com>; Luca Boccassi
>>> <bluca@debian.org>
>>> Subject: Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver
>>>
>>> On 9/19/2023 3:44 AM, Wei Hu wrote:
>>>>> -----Original Message-----
>>>>> From: Ferruh Yigit <ferruh.yigit@amd.com>
>>>>> Sent: Tuesday, September 19, 2023 1:41 AM
>>>>> To: Wei Hu <weh@microsoft.com>; dev@dpdk.org; Long Li
>>>>> <longli@microsoft.com>
>>>>> Cc: stable@dpdk.org; Kevin Traynor <ktraynor@redhat.com>; Luca
>>>>> Boccassi <bluca@debian.org>
>>>>> Subject: Re: [PATCH v2 1/1] net/mana: enable 32 bit build for mana
>>>>> driver
>>>>>
>>>>> On 9/13/2023 1:23 PM, Wei Hu wrote:
>>>>>> Enable 32 bit build on x86 Linux. Fixed build warnings and errors
>>>>>> when building in 32 bit.
>>>>>>
>>>>>> Cc: stable@dpdk.org
>>>>>>
>>>>>
>>>>> This is not a fix, but adding 32bit support to the driver, so not
>>>>> sure about backporting. cc'ed Kevin & Luca for guidance.
>>>>>
>>>>> I will drop the tag while merging unles otherwise suggested by LTS
>>>>> maintainers.
>>>>
>>>> Hi Ferruh,
>>>>
>>>> We have a customer who needs it to be on 22.11.x. That is why I put "Cc:
>>> stable@dpdk.org" in it.
>>>>
>>>
>>> Got it, lets get comment from the LTS maintainers.
>>>
>>>>>
>>>>>> Signed-off-by: Wei Hu <weh@microsoft.com>
>>>>>>
>>>>>
>>>>> Hi Wei,
>>>>>
>>>>> Patch looks good, but it basically fixes the format specifiers that
>>>>> will cause build error for 32 bit.
>>>>>
>>>>> Is there any other change required to make driver functional for 32
>>>>> bit, or does it become functional with this change?
>>>>> And if it does can you please confirm explicityly that driver tested
>>>>> on
>>>>> 32 bit with this patch?
>>>>
>>>> Another patch, " net/mana: add 32 bit short doorbell", is required to
>>>> make mana fully functional with 32 bit applications. This patch is to
>>>> fix some build time errors and warnings when build in 32 bit. These
>>>> patches can be independently built and they are addressing two different
>>> issues. So, I put them into two independent patches.
>>>>
>>>> I have tested it on 32 bit applications. They can run with this patch.
>>>> Just mana would not work as the applications still use 64 bit long door bells,
>>> which do not work for 32 bit apps.
>>>>
>>>
>>> Thanks Wei, for clarification.
>>>
>>> As this patch enables the 32bit build of driver in meson, can you please add
>>> comment log that 32bit driver is not functional yet?
>>>
>>> Or maybe meson update can be moved to short doorbell patch, where driver
>>> becomes functional for 32 bit, this patch can mention in commit log that is
>>> preparation for 32 bit support, what do you think?
>>
>> Thanks Ferruh. I would like to add comment log that 32bit driver is not fully
>> functioning yet until short doorbell support is added. Meanwhile still keep
>> the meson update in within this patch to keep it complete. Hope this works
>> for you.
>>
>
> I think it will do.
> Can you please send those two patches in a same patchset, that gives
> some context if we need to back trace it later?
>
+1
Adding 22.11 maintainer Xueming. The main thing is that it would not
cause a regression to 64 bit. That is something that would need to be
tested by Microsoft.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-09-20 11:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-13 12:23 [PATCH v2 1/1] net/mana: enable 32 bit build for mana driver Wei Hu
2023-09-18 17:40 ` Ferruh Yigit
2023-09-19 2:44 ` Wei Hu
2023-09-19 11:05 ` Ferruh Yigit
2023-09-20 3:06 ` Wei Hu
2023-09-20 10:03 ` Ferruh Yigit
2023-09-20 11:22 ` Kevin Traynor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).