From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tempura San Subject: Re: i915 module does not find 82865G if configured as secondary Date: Sun, 09 Oct 2011 22:19:34 +0200 Message-ID: <4E9201D6.9090909@gmail.com> 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bw0-f49.google.com (mail-bw0-f49.google.com [209.85.214.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E2819E93E for ; Sun, 9 Oct 2011 13:19:37 -0700 (PDT) Received: by bkat2 with SMTP id t2so9228797bka.36 for ; Sun, 09 Oct 2011 13:19:36 -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 Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org I have built the module with the lines removed. Now in dmesg I get these lines, which look better to me: [...] pci 0000:00:02.0: enabling device (0000 -> 0003) [...] pci 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [...] pci 0000:00:02.0: setting latency timer to 64 [...] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0 But in sysfs now the i915 does no longer show up, so I cannot check if the driver was bound correctly. Listing /sys/bus/pci/devices/0000:00:02.0 did not show any entries and Xorg still does not start - same error as before. Yours, Tempura 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. > > Yours, Daniel > > diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c > index ad85c13..6abb1d7 100644 > --- a/drivers/gpu/drm/i915/i915_drv.c > +++ b/drivers/gpu/drm/i915/i915_drv.c > @@ -106,8 +106,6 @@ static struct drm_driver driver; > extern int intel_agp_enabled; > > #define INTEL_VGA_DEVICE(id, info) { \ > - .class = PCI_CLASS_DISPLAY_VGA << 8, \ > - .class_mask = 0xff0000, \ > .vendor = 0x8086, \ > .device = id, \ > .subvendor = PCI_ANY_ID, \ >