WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] Merge with ia64 xen tree.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] Merge with ia64 xen tree.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 27 Jul 2007 02:28:44 -0700
Delivery-date: Fri, 27 Jul 2007 02:26:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1184230389 -3600
# Node ID 5557a81f0376eacab33e2783012f698b5ff54d74
# Parent  86ac3059ab675a1c80ab02be513afb57b5e63efa
# Parent  9942e31a3ec5dae997a43c1bb43d59a238e98b61
Merge with ia64 xen tree.
---
 arch/i386/kernel/swiotlb.c              |    2 +-
 arch/i386/mm/ioremap-xen.c              |    2 +-
 drivers/xen/pciback/conf_space_header.c |   18 ++++++++++++++++--
 drivers/xen/xenbus/xenbus_probe.c       |    2 ++
 4 files changed, 20 insertions(+), 4 deletions(-)

diff -r 86ac3059ab67 -r 5557a81f0376 arch/i386/kernel/swiotlb.c
--- a/arch/i386/kernel/swiotlb.c        Tue Jul 10 11:18:07 2007 -0600
+++ b/arch/i386/kernel/swiotlb.c        Thu Jul 12 09:53:09 2007 +0100
@@ -389,7 +389,7 @@ map_single(struct device *hwdev, struct 
        return dma_addr;
 }
 
-struct phys_addr dma_addr_to_phys_addr(char *dma_addr)
+static struct phys_addr dma_addr_to_phys_addr(char *dma_addr)
 {
        int index = (dma_addr - iotlb_virt_start) >> IO_TLB_SHIFT;
        struct phys_addr buffer = io_tlb_orig_addr[index];
diff -r 86ac3059ab67 -r 5557a81f0376 arch/i386/mm/ioremap-xen.c
--- a/arch/i386/mm/ioremap-xen.c        Tue Jul 10 11:18:07 2007 -0600
+++ b/arch/i386/mm/ioremap-xen.c        Thu Jul 12 09:53:09 2007 +0100
@@ -74,7 +74,7 @@ static int __direct_remap_pfn_range(stru
 
                /*
                 * Fill in the machine address: PTE ptr is done later by
-                * __direct_remap_area_pages(). 
+                * apply_to_page_range(). 
                 */
                v->val = __pte_val(pfn_pte_ma(mfn, prot));
 
diff -r 86ac3059ab67 -r 5557a81f0376 drivers/xen/pciback/conf_space_header.c
--- a/drivers/xen/pciback/conf_space_header.c   Tue Jul 10 11:18:07 2007 -0600
+++ b/drivers/xen/pciback/conf_space_header.c   Thu Jul 12 09:53:09 2007 +0100
@@ -75,8 +75,15 @@ static int rom_write(struct pci_dev *dev
         */
        if (value == ~PCI_ROM_ADDRESS_ENABLE)
                bar->which = 1;
-       else
+       else {
+               u32 tmpval;
+               pci_read_config_dword(dev, offset, &tmpval);
+               if (tmpval != bar->val && value == bar->val) {
+                       /* Allow restoration of bar value. */
+                       pci_write_config_dword(dev, offset, bar->val);
+               }
                bar->which = 0;
+       }
 
        /* Do we need to support enabling/disabling the rom address here? */
 
@@ -102,8 +109,15 @@ static int bar_write(struct pci_dev *dev
         */
        if (value == ~0)
                bar->which = 1;
-       else
+       else {
+               u32 tmpval;
+               pci_read_config_dword(dev, offset, &tmpval);
+               if (tmpval != bar->val && value == bar->val) {
+                       /* Allow restoration of bar value. */
+                       pci_write_config_dword(dev, offset, bar->val);
+               }
                bar->which = 0;
+       }
 
        return 0;
 }
diff -r 86ac3059ab67 -r 5557a81f0376 drivers/xen/xenbus/xenbus_probe.c
--- a/drivers/xen/xenbus/xenbus_probe.c Tue Jul 10 11:18:07 2007 -0600
+++ b/drivers/xen/xenbus/xenbus_probe.c Thu Jul 12 09:53:09 2007 +0100
@@ -210,6 +210,7 @@ static void otherend_changed(struct xenb
        DPRINTK("state is %d (%s), %s, %s", state, xenbus_strstate(state),
                dev->otherend_watch.node, vec[XS_WATCH_PATH]);
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
        /*
         * Ignore xenbus transitions during shutdown. This prevents us doing
         * work that can fail e.g., when the rootfs is gone.
@@ -223,6 +224,7 @@ static void otherend_changed(struct xenb
                        xenbus_frontend_closed(dev);
                return;
        }
+#endif
 
        if (drv->otherend_changed)
                drv->otherend_changed(dev, state);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] Merge with ia64 xen tree., Xen patchbot-linux-2.6.18-xen <=