]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iommu: Use dev_printk() when possible
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 8 Feb 2019 22:05:45 +0000 (16:05 -0600)
committerJoerg Roedel <jroedel@suse.de>
Mon, 11 Feb 2019 11:02:14 +0000 (12:02 +0100)
commit780da9e4f5bf35d348b290f0f97de9b55670cb5b
tree3a5761d5e20ba88df76f7f4cc03a20de20b543da
parentb77cf11f094136a9d7d0ee6a56cf49db1f412871
iommu: Use dev_printk() when possible

Use dev_printk() when possible so the IOMMU messages are more consistent
with other messages related to the device.

E.g., I think these messages related to surprise hotplug:

  pciehp 0000:80:10.0:pcie004: Slot(36): Link Down
  iommu: Removing device 0000:87:00.0 from group 12
  pciehp 0000:80:10.0:pcie004: Slot(36): Card present
  pcieport 0000:80:10.0: Data Link Layer Link Active not set in 1000 msec

would be easier to read as these (also requires some PCI changes not
included here):

  pci 0000:80:10.0: Slot(36): Link Down
  pci 0000:87:00.0: Removing from iommu group 12
  pci 0000:80:10.0: Slot(36): Card present
  pci 0000:80:10.0: Data Link Layer Link Active not set in 1000 msec

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c