Skip to contentSkip to conversation

PCI: do not delay when changing power states on Geode

PATCH NAK Andres Salomon 2 participants 3 messages Jul 6, 2007 – Jul 8, 2007 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: do not delay when changing power states on Geode

Geode hardware requires no delay when doing power transition for PCI; the board doesn't even have a real PCI bus. Thanks to Tom Sylla for pointing this out. We can save precious milliseconds when changing power states to D3hot by getting rid of this delay.

We do this as a PCI quirk.

---

 drivers/pci/quirks.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
drivers/pci/quirks.c +14 -0
index 01d8f8a..b85fd5f 100644
@@ -1368,6 +1368,20 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL,	0x260a, quirk_intel_pcie_pm);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL,	0x260b, quirk_intel_pcie_pm);
 
 /*
+ * Geode hardware does not require any sort of delay when
+ * transitioning between PCI power states.  This allows us to shave
+ * off time when doing suspend/resume.
+ */
+static void __init quirk_geode_pci_pm(struct pci_dev *dev)
+{
+	pci_pm_d3_delay = 0;
+}
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5530_LEGACY,
+		quirk_geode_pci_pm);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_ISA,
+		quirk_geode_pci_pm);
+
+/*
  * Toshiba TC86C001 IDE controller reports the standard 8-byte BAR0 size
  * but the PIO transfers won't work if BAR0 falls at the odd 8 bytes.
  * Re-allocate the region if needed...
#1 lore raw
Quoted 6 lines · On Thu, 5 Jul 2007 22:13:51 -0400 Andres Salomon <[email protected]> wrote:

Geode hardware requires no delay when doing power transition for PCI; the board doesn't even have a real PCI bus. Thanks to Tom Sylla for pointing this out. We can save precious milliseconds when changing power states to D3hot by getting rid of this delay.

We do this as a PCI quirk.

NAK

These systems may have other components on them which require the proper transition times and the CS5530 supports external real PCI devices.

Alan

#2 lore raw

Re: UNS: Re: [PATCH] PCI: do not delay when changing power states on Geode

Quoted 8 lines · On Fri, 6 Jul 2007 11:05:18 +0100 Alan Cox <[email protected]> wrote:
Quoted 5 lines · On Thu, 5 Jul 2007 22:13:51 -0400 Andres Salomon <[email protected]> wrote:

Geode hardware requires no delay when doing power transition for PCI; the board doesn't even have a real PCI bus. Thanks to Tom Sylla for pointing this out. We can save precious milliseconds when changing power states to D3hot by getting rid of this delay.

Quoted 8 lines
Quoted 1 line

We do this as a PCI quirk.

NAK

These systems may have other components on them which require the proper transition times and the CS5530 supports external real PCI devices.

Alan

You're right; I munged the description. Turns out the patch is wrong anyways, though (whether the delay is necessary or not turns out to be firmware dependent).

Signature · 1 line
Andres Salomon <[email protected]>