kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vfio/pci: demote hiding ecap messages to debug level
@ 2023-05-04 13:16 Oleksandr Natalenko
  2023-05-04 15:05 ` Cédric Le Goater
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Oleksandr Natalenko @ 2023-05-04 13:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: Alex Williamson, Eric Auger, Cédric Le Goater,
	Jason Gunthorpe, Abhishek Sahu, Kevin Tian, Cornelia Huck,
	Bo Liu, K V P, Satyanarayana, kvm

Seeing a burst of messages like this:

    vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
    vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
    vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
    vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
    vfio-pci 0000:98:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
    vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
    vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
    vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
    vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
    vfio-pci 0000:b1:00.1: vfio_ecap_init: hiding ecap 0x25@0x200

is of little to no value for an ordinary user.

Hence, use pci_dbg() instead of pci_info().

Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
---
 drivers/vfio/pci/vfio_pci_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c
index 948cdd464f4e..dd8dda14e701 100644
--- a/drivers/vfio/pci/vfio_pci_config.c
+++ b/drivers/vfio/pci/vfio_pci_config.c
@@ -1643,7 +1643,7 @@ static int vfio_ecap_init(struct vfio_pci_core_device *vdev)
 		}
 
 		if (!len) {
-			pci_info(pdev, "%s: hiding ecap %#x@%#x\n",
+			pci_dbg(pdev, "%s: hiding ecap %#x@%#x\n",
 				 __func__, ecap, epos);
 
 			/* If not the first in the chain, we can skip over it */
-- 
2.40.1


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

* Re: [PATCH] vfio/pci: demote hiding ecap messages to debug level
  2023-05-04 13:16 [PATCH] vfio/pci: demote hiding ecap messages to debug level Oleksandr Natalenko
@ 2023-05-04 15:05 ` Cédric Le Goater
  2023-05-04 23:01 ` Alex Williamson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Cédric Le Goater @ 2023-05-04 15:05 UTC (permalink / raw)
  To: Oleksandr Natalenko, linux-kernel
  Cc: Alex Williamson, Eric Auger, Jason Gunthorpe, Abhishek Sahu,
	Kevin Tian, Cornelia Huck, Bo Liu, K V P, Satyanarayana, kvm

On 5/4/23 15:16, Oleksandr Natalenko wrote:
> Seeing a burst of messages like this:
> 
>      vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
>      vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
>      vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
>      vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
>      vfio-pci 0000:98:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
>      vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
>      vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
>      vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
>      vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
>      vfio-pci 0000:b1:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
> 
> is of little to no value for an ordinary user.
> 
> Hence, use pci_dbg() instead of pci_info().
> 
> Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>


Acked-by: Cédric Le Goater <clg@redhat.com>

Thanks,

C.

> ---
>   drivers/vfio/pci/vfio_pci_config.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c
> index 948cdd464f4e..dd8dda14e701 100644
> --- a/drivers/vfio/pci/vfio_pci_config.c
> +++ b/drivers/vfio/pci/vfio_pci_config.c
> @@ -1643,7 +1643,7 @@ static int vfio_ecap_init(struct vfio_pci_core_device *vdev)
>   		}
>   
>   		if (!len) {
> -			pci_info(pdev, "%s: hiding ecap %#x@%#x\n",
> +			pci_dbg(pdev, "%s: hiding ecap %#x@%#x\n",
>   				 __func__, ecap, epos);
>   
>   			/* If not the first in the chain, we can skip over it */


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

* Re: [PATCH] vfio/pci: demote hiding ecap messages to debug level
  2023-05-04 13:16 [PATCH] vfio/pci: demote hiding ecap messages to debug level Oleksandr Natalenko
  2023-05-04 15:05 ` Cédric Le Goater
@ 2023-05-04 23:01 ` Alex Williamson
  2023-05-05 10:01   ` Oleksandr Natalenko
  2023-05-20  7:41 ` Yanghang Luy
  2023-05-23 22:43 ` Alex Williamson
  3 siblings, 1 reply; 6+ messages in thread
From: Alex Williamson @ 2023-05-04 23:01 UTC (permalink / raw)
  To: Oleksandr Natalenko
  Cc: linux-kernel, Eric Auger, Cédric Le Goater, Jason Gunthorpe,
	Abhishek Sahu, Kevin Tian, Cornelia Huck, Bo Liu, K V P,
	Satyanarayana, kvm

On Thu,  4 May 2023 15:16:54 +0200
Oleksandr Natalenko <oleksandr@natalenko.name> wrote:

> Seeing a burst of messages like this:
> 
>     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
>     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
>     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
>     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
>     vfio-pci 0000:98:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
>     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
>     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
>     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
>     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
>     vfio-pci 0000:b1:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
> 
> is of little to no value for an ordinary user.
> 
> Hence, use pci_dbg() instead of pci_info().
> 
> Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
> ---
>  drivers/vfio/pci/vfio_pci_config.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c
> index 948cdd464f4e..dd8dda14e701 100644
> --- a/drivers/vfio/pci/vfio_pci_config.c
> +++ b/drivers/vfio/pci/vfio_pci_config.c
> @@ -1643,7 +1643,7 @@ static int vfio_ecap_init(struct vfio_pci_core_device *vdev)
>  		}
>  
>  		if (!len) {
> -			pci_info(pdev, "%s: hiding ecap %#x@%#x\n",
> +			pci_dbg(pdev, "%s: hiding ecap %#x@%#x\n",
>  				 __func__, ecap, epos);
>  
>  			/* If not the first in the chain, we can skip over it */

Looks fine to me, though I might adjust that next line to keep the
previous alignment.  In general this has certainly caused more
confusion than insightful information, so demoting it to debug is a
good idea.  Thanks,

Alex


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

* Re: [PATCH] vfio/pci: demote hiding ecap messages to debug level
  2023-05-04 23:01 ` Alex Williamson
@ 2023-05-05 10:01   ` Oleksandr Natalenko
  0 siblings, 0 replies; 6+ messages in thread
From: Oleksandr Natalenko @ 2023-05-05 10:01 UTC (permalink / raw)
  To: Alex Williamson
  Cc: linux-kernel, Eric Auger, Cédric Le Goater, Jason Gunthorpe,
	Abhishek Sahu, Kevin Tian, Cornelia Huck, Bo Liu, K V P,
	Satyanarayana, kvm

Hello.

On pátek 5. května 2023 1:01:11 CEST Alex Williamson wrote:
> On Thu,  4 May 2023 15:16:54 +0200
> Oleksandr Natalenko <oleksandr@natalenko.name> wrote:
> 
> > Seeing a burst of messages like this:
> > 
> >     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
> >     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
> >     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
> >     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
> >     vfio-pci 0000:98:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
> >     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
> >     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
> >     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
> >     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
> >     vfio-pci 0000:b1:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
> > 
> > is of little to no value for an ordinary user.
> > 
> > Hence, use pci_dbg() instead of pci_info().
> > 
> > Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
> > ---
> >  drivers/vfio/pci/vfio_pci_config.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c
> > index 948cdd464f4e..dd8dda14e701 100644
> > --- a/drivers/vfio/pci/vfio_pci_config.c
> > +++ b/drivers/vfio/pci/vfio_pci_config.c
> > @@ -1643,7 +1643,7 @@ static int vfio_ecap_init(struct vfio_pci_core_device *vdev)
> >  		}
> >  
> >  		if (!len) {
> > -			pci_info(pdev, "%s: hiding ecap %#x@%#x\n",
> > +			pci_dbg(pdev, "%s: hiding ecap %#x@%#x\n",
> >  				 __func__, ecap, epos);
> >  
> >  			/* If not the first in the chain, we can skip over it */
> 
> Looks fine to me, though I might adjust that next line to keep the
> previous alignment.

Sure, but if you want me to send v2 with this, please let me know.

Thanks.

> In general this has certainly caused more
> confusion than insightful information, so demoting it to debug is a
> good idea.  Thanks,
> 
> Alex
> 
> 


-- 
Oleksandr Natalenko (post-factum)



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

* Re: [PATCH] vfio/pci: demote hiding ecap messages to debug level
  2023-05-04 13:16 [PATCH] vfio/pci: demote hiding ecap messages to debug level Oleksandr Natalenko
  2023-05-04 15:05 ` Cédric Le Goater
  2023-05-04 23:01 ` Alex Williamson
@ 2023-05-20  7:41 ` Yanghang Luy
  2023-05-23 22:43 ` Alex Williamson
  3 siblings, 0 replies; 6+ messages in thread
From: Yanghang Luy @ 2023-05-20  7:41 UTC (permalink / raw)
  To: Oleksandr Natalenko, linux-kernel
  Cc: Alex Williamson, Eric Auger, Cédric Le Goater,
	Jason Gunthorpe, Abhishek Sahu, Kevin Tian, Cornelia Huck,
	Bo Liu, K V P, Satyanarayana, kvm

Tested-by: YangHang Liu <yanghliu@redhat.com>

On 5/4/2023 9:16 PM, Oleksandr Natalenko wrote:
> Seeing a burst of messages like this:
> 
>      vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
>      vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
>      vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
>      vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
>      vfio-pci 0000:98:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
>      vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
>      vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
>      vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
>      vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
>      vfio-pci 0000:b1:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
> 
> is of little to no value for an ordinary user.
> 
> Hence, use pci_dbg() instead of pci_info().
> 
> Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
> ---
>   drivers/vfio/pci/vfio_pci_config.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c
> index 948cdd464f4e..dd8dda14e701 100644
> --- a/drivers/vfio/pci/vfio_pci_config.c
> +++ b/drivers/vfio/pci/vfio_pci_config.c
> @@ -1643,7 +1643,7 @@ static int vfio_ecap_init(struct vfio_pci_core_device *vdev)
>   		}
>   
>   		if (!len) {
> -			pci_info(pdev, "%s: hiding ecap %#x@%#x\n",
> +			pci_dbg(pdev, "%s: hiding ecap %#x@%#x\n",
>   				 __func__, ecap, epos);
>   
>   			/* If not the first in the chain, we can skip over it */


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

* Re: [PATCH] vfio/pci: demote hiding ecap messages to debug level
  2023-05-04 13:16 [PATCH] vfio/pci: demote hiding ecap messages to debug level Oleksandr Natalenko
                   ` (2 preceding siblings ...)
  2023-05-20  7:41 ` Yanghang Luy
@ 2023-05-23 22:43 ` Alex Williamson
  3 siblings, 0 replies; 6+ messages in thread
From: Alex Williamson @ 2023-05-23 22:43 UTC (permalink / raw)
  To: Oleksandr Natalenko
  Cc: linux-kernel, Eric Auger, Cédric Le Goater, Jason Gunthorpe,
	Abhishek Sahu, Kevin Tian, Cornelia Huck, Bo Liu, K V P,
	Satyanarayana, kvm

On Thu,  4 May 2023 15:16:54 +0200
Oleksandr Natalenko <oleksandr@natalenko.name> wrote:

> Seeing a burst of messages like this:
> 
>     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
>     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
>     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
>     vfio-pci 0000:98:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
>     vfio-pci 0000:98:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
>     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x19@0x1d0
>     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x25@0x200
>     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x26@0x210
>     vfio-pci 0000:b1:00.0: vfio_ecap_init: hiding ecap 0x27@0x250
>     vfio-pci 0000:b1:00.1: vfio_ecap_init: hiding ecap 0x25@0x200
> 
> is of little to no value for an ordinary user.
> 
> Hence, use pci_dbg() instead of pci_info().
> 
> Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
> ---
>  drivers/vfio/pci/vfio_pci_config.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c
> index 948cdd464f4e..dd8dda14e701 100644
> --- a/drivers/vfio/pci/vfio_pci_config.c
> +++ b/drivers/vfio/pci/vfio_pci_config.c
> @@ -1643,7 +1643,7 @@ static int vfio_ecap_init(struct vfio_pci_core_device *vdev)
>  		}
>  
>  		if (!len) {
> -			pci_info(pdev, "%s: hiding ecap %#x@%#x\n",
> +			pci_dbg(pdev, "%s: hiding ecap %#x@%#x\n",
>  				 __func__, ecap, epos);
>  
>  			/* If not the first in the chain, we can skip over it */

Applied to vfio next branch for v6.5.  Thanks!

Alex


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

end of thread, other threads:[~2023-05-23 22:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-04 13:16 [PATCH] vfio/pci: demote hiding ecap messages to debug level Oleksandr Natalenko
2023-05-04 15:05 ` Cédric Le Goater
2023-05-04 23:01 ` Alex Williamson
2023-05-05 10:01   ` Oleksandr Natalenko
2023-05-20  7:41 ` Yanghang Luy
2023-05-23 22:43 ` Alex Williamson

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