Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 2015 07:25:14 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r289784 - stable/10/sys/dev/drm2/radeon
Message-ID:  <201510230725.t9N7PEgu064227@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Fri Oct 23 07:25:14 2015
New Revision: 289784
URL: https://svnweb.freebsd.org/changeset/base/289784

Log:
  MFC r287673: radeon_suspend_kms: don't mess with pci state

Modified:
  stable/10/sys/dev/drm2/radeon/radeon_device.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/drm2/radeon/radeon_device.c
==============================================================================
--- stable/10/sys/dev/drm2/radeon/radeon_device.c	Fri Oct 23 05:03:34 2015	(r289783)
+++ stable/10/sys/dev/drm2/radeon/radeon_device.c	Fri Oct 23 07:25:14 2015	(r289784)
@@ -1342,14 +1342,10 @@ int radeon_suspend_kms(struct drm_device
 
 	radeon_agp_suspend(rdev);
 
-	pci_save_state(device_get_parent(dev->dev));
 #ifdef FREEBSD_WIP
 	if (state.event == PM_EVENT_SUSPEND) {
 		/* Shut down the device */
 		pci_disable_device(dev->pdev);
-#endif /* FREEBSD_WIP */
-		pci_set_powerstate(dev->dev, PCI_POWERSTATE_D3);
-#ifdef FREEBSD_WIP
 	}
 	console_lock();
 #endif /* FREEBSD_WIP */
@@ -1380,10 +1376,6 @@ int radeon_resume_kms(struct drm_device 
 
 #ifdef FREEBSD_WIP
 	console_lock();
-#endif /* FREEBSD_WIP */
-	pci_set_powerstate(device_get_parent(dev->dev), PCI_POWERSTATE_D0);
-	pci_restore_state(device_get_parent(dev->dev));
-#ifdef FREEBSD_WIP
 	if (pci_enable_device(dev->pdev)) {
 		console_unlock();
 		return -1;



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