Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2012 08:32:43 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Jose Garcia Juanino <jjuanino@gmail.com>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: Loading i915 module panics my system after patching with Intel GPU patch 14.4 for stable/9
Message-ID:  <20120425053243.GF2358@deviant.kiev.zoral.com.ua>
In-Reply-To: <20120424201526.GA2045@banach>
References:  <20120424184459.GB2455@banach> <20120424194123.GC2358@deviant.kiev.zoral.com.ua> <20120424201526.GA2045@banach>

next in thread | previous in thread | raw e-mail | index | archive | help

--/t4lthCbeA8G1uhS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 24, 2012 at 10:15:27PM +0200, Jose Garcia Juanino wrote:
> El martes 24 de abril a las 21:41:23 CEST, Konstantin Belousov escribi?:
> > Apply the patch below on top of 14.4. Most likely, it would cure the
> > panic on agp attach failure.
> >=20
> > Anyway, enable verbose booting, and show me the kernel messages after
> > kldload i915 is initiated for 14.4 + patch below.
> >
> > [ ........... ]
>=20
> Thanks for your response.
>=20
> The panic is fixed after your patch was applied, and after kldload i915
> module, I get:
>=20
> agp0: <Intel 82855GME (855GME GMCH) SVGA controller> on vgapci0
> agp0: unknown memory configuration, disabling (GCC1 14)
> device_attach: agp0 attach returned 22
> drm0: <Intel i852GM/i855GM GMCH> on vgapci0
> error: [drm:pid1944:drm_load] *ERROR* Card isn't AGP, or couldn't initial=
ize AGP.
> device_attach: drm0 attach returned 12
>=20

Please apply patch below on top of 14.4 + previous patch.

commit 86f72619ec308ff62ec77926f9cb5afca635828b
Author: Konstantin Belousov <kib@freebsd.org>
Date:   Wed Apr 25 08:30:37 2012 +0300

    Specify right chipset methods for 855/865.

diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c
index 1b0c60d..a181ad7 100644
--- a/sys/dev/agp/agp_i810.c
+++ b/sys/dev/agp/agp_i810.c
@@ -323,8 +323,8 @@ static const struct agp_i810_driver agp_i810_i855_drive=
r =3D {
 	.check_active =3D agp_i830_check_active,
 	.set_desc =3D agp_82852_set_desc,
 	.dump_regs =3D agp_i855_dump_regs,
-	.get_stolen_size =3D agp_i830_get_stolen_size,
-	.get_gtt_mappable_entries =3D agp_i830_get_gtt_mappable_entries,
+	.get_stolen_size =3D agp_i915_get_stolen_size,
+	.get_gtt_mappable_entries =3D agp_i915_get_gtt_mappable_entries,
 	.get_gtt_total_entries =3D agp_i810_get_gtt_total_entries,
 	.install_gatt =3D agp_i830_install_gatt,
 	.deinstall_gatt =3D agp_i830_deinstall_gatt,
@@ -346,8 +346,8 @@ static const struct agp_i810_driver agp_i810_i865_drive=
r =3D {
 	.check_active =3D agp_i830_check_active,
 	.set_desc =3D agp_i810_set_desc,
 	.dump_regs =3D agp_i855_dump_regs,
-	.get_stolen_size =3D agp_i830_get_stolen_size,
-	.get_gtt_mappable_entries =3D agp_i830_get_gtt_mappable_entries,
+	.get_stolen_size =3D agp_i915_get_stolen_size,
+	.get_gtt_mappable_entries =3D agp_i915_get_gtt_mappable_entries,
 	.get_gtt_total_entries =3D agp_i810_get_gtt_total_entries,
 	.install_gatt =3D agp_i830_install_gatt,
 	.deinstall_gatt =3D agp_i830_deinstall_gatt,

--/t4lthCbeA8G1uhS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iEYEARECAAYFAk+XjHsACgkQC3+MBN1Mb4gayACdESSjnN+nZ/hCoKAp7zMA0B6K
qKwAn21y3XB+dWckQtBQfl9xyyPxIeHd
=p69w
-----END PGP SIGNATURE-----

--/t4lthCbeA8G1uhS--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120425053243.GF2358>