From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: linux-pci@vger.kernel.org, "Hans de Goede" <hdegoede@redhat.com>,
"Florent DELAHAYE" <kernelorg@undead.fr>,
"Konrad J Hambrick" <kjhambrick@gmail.com>,
"Matt Hansen" <2lprbe78@duck.com>,
"Benoit Grégoire" <benoitg@coeus.ca>,
"Nicholas Johnson" <nicholas.johnson-opensource@outlook.com.au>,
"Mika Westerberg" <mika.westerberg@linux.intel.com>,
"Werner Sembach" <wse@tuxedocomputers.com>,
mumblingdrunkard@protonmail.com, linux-kernel@vger.kernel.org,
"Bjorn Helgaas" <bhelgaas@google.com>
Subject: Re: [PATCH v2 4/4] x86/PCI: Fix log message typo
Date: Fri, 9 Dec 2022 23:35:57 +0200 [thread overview]
Message-ID: <Y5OqPSV2RDdkAITE@smile.fi.intel.com> (raw)
In-Reply-To: <20221209205131.GA1726524@bhelgaas>
On Fri, Dec 09, 2022 at 02:51:31PM -0600, Bjorn Helgaas wrote:
> On Fri, Dec 09, 2022 at 08:43:06PM +0200, Andy Shevchenko wrote:
> > On Thu, Dec 08, 2022 at 01:03:41PM -0600, Bjorn Helgaas wrote:
...
> > Wondering if we can change printk(KERN_LVL) to pr_lvl() in this file.
>
> Sure! How about this?
LGTM, you can add
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
to it if you wish.
> commit 7058cdb558d5 ("x86/PCI: Use pr_info() when possible")
> Author: Bjorn Helgaas <bhelgaas@google.com>
> Date: Fri Dec 9 14:41:27 2022 -0600
>
> x86/PCI: Use pr_info() when possible
>
> Use pr_info() and similar when possible. No functional change intended.
>
> Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
I prefer @linux.intel.com.
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c
> index 83dfea9e9894..ea2eb2ec90e2 100644
> --- a/arch/x86/pci/acpi.c
> +++ b/arch/x86/pci/acpi.c
> @@ -1,4 +1,7 @@
> // SPDX-License-Identifier: GPL-2.0
> +
> +#define pr_fmt(fmt) "PCI: " fmt
> +
> #include <linux/pci.h>
> #include <linux/acpi.h>
> #include <linux/init.h>
> @@ -37,15 +40,15 @@ static int __init set_nouse_crs(const struct dmi_system_id *id)
>
> static int __init set_ignore_seg(const struct dmi_system_id *id)
> {
> - printk(KERN_INFO "PCI: %s detected: ignoring ACPI _SEG\n", id->ident);
> + pr_info("%s detected: ignoring ACPI _SEG\n", id->ident);
> pci_ignore_seg = true;
> return 0;
> }
>
> static int __init set_no_e820(const struct dmi_system_id *id)
> {
> - printk(KERN_INFO "PCI: %s detected: not clipping E820 regions from _CRS\n",
> - id->ident);
> + pr_info("%s detected: not clipping E820 regions from _CRS\n",
> + id->ident);
> pci_use_e820 = false;
> return 0;
> }
> @@ -231,10 +234,9 @@ void __init pci_acpi_crs_quirks(void)
> else if (pci_probe & PCI_USE__CRS)
> pci_use_crs = true;
>
> - printk(KERN_INFO "PCI: %s host bridge windows from ACPI; "
> - "if necessary, use \"pci=%s\" and report a bug\n",
> - pci_use_crs ? "Using" : "Ignoring",
> - pci_use_crs ? "nocrs" : "use_crs");
> + pr_info("%s host bridge windows from ACPI; if necessary, use \"pci=%s\" and report a bug\n",
> + pci_use_crs ? "Using" : "Ignoring",
> + pci_use_crs ? "nocrs" : "use_crs");
>
> /* "pci=use_e820"/"pci=no_e820" on the kernel cmdline takes precedence */
> if (pci_probe & PCI_NO_E820)
> @@ -242,19 +244,17 @@ void __init pci_acpi_crs_quirks(void)
> else if (pci_probe & PCI_USE_E820)
> pci_use_e820 = true;
>
> - printk(KERN_INFO "PCI: %s E820 reservations for host bridge windows\n",
> - pci_use_e820 ? "Using" : "Ignoring");
> + pr_info("%s E820 reservations for host bridge windows\n",
> + pci_use_e820 ? "Using" : "Ignoring");
> if (pci_probe & (PCI_NO_E820 | PCI_USE_E820))
> - printk(KERN_INFO "PCI: Please notify linux-pci@vger.kernel.org so future kernels can do this automatically\n");
> + pr_info("Please notify linux-pci@vger.kernel.org so future kernels can do this automatically\n");
> }
>
> #ifdef CONFIG_PCI_MMCONFIG
> static int check_segment(u16 seg, struct device *dev, char *estr)
> {
> if (seg) {
> - dev_err(dev,
> - "%s can't access PCI configuration "
> - "space under this host bridge.\n",
> + dev_err(dev, "%s can't access configuration space under this host bridge\n",
> estr);
> return -EIO;
> }
> @@ -264,9 +264,7 @@ static int check_segment(u16 seg, struct device *dev, char *estr)
> * just can't access extended configuration space of
> * devices under this host bridge.
> */
> - dev_warn(dev,
> - "%s can't access extended PCI configuration "
> - "space under this bridge.\n",
> + dev_warn(dev, "%s can't access extended configuration space under this bridge\n",
> estr);
>
> return 0;
> @@ -421,9 +419,8 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
> root->segment = domain = 0;
>
> if (domain && !pci_domains_supported) {
> - printk(KERN_WARNING "pci_bus %04x:%02x: "
> - "ignored (multiple domains not supported)\n",
> - domain, busnum);
> + pr_warn("pci_bus %04x:%02x: ignored (multiple domains not supported)\n",
> + domain, busnum);
> return NULL;
> }
>
> @@ -491,7 +488,7 @@ int __init pci_acpi_init(void)
> if (acpi_noirq)
> return -ENODEV;
>
> - printk(KERN_INFO "PCI: Using ACPI for IRQ routing\n");
> + pr_info("Using ACPI for IRQ routing\n");
> acpi_irq_penalty_init();
> pcibios_enable_irq = acpi_pci_irq_enable;
> pcibios_disable_irq = acpi_pci_irq_disable;
> @@ -503,7 +500,7 @@ int __init pci_acpi_init(void)
> * also do it here in case there are still broken drivers that
> * don't use pci_enable_device().
> */
> - printk(KERN_INFO "PCI: Routing PCI interrupts for all devices because \"pci=routeirq\" specified\n");
> + pr_info("Routing PCI interrupts for all devices because \"pci=routeirq\" specified\n");
> for_each_pci_dev(dev)
> acpi_pci_irq_enable(dev);
> }
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2022-12-09 21:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-08 19:03 [PATCH v2 0/4] PCI: Continue E820 vs host bridge window saga Bjorn Helgaas
2022-12-08 19:03 ` [PATCH v2 1/4] efi/x86: Remove EfiMemoryMappedIO from E820 map Bjorn Helgaas
2022-12-09 8:06 ` Hans de Goede
2022-12-09 11:04 ` Hans de Goede
2022-12-09 20:10 ` Bjorn Helgaas
2023-01-13 10:46 ` Baowen Zheng
2023-01-13 13:54 ` [PATCH " Bjorn Helgaas
2022-12-08 19:03 ` [PATCH v2 2/4] PCI: Skip allocate_resource() if too little space available Bjorn Helgaas
2022-12-08 19:03 ` [PATCH v2 3/4] x86/PCI: Tidy E820 removal messages Bjorn Helgaas
2022-12-09 18:42 ` Andy Shevchenko
2022-12-09 20:34 ` Bjorn Helgaas
2022-12-09 21:33 ` Andy Shevchenko
2022-12-08 19:03 ` [PATCH v2 4/4] x86/PCI: Fix log message typo Bjorn Helgaas
2022-12-09 18:43 ` Andy Shevchenko
2022-12-09 20:51 ` Bjorn Helgaas
2022-12-09 21:35 ` Andy Shevchenko [this message]
2022-12-09 21:52 ` Bjorn Helgaas
2022-12-10 20:55 ` Andy Shevchenko
2022-12-08 20:03 ` [PATCH v2 0/4] PCI: Continue E820 vs host bridge window saga Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y5OqPSV2RDdkAITE@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=2lprbe78@duck.com \
--cc=benoitg@coeus.ca \
--cc=bhelgaas@google.com \
--cc=hdegoede@redhat.com \
--cc=helgaas@kernel.org \
--cc=kernelorg@undead.fr \
--cc=kjhambrick@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=mumblingdrunkard@protonmail.com \
--cc=nicholas.johnson-opensource@outlook.com.au \
--cc=wse@tuxedocomputers.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.