aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu.c
diff options
context:
space:
mode:
authorShuah Khan <shuah.khan@hp.com>2013-02-27 19:07:19 -0500
committerBjorn Helgaas <bhelgaas@google.com>2013-03-26 18:21:54 -0400
commitc5081cd7a2b3db31a72b4c697321cf0425dbc2f1 (patch)
treec60ea99b79cb5064b9d4f88341795c41d2cb2a15 /drivers/iommu/amd_iommu.c
parentfff0ee3640d55c1df4e9da6084b20e2b3345abec (diff)
iommu/amd: Remove local PCI_BUS() define and use PCI_BUS_NUM() from PCI
Change to remove local PCI_BUS() define and use the new PCI_BUS_NUM() interface from PCI. Signed-off-by: Shuah Khan <shuah.khan@hp.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r--drivers/iommu/amd_iommu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 98f555dafb55..2a50fbe31c7b 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -649,26 +649,26 @@ retry:
649 case EVENT_TYPE_ILL_DEV: 649 case EVENT_TYPE_ILL_DEV:
650 printk("ILLEGAL_DEV_TABLE_ENTRY device=%02x:%02x.%x " 650 printk("ILLEGAL_DEV_TABLE_ENTRY device=%02x:%02x.%x "
651 "address=0x%016llx flags=0x%04x]\n", 651 "address=0x%016llx flags=0x%04x]\n",
652 PCI_BUS(devid), PCI_SLOT(devid), PCI_FUNC(devid), 652 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid),
653 address, flags); 653 address, flags);
654 dump_dte_entry(devid); 654 dump_dte_entry(devid);
655 break; 655 break;
656 case EVENT_TYPE_IO_FAULT: 656 case EVENT_TYPE_IO_FAULT:
657 printk("IO_PAGE_FAULT device=%02x:%02x.%x " 657 printk("IO_PAGE_FAULT device=%02x:%02x.%x "
658 "domain=0x%04x address=0x%016llx flags=0x%04x]\n", 658 "domain=0x%04x address=0x%016llx flags=0x%04x]\n",
659 PCI_BUS(devid), PCI_SLOT(devid), PCI_FUNC(devid), 659 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid),
660 domid, address, flags); 660 domid, address, flags);
661 break; 661 break;
662 case EVENT_TYPE_DEV_TAB_ERR: 662 case EVENT_TYPE_DEV_TAB_ERR:
663 printk("DEV_TAB_HARDWARE_ERROR device=%02x:%02x.%x " 663 printk("DEV_TAB_HARDWARE_ERROR device=%02x:%02x.%x "
664 "address=0x%016llx flags=0x%04x]\n", 664 "address=0x%016llx flags=0x%04x]\n",
665 PCI_BUS(devid), PCI_SLOT(devid), PCI_FUNC(devid), 665 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid),
666 address, flags); 666 address, flags);
667 break; 667 break;
668 case EVENT_TYPE_PAGE_TAB_ERR: 668 case EVENT_TYPE_PAGE_TAB_ERR:
669 printk("PAGE_TAB_HARDWARE_ERROR device=%02x:%02x.%x " 669 printk("PAGE_TAB_HARDWARE_ERROR device=%02x:%02x.%x "
670 "domain=0x%04x address=0x%016llx flags=0x%04x]\n", 670 "domain=0x%04x address=0x%016llx flags=0x%04x]\n",
671 PCI_BUS(devid), PCI_SLOT(devid), PCI_FUNC(devid), 671 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid),
672 domid, address, flags); 672 domid, address, flags);
673 break; 673 break;
674 case EVENT_TYPE_ILL_CMD: 674 case EVENT_TYPE_ILL_CMD:
@@ -682,13 +682,13 @@ retry:
682 case EVENT_TYPE_IOTLB_INV_TO: 682 case EVENT_TYPE_IOTLB_INV_TO:
683 printk("IOTLB_INV_TIMEOUT device=%02x:%02x.%x " 683 printk("IOTLB_INV_TIMEOUT device=%02x:%02x.%x "
684 "address=0x%016llx]\n", 684 "address=0x%016llx]\n",
685 PCI_BUS(devid), PCI_SLOT(devid), PCI_FUNC(devid), 685 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid),
686 address); 686 address);
687 break; 687 break;
688 case EVENT_TYPE_INV_DEV_REQ: 688 case EVENT_TYPE_INV_DEV_REQ:
689 printk("INVALID_DEVICE_REQUEST device=%02x:%02x.%x " 689 printk("INVALID_DEVICE_REQUEST device=%02x:%02x.%x "
690 "address=0x%016llx flags=0x%04x]\n", 690 "address=0x%016llx flags=0x%04x]\n",
691 PCI_BUS(devid), PCI_SLOT(devid), PCI_FUNC(devid), 691 PCI_BUS_NUM(devid), PCI_SLOT(devid), PCI_FUNC(devid),
692 address, flags); 692 address, flags);
693 break; 693 break;
694 default: 694 default: