|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 12/13] Remove usage of pci_restore_bars() as Linux ha
Originally this code was pulled from the upstream kernel, and stuck
in the linux-2.6-sparse tree. At that point of time, the Linux tree (2.6.16?)
did not know how to handle this. Nowadays the pci_set_power_state routine
handles this case so we do not need this anymore.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
---
drivers/xen/pciback/conf_space_capability_pm.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/drivers/xen/pciback/conf_space_capability_pm.c
b/drivers/xen/pciback/conf_space_capability_pm.c
index e2f99c7..e1d3af4 100644
--- a/drivers/xen/pciback/conf_space_capability_pm.c
+++ b/drivers/xen/pciback/conf_space_capability_pm.c
@@ -58,19 +58,6 @@ static int pm_ctrl_write(struct pci_dev *dev, int offset,
u16 new_value,
goto out;
}
- /*
- * Device may lose PCI config info on D3->D0 transition. This
- * is a problem for some guests which will not reset BARs. Even
- * those that have a go will be foiled by our BAR-write handler
- * which will discard the write! Since Linux won't re-init
- * the config space automatically in all cases, we do it here.
- * Future: Should we re-initialise all first 64 bytes of config space?
- */
- if (new_state == PCI_D0 &&
- (old_state == PCI_D3hot || old_state == PCI_D3cold) &&
- !(old_value & PCI_PM_CTRL_NO_SOFT_RESET))
- pci_restore_bars(dev);
-
out:
return err;
}
--
1.6.2.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 02/13] Including the pciif.h header file., (continued)
- [Xen-devel] [PATCH 02/13] Including the pciif.h header file., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 03/13] Fix include header name change (evtchn.h is now events.h), Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 04/13] Removed MSI capability in the pci-back driver., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 05/13] Use pci_is_enabled() instead of is_enabled., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 06/13] Fix usage of INIT_WORK., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 07/13] Update the calling mechanism for xenbus_[map|unmap]_ring_valloc functions., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 08/13] Xen paravirtualised PCI hotplug., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 09/13] xenbus: Add new states to xenbus_strstate(), Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 10/13] xenbus: prevent warnings on unhandled enumeration values, Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 11/13] pciback: Add check to load only under priviliged domain., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 12/13] Remove usage of pci_restore_bars() as Linux handles the power-up states correctly now.,
Konrad Rzeszutek Wilk <=
- [Xen-devel] [PATCH 13/13] pciback: Enable Xen-PCI-back to be compiled., Konrad Rzeszutek Wilk
- Re: [Xen-devel] [PATCH 08/13] Xen paravirtualised PCI hotplug., Vincent Hanquez
- Re: [Xen-devel] [PATCH 08/13] Xen paravirtualised PCI hotplug., Konrad Rzeszutek Wilk
- [Xen-devel] [PATCH 08/13] Xen paravirtualised PCI hotplug., Yosuke Iwamatsu
- [Xen-devel] Re: [PATCH 04/13] Removed MSI capability in the pci-back driver., Jeremy Fitzhardinge
- [Xen-devel] Re: [PATCH 04/13] Removed MSI capability in the pci-back driver., Konrad Rzeszutek Wilk
Re: [Xen-devel] [PATCH PV_OPS] pciback support, Jeremy Fitzhardinge
Re: [Xen-devel] [PATCH PV_OPS] pciback support, Sander Eikelenboom
|
|
|
|
|