From: Chris Wilson Subject: Re: i915 module does not find 82865G if configured as secondary Date: Sun, 09 Oct 2011 19:36:27 +0100 Message-ID: References: <4E906B64.2090702@gmail.com> <4E916AC1.1010104@gmail.com> <20111009101848.GA2947@phenom.ffwll.local> <4E91806D.8010000@gmail.com> <20111009124430.GB2947@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0968450020==" Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 1BC2F9E81A for ; Sun, 9 Oct 2011 11:36:30 -0700 (PDT) In-Reply-To: <20111009124430.GB2947@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Daniel Vetter , Tempura San Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0968450020== Content-Type: text/plain On Sun, 9 Oct 2011 14:44:30 +0200, Daniel Vetter wrote: > On Sun, Oct 09, 2011 at 01:07:25PM +0200, Tempura San wrote: > > Here is the output of lspci -nn: > > > > 00:00.0 Host bridge [0600]: Intel Corporation 82865G/PE/P DRAM > > Controller/Host-Hub Interface [8086:2570] (rev 02) > > 00:02.0 Display controller [0380]: Intel Corporation 82865G Integrated > > Graphics Controller [8086:2572] (rev 02) > > The issue seems to be that the igd isn't a VGA pci class device anymore > when used as secondary. The below (untested) patch should allow to still > bind the i915 driver. Please test how far that gets us. Note the old kernel, and probable lack of: commit 934f992c763ae1e5eefcce8af769c16444085df7 Author: Chris Wilson Date: Thu Jan 20 13:09:12 2011 +0000 drm/i915: Recognise non-VGA display devices Starting with SandyBridge (though possible with earlier hacked BIOSes), the BIOS may initialise the IGFX as secondary to a discrete GPU. Prior, it would simply disable the integrated GPU. So we adjust our PCI class mask to match any DISPLAY_CLASS device. In such a configuration, the IGFX is not a primary VGA controller and so should not take part in VGA arbitration, and the error return from vga_client_register() is expected. Signed-off-by: Chris Wilson Cc: stable@kernel.org and commit 5fe49d86f9d01044abf687a8cd21edef636d58aa Author: Chris Wilson Date: Tue Feb 1 19:43:02 2011 +0000 drm/i915: Only bind to function 0 of the PCI device Early chipsets (gen2/3) used function 1 as a placeholder for multi-head. We used to ignore these since they were not assigned to PCI_CLASS_DISPLAY_VGA. However with 934f992c7 we attempt to bind to all Intel PCI_CLASS_DISPLAY devices (and functions) to work in multi-gpu systems. This fails hard on gen2/3. Reported-by: Ferenc Wágner Tested-by: Ferenc Wágner Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=28012 Signed-off-by: Chris Wilson Cc: stable@kernel.org -Chris -- Chris Wilson, Intel Open Source Technology Centre --===============0968450020== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0968450020==--