DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] bus/cdx: silence bus scan when CDX is unavailable
@ 2023-06-09 11:11 David Marchand
  2023-06-09 11:14 ` Gupta, Nipun
  0 siblings, 1 reply; 3+ messages in thread
From: David Marchand @ 2023-06-09 11:11 UTC (permalink / raw)
  To: dev; +Cc: Nipun Gupta, Nikhil Agarwal, Ferruh Yigit

Absence of the CDX bus is not an error.

Bugzilla ID: 1246
Fixes: 45ef232af515 ("bus/cdx: introduce AMD CDX bus")

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 drivers/bus/cdx/cdx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bus/cdx/cdx.c b/drivers/bus/cdx/cdx.c
index 9607096d18..28bbf92ed5 100644
--- a/drivers/bus/cdx/cdx.c
+++ b/drivers/bus/cdx/cdx.c
@@ -268,9 +268,9 @@ cdx_scan(void)
 
 	dir = opendir(RTE_CDX_BUS_DEVICES_PATH);
 	if (dir == NULL) {
-		CDX_BUS_ERR("%s(): opendir failed: %s", __func__,
+		CDX_BUS_INFO("%s(): opendir failed: %s", __func__,
 			strerror(errno));
-		return -1;
+		return 0;
 	}
 
 	while ((e = readdir(dir)) != NULL) {
-- 
2.40.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] bus/cdx: silence bus scan when CDX is unavailable
  2023-06-09 11:11 [PATCH] bus/cdx: silence bus scan when CDX is unavailable David Marchand
@ 2023-06-09 11:14 ` Gupta, Nipun
  2023-06-09 13:20   ` David Marchand
  0 siblings, 1 reply; 3+ messages in thread
From: Gupta, Nipun @ 2023-06-09 11:14 UTC (permalink / raw)
  To: David Marchand, dev; +Cc: Agarwal, Nikhil, Yigit, Ferruh

[Public]

Acked-by: Nipun Gupta <nipun.gupta@amd.com>

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Friday, June 9, 2023 4:41 PM
> To: dev@dpdk.org
> Cc: Gupta, Nipun <Nipun.Gupta@amd.com>; Agarwal, Nikhil
> <nikhil.agarwal@amd.com>; Yigit, Ferruh <Ferruh.Yigit@amd.com>
> Subject: [PATCH] bus/cdx: silence bus scan when CDX is unavailable
>
> Absence of the CDX bus is not an error.
>
> Bugzilla ID: 1246
> Fixes: 45ef232af515 ("bus/cdx: introduce AMD CDX bus")
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
>  drivers/bus/cdx/cdx.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/bus/cdx/cdx.c b/drivers/bus/cdx/cdx.c
> index 9607096d18..28bbf92ed5 100644
> --- a/drivers/bus/cdx/cdx.c
> +++ b/drivers/bus/cdx/cdx.c
> @@ -268,9 +268,9 @@ cdx_scan(void)
>
>       dir = opendir(RTE_CDX_BUS_DEVICES_PATH);
>       if (dir == NULL) {
> -             CDX_BUS_ERR("%s(): opendir failed: %s", __func__,
> +             CDX_BUS_INFO("%s(): opendir failed: %s", __func__,
>                       strerror(errno));
> -             return -1;
> +             return 0;
>       }
>
>       while ((e = readdir(dir)) != NULL) {
> --
> 2.40.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] bus/cdx: silence bus scan when CDX is unavailable
  2023-06-09 11:14 ` Gupta, Nipun
@ 2023-06-09 13:20   ` David Marchand
  0 siblings, 0 replies; 3+ messages in thread
From: David Marchand @ 2023-06-09 13:20 UTC (permalink / raw)
  To: David Marchand; +Cc: dev, Agarwal, Nikhil, Yigit, Ferruh, Gupta, Nipun

On Fri, Jun 9, 2023 at 1:14 PM Gupta, Nipun <Nipun.Gupta@amd.com> wrote:
> > Absence of the CDX bus is not an error.
> >
> > Bugzilla ID: 1246
> > Fixes: 45ef232af515 ("bus/cdx: introduce AMD CDX bus")
> >
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> Acked-by: Nipun Gupta <nipun.gupta@amd.com>

Applied.


-- 
David Marchand


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-09 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-09 11:11 [PATCH] bus/cdx: silence bus scan when CDX is unavailable David Marchand
2023-06-09 11:14 ` Gupta, Nipun
2023-06-09 13:20   ` David Marchand

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).