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] [xen-unstable] [LINUX] Update pci-mmconfig patch to refe

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [LINUX] Update pci-mmconfig patch to refer to machine_e820 map on Xen.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Sep 2006 09:50:38 +0000
Delivery-date: Thu, 21 Sep 2006 02:51:25 -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
# Node ID e50872355390c03227064c8bb6c5dfb4e4d6d292
# Parent  1adaf06e8abcdb69ef8f537eebfdf2b7a9abf763
[LINUX] Update pci-mmconfig patch to refer to machine_e820 map on Xen.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 patches/linux-2.6.16.29/pci-mmconfig-fix-from-2.6.17.patch |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff -r 1adaf06e8abc -r e50872355390 
patches/linux-2.6.16.29/pci-mmconfig-fix-from-2.6.17.patch
--- a/patches/linux-2.6.16.29/pci-mmconfig-fix-from-2.6.17.patch        Thu Sep 
21 09:37:03 2006 +0100
+++ b/patches/linux-2.6.16.29/pci-mmconfig-fix-from-2.6.17.patch        Thu Sep 
21 09:37:28 2006 +0100
@@ -1,6 +1,6 @@ diff -pruN ../orig-linux-2.6.16.29/arch/
 diff -pruN ../orig-linux-2.6.16.29/arch/i386/pci/mmconfig.c 
./arch/i386/pci/mmconfig.c
 --- ../orig-linux-2.6.16.29/arch/i386/pci/mmconfig.c   2006-09-12 
19:02:10.000000000 +0100
-+++ ./arch/i386/pci/mmconfig.c 2006-09-20 11:55:32.000000000 +0100
++++ ./arch/i386/pci/mmconfig.c 2006-09-21 09:35:27.000000000 +0100
 @@ -12,14 +12,22 @@
  #include <linux/pci.h>
  #include <linux/init.h>
@@ -48,7 +48,7 @@ diff -pruN ../orig-linux-2.6.16.29/arch/
  
        base = get_base_addr(seg, bus, devfn);
        if (!base)
-@@ -146,30 +156,62 @@ static struct pci_raw_ops pci_mmcfg = {
+@@ -146,30 +156,66 @@ static struct pci_raw_ops pci_mmcfg = {
     Normally this can be expressed in the MCFG by not listing them
     and assigning suitable _SEGs, but this isn't implemented in some BIOS.
     Instead try to discover all devices on bus 0 that are unreachable using MM
@@ -92,6 +92,10 @@ diff -pruN ../orig-linux-2.6.16.29/arch/
 -              pci_conf1_read(0, 0, PCI_DEVFN(i, 0), 0, 4, &val1);
 -              if (val1 == 0xffffffff)
 +/* NB. Ripped from arch/i386/kernel/setup.c for this Xen bugfix patch. */
++#ifdef CONFIG_XEN
++extern struct e820map machine_e820;
++#define e820 machine_e820
++#endif
 +static int __init
 +e820_all_mapped(unsigned long s, unsigned long e, unsigned type)
 +{
@@ -128,7 +132,7 @@ diff -pruN ../orig-linux-2.6.16.29/arch/
  }
  
  static int __init pci_mmcfg_init(void)
-@@ -183,6 +225,15 @@ static int __init pci_mmcfg_init(void)
+@@ -183,6 +229,15 @@ static int __init pci_mmcfg_init(void)
            (pci_mmcfg_config[0].base_address == 0))
                goto out;
  
@@ -146,7 +150,7 @@ diff -pruN ../orig-linux-2.6.16.29/arch/
        pci_probe = (pci_probe & ~PCI_PROBE_MASK) | PCI_PROBE_MMCONF;
 diff -pruN ../orig-linux-2.6.16.29/arch/x86_64/pci/mmconfig.c 
./arch/x86_64/pci/mmconfig.c
 --- ../orig-linux-2.6.16.29/arch/x86_64/pci/mmconfig.c 2006-09-12 
19:02:10.000000000 +0100
-+++ ./arch/x86_64/pci/mmconfig.c       2006-09-20 11:55:41.000000000 +0100
++++ ./arch/x86_64/pci/mmconfig.c       2006-09-21 09:35:40.000000000 +0100
 @@ -9,11 +9,19 @@
  #include <linux/init.h>
  #include <linux/acpi.h>
@@ -191,7 +195,7 @@ diff -pruN ../orig-linux-2.6.16.29/arch/
  
        addr = pci_dev_base(seg, bus, devfn);
        if (!addr)
-@@ -129,23 +140,52 @@ static struct pci_raw_ops pci_mmcfg = {
+@@ -129,23 +140,56 @@ static struct pci_raw_ops pci_mmcfg = {
     Normally this can be expressed in the MCFG by not listing them
     and assigning suitable _SEGs, but this isn't implemented in some BIOS.
     Instead try to discover all devices on bus 0 that are unreachable using MM
@@ -228,6 +232,10 @@ diff -pruN ../orig-linux-2.6.16.29/arch/
 -              pci_conf1_read(0, 0, PCI_DEVFN(i,0), 0, 4, &val1);
 -              if (val1 == 0xffffffff)
 +/* NB. Ripped from arch/x86_64/kernel/e820.c for this Xen bugfix patch. */
++#ifdef CONFIG_XEN
++extern struct e820map machine_e820;
++#define e820 machine_e820
++#endif
 +static int __init e820_all_mapped(unsigned long start, unsigned long end, 
unsigned type)
 +{
 +      int i;
@@ -256,7 +264,7 @@ diff -pruN ../orig-linux-2.6.16.29/arch/
  }
  
  static int __init pci_mmcfg_init(void)
-@@ -161,6 +201,15 @@ static int __init pci_mmcfg_init(void)
+@@ -161,6 +205,15 @@ static int __init pci_mmcfg_init(void)
            (pci_mmcfg_config[0].base_address == 0))
                return 0;
  
@@ -272,7 +280,7 @@ diff -pruN ../orig-linux-2.6.16.29/arch/
        /* RED-PEN i386 doesn't do _nocache right now */
        pci_mmcfg_virt = kmalloc(sizeof(*pci_mmcfg_virt) * 
pci_mmcfg_config_num, GFP_KERNEL);
        if (pci_mmcfg_virt == NULL) {
-@@ -169,7 +218,8 @@ static int __init pci_mmcfg_init(void)
+@@ -169,7 +222,8 @@ static int __init pci_mmcfg_init(void)
        }
        for (i = 0; i < pci_mmcfg_config_num; ++i) {
                pci_mmcfg_virt[i].cfg = &pci_mmcfg_config[i];

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [LINUX] Update pci-mmconfig patch to refer to machine_e820 map on Xen., Xen patchbot-unstable <=