From owner-freebsd-stable@FreeBSD.ORG Sat Jun 23 12:08:46 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 619CC1065670 for ; Sat, 23 Jun 2012 12:08:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id F07488FC1D for ; Sat, 23 Jun 2012 12:08:45 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q5NC8esT047269; Sat, 23 Jun 2012 15:08:40 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q5NC8ekj063294; Sat, 23 Jun 2012 15:08:40 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q5NC8esi063293; Sat, 23 Jun 2012 15:08:40 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 23 Jun 2012 15:08:40 +0300 From: Konstantin Belousov To: Thomas Zander Message-ID: <20120623120840.GT2337@deviant.kiev.zoral.com.ua> References: <20120622175128.GJ2337@deviant.kiev.zoral.com.ua> <20120622183808.GK2337@deviant.kiev.zoral.com.ua> <20120623085952.GO2337@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HPvEMLO7QB7Fh5r+" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-stable Subject: Re: KMS on Sandy bridge error device_attach X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 12:08:46 -0000 --HPvEMLO7QB7Fh5r+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 23, 2012 at 01:38:35PM +0200, Thomas Zander wrote: > On Sat, Jun 23, 2012 at 10:59 AM, Konstantin Belousov > wrote: > > Ok, but you did not tried to load i915kms, at least the dmesg you posted > > lacks an indication. >=20 > Actually, it did. i915kms was in loader.conf. >=20 > dmesg, line 37f: > Preloaded elf obj module "/boot/kernel/i915kms.ko" at 0xffffffff8113a820. > Preloaded elf obj module "/boot/kernel/drm2.ko" at 0xffffffff8113ae88. > ... > dmesg, lines 482-489: > vgapci0: port 0xf000-0xf03f mem > 0xfb400000-0xfb7fffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on > pci0 > drmn0: on vgapci0 > vgapci0: attempting to allocate 1 MSI vectors (1 supported) > msi: routing MSI IRQ 264 to local APIC 0 vector 59 > vgapci0: using IRQ 264 for MSI > info: [drm] MSI enabled 1 message(s) > error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize= AGP. > device_attach: drmn0 attach returned 12 Do you have agp.ko loaded from loader.conf ? If not, what happens if you add it there ? The i915kms does have a dependency on agp, so it should have been auto-loaded if not loaded explicitely. And agp should be probed at least. Loading i915kms from loader.conf is something I do not encourage right now, since you loose VGA console somewhere during the kernel startup. >=20 > > Let me repeat: I need to see the lines related to the agp probe and > > attachment, I believe that it will show us the next direction to > > investigate. >=20 > I did understand what you were after, but sorry, there is nothing more > in the dmesg output. Do I need to perform additional steps besides > verbose boot to obtain this data? Hmm, I probably see an issue. Please try the patch below. diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c index a181ad7..c0f592c 100644 --- a/sys/dev/agp/agp_i810.c +++ b/sys/dev/agp/agp_i810.c @@ -700,7 +700,7 @@ static const struct agp_i810_match { .driver =3D &agp_i810_sb_driver }, { - .devid =3D 0x01088086, + .devid =3D 0x010a8086, .name =3D "SandyBridge server IG", .driver =3D &agp_i810_sb_driver }, --HPvEMLO7QB7Fh5r+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk/lscgACgkQC3+MBN1Mb4jamACfSfjyvwJSnZhUXEABLLOMo88c N10An2YojGmGweGrx7gCFytBFZs3I9zI =0Oeq -----END PGP SIGNATURE----- --HPvEMLO7QB7Fh5r+--