diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-03 17:22:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-03 17:22:53 -0500 |
commit | 8e8b180a5f1b237345f6e2d960bcceb8b6bc3793 (patch) | |
tree | 9f10c874b0d13cc4929ff2b68c65ae2d48d4fb9d /arch/x86 | |
parent | 56a79b7b021bf1b08334e63c2c14b280e2dbf47a (diff) | |
parent | 45e27161c62216c163880d7aed751cb55a65c8e9 (diff) |
Merge tag 'stable/for-linus-3.9-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
Pull Xen bug-fixes from Konrad Rzeszutek Wilk:
- Update the Xen ACPI memory and CPU hotplug locking mechanism.
- Fix PAT issues wherein various applications would not start
- Fix handling of multiple MSI as AHCI now does it.
- Fix ARM compile failures.
* tag 'stable/for-linus-3.9-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
xenbus: fix compile failure on ARM with Xen enabled
xen/pci: We don't do multiple MSI's.
xen/pat: Disable PAT using pat_enabled value.
xen/acpi: xen cpu hotplug minor updates
xen/acpi: xen memory hotplug minor updates
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/pci/xen.c | 9 | ||||
-rw-r--r-- | arch/x86/xen/enlighten.c | 10 |
2 files changed, 18 insertions, 1 deletions
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index 56ab74989cf1..94e76620460f 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c | |||
@@ -162,6 +162,9 @@ static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) | |||
162 | struct msi_desc *msidesc; | 162 | struct msi_desc *msidesc; |
163 | int *v; | 163 | int *v; |
164 | 164 | ||
165 | if (type == PCI_CAP_ID_MSI && nvec > 1) | ||
166 | return 1; | ||
167 | |||
165 | v = kzalloc(sizeof(int) * max(1, nvec), GFP_KERNEL); | 168 | v = kzalloc(sizeof(int) * max(1, nvec), GFP_KERNEL); |
166 | if (!v) | 169 | if (!v) |
167 | return -ENOMEM; | 170 | return -ENOMEM; |
@@ -220,6 +223,9 @@ static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) | |||
220 | struct msi_desc *msidesc; | 223 | struct msi_desc *msidesc; |
221 | struct msi_msg msg; | 224 | struct msi_msg msg; |
222 | 225 | ||
226 | if (type == PCI_CAP_ID_MSI && nvec > 1) | ||
227 | return 1; | ||
228 | |||
223 | list_for_each_entry(msidesc, &dev->msi_list, list) { | 229 | list_for_each_entry(msidesc, &dev->msi_list, list) { |
224 | __read_msi_msg(msidesc, &msg); | 230 | __read_msi_msg(msidesc, &msg); |
225 | pirq = MSI_ADDR_EXT_DEST_ID(msg.address_hi) | | 231 | pirq = MSI_ADDR_EXT_DEST_ID(msg.address_hi) | |
@@ -263,6 +269,9 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) | |||
263 | int ret = 0; | 269 | int ret = 0; |
264 | struct msi_desc *msidesc; | 270 | struct msi_desc *msidesc; |
265 | 271 | ||
272 | if (type == PCI_CAP_ID_MSI && nvec > 1) | ||
273 | return 1; | ||
274 | |||
266 | list_for_each_entry(msidesc, &dev->msi_list, list) { | 275 | list_for_each_entry(msidesc, &dev->msi_list, list) { |
267 | struct physdev_map_pirq map_irq; | 276 | struct physdev_map_pirq map_irq; |
268 | domid_t domid; | 277 | domid_t domid; |
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 39928d16be3b..c8e1c7b95c3b 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
@@ -67,6 +67,7 @@ | |||
67 | #include <asm/hypervisor.h> | 67 | #include <asm/hypervisor.h> |
68 | #include <asm/mwait.h> | 68 | #include <asm/mwait.h> |
69 | #include <asm/pci_x86.h> | 69 | #include <asm/pci_x86.h> |
70 | #include <asm/pat.h> | ||
70 | 71 | ||
71 | #ifdef CONFIG_ACPI | 72 | #ifdef CONFIG_ACPI |
72 | #include <linux/acpi.h> | 73 | #include <linux/acpi.h> |
@@ -1417,7 +1418,14 @@ asmlinkage void __init xen_start_kernel(void) | |||
1417 | */ | 1418 | */ |
1418 | acpi_numa = -1; | 1419 | acpi_numa = -1; |
1419 | #endif | 1420 | #endif |
1420 | 1421 | #ifdef CONFIG_X86_PAT | |
1422 | /* | ||
1423 | * For right now disable the PAT. We should remove this once | ||
1424 | * git commit 8eaffa67b43e99ae581622c5133e20b0f48bcef1 | ||
1425 | * (xen/pat: Disable PAT support for now) is reverted. | ||
1426 | */ | ||
1427 | pat_enabled = 0; | ||
1428 | #endif | ||
1421 | /* Don't do the full vcpu_info placement stuff until we have a | 1429 | /* Don't do the full vcpu_info placement stuff until we have a |
1422 | possible map and a non-dummy shared_info. */ | 1430 | possible map and a non-dummy shared_info. */ |
1423 | per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0]; | 1431 | per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0]; |