Skip to content

Silent PCI realignment messages during boot

Desnes A. Nunes do Rosario linux-pci linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pci: Addition of PCI_DEV_FLAGS_QUIET_PCI_REALIGN attribute to the PCI subsystemdrivers/pci/pci.c drivers/pci/setup-res.c include/linux/pci.h+6 -27 replies
2/2powerpc/powernv: Tweak PCI_DEV_FLAGS_QUIET_PCI_REALIGN on/off during bootarch/powerpc/platforms/powernv/pci.c+14 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Silent PCI realignment messages during boot

This patchset introduces PCI_DEV_FLAGS_QUIET_PCI_REALIGN attribute in pci_dev_flags which informs the pci subsystem to suppress all realignment messages.

Powerpc has aligned all of its PCI resources to its PAGE_SIZE, and this feature can be easily used on any other arch through the __weak pcibios_default_alignment() interface.

However, since all PCI resources will be now realigned during boot, the following messages will not only flood the system logs, but can be inter- preted as a false positive for total PCI failure on the system.

[root@system user]# dmesg | grep -i disabling

[    0.692270] pci 0000:00:00.0: Disabling memory decoding and releasing memory resources
[    0.692324] pci 0000:00:00.0: disabling bridge mem windows
[    0.729134] pci 0001:00:00.0: Disabling memory decoding and releasing memory resources
[    0.737352] pci 0001:00:00.0: disabling bridge mem windows
[    0.776295] pci 0002:00:00.0: Disabling memory decoding and releasing memory resources
[    0.784509] pci 0002:00:00.0: disabling bridge mem windows

... and goes on for all PCI devices ...

Thus, this patchset provides a way for drivers to silent these messages if the PCI_DEV_FLAGS_QUIET_PCI_REALIGN is turned on. Moreover, it also tweaks this flag during boot on powerpc.

Fixes 38274637699 ("powerpc/powernv: Override pcibios_default_alignment() to force PCI devices to be page aligned")

Desnes A. Nunes do Rosario (2):
pci: Addition of PCI_DEV_FLAGS_QUIET_PCI_REALIGN attribute to the PCI
subsystem
powerpc/powernv: Tweak PCI_DEV_FLAGS_QUIET_PCI_REALIGN on/off during
boot

 arch/powerpc/platforms/powernv/pci.c | 14 ++++++++++++++
 drivers/pci/pci.c                    |  3 ++-
 drivers/pci/setup-res.c              |  3 ++-
 include/linux/pci.h                  |  2 ++
 4 files changed, 20 insertions(+), 2 deletions(-)
Signature · 1 line
2.14.3