Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2008 12:49:35 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Vince Hoffman <jhary@unsane.co.uk>
Cc:        Marcin Cieslak <saper@system.pl>, freebsd-stable@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: Panic with usb serial
Message-ID:  <20080401094935.GQ21209@deviant.kiev.zoral.com.ua>
In-Reply-To: <47F1F877.4010008@unsane.co.uk>
References:  <47EEBE78.5050506@unsane.co.uk> <20080329222049.GA80263@eos.sc1.parodius.com> <47EED34E.2080400@unsane.co.uk> <47EFCF67.9040601@system.pl> <47F0A577.90800@unsane.co.uk> <20080331092035.GH21209@deviant.kiev.zoral.com.ua> <47F0C75B.9040000@unsane.co.uk> <20080331111714.GI21209@deviant.kiev.zoral.com.ua> <47F1F877.4010008@unsane.co.uk>

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

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

On Tue, Apr 01, 2008 at 09:55:19AM +0100, Vince Hoffman wrote:
> Kostik Belousov wrote:
> > On Mon, Mar 31, 2008 at 12:13:31PM +0100, Vince Hoffman wrote:
> >> Kostik Belousov wrote:
>=20
> > Compile the ddb into the kernel (instructions are provided at the same
> > web page) and post the output of the console on the panic
>=20
> I tried this but other than the fact I can drop into ddb and step though
> stuff I'm not sure what I can do with it. Since I cant (obviously) get a
> serial console on my laptop I have done it the other way and taken a
> picture of the console on panic. When I have more time I'll carry on
> reading up on ddb but I think I have a steep learning curve since my
> previous looks at programing stopped at 'hello world':)
> Panic console at:
> http://unsane.co.uk/~jhary/freebsd/IMAGE_119.jpg

Thanks, this is enough. Two chunks were missed from the rev. 1.210.
Please, try the patch below.

diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index 843498e..7e6e048 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -402,8 +402,7 @@ giant_ioctl(struct cdev *dev, u_long cmd, caddr_t data,=
 int fflag, struct thread
 	if (dsw =3D=3D NULL)
 		return (ENXIO);
 	mtx_lock(&Giant);
-	retval =3D dev->si_devsw->d_gianttrick->
-	    d_ioctl(dev, cmd, data, fflag, td);
+	retval =3D dsw->d_gianttrick->d_ioctl(dev, cmd, data, fflag, td);
 	mtx_unlock(&Giant);
 	dev_relthread(dev);
 	return (retval);
@@ -419,8 +418,7 @@ giant_read(struct cdev *dev, struct uio *uio, int iofla=
g)
 	if (dsw =3D=3D NULL)
 		return (ENXIO);
 	mtx_lock(&Giant);
-	retval =3D dev->si_devsw->d_gianttrick->
-	    d_read(dev, uio, ioflag);
+	retval =3D dsw->d_gianttrick->d_read(dev, uio, ioflag);
 	mtx_unlock(&Giant);
 	dev_relthread(dev);
 	return (retval);

--1BKOZKwX7DAU5odC
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAkfyBS4ACgkQC3+MBN1Mb4hePQCeLZGSsY8UBovIU2XVKtvbs4qR
NesAniEOYKEIsuqZtV9qTBJrMvqZEbW2
=ONFL
-----END PGP SIGNATURE-----

--1BKOZKwX7DAU5odC--



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