Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2014 14:41:02 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Sergey Matveychuk <sem@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Fwd: panic after upgrade to 10
Message-ID:  <201402261441.02262.jhb@freebsd.org>
In-Reply-To: <530E3D85.8060906@FreeBSD.org>
References:  <5308B98C.6070807@semmy.ru> <201402261124.01275.jhb@freebsd.org> <530E3D85.8060906@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, February 26, 2014 2:16:21 pm Sergey Matveychuk wrote:
> Yes, no panic now.
> For some reason agp0 is Intel 82855GM host to AGP bridge and agp1 is VGA=
=20
> controller itself.

Yes, on this machine we should probably only be using agp1 and not agp0.
I'm guessing 8.x simply did not have 'device agp' in GENERIC which is why
you didn't see this.  Right now my patch is preventing the panic, but
/dev/agpgart probably isn't working quite right.  I guess you aren't
running X on this though?

> I've attached dmesg and pciconf output.
>=20
> Please, note, i've filled kern/187015 for this problem.
>=20
> 26.02.2014 20:24, John Baldwin =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> > On Saturday, February 22, 2014 10:06:50 am Sergey Matveychuk wrote:
> >> Hi.
> >>
> >> I've tried to upgrade my home router to FreeBSD 10-STABLE from 8.x. And
> >> got this panic: https://www.dropbox.com/s/fxsily501x50vtw/A8eRRRJKbYM.=
jpg
> >>
> >> panic: make_dev_credv: bad si_name (error=3D17, si_name=3Dagpgart)
> >>
> >> How it could be fixed or how work around to boot?
> >
> > I think the problem is there can only be one /dev/agpgart and this trie=
d=20
to
> > create two.  Odd that you would have two agp devices though.
> >
> > Try this patch which should fix the panic, but then capture a dmesg and
> > 'pciconf -lcb' output.
> >
> > Index: sys/dev/agp.c
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > --- agp.c	(revision 262488)
> > +++ agp.c	(working copy)
> > @@ -212,6 +212,7 @@ int
> >   agp_generic_attach(device_t dev)
> >   {
> >   	struct agp_softc *sc =3D device_get_softc(dev);
> > +	struct cdev *cdev;
> >   	int i;
> >   	u_int memsize;
> >
> > @@ -256,10 +257,11 @@ agp_generic_attach(device_t dev)
> >   	TAILQ_INIT(&sc->as_memory);
> >   	sc->as_nextid =3D 1;
> >
> > -	sc->as_devnode =3D make_dev(&agp_cdevsw,
> > -	    0, UID_ROOT, GID_WHEEL, 0600, "agpgart");
> > -	sc->as_devnode->si_drv1 =3D dev;
> > -
> > +	if (make_dev_p(MAKEDEV_CHECKNAME, &cdev, &agp_cdevsw, NULL, UID_ROOT,
> > +	    GID_WHEEL, 0600, "agpgart") =3D=3D 0) {
> > +		cdev->si_drv1 =3D dev;
> > +		sc->as_devnode =3D cdev;
> > +	}
> >   	return 0;
> >   }
> >
> > @@ -268,7 +270,8 @@ agp_free_cdev(device_t dev)
> >   {
> >   	struct agp_softc *sc =3D device_get_softc(dev);
> >
> > -	destroy_dev(sc->as_devnode);
> > +	if (sc->as_devnode !=3D NULL)
> > +		destroy_dev(sc->as_devnode);
> >   }
> >
> >   void
> >
> >
>=20

=2D-=20
John Baldwin



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