android_kernel_google_msm/drivers/xen
Konrad Rzeszutek Wilk 40e0c1e9b6 xen/pciback: Don't disable a PCI device that is already disabled.
commit bdc5c1812c upstream.

While shuting down a HVM guest with pci devices passed through we
get this:

pciback 0000:04:00.0: restoring config space at offset 0x4 (was 0x100000, writing 0x100002)
------------[ cut here ]------------
WARNING: at drivers/pci/pci.c:1397 pci_disable_device+0x88/0xa0()
Hardware name: MS-7640
Device pciback
disabling already-disabled device
Modules linked in:
Pid: 53, comm: xenwatch Not tainted 3.9.0-rc1-20130304a+ #1
Call Trace:
 [<ffffffff8106994a>] warn_slowpath_common+0x7a/0xc0
 [<ffffffff81069a31>] warn_slowpath_fmt+0x41/0x50
 [<ffffffff813cf288>] pci_disable_device+0x88/0xa0
 [<ffffffff814554a7>] xen_pcibk_reset_device+0x37/0xd0
 [<ffffffff81454b6f>] ? pcistub_put_pci_dev+0x6f/0x120
 [<ffffffff81454b8d>] pcistub_put_pci_dev+0x8d/0x120
 [<ffffffff814582a9>] __xen_pcibk_release_devices+0x59/0xa0

This fixes the bug.

Reported-and-Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-20 13:04:57 -07:00
..
xen-pciback xen/pciback: Don't disable a PCI device that is already disabled. 2013-03-20 13:04:57 -07:00
xenbus xen/xenbus: Add quirk to deal with misconfigured backends. 2012-04-19 12:45:01 -04:00
xenfs
balloon.c
biomerge.c
cpu_hotplug.c
events.c xen/events: fix RCU warning, or Call idle notifier after irq_enter() 2012-11-26 11:37:47 -08:00
evtchn.c xen: close evtchn port if binding to irq fails 2013-02-28 06:59:00 -08:00
features.c
gntalloc.c
gntdev.c xen/gntdev: don't leak memory from IOCTL_GNTDEV_MAP_GRANT_REF 2012-11-17 13:15:54 -08:00
grant-table.c xen/grant-table: correctly initialize grant table version 1 2013-01-21 11:45:25 -08:00
Kconfig xen/Kconfig: fix Kconfig layout 2012-05-07 12:26:28 -04:00
Makefile xen/acpi-processor: C and P-state driver that uploads said data to hypervisor. 2012-03-14 12:35:42 -04:00
manage.c xen/resume: Fix compile warnings. 2012-04-19 15:12:49 -04:00
pci.c
platform-pci.c xen: initialize platform-pci even if xen_emul_unplug=never 2012-03-22 11:37:11 -04:00
privcmd.c
privcmd.h
swiotlb-xen.c xen: Use correct masking in xen_swiotlb_alloc_coherent. 2012-09-14 10:00:33 -07:00
sys-hypervisor.c xen: constify all instances of "struct attribute_group" 2012-03-14 12:34:19 -04:00
tmem.c One tiny feature that accidentally got lost in the initial git pull: 2012-03-24 12:20:25 -07:00
xen-acpi-processor.c xen/acpi: Workaround broken BIOSes exporting non-existing C-states. 2012-04-26 22:07:28 -04:00
xen-balloon.c Features: 2012-03-22 20:16:14 -07:00
xen-selfballoon.c xen: constify all instances of "struct attribute_group" 2012-03-14 12:34:19 -04:00
xencomm.c