Skip to contentSkip to conversation

vfio/pci: demote hiding ecap messages to debug level

PATCH Applied Oleksandr Natalenko 4 participants 6 messages May 4, 2023 – May 23, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfio/pci: demote hiding ecap messages to debug level

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

---
 drivers/vfio/pci/vfio_pci_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/pci/vfio_pci_config.c +1 -1
index 948cdd464f4e..dd8dda14e701 100644
@@ -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 */
Signature · 1 line
2.40.1
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Oleksandr Natalenko

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
Quoted 5 lines

is of little to no value for an ordinary user.

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

Thanks,

C.

Quoted 17 lines
---
  drivers/vfio/pci/vfio_pci_config.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/pci/vfio_pci_config.c +1 -1
index 948cdd464f4e..dd8dda14e701 100644
@@ -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 lore raw
In reply to Oleksandr Natalenko
Quoted 27 lines · On Thu, 4 May 2023 15:16:54 +0200 Oleksandr Natalenko…

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

---
 drivers/vfio/pci/vfio_pci_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/pci/vfio_pci_config.c +0 -0
index 948cdd464f4e..dd8dda14e701 100644

drivers/vfio/pci/vfio_pci_config.c static int vfio_ecap_init(struct vfio_pci_core_device *vdev) · line 1649

Quoted 8 lines
drivers/vfio/pci/vfio_pci_config.c +1 -1
@@ -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

#3 lore raw

Hello.

Quoted 37 lines · On pátek 5. května 2023 1:01:11 CEST Alex Williamson wrote:
Quoted 34 lines · On Thu, 4 May 2023 15:16:54 +0200 Oleksandr Natalenko…

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

---
 drivers/vfio/pci/vfio_pci_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/pci/vfio_pci_config.c +1 -1
index 948cdd464f4e..dd8dda14e701 100644
@@ -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);
 
Quoted 4 lines

drivers/vfio/pci/vfio_pci_config.c static int vfio_ecap_init(struct vfio_pci_core_device *vdev) · line 1649

Quoted 1 line
drivers/vfio/pci/vfio_pci_config.c +0 -0
 			/* 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.

Quoted 7 lines

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

Alex

Signature · 1 line
Oleksandr Natalenko (post-factum)
Tested-by on v1 1/1
#4 lore raw
In reply to Oleksandr Natalenko
Quoted 35 lines · Oleksandr Natalenko

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

---
  drivers/vfio/pci/vfio_pci_config.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/pci/vfio_pci_config.c +1 -1
index 948cdd464f4e..dd8dda14e701 100644
@@ -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 */
#5 lore raw
In reply to Oleksandr Natalenko
Quoted 27 lines · On Thu, 4 May 2023 15:16:54 +0200 Oleksandr Natalenko…

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

---
 drivers/vfio/pci/vfio_pci_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/pci/vfio_pci_config.c +0 -0
index 948cdd464f4e..dd8dda14e701 100644

drivers/vfio/pci/vfio_pci_config.c static int vfio_ecap_init(struct vfio_pci_core_device *vdev) · line 1649

Quoted 8 lines
drivers/vfio/pci/vfio_pci_config.c +1 -1
@@ -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