Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2013 23:15:19 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@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: r259237 - stable/10/sys/dev/drm2
Message-ID:  <201312112315.rBBNFJ23099267@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Wed Dec 11 23:15:19 2013
New Revision: 259237
URL: http://svnweb.freebsd.org/changeset/base/259237

Log:
  MFC r258930:
  
  drm: Read PCIER_LINK_CAP/PCIER_LINK_CAP2 from the PCI bridge
  
  Before this fix, capabilities were read from vgapci and were incorrect.

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

Modified: stable/10/sys/dev/drm2/drm_pci.c
==============================================================================
--- stable/10/sys/dev/drm2/drm_pci.c	Wed Dec 11 23:06:03 2013	(r259236)
+++ stable/10/sys/dev/drm2/drm_pci.c	Wed Dec 11 23:15:19 2013	(r259237)
@@ -134,7 +134,11 @@ int drm_pcie_get_speed_cap_mask(struct d
 	if (!drm_device_is_pcie(dev))
 		return -EINVAL;
 
-	root = device_get_parent(dev->device);
+	root =
+	    device_get_parent( /* pcib             */
+	    device_get_parent( /* `-- pci          */
+	    device_get_parent( /*     `-- vgapci   */
+	    dev->device)));    /*         `-- drmn */
 
 	pos = 0;
 	pci_find_cap(root, PCIY_EXPRESS, &pos);



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