Date: Fri, 06 Oct 2000 12:20:10 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: Matthew Jacob <mjacob@feral.com> Cc: alpha@FreeBSD.org Subject: RE: red face better... Message-ID: <XFMail.001006122010.jhb@FreeBSD.org> In-Reply-To: <Pine.LNX.4.21.0010061153350.15440-100000@zeppo.feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06-Oct-00 Matthew Jacob wrote: > > ...but not quite there yet.... > > Got around the 4MB hang issue, but now hang probing the SCSI bus (see below) I had this same hang when the PCI interrupts weren't be properly turned off when we schedule an ithread to run. One easy way to configure is to grab http://www.FreeBSD.org/~jhb/patches/ktr_verbose.patch and apply it. Then, disable the CTR0() for the clock interrupt in sys/alpha/alpha/interrupt.c (it's far too noisy), and add this hack to sys/cam/cam_xpt.c: Index: cam_xpt.c =================================================================== RCS file: /usr/cvs/src/sys/cam/cam_xpt.c,v retrieving revision 1.93 diff -u -r1.93 cam_xpt.c --- cam_xpt.c 2000/10/05 23:09:50 1.93 +++ cam_xpt.c 2000/10/06 19:10:59 @@ -40,6 +40,7 @@ #include <sys/md5.h> #include <sys/devicestat.h> #include <sys/interrupt.h> +#include <sys/ktr.h> #ifdef PC98 #include <pc98/pc98/pc98_machdep.h> /* geometry translation */ @@ -6119,6 +6120,7 @@ printf("Waiting %d seconds for SCSI " "devices to settle\n", SCSI_DELAY/1000); } + ktr_verbose = 1; xpt_for_all_busses(xptconfigfunc, NULL); } } This will basically dump the ktr output to the console, and should show an endless loop of PCI interrupts being scheduled. You will also need to add the following options to your kernel: options KTR options KTR_ENTRIES=1024 options KTR_MASK=KTR_INTR options KTR_COMPILE=0x3fffff options KTR_EXTEND Hmm, I suppose this isn't but so easy. :-P -- John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001006122010.jhb>