diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-05-20 07:53:57 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-05-28 11:50:56 -0400 |
commit | 9c72041f719e2864d4208a89341c36b316dbf893 (patch) | |
tree | c60faf8467b7d788bac33d49c4af17d554db1209 /arch | |
parent | fefda117ddb324b872312f1f061230e627c9f5ee (diff) |
amd-iommu: add dump for iommus described in ivrs table
Add information about IOMMU devices described in the IVRS ACPI table to
the kernel log if amd_iommu_dump was specified on the kernel command
line.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/amd_iommu_init.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c index 57fb7a7cb6e8..28165902ae25 100644 --- a/arch/x86/kernel/amd_iommu_init.c +++ b/arch/x86/kernel/amd_iommu_init.c | |||
@@ -748,6 +748,15 @@ static int __init init_iommu_all(struct acpi_table_header *table) | |||
748 | h = (struct ivhd_header *)p; | 748 | h = (struct ivhd_header *)p; |
749 | switch (*p) { | 749 | switch (*p) { |
750 | case ACPI_IVHD_TYPE: | 750 | case ACPI_IVHD_TYPE: |
751 | |||
752 | DUMP_printk("IOMMU: device: %02x:%02x.%01x cap: %04x " | ||
753 | "seg: %d flags: %01x info %04x\n", | ||
754 | PCI_BUS(h->devid), PCI_SLOT(h->devid), | ||
755 | PCI_FUNC(h->devid), h->cap_ptr, | ||
756 | h->pci_seg, h->flags, h->info); | ||
757 | DUMP_printk(" mmio-addr: %016llx\n", | ||
758 | h->mmio_phys); | ||
759 | |||
751 | iommu = kzalloc(sizeof(struct amd_iommu), GFP_KERNEL); | 760 | iommu = kzalloc(sizeof(struct amd_iommu), GFP_KERNEL); |
752 | if (iommu == NULL) | 761 | if (iommu == NULL) |
753 | return -ENOMEM; | 762 | return -ENOMEM; |