From owner-freebsd-current@FreeBSD.ORG Mon Nov 10 13:50:41 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B6E516A4CE for ; Mon, 10 Nov 2003 13:50:41 -0800 (PST) Received: from server019.webpack.hosteurope.de (server019.webpack.hosteurope.de [80.237.130.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D2C643FDF for ; Mon, 10 Nov 2003 13:50:39 -0800 (PST) (envelope-from bfischer@Techfak.Uni-Bielefeld.DE) Received: from no-support.loc (pD9FF9F1A.dip.t-dialin.net [217.255.159.26]) (authenticated bits=0)hAALoYfI010607 for ; Mon, 10 Nov 2003 22:50:36 +0100 Received: from frolic.no-support.loc (localhost.no-support.loc [127.0.0.1]) by no-support.loc (8.12.9/8.12.9) with ESMTP id hAALorAs003055 for ; Mon, 10 Nov 2003 22:50:53 +0100 (CET) (envelope-from bjoern@frolic.no-support.loc) Received: (from bjoern@localhost) by frolic.no-support.loc (8.12.9/8.12.9/Submit) id hAALorvI003054 for current@freebsd.org; Mon, 10 Nov 2003 22:50:53 +0100 (CET) (envelope-from bjoern) From: Bjoern Fischer Date: Mon, 10 Nov 2003 22:50:53 +0100 To: current@freebsd.org Message-ID: <20031110215053.GA2641@frolic.no-support.loc> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.4.1i Subject: -CURRENT and -STABLE fails on IBM R30 in agp_ali.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2003 21:50:41 -0000 Hello, there is a problem in ali_agp.c (both, -CURRENT and -STABLE): If I boot the generic kernel, it panics in agp_ali.c, when it tries to allocate memory for the gatt. Some simlpe tests showed, that the initial aperture size is reported as zero by the device: static int agp_ali_attach(device_t dev) { struct agp_ali_softc *sc =3D device_get_softc(dev); struct agp_gatt *gatt; int error; =20 error =3D agp_generic_attach(dev); if (error) return error; =20 sc->initial_aperture =3D AGP_GET_APERTURE(dev); This is zero---------------------^^^^^^ =20 for (;;) { gatt =3D agp_alloc_gatt(dev); if (gatt) break; =20 /* * Probably contigmalloc failure. Try reducing the * aperture so that the gatt size reduces. */ if (AGP_SET_APERTURE(dev, AGP_GET_APERTURE(dev) / 2)) { agp_generic_detach(dev); return ENOMEM; } } sc->gatt =3D gatt; =20 /* Install the gatt. */ Since I don't have a machine ready running -CURRENT, I can't really debug this. How can I disable agp0 on boot time? Bj=F6rn Fischer --=20 -----BEGIN GEEK CODE BLOCK----- GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+ K- !w !O !M !V PS++ PE- PGP++ t+++ !5 X++ tv- b+++ D++ G e+ h-- y+=20 ------END GEEK CODE BLOCK------