Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Apr 2019 08:58:09 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r345997 - head/sys/dev/pci
Message-ID:  <201904070858.x378w9b3095055@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Apr  7 08:58:09 2019
New Revision: 345997
URL: https://svnweb.freebsd.org/changeset/base/345997

Log:
  Give new home to the comment from ppt_pci_reset(), explaining a nuance
  of power reset.
  
  Noted by:	soralx@cydem.org
  Sponsored by:	Mellanox Technologies
  MFC after:	12 days

Modified:
  head/sys/dev/pci/pci.c

Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c	Sat Apr  6 23:35:23 2019	(r345996)
+++ head/sys/dev/pci/pci.c	Sun Apr  7 08:58:09 2019	(r345997)
@@ -6394,6 +6394,11 @@ pcie_flr(device_t dev, u_int max_delay, bool force)
 	return (true);
 }
 
+/*
+ * Attempt a power-management reset by cycling the device in/out of D3
+ * state.  PCI spec says we can only go into D3 state from D0 state.
+ * Transition from D[12] into D0 before going to D3 state.
+ */
 int
 pci_power_reset(device_t dev)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904070858.x378w9b3095055>