Skip to contentSkip to conversation

ACPI/PCI: pci_link: reduce verbosity when IRQ is enabled

PATCH In review Sinan Kaya 3 participants 7 messages Jan 16, 2018 – Feb 4, 2018

Subsystems (3)
lore
Share & tools
lore

Sinan Kaya

author
#0 lore raw

PATCH 1/1 ACPI/PCI: pci_link: reduce verbosity when IRQ is enabled

When ACPI Link object is enabled, the message is printed with a warning prefix. Some test tools are capturing warning and test error types as errors. Let's reduce the verbosity of success case.

---
 drivers/acpi/pci_link.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/pci_link.c +1 -1
index bc3d914..85ad679 100644
@@ -612,7 +612,7 @@ static int acpi_pci_link_allocate(struct acpi_pci_link *link)
 			acpi_isa_irq_penalty[link->irq.active] +=
 				PIRQ_PENALTY_PCI_USING;
 
-		printk(KERN_WARNING PREFIX "%s [%s] enabled at IRQ %d\n",
+		pr_info("%s [%s] enabled at IRQ %d\n",
 		       acpi_device_name(link->device),
 		       acpi_device_bid(link->device), link->irq.active);
 	}
Signature · 1 line
1.9.1
author
#1 lore raw

Correcting linux-pci email.

Quoted 23 lines · Sinan Kaya

When ACPI Link object is enabled, the message is printed with a warning prefix. Some test tools are capturing warning and test error types as errors. Let's reduce the verbosity of success case.

---
 drivers/acpi/pci_link.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/pci_link.c +1 -1
index bc3d914..85ad679 100644
@@ -612,7 +612,7 @@ static int acpi_pci_link_allocate(struct acpi_pci_link *link)
 			acpi_isa_irq_penalty[link->irq.active] +=
 				PIRQ_PENALTY_PCI_USING;
 
-		printk(KERN_WARNING PREFIX "%s [%s] enabled at IRQ %d\n",
+		pr_info("%s [%s] enabled at IRQ %d\n",
 		       acpi_device_name(link->device),
 		       acpi_device_bid(link->device), link->irq.active);
 	}
Signature · 3 lines
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Acked-by
#2 lore raw
Quoted 8 lines · Sinan Kaya

Correcting linux-pci email.

Quoted 5 lines · Sinan Kaya

When ACPI Link object is enabled, the message is printed with a warning prefix. Some test tools are capturing warning and test error types as errors. Let's reduce the verbosity of success case.

Looks like this was a result of 4d9391557b68 ("ACPI: add missing KERN_* constants to printks"), which I think added the wrong level in this case.

Quoted 28 lines
Quoted 18 lines
---
 drivers/acpi/pci_link.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/pci_link.c +1 -1
index bc3d914..85ad679 100644
@@ -612,7 +612,7 @@ static int acpi_pci_link_allocate(struct acpi_pci_link *link)
 			acpi_isa_irq_penalty[link->irq.active] +=
 				PIRQ_PENALTY_PCI_USING;
 
-		printk(KERN_WARNING PREFIX "%s [%s] enabled at IRQ %d\n",
+		pr_info("%s [%s] enabled at IRQ %d\n",
 		       acpi_device_name(link->device),
 		       acpi_device_bid(link->device), link->irq.active);
 	}
Signature · 7 lines
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#3 lore raw

Rafael,

Quoted 8 lines · Bjorn Helgaas
Quoted 7 lines · Sinan Kaya

Correcting linux-pci email.

Quoted 4 lines · Sinan Kaya

When ACPI Link object is enabled, the message is printed with a warning prefix. Some test tools are capturing warning and test error types as errors. Let's reduce the verbosity of success case.

Quoted 6 lines
Quoted 1 line
Quoted 1 line

Looks like this was a result of 4d9391557b68 ("ACPI: add missing KERN_* constants to printks"), which I think added the wrong level in this case.

Any chance of merging this for 4.16?

Sinan

Signature · 3 lines
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
#4 lore raw
Quoted 11 lines · Sinan Kaya

Rafael,

Quoted 8 lines · Bjorn Helgaas
Quoted 7 lines · Sinan Kaya

Correcting linux-pci email.

Quoted 4 lines · Sinan Kaya

When ACPI Link object is enabled, the message is printed with a warning prefix. Some test tools are capturing warning and test error types as errors. Let's reduce the verbosity of success case.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

Looks like this was a result of 4d9391557b68 ("ACPI: add missing KERN_* constants to printks"), which I think added the wrong level in this case.

Any chance of merging this for 4.16?

There is.

I've just got back home from travels and will be looking at patches to pick up for 4.16 shortly.

#5 lore raw
Quoted 15 lines · Rafael J. Wysocki
Quoted 14 lines · Sinan Kaya

Rafael,

Quoted 11 lines · Bjorn Helgaas
Quoted 8 lines · Sinan Kaya

Correcting linux-pci email.

Quoted 5 lines · Sinan Kaya

When ACPI Link object is enabled, the message is printed with a warning prefix. Some test tools are capturing warning and test error types as errors. Let's reduce the verbosity of success case.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Looks like this was a result of 4d9391557b68 ("ACPI: add missing KERN_* constants to printks"), which I think added the wrong level in this case.

Any chance of merging this for 4.16?

There is.

This one is already there in the Linus' tree AFAICS.

#6 lore raw
Quoted 26 lines · Rafael J. Wysocki
Quoted 24 lines · Rafael J. Wysocki
Quoted 22 lines · Sinan Kaya

Rafael,

Quoted 18 lines · Bjorn Helgaas
Quoted 10 lines · Sinan Kaya

Correcting linux-pci email.

Quoted 7 lines · Sinan Kaya

When ACPI Link object is enabled, the message is printed with a warning
prefix. Some test tools are capturing warning and test error types as
errors. Let's reduce the verbosity of success case.

Looks like this was a result of 4d9391557b68 ("ACPI: add missing KERN_*
constants to printks"), which I think added the wrong level in this case.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Any chance of merging this for 4.16?

There is.

This one is already there in the Linus' tree AFAICS.

You are right. I see it there. I have not seen an applied email. I thought it was still outstanding.

Quoted 5 lines

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