Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Remove messages about reassigning resources

When reassigning device resources to increase their alignment, e.g.,
because of a "pci=resource_alignment=" kernel parameter or because the
platform aligns resources to its page size, we previously emitted messages
like this:

pci 0000:00:00.0: Disabling memory decoding and releasing memory resources
pci 0000:00:00.0: disabling bridge mem windows

These messages don't convey any useful information, so remove them.

Fixes: 38274637699 ("powerpc/powernv: Override pcibios_default_alignment() to force PCI devices to be page aligned")
Signed-off-by: Desnes A. Nunes do Rosario <desnesn@linux.vnet.ibm.com>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>

authored by

Desnes A. Nunes do Rosario and committed by
Bjorn Helgaas
adf58458 1b30dfd3

-3
-1
drivers/pci/pci.c
··· 5628 5628 return; 5629 5629 } 5630 5630 5631 - pci_info(dev, "Disabling memory decoding and releasing memory resources\n"); 5632 5631 pci_read_config_word(dev, PCI_COMMAND, &command); 5633 5632 command &= ~PCI_COMMAND_MEMORY; 5634 5633 pci_write_config_word(dev, PCI_COMMAND, command);
-2
drivers/pci/setup-res.c
··· 168 168 169 169 void pci_disable_bridge_window(struct pci_dev *dev) 170 170 { 171 - pci_info(dev, "disabling bridge mem windows\n"); 172 - 173 171 /* MMIO Base/Limit */ 174 172 pci_write_config_dword(dev, PCI_MEMORY_BASE, 0x0000fff0); 175 173