linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [rdma for-next] bnxt_re: report RoCE device support at info level
@ 2018-01-04 21:04 Jonathan Toppins
       [not found] ` <ac1582130cbb59814d113ec5a3d1f3805c7e3d7e.1515099853.git.jtoppins-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Toppins @ 2018-01-04 21:04 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA
  Cc: selvin.xavier-dY08KVG/lbpWk0Htik3J/w, Devesh Sharma,
	Somnath Kotur, Sriharsha Basavapatna, Doug Ledford,
	Jason Gunthorpe, open list

Reporting that a device doesn't support RoCE seems like a valuable piece
of information to have when trying to determine why a driver is not binding
to a device. Better to report this at info log level instead of requiring
a user to enable all debug messages in the driver.

Signed-off-by: Jonathan Toppins <jtoppins-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 drivers/infiniband/hw/bnxt_re/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c
index aafc19aa5de1..bf268bf1f496 100644
--- a/drivers/infiniband/hw/bnxt_re/main.c
+++ b/drivers/infiniband/hw/bnxt_re/main.c
@@ -417,7 +417,7 @@ static struct bnxt_en_dev *bnxt_re_dev_probe(struct net_device *netdev)
 		return ERR_PTR(-EINVAL);
 
 	if (!(en_dev->flags & BNXT_EN_FLAG_ROCE_CAP)) {
-		dev_dbg(&pdev->dev,
+		dev_info(&pdev->dev,
 			"%s: probe error: RoCE is not supported on this device",
 			ROCE_DRV_MODULE_NAME);
 		return ERR_PTR(-ENODEV);
-- 
2.13.6

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [rdma for-next] bnxt_re: report RoCE device support at info level
       [not found] ` <ac1582130cbb59814d113ec5a3d1f3805c7e3d7e.1515099853.git.jtoppins-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2018-01-05  9:52   ` Devesh Sharma
       [not found]     ` <CANjDDBho+uSNdzB3xg0v81fnEF-dbtMikWmftRRC9XyoUdjipw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Devesh Sharma @ 2018-01-05  9:52 UTC (permalink / raw)
  To: Jonathan Toppins
  Cc: linux-rdma, Selvin Xavier, Somnath Kotur, Sriharsha Basavapatna,
	Doug Ledford, Jason Gunthorpe, open list

Acked-By: Devesh Sharma <devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>

On Fri, Jan 5, 2018 at 2:34 AM, Jonathan Toppins <jtoppins-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> Reporting that a device doesn't support RoCE seems like a valuable piece
> of information to have when trying to determine why a driver is not binding
> to a device. Better to report this at info log level instead of requiring
> a user to enable all debug messages in the driver.
>
> Signed-off-by: Jonathan Toppins <jtoppins-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  drivers/infiniband/hw/bnxt_re/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c
> index aafc19aa5de1..bf268bf1f496 100644
> --- a/drivers/infiniband/hw/bnxt_re/main.c
> +++ b/drivers/infiniband/hw/bnxt_re/main.c
> @@ -417,7 +417,7 @@ static struct bnxt_en_dev *bnxt_re_dev_probe(struct net_device *netdev)
>                 return ERR_PTR(-EINVAL);
>
>         if (!(en_dev->flags & BNXT_EN_FLAG_ROCE_CAP)) {
> -               dev_dbg(&pdev->dev,
> +               dev_info(&pdev->dev,
>                         "%s: probe error: RoCE is not supported on this device",
>                         ROCE_DRV_MODULE_NAME);
>                 return ERR_PTR(-ENODEV);
> --
> 2.13.6
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [rdma for-next] bnxt_re: report RoCE device support at info level
       [not found]     ` <CANjDDBho+uSNdzB3xg0v81fnEF-dbtMikWmftRRC9XyoUdjipw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2018-01-05 19:34       ` Doug Ledford
  0 siblings, 0 replies; 3+ messages in thread
From: Doug Ledford @ 2018-01-05 19:34 UTC (permalink / raw)
  To: Devesh Sharma, Jonathan Toppins
  Cc: linux-rdma, Selvin Xavier, Somnath Kotur, Sriharsha Basavapatna,
	Jason Gunthorpe, open list

[-- Attachment #1: Type: text/plain, Size: 839 bytes --]

On Fri, 2018-01-05 at 15:22 +0530, Devesh Sharma wrote:
> Acked-By: Devesh Sharma <devesh.sharma-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
> 
> On Fri, Jan 5, 2018 at 2:34 AM, Jonathan Toppins <jtoppins-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> > Reporting that a device doesn't support RoCE seems like a valuable piece
> > of information to have when trying to determine why a driver is not binding
> > to a device. Better to report this at info log level instead of requiring
> > a user to enable all debug messages in the driver.
> > 
> > Signed-off-by: Jonathan Toppins <jtoppins-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

Applied, thanks.

-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
    GPG KeyID: B826A3330E572FDD
    Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2018-01-05 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-04 21:04 [rdma for-next] bnxt_re: report RoCE device support at info level Jonathan Toppins
     [not found] ` <ac1582130cbb59814d113ec5a3d1f3805c7e3d7e.1515099853.git.jtoppins-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-01-05  9:52   ` Devesh Sharma
     [not found]     ` <CANjDDBho+uSNdzB3xg0v81fnEF-dbtMikWmftRRC9XyoUdjipw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-05 19:34       ` Doug Ledford

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