[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] VT-d: remove debug prints and turn on qinval read/write drains



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245931604 -3600
# Node ID eb82fc994ab27a55adab5d42e1b5f5870d0aac09
# Parent  d9890e67d2b77b34564e1fd49fd5a8603533381d
VT-d: remove debug prints and turn on qinval read/write drains

This cleanup patch removes debug prints and turn on read and write
drains for VT-d queue invalidation if HW supports them.

Signed-off-by: Allen Kay <allen.m.kay@xxxxxxxxx>
---
 xen/arch/x86/x86_64/mmconfig_64.c    |   10 ----------
 xen/drivers/passthrough/vtd/qinval.c |    4 ++--
 2 files changed, 2 insertions(+), 12 deletions(-)

diff -r d9890e67d2b7 -r eb82fc994ab2 xen/arch/x86/x86_64/mmconfig_64.c
--- a/xen/arch/x86/x86_64/mmconfig_64.c Thu Jun 25 13:05:10 2009 +0100
+++ b/xen/arch/x86/x86_64/mmconfig_64.c Thu Jun 25 13:06:44 2009 +0100
@@ -114,24 +114,14 @@ static void __iomem * __init mcfg_iorema
     unsigned long mfn;
     unsigned long size, nr_mfn;
 
-    printk("amk_mcfg_ioremap: PCI_MCFG_VIRT_START %lx\n", 
(u64)PCI_MCFG_VIRT_START); 
-    printk("amk_mcfg_ioremap: start_bus %x end_bus %x\n",
-               cfg->start_bus_number, cfg->end_bus_number);
-
     virt = PCI_MCFG_VIRT_START + (cfg->pci_segment * (1 << 22)) +
                (cfg->start_bus_number * (1 << 20));
     mfn = cfg->address >> PAGE_SHIFT;
         size = (cfg->end_bus_number - cfg->start_bus_number) << 20;
         nr_mfn = size >> PAGE_SHIFT;
 
-    printk("amk_mcfg_ioremap: virt %lx mfn = %lx size %lx\n", virt, mfn, size);
-
     map_pages_to_xen(virt, mfn, nr_mfn, PAGE_HYPERVISOR_NOCACHE);
     addr = (void __iomem *) virt;
-
-    printk("amk_mcfg_ioremap: PCI_MCFG_VIRT_START %lx\n",
-        (u64)PCI_MCFG_VIRT_START); 
-    printk("amk_mcfg_ioremap: virt  %lx size %lx\n", virt, size);
 
     return addr;
 }
diff -r d9890e67d2b7 -r eb82fc994ab2 xen/drivers/passthrough/vtd/qinval.c
--- a/xen/drivers/passthrough/vtd/qinval.c      Thu Jun 25 13:05:10 2009 +0100
+++ b/xen/drivers/passthrough/vtd/qinval.c      Thu Jun 25 13:06:44 2009 +0100
@@ -120,8 +120,8 @@ static int gen_iotlb_inv_dsc(struct iomm
     qinval_entry = &qinval_entries[index];
     qinval_entry->q.iotlb_inv_dsc.lo.type = TYPE_INVAL_IOTLB;
     qinval_entry->q.iotlb_inv_dsc.lo.granu = granu;
-    qinval_entry->q.iotlb_inv_dsc.lo.dr = 0;
-    qinval_entry->q.iotlb_inv_dsc.lo.dw = 0;
+    qinval_entry->q.iotlb_inv_dsc.lo.dr = dr;
+    qinval_entry->q.iotlb_inv_dsc.lo.dw = dw;
     qinval_entry->q.iotlb_inv_dsc.lo.res_1 = 0;
     qinval_entry->q.iotlb_inv_dsc.lo.did = did;
     qinval_entry->q.iotlb_inv_dsc.lo.res_2 = 0;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.