Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2013 01:01:33 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r259376 - releng/10.0/sys/dev/drm2
Message-ID:  <201312140101.rBE11XOj013431@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Sat Dec 14 01:01:32 2013
New Revision: 259376
URL: http://svnweb.freebsd.org/changeset/base/259376

Log:
  MFC r259237:
  
  drm: Read PCIER_LINK_CAP/PCIER_LINK_CAP2 from the PCI bridge
  
  Before this fix, capabilities were read from vgapci and were incorrect.
  
  Approved by:	re (gjb)

Modified:
  releng/10.0/sys/dev/drm2/drm_pci.c
Directory Properties:
  releng/10.0/   (props changed)

Modified: releng/10.0/sys/dev/drm2/drm_pci.c
==============================================================================
--- releng/10.0/sys/dev/drm2/drm_pci.c	Sat Dec 14 00:59:40 2013	(r259375)
+++ releng/10.0/sys/dev/drm2/drm_pci.c	Sat Dec 14 01:01:32 2013	(r259376)
@@ -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?201312140101.rBE11XOj013431>