* [PATCH] pci/dmar: remove the noisy print out about unmapping
@ 2009-06-28 21:08 Yinghai Lu
2009-06-28 21:11 ` [PATCH] pci/dmar: don't complain IOPAIC is not supported Yinghai Lu
2009-06-28 21:12 ` [PATCH] pci/dmar: print out iommu seq_id Yinghai Lu
0 siblings, 2 replies; 3+ messages in thread
From: Yinghai Lu @ 2009-06-28 21:08 UTC (permalink / raw)
To: Suresh Siddha, David Woodhouse, Jesse Barnes, Ingo Molnar
Cc: linux-kernel@vger.kernel.org, linux-pci
it seems this one should be removed.
because map page does have this annonyed print out.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
---
drivers/pci/intel-iommu.c | 3 ---
1 file changed, 3 deletions(-)
Index: linux-2.6/drivers/pci/intel-iommu.c
===================================================================
--- linux-2.6.orig/drivers/pci/intel-iommu.c
+++ linux-2.6/drivers/pci/intel-iommu.c
@@ -2633,9 +2633,6 @@ static void intel_unmap_page(struct devi
start_addr = iova->pfn_lo << PAGE_SHIFT;
size = aligned_size((u64)dev_addr, size);
- pr_debug("Device %s unmapping: %zx@%llx\n",
- pci_name(pdev), size, (unsigned long long)start_addr);
-
/* clear the whole page */
dma_pte_clear_range(domain, start_addr, start_addr + size);
/* free page tables */
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH] pci/dmar: don't complain IOPAIC is not supported 2009-06-28 21:08 [PATCH] pci/dmar: remove the noisy print out about unmapping Yinghai Lu @ 2009-06-28 21:11 ` Yinghai Lu 2009-06-28 21:12 ` [PATCH] pci/dmar: print out iommu seq_id Yinghai Lu 1 sibling, 0 replies; 3+ messages in thread From: Yinghai Lu @ 2009-06-28 21:11 UTC (permalink / raw) To: Suresh Siddha, David Woodhouse, Jesse Barnes, Ingo Molnar Cc: linux-kernel@vger.kernel.org, linux-pci INTR_REMAP handle that type [Impact: cleanup] Signed-off-by: Yinghai Lu <yinghai@kernel.org> --- drivers/pci/dmar.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) Index: linux-2.6/drivers/pci/dmar.c =================================================================== --- linux-2.6.orig/drivers/pci/dmar.c +++ linux-2.6/drivers/pci/dmar.c @@ -129,9 +129,13 @@ static int __init dmar_parse_dev_scope(v if (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT || scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE) (*cnt)++; - else - printk(KERN_WARNING PREFIX - "Unsupported device scope\n"); + else { +#ifdef CONFIG_INTR_REMAP + if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_IOAPIC) +#endif + printk(KERN_WARNING PREFIX + "Unsupported device scope\n"); + } start += scope->length; } if (*cnt == 0) ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] pci/dmar: print out iommu seq_id 2009-06-28 21:08 [PATCH] pci/dmar: remove the noisy print out about unmapping Yinghai Lu 2009-06-28 21:11 ` [PATCH] pci/dmar: don't complain IOPAIC is not supported Yinghai Lu @ 2009-06-28 21:12 ` Yinghai Lu 1 sibling, 0 replies; 3+ messages in thread From: Yinghai Lu @ 2009-06-28 21:12 UTC (permalink / raw) To: Suresh Siddha, David Woodhouse, Jesse Barnes, Ingo Molnar Cc: linux-kernel@vger.kernel.org, linux-pci more info on multi iommu system. Signed-off-by: Yinghai Lu <yinghai@kernel.org> --- drivers/pci/dmar.c | 3 ++- drivers/pci/intel-iommu.c | 9 ++++++--- drivers/pci/intr_remapping.c | 6 +++--- 3 files changed, 11 insertions(+), 7 deletions(-) Index: linux-2.6/drivers/pci/dmar.c =================================================================== --- linux-2.6.orig/drivers/pci/dmar.c +++ linux-2.6/drivers/pci/dmar.c @@ -669,7 +669,8 @@ int alloc_iommu(struct dmar_drhd_unit *d } ver = readl(iommu->reg + DMAR_VER_REG); - pr_debug("IOMMU %llx: ver %d:%d cap %llx ecap %llx\n", + pr_debug("IOMMU %d: reg_base_addr %llx ver %d:%d cap %llx ecap %llx\n", + iommu->seq_id, (unsigned long long)drhd->reg_base_addr, DMAR_VER_MAJOR(ver), DMAR_VER_MINOR(ver), (unsigned long long)iommu->cap, Index: linux-2.6/drivers/pci/intel-iommu.c =================================================================== --- linux-2.6.orig/drivers/pci/intel-iommu.c +++ linux-2.6/drivers/pci/intel-iommu.c @@ -1117,7 +1117,8 @@ static int iommu_init_domains(struct int unsigned long nlongs; ndomains = cap_ndoms(iommu->cap); - pr_debug("Number of Domains supportd <%ld>\n", ndomains); + pr_debug("IOMMU %d: Number of Domains supportd <%ld>\n", iommu->seq_id, + ndomains); nlongs = BITS_TO_LONGS(ndomains); /* TBD: there might be 64K domains, @@ -2230,14 +2231,16 @@ int __init init_dmars(void) */ iommu->flush.flush_context = __iommu_flush_context; iommu->flush.flush_iotlb = __iommu_flush_iotlb; - printk(KERN_INFO "IOMMU 0x%Lx: using Register based " + printk(KERN_INFO "IOMMU %d 0x%Lx: using Register based " "invalidation\n", + iommu->seq_id, (unsigned long long)drhd->reg_base_addr); } else { iommu->flush.flush_context = qi_flush_context; iommu->flush.flush_iotlb = qi_flush_iotlb; - printk(KERN_INFO "IOMMU 0x%Lx: using Queued " + printk(KERN_INFO "IOMMU %d 0x%Lx: using Queued " "invalidation\n", + iommu->seq_id, (unsigned long long)drhd->reg_base_addr); } } Index: linux-2.6/drivers/pci/intr_remapping.c =================================================================== --- linux-2.6.orig/drivers/pci/intr_remapping.c +++ linux-2.6/drivers/pci/intr_remapping.c @@ -760,9 +760,9 @@ static int ir_parse_ioapic_scope(struct return -1; } - printk(KERN_INFO "IOAPIC id %d under DRHD base" - " 0x%Lx\n", scope->enumeration_id, - drhd->address); + printk(KERN_INFO "IOAPIC id %d under DRHD base " + " 0x%Lx IOMMU %d\n", scope->enumeration_id, + drhd->address, iommu->seq_id); ir_parse_one_ioapic_scope(scope, iommu); } ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-28 21:12 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-06-28 21:08 [PATCH] pci/dmar: remove the noisy print out about unmapping Yinghai Lu 2009-06-28 21:11 ` [PATCH] pci/dmar: don't complain IOPAIC is not supported Yinghai Lu 2009-06-28 21:12 ` [PATCH] pci/dmar: print out iommu seq_id Yinghai Lu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox