* Re: [PATCH] doc: announce behavior change for device NUMA node field
2022-07-13 15:50 [PATCH] doc: announce behavior change for device NUMA node field Olivier Matz
@ 2022-07-14 10:10 ` Bruce Richardson
2022-07-14 10:36 ` Jerin Jacob
2022-07-14 11:55 ` David Marchand
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Bruce Richardson @ 2022-07-14 10:10 UTC (permalink / raw)
To: Olivier Matz; +Cc: dev, Ray Kinsella, David Marchand
On Wed, Jul 13, 2022 at 05:50:43PM +0200, Olivier Matz wrote:
> The dev->device.numa_node field is set by the bus driver for each device
> it manages to indicate on which NUMA node this device lies.
>
> When this information is unknown, the assigned value is not consistent
> across the bus drivers. In v22.11, the value will be set to -1 in
> this case.
>
> Link: https://patches.dpdk.org/project/dpdk/patch/20211026090610.10823-1-houssem.bouhlel@6wind.com/
>
> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
> ---
> doc/guides/rel_notes/deprecation.rst | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
> index 4e5b23c53d..5f269bf527 100644
> --- a/doc/guides/rel_notes/deprecation.rst
> +++ b/doc/guides/rel_notes/deprecation.rst
> @@ -125,3 +125,9 @@ Deprecation Notices
> applications should be updated to use the ``dmadev`` library instead,
> with the underlying HW-functionality being provided by the ``ioat`` or
> ``idxd`` dma drivers
> +
> +* bus: The ``dev->device.numa_node`` field is set by the bus driver for
> + each device it manages to indicate on which NUMA node this device
> + lies. When this information is unknown, the assigned value is not
> + consistent across the bus drivers. In v22.11, the value will be set
> + to -1 in this case.
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Couple of minor rewording suggestions:
* "the bus driver" seems wrong in the first line as we haven't referred to
one in particular. How about "...set by each bus driver for every device..."
* "the assigned value is not consistent across the bus drivers" - this
reads a little strange to me and I find it unclear. Not sure how to
reword it, maybe something like: "each bus driver selects its own value to
set. To resolve this inconsistency, in v22.11, the device numa_node value
will be set to -1 by all bus drivers when the actual NUMA information is
unavailable."
> --
> 2.30.2
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] doc: announce behavior change for device NUMA node field
2022-07-14 10:10 ` Bruce Richardson
@ 2022-07-14 10:36 ` Jerin Jacob
0 siblings, 0 replies; 6+ messages in thread
From: Jerin Jacob @ 2022-07-14 10:36 UTC (permalink / raw)
To: Bruce Richardson; +Cc: Olivier Matz, dpdk-dev, Ray Kinsella, David Marchand
On Thu, Jul 14, 2022 at 3:40 PM Bruce Richardson
<bruce.richardson@intel.com> wrote:
>
> On Wed, Jul 13, 2022 at 05:50:43PM +0200, Olivier Matz wrote:
> > The dev->device.numa_node field is set by the bus driver for each device
> > it manages to indicate on which NUMA node this device lies.
> >
> > When this information is unknown, the assigned value is not consistent
> > across the bus drivers. In v22.11, the value will be set to -1 in
> > this case.
> >
> > Link: https://patches.dpdk.org/project/dpdk/patch/20211026090610.10823-1-houssem.bouhlel@6wind.com/
> >
> > Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
> > ---
> > doc/guides/rel_notes/deprecation.rst | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
> > index 4e5b23c53d..5f269bf527 100644
> > --- a/doc/guides/rel_notes/deprecation.rst
> > +++ b/doc/guides/rel_notes/deprecation.rst
> > @@ -125,3 +125,9 @@ Deprecation Notices
> > applications should be updated to use the ``dmadev`` library instead,
> > with the underlying HW-functionality being provided by the ``ioat`` or
> > ``idxd`` dma drivers
> > +
> > +* bus: The ``dev->device.numa_node`` field is set by the bus driver for
> > + each device it manages to indicate on which NUMA node this device
> > + lies. When this information is unknown, the assigned value is not
> > + consistent across the bus drivers. In v22.11, the value will be set
> > + to -1 in this case.
>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
>
> Couple of minor rewording suggestions:
> * "the bus driver" seems wrong in the first line as we haven't referred to
> one in particular. How about "...set by each bus driver for every device..."
>
> * "the assigned value is not consistent across the bus drivers" - this
> reads a little strange to me and I find it unclear. Not sure how to
> reword it, maybe something like: "each bus driver selects its own value to
> set. To resolve this inconsistency, in v22.11, the device numa_node value
> will be set to -1 by all bus drivers when the actual NUMA information is
> unavailable."
>
>
> > --
> > 2.30.2
> >
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] doc: announce behavior change for device NUMA node field
2022-07-13 15:50 [PATCH] doc: announce behavior change for device NUMA node field Olivier Matz
2022-07-14 10:10 ` Bruce Richardson
@ 2022-07-14 11:55 ` David Marchand
2022-07-14 12:03 ` Burakov, Anatoly
2022-07-15 16:07 ` Thomas Monjalon
3 siblings, 0 replies; 6+ messages in thread
From: David Marchand @ 2022-07-14 11:55 UTC (permalink / raw)
To: Olivier Matz; +Cc: dev, Ray Kinsella
On Wed, Jul 13, 2022 at 5:51 PM Olivier Matz <olivier.matz@6wind.com> wrote:
>
> The dev->device.numa_node field is set by the bus driver for each device
> it manages to indicate on which NUMA node this device lies.
>
> When this information is unknown, the assigned value is not consistent
> across the bus drivers. In v22.11, the value will be set to -1 in
> this case.
>
> Link: https://patches.dpdk.org/project/dpdk/patch/20211026090610.10823-1-houssem.bouhlel@6wind.com/
>
> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: David Marchand <david.marchand@redhat.com>
Thanks Olivier.
--
David Marchand
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] doc: announce behavior change for device NUMA node field
2022-07-13 15:50 [PATCH] doc: announce behavior change for device NUMA node field Olivier Matz
2022-07-14 10:10 ` Bruce Richardson
2022-07-14 11:55 ` David Marchand
@ 2022-07-14 12:03 ` Burakov, Anatoly
2022-07-15 16:07 ` Thomas Monjalon
3 siblings, 0 replies; 6+ messages in thread
From: Burakov, Anatoly @ 2022-07-14 12:03 UTC (permalink / raw)
To: Olivier Matz, dev; +Cc: Ray Kinsella, David Marchand
On 13-Jul-22 4:50 PM, Olivier Matz wrote:
> The dev->device.numa_node field is set by the bus driver for each device
> it manages to indicate on which NUMA node this device lies.
>
> When this information is unknown, the assigned value is not consistent
> across the bus drivers. In v22.11, the value will be set to -1 in
> this case.
>
> Link: https://patches.dpdk.org/project/dpdk/patch/20211026090610.10823-1-houssem.bouhlel@6wind.com/
>
> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
> ---
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
--
Thanks,
Anatoly
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] doc: announce behavior change for device NUMA node field
2022-07-13 15:50 [PATCH] doc: announce behavior change for device NUMA node field Olivier Matz
` (2 preceding siblings ...)
2022-07-14 12:03 ` Burakov, Anatoly
@ 2022-07-15 16:07 ` Thomas Monjalon
3 siblings, 0 replies; 6+ messages in thread
From: Thomas Monjalon @ 2022-07-15 16:07 UTC (permalink / raw)
To: Olivier Matz; +Cc: dev, Ray Kinsella, David Marchand, bruce.richardson
13/07/2022 17:50, Olivier Matz:
> The dev->device.numa_node field is set by the bus driver for each device
> it manages to indicate on which NUMA node this device lies.
>
> When this information is unknown, the assigned value is not consistent
> across the bus drivers. In v22.11, the value will be set to -1 in
> this case.
>
> Link: https://patches.dpdk.org/project/dpdk/patch/20211026090610.10823-1-houssem.bouhlel@6wind.com/
>
> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: David Marchand <david.marchand@redhat.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Applied with a bit of rewording as suggested by Bruce.
^ permalink raw reply [flat|nested] 6+ messages in thread