From owner-svn-src-all@FreeBSD.ORG Sat Dec 14 01:01:33 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4CBF0DA0; Sat, 14 Dec 2013 01:01:33 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 38CB5118D; Sat, 14 Dec 2013 01:01:33 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBE11Xv2013432; Sat, 14 Dec 2013 01:01:33 GMT (envelope-from dumbbell@svn.freebsd.org) Received: (from dumbbell@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBE11XOj013431; Sat, 14 Dec 2013 01:01:33 GMT (envelope-from dumbbell@svn.freebsd.org) Message-Id: <201312140101.rBE11XOj013431@svn.freebsd.org> From: Jean-Sebastien Pedron Date: Sat, 14 Dec 2013 01:01:33 +0000 (UTC) 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 X-SVN-Group: releng MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Dec 2013 01:01:33 -0000 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);