1. 06 Nov, 2009 5 commits
    • Isaku Yamahata's avatar
      ia64/xen: compilation fix · 5b5d9448
      Isaku Yamahata authored
      This patch fixes the following compilation error introduced by a PCI related
      features.
      
      The change set of 5dd1af9f84c79bedd589db89e71ca733f3bf0ebd moves some
      xen related definitions from the arch header file
      (x86/include/asm/xen/hypervisor.h) to the common header file
      (include/xen/xen.h).  So ia64/xen also follows it.
      
      In file included from linux-next/include/xen/grant_table.h:41,
                       from linux-next/drivers/block/xen-blkfront.c:48:
      linux-next/arch/ia64/include/asm/xen/hypervisor.h:43: error: nested redefinition of 'enum xen_domain_type'
      linux-next/arch/ia64/include/asm/xen/hypervisor.h:43: error: redeclaration of 'enum xen_domain_type'
      linux-next/arch/ia64/include/asm/xen/hypervisor.h:44: error: redeclaration of enumerator 'XEN_NATIVE'
      linux-next/include/xen/xen.h:5: error: previous definition of 'XEN_NATIVE' was here
      linux-next/arch/ia64/include/asm/xen/hypervisor.h:45: error: redeclaration of enumerator 'XEN_PV_DOMAIN'
      linux-next/include/xen/xen.h:6: error: previous definition of 'XEN_PV_DOMAIN' was here
      linux-next/arch/ia64/include/asm/xen/hypervisor.h:46: error: redeclaration of enumerator 'XEN_HVM_DOMAIN'
      linux-next/include/xen/xen.h:7: error: previous definition of 'XEN_HVM_DOMAIN' was here
      Signed-off-by: default avatarIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      5b5d9448
    • Kenji Kaneshige's avatar
      PCI hotplug: fix oshp evaluation · 9b536e0b
      Kenji Kaneshige authored
      If firmware doesn't grant over native hotplug control through ACPI
      _OSC method, we must not evaluate OSHP.
      Acked-by: default avatarAndrew Patterson <andrew.patterson@hp.com>
      Signed-off-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      9b536e0b
    • Andreas Herrmann's avatar
      PCI: derive nearby CPUs from device's instead of bus' NUMA information · e0cd5160
      Andreas Herrmann authored
      In case of AMD CPU northbridge functions this NUMA information might
      differ.  Here is an example from a 4-socket system.
      
      Currently Linux shows
      
        root@hagen:/sys/devices/pci0000:00/0000:00:1a.4# cat numa_node
        0
        root@hagen:/sys/devices/pci0000:00/0000:00:1a.4# cat local_cpu*
        0-3
        00000000,0000000f
      
      which is not correct for northbridge functions as the local CPUs
      are those of the same socket.
      
      With this patch and a quirk for AMD CPU NB functions Linux can
      do better and correctly show
      
        root@hagen:/sys/devices/pci0000:00/0000:00:1a.4# cat numa_node
        2
        root@hagen:/sys/devices/pci0000:00/0000:00:1a.4# cat local_cpu*
        8-11
        00000000,00000f00
      Signed-off-by: default avatarAndreas Herrmann <andreas.herrmann3@amd.com>
      Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      e0cd5160
    • Bjorn Helgaas's avatar
      x86/PCI: remove 64-bit division · ea7f1b6e
      Bjorn Helgaas authored
      The roundup() caused a build error (undefined reference to `__udivdi3').
      We're aligning to power-of-two boundaries, so it's simpler to just use
      ALIGN() anyway, which avoids the division.
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Acked-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      ea7f1b6e
    • Kenji Kaneshige's avatar
      PCI: cache PCIe capability offset · 0efea000
      Kenji Kaneshige authored
      There are a lot of codes that searches PCI express capability offset
      in the PCI configuration space using pci_find_capability(). Caching it
      in the struct pci_dev will reduce unncecessary search. This patch adds
      an additional 'pcie_cap' fields into struct pci_dev, which is
      initialized at pci device scan time (in set_pcie_port_type()).
      Signed-off-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
      0efea000
  2. 04 Nov, 2009 35 commits