ia64/xen-unstable

changeset 19837:eb82fc994ab2

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@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:06:44 2009 +0100 (2009-06-25)
parents d9890e67d2b7
children 95f051cb70b4
files xen/arch/x86/x86_64/mmconfig_64.c xen/drivers/passthrough/vtd/qinval.c
line diff
     1.1 --- a/xen/arch/x86/x86_64/mmconfig_64.c	Thu Jun 25 13:05:10 2009 +0100
     1.2 +++ b/xen/arch/x86/x86_64/mmconfig_64.c	Thu Jun 25 13:06:44 2009 +0100
     1.3 @@ -114,25 +114,15 @@ static void __iomem * __init mcfg_iorema
     1.4      unsigned long mfn;
     1.5      unsigned long size, nr_mfn;
     1.6  
     1.7 -    printk("amk_mcfg_ioremap: PCI_MCFG_VIRT_START %lx\n", (u64)PCI_MCFG_VIRT_START); 
     1.8 -    printk("amk_mcfg_ioremap: start_bus %x end_bus %x\n",
     1.9 -               cfg->start_bus_number, cfg->end_bus_number);
    1.10 -
    1.11      virt = PCI_MCFG_VIRT_START + (cfg->pci_segment * (1 << 22)) +
    1.12                 (cfg->start_bus_number * (1 << 20));
    1.13      mfn = cfg->address >> PAGE_SHIFT;
    1.14          size = (cfg->end_bus_number - cfg->start_bus_number) << 20;
    1.15          nr_mfn = size >> PAGE_SHIFT;
    1.16  
    1.17 -    printk("amk_mcfg_ioremap: virt %lx mfn = %lx size %lx\n", virt, mfn, size);
    1.18 -
    1.19      map_pages_to_xen(virt, mfn, nr_mfn, PAGE_HYPERVISOR_NOCACHE);
    1.20      addr = (void __iomem *) virt;
    1.21  
    1.22 -    printk("amk_mcfg_ioremap: PCI_MCFG_VIRT_START %lx\n",
    1.23 -        (u64)PCI_MCFG_VIRT_START); 
    1.24 -    printk("amk_mcfg_ioremap: virt  %lx size %lx\n", virt, size);
    1.25 -
    1.26      return addr;
    1.27  }
    1.28  
     2.1 --- a/xen/drivers/passthrough/vtd/qinval.c	Thu Jun 25 13:05:10 2009 +0100
     2.2 +++ b/xen/drivers/passthrough/vtd/qinval.c	Thu Jun 25 13:06:44 2009 +0100
     2.3 @@ -120,8 +120,8 @@ static int gen_iotlb_inv_dsc(struct iomm
     2.4      qinval_entry = &qinval_entries[index];
     2.5      qinval_entry->q.iotlb_inv_dsc.lo.type = TYPE_INVAL_IOTLB;
     2.6      qinval_entry->q.iotlb_inv_dsc.lo.granu = granu;
     2.7 -    qinval_entry->q.iotlb_inv_dsc.lo.dr = 0;
     2.8 -    qinval_entry->q.iotlb_inv_dsc.lo.dw = 0;
     2.9 +    qinval_entry->q.iotlb_inv_dsc.lo.dr = dr;
    2.10 +    qinval_entry->q.iotlb_inv_dsc.lo.dw = dw;
    2.11      qinval_entry->q.iotlb_inv_dsc.lo.res_1 = 0;
    2.12      qinval_entry->q.iotlb_inv_dsc.lo.did = did;
    2.13      qinval_entry->q.iotlb_inv_dsc.lo.res_2 = 0;