From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 06:21:12 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26F1A16A4CE for ; Sun, 22 Feb 2004 06:21:12 -0800 (PST) Received: from rhb.local.net (cust-19-111.vype.manet.de [212.65.19.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72C7943D1F for ; Sun, 22 Feb 2004 06:21:11 -0800 (PST) (envelope-from Raphael.Becker@gmx.de) Received: from rhb.local.net (localhost [127.0.0.1]) by rhb.local.net (8.12.10/8.12.10) with ESMTP id i1MELj3n099626 for ; Sun, 22 Feb 2004 15:21:45 +0100 (CET) (envelope-from Raphael.Becker@gmx.de) Received: (from rabe@localhost) by rhb.local.net (8.12.10/8.12.10/Submit) id i1MELjE6099625 for stable@freebsd.org; Sun, 22 Feb 2004 15:21:45 +0100 (CET) (envelope-from Raphael.Becker@gmx.de) X-Authentication-Warning: rhb.local.net: rabe set sender to Raphael.Becker@gmx.de using -f Date: Sun, 22 Feb 2004 15:21:45 +0100 From: "Raphael H. Becker" To: stable@freebsd.org Message-ID: <20040222142145.GA99480@local.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: X11 with nvidia --> panic X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2004 14:21:12 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi *, I tried to set up X11 with the x11/nvidia-driver port yesterday. Set up my X11 config and loader.conf (didn't work automatically). I had to set up the linux module in loader.conf otherwise the nvidia module didn't work (see beginning of the first session in dmesg-file). I disabled xdm in /etc/ttys, tried it with "startx". X11 starts but the console does not switch to graphics mode, it "hangs" at the startup messages. As you can see in the dmesg-File (2 reboots!) the end of the 2nd session ends with a kernel panic I didn't see on the console. All relevant config- and logfiles are located under http://rhb.uugrn.org/temp/X11-nvidia/=20 Any idea? Any help? Regards --=20 Raphael Becker http://rhb.uugrn.org/ http://schnitzelmitkartoffelsalat.uugrn.org/ =2E........|.........|.........|.........|.........|.........|.........|.. --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAOLr5nNo+exDKny0RAm+bAKDhvv/h9VGD2SzCXDfWKMMLSjtAkQCg4nZO iXW313QKMU9QlqIMGocxnzc= =Iqqf -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm-- From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 15:03:32 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B9DC16A4CE for ; Sun, 22 Feb 2004 15:03:32 -0800 (PST) Received: from alcanet.com.au (mail2.alcanet.com.au [203.62.196.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB52D43D1D for ; Sun, 22 Feb 2004 15:03:30 -0800 (PST) (envelope-from peter.jeremy@alcatel.com.au) Received: from sydsmtp02.alcatel.com.au (IDENT:root@localhost.localdomain [127.0.0.1])i1MN3PXb028501 for ; Mon, 23 Feb 2004 10:03:26 +1100 Received: from gsmx07.alcatel.com.au ([139.188.20.247]) by sydsmtp02.alcatel.com.au (Lotus Domino Release 5.0.12) with ESMTP id 2004022310032442:168121 ; Mon, 23 Feb 2004 10:03:24 +1100 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) i1MN3OHQ045348 for ; Mon, 23 Feb 2004 10:03:24 +1100 (EST) (envelope-from peter.jeremy@alcatel.com.au) Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.9p2/8.12.9/Submit) id i1MN3Mt7045347 for freebsd-stable@freebsd.org; Mon, 23 Feb 2004 10:03:22 +1100 (EST) (envelope-from peter.jeremy@alcatel.com.au) Date: Mon, 23 Feb 2004 10:03:22 +1100 From: Peter Jeremy To: freebsd-stable@freebsd.org Message-ID: <20040222230322.GA45200@gsmx07.alcatel.com.au> Mail-Followup-To: freebsd-stable@freebsd.org Mime-Version: 1.0 User-Agent: Mutt/1.4.2i X-MIMETrack: Itemize by SMTP Server on SYDSMTP02/AlcatelAustralia(Release 5.0.12 |February 13, 2003) at 23/02/2004 10:03:24 AM,|February 13, 2003) at 23/02/2004 10:03:26 AM, Serialize complete at 23/02/2004 10:03:26 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: NULL pointer dereference in sys/ufs/ffs/ffs_softdep.c:acquire_lock() X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2004 23:03:32 -0000 Whilst verifying the keyboard panic functionalityon a 4.9p1 system, I got an unexpected second panic within the softupdates code whilst syncing. A quick check of the code in -STABLE suggests that the same behaviour exists there. A backtrace of the crashdump is at the end of this email. The problem is a line: 266 lk->lkt_held = CURPROC->p_pid; with CURPROC (=== curproc) being NULL. Studying the code, it appears it is quite normal for curproc to be NULL during task switching ad a quick check suggests curproc is NULL when the idle "process" is running. I believe that normally when acquire_lock() is called, there will be a valid process context, so this would only seem to affect filesystem syncing during a panic. In this case, the fix would seem to be (whitespace corrupted): diff -u -r1.72.2.13 kern_shutdown.c --- sys/kern/kern_shutdown.c 31 Aug 2003 00:16:28 -0000 1.72.2.13 +++ sys/kern/kern_shutdown.c 22 Feb 2004 23:01:04 -0000 @@ -232,6 +232,10 @@ waittime = 0; printf("\nsyncing disks... "); + /* make sure curproc is valid to make softupdates happy */ + if (curproc == NULL) + SET_CURPROC(&proc0); + sync(&proc0, NULL); /* ----------- panic: Forced by the panic key syncing disks... Fatal trap 12: page fault while in kernel mode fault virtual address = 0x30 fault code = supervisor read, page not present instruction pointer = 0x8:0xc022e528 stack pointer = 0x10:0xc02c499c frame pointer = 0x10:0xc02c49a4 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = Idle interrupt mask = net tty bio cam trap number = 12 panic: page fault Uptime: 2m52s dumping to dev #ad/0x20001, offset 166080 dump ata0: resetting devices .. done 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 4 3 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 --- #0 dumpsys () at /mnt/rpc/src/sys/kern/kern_shutdown.c:487 487 if (dumping++) { (kgdb) where #0 dumpsys () at /mnt/rpc/src/sys/kern/kern_shutdown.c:487 #1 0xc01792a8 in boot (howto=260) at /mnt/rpc/src/sys/kern/kern_shutdown.c:316 #2 0xc01796f5 in panic (fmt=0xc02bb8ac "%s") at /mnt/rpc/src/sys/kern/kern_shutdown.c:595 #3 0xc02737fc in trap_fatal (frame=0xc02c495c, eva=48) at /mnt/rpc/src/sys/i386/i386/trap.c:974 #4 0xc0273499 in trap_pfault (frame=0xc02c495c, usermode=0, eva=48) at /mnt/rpc/src/sys/i386/i386/trap.c:867 #5 0xc027300b in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = 0, tf_esi = -1054074880, tf_ebp = -1070839388, tf_isp = -1070839416, tf_ebx = -1070741316, tf_edx = 6864960, tf_ecx = -937835584, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1071454936, tf_cs = 8, tf_eflags = 66054, tf_esp = -1054074880, tf_ss = -1054074880}) at /mnt/rpc/src/sys/i386/i386/trap.c:466 #6 0xc022e528 in acquire_lock (lk=0xc02dc8bc) at /mnt/rpc/src/sys/ufs/ffs/ffs_softdep.c:266 #7 0xc0232778 in softdep_update_inodeblock (ip=0xc12c1800, bp=0xc30a5ff0, waitfor=0) at /mnt/rpc/src/sys/ufs/ffs/ffs_softdep.c:3813 #8 0xc022d62a in ffs_update (vp=0xc819c3c0, waitfor=0) at /mnt/rpc/src/sys/ufs/ffs/ffs_inode.c:106 #9 0xc0235ca2 in ffs_sync (mp=0xc1263a00, waitfor=2, cred=0xc0614600, p=0xc03003c0) at /mnt/rpc/src/sys/ufs/ffs/ffs_vfsops.c:1025 #10 0xc01aaf6b in sync (p=0xc03003c0, uap=0x0) at /mnt/rpc/src/sys/kern/vfs_syscalls.c:577 #11 0xc0179042 in boot (howto=256) at /mnt/rpc/src/sys/kern/kern_shutdown.c:235 #12 0xc01796f5 in panic (fmt=0xc02b5fa3 "Forced by the panic key") at /mnt/rpc/src/sys/kern/kern_shutdown.c:595 #13 0xc02621eb in scgetc (sc=0xc02ffc80, flags=2) at /mnt/rpc/src/sys/dev/syscons/syscons.c:3175 #14 0xc025eeed in sckbdevent (thiskbd=0xc02f8720, event=0, arg=0xc02ffc80) at /mnt/rpc/src/sys/dev/syscons/syscons.c:617 #15 0xc02569cf in atkbd_intr (kbd=0xc02f8720, arg=0x0) at /mnt/rpc/src/sys/dev/kbd/atkbd.c:464 #16 0xc027e434 in atkbd_isa_intr (arg=0xc02f8720) at /mnt/rpc/src/sys/isa/atkbd_isa.c:140 #17 0xc01755df in idle_poll () at /mnt/rpc/src/sys/kern/kern_poll.c:270 -- Peter Jeremy From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 15:04:39 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9616D16A4CE for ; Sun, 22 Feb 2004 15:04:39 -0800 (PST) Received: from kayjay.xs4all.nl (kayjay.xs4all.nl [80.126.33.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 086D843D1D for ; Sun, 22 Feb 2004 15:04:39 -0800 (PST) (envelope-from karelj@kayjay.xs4all.nl) Received: from kayjay.xs4all.nl (localhost.wop.wtb.tue.nl [127.0.0.1]) by kayjay.xs4all.nl (8.12.10/8.12.10) with ESMTP id i1MN7scH021626; Mon, 23 Feb 2004 00:07:54 +0100 (CET) (envelope-from karelj@kayjay.xs4all.nl) Received: (from karelj@localhost) by kayjay.xs4all.nl (8.12.10/8.12.10/Submit) id i1MN7rVR021625; Mon, 23 Feb 2004 00:07:53 +0100 (CET) (envelope-from karelj) Date: Mon, 23 Feb 2004 00:07:53 +0100 From: "Karel J. Bosschaart" To: "Raphael H. Becker" Message-ID: <20040222230753.GA21521@kayjay.xs4all.nl> References: <20040222142145.GA99480@local.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040222142145.GA99480@local.net> User-Agent: Mutt/1.4.2.1i cc: stable@freebsd.org Subject: Re: X11 with nvidia --> panic X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2004 23:04:39 -0000 On Sun, Feb 22, 2004 at 03:21:45PM +0100, Raphael H. Becker wrote: > Hi *, > > I tried to set up X11 with the x11/nvidia-driver port yesterday. Set up > my X11 config and loader.conf (didn't work automatically). I had to > set up the linux module in loader.conf otherwise the nvidia module > didn't work (see beginning of the first session in dmesg-file). > > I disabled xdm in /etc/ttys, tried it with "startx". > > X11 starts but the console does not switch to graphics mode, it "hangs" > at the startup messages. As you can see in the dmesg-File (2 reboots!) > the end of the 2nd session ends with a kernel panic I didn't see on the > console. > > All relevant config- and logfiles are located under > http://rhb.uugrn.org/temp/X11-nvidia/ > There are quite some ways to use the nvidia driver. Difficult to say which one is suited for you, you have to try different things and keep the one that does not crash the machine :-/. The docs in /usr/X11R6/share/doc/NVIDIA provide some info on what you can try. About your config: You seem to have agp in your kernel so it's not needed to load it in boot/loader.conf. Did you compile the port with WITH_FREEBSD_AGP="YES", since you apparently want to use the AGP from FreeBSD? Alternatively, if you built the nvidia driver with default options (nvidia agp), comment out agp in your kernel config and comment the agp entry in loader.conf (although it might work when both agp's are loaded). Also see this page http://www.soulwax.net/nvidia/ , it contains useful tips. Good luck, Karel. From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 17:14:57 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 460F816A4CE for ; Sun, 22 Feb 2004 17:14:57 -0800 (PST) Received: from horsey.gshapiro.net (horsey.gshapiro.net [64.105.95.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0A4143D1F for ; Sun, 22 Feb 2004 17:14:56 -0800 (PST) (envelope-from gshapiro@gshapiro.net) Received: from horsey.gshapiro.net (localhost [127.0.0.1]) id i1N1Eu5d098971 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 Feb 2004 17:14:56 -0800 (PST) Received: (from gshapiro@localhost)i1N1EtYw098970; Sun, 22 Feb 2004 17:14:55 -0800 (PST) Date: Sun, 22 Feb 2004 17:14:55 -0800 From: Gregory Neil Shapiro To: "Marc G. Fournier" Message-ID: <20040223011455.GN62095@horsey.gshapiro.net> References: <20040222010209.L48887@ganymede.hub.org> <20040222054729.GR62095@horsey.gshapiro.net> <20040222014736.I48887@ganymede.hub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040222014736.I48887@ganymede.hub.org> User-Agent: Mutt/1.5.6i cc: freebsd-stable@freebsd.org Subject: Re: rndcontrol doesn't work on -STABLE? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 01:14:57 -0000 > > I found this comment in src/sys/i386/i386/mem.c: > > > > * XXX the data is 16-bit due to a historical botch, so we use > > * magic 16's instead of ICU_LEN and can't support 24 interrupts > > * under SMP. > > Great ... another reason to move up ... but, short term, is there any > other way of doing this? user land daemon or something? It looks like all of the kernel interfaces for inserting random entropy aren't exported out of the kernel. I looked through the code involved and it certainly seems that the code can handle the additional APIC_IO interrupts with a few minor changes (which I haven't tried). Someone will probably point out an obvious reason why this won't work (like some of the low level assembly interrupt handling routines). Index: sys/i386/i386/mem.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/mem.c,v retrieving revision 1.79.2.10 diff -u -r1.79.2.10 mem.c --- sys/i386/i386/mem.c 9 Aug 2003 16:21:18 -0000 1.79.2.10 +++ sys/i386/i386/mem.c 23 Feb 2004 01:03:44 -0000 @@ -65,6 +65,7 @@ #include #include #include +#include #include #include @@ -96,7 +97,7 @@ /* bmaj */ -1 }; -static struct random_softc random_softc[16]; +static struct random_softc random_softc[ICU_LEN]; static caddr_t zbuf; MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors"); @@ -471,9 +472,6 @@ return (ENOTTY); /* - * XXX the data is 16-bit due to a historical botch, so we use - * magic 16's instead of ICU_LEN and can't support 24 interrupts - * under SMP. * Even inspecting the state is privileged, since it gives a hint * about how easily the randomness might be guessed. */ @@ -489,7 +487,7 @@ error = suser(p); if (error != 0) return (error); - if (intr < 0 || intr >= 16) + if (intr < 0 || intr >= ICU_LEN) return (EINVAL); if (interrupt_allowed & interrupt_mask) break; @@ -506,7 +504,7 @@ error = suser(p); if (error != 0) return (error); - if (intr < 0 || intr >= 16) + if (intr < 0 || intr >= ICU_LEN) return (EINVAL); if (!(interrupt_allowed & interrupt_mask)) break; Index: usr.sbin/rndcontrol/rndcontrol.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/rndcontrol/Attic/rndcontrol.c,v retrieving revision 1.11.2.1 diff -u -r1.11.2.1 rndcontrol.c --- usr.sbin/rndcontrol/rndcontrol.c 10 May 2000 02:04:44 -0000 1.11.2.1 +++ usr.sbin/rndcontrol/rndcontrol.c 23 Feb 2004 01:03:45 -0000 @@ -95,7 +95,7 @@ return (1); } printf("%s: interrupts in use:", argv[0]); - for (i = 0; i < 16; i++) + for (i = 0; i < 24; i++) if (irq & (1 << i)) printf(" %d", i); printf("\n"); From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 17:27:24 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A711516A4CF; Sun, 22 Feb 2004 17:27:24 -0800 (PST) Received: from farside.isc.org (farside.isc.org [204.152.187.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1B7643D1D; Sun, 22 Feb 2004 17:27:24 -0800 (PST) (envelope-from Mark_Andrews@isc.org) Received: from drugs.dv.isc.org (localhost [IPv6:::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by farside.isc.org (Postfix) with ESMTP id 03865A82B; Mon, 23 Feb 2004 01:27:24 +0000 (UTC) (envelope-from marka@isc.org) Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (8.12.10/8.12.10) with ESMTP id i1N1RL3S007766; Mon, 23 Feb 2004 12:27:21 +1100 (EST) (envelope-from marka@drugs.dv.isc.org) Message-Id: <200402230127.i1N1RL3S007766@drugs.dv.isc.org> To: Gregory Neil Shapiro From: Mark Andrews In-reply-to: Your message of "Sun, 22 Feb 2004 17:14:55 -0800." <20040223011455.GN62095@horsey.gshapiro.net> Date: Mon, 23 Feb 2004 12:27:21 +1100 Sender: Mark_Andrews@isc.org cc: freebsd-stable@freebsd.org Subject: Re: rndcontrol doesn't work on -STABLE? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 01:27:24 -0000 > Index: usr.sbin/rndcontrol/rndcontrol.c > =================================================================== > RCS file: /home/ncvs/src/usr.sbin/rndcontrol/Attic/rndcontrol.c,v > retrieving revision 1.11.2.1 > diff -u -r1.11.2.1 rndcontrol.c > --- usr.sbin/rndcontrol/rndcontrol.c 10 May 2000 02:04:44 -0000 1.11.2. > 1 > +++ usr.sbin/rndcontrol/rndcontrol.c 23 Feb 2004 01:03:45 -0000 > @@ -95,7 +95,7 @@ > return (1); > } > printf("%s: interrupts in use:", argv[0]); > - for (i = 0; i < 16; i++) > + for (i = 0; i < 24; i++) > if (irq & (1 << i)) > printf(" %d", i); > printf("\n"); This is broken. 'irq' is u_int16_t. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews@isc.org From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 17:37:12 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6DE716A4CE for ; Sun, 22 Feb 2004 17:37:12 -0800 (PST) Received: from horsey.gshapiro.net (horsey.gshapiro.net [64.105.95.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F56F43D1D for ; Sun, 22 Feb 2004 17:37:12 -0800 (PST) (envelope-from gshapiro@gshapiro.net) Received: from horsey.gshapiro.net (localhost [127.0.0.1]) id i1N1bChP000799 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 Feb 2004 17:37:12 -0800 (PST) Received: (from gshapiro@localhost)i1N1bCik000798; Sun, 22 Feb 2004 17:37:12 -0800 (PST) Date: Sun, 22 Feb 2004 17:37:12 -0800 From: Gregory Neil Shapiro To: Mark Andrews Message-ID: <20040223013712.GO62095@horsey.gshapiro.net> References: <20040223011455.GN62095@horsey.gshapiro.net> <200402230127.i1N1RL3S007766@drugs.dv.isc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200402230127.i1N1RL3S007766@drugs.dv.isc.org> User-Agent: Mutt/1.5.6i cc: freebsd-stable@freebsd.org Subject: Re: rndcontrol doesn't work on -STABLE? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 01:37:12 -0000 > > + for (i = 0; i < 24; i++) > > if (irq & (1 << i)) > > printf(" %d", i); > > This is broken. 'irq' is u_int16_t. Thanks, I warned it was untested. In case anyone wants a fixed patch, still untested: --- sys/sys/random.h.orig Sun Feb 22 17:34:16 2004 +++ sys/sys/random.h Sun Feb 22 17:34:35 2004 @@ -54,7 +54,7 @@ #define MEM_SETIRQ _IOW('r', 1, u_int16_t) /* set interrupt */ #define MEM_CLEARIRQ _IOW('r', 2, u_int16_t) /* clear interrupt */ -#define MEM_RETURNIRQ _IOR('r', 3, u_int16_t) /* return interrupt */ +#define MEM_RETURNIRQ _IOR('r', 3, u_int32_t) /* return interrupt */ #ifdef _KERNEL --- sys/i386/i386/mem.c.orig Sun Feb 22 17:15:13 2004 +++ sys/i386/i386/mem.c Sun Feb 22 17:33:05 2004 @@ -65,6 +65,7 @@ #include #include #include +#include #include #include @@ -96,7 +97,7 @@ /* bmaj */ -1 }; -static struct random_softc random_softc[16]; +static struct random_softc random_softc[ICU_LEN]; static caddr_t zbuf; MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors"); @@ -471,9 +472,6 @@ return (ENOTTY); /* - * XXX the data is 16-bit due to a historical botch, so we use - * magic 16's instead of ICU_LEN and can't support 24 interrupts - * under SMP. * Even inspecting the state is privileged, since it gives a hint * about how easily the randomness might be guessed. */ @@ -489,7 +487,7 @@ error = suser(p); if (error != 0) return (error); - if (intr < 0 || intr >= 16) + if (intr < 0 || intr >= ICU_LEN) return (EINVAL); if (interrupt_allowed & interrupt_mask) break; @@ -506,7 +504,7 @@ error = suser(p); if (error != 0) return (error); - if (intr < 0 || intr >= 16) + if (intr < 0 || intr >= ICU_LEN) return (EINVAL); if (!(interrupt_allowed & interrupt_mask)) break; @@ -520,7 +518,7 @@ error = suser(p); if (error != 0) return (error); - *(u_int16_t *)data = interrupt_allowed; + *(u_int32_t *)data = interrupt_allowed; break; } return (0); --- usr.sbin/rndcontrol/rndcontrol.c.orig Sun Feb 22 17:15:13 2004 +++ usr.sbin/rndcontrol/rndcontrol.c Sun Feb 22 17:33:16 2004 @@ -48,7 +48,7 @@ main(int argc, char *argv[]) { int verbose, ch, fd, result, i; - u_int16_t irq; + u_int32_t irq; verbose = 1; @@ -95,7 +95,7 @@ return (1); } printf("%s: interrupts in use:", argv[0]); - for (i = 0; i < 16; i++) + for (i = 0; i < 24; i++) if (irq & (1 << i)) printf(" %d", i); printf("\n"); From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 19:37:23 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B924B16A4CE for ; Sun, 22 Feb 2004 19:37:23 -0800 (PST) Received: from smtp1.matrix.com.br (smtp1.matrix.com.br [200.196.28.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F64D43D1D for ; Sun, 22 Feb 2004 19:37:23 -0800 (PST) (envelope-from basei@matrix.com.br) Received: from matrix.com.br (unknown [201.2.202.15]) by smtp1.matrix.com.br (Postfix) with ESMTP id BC4B3309A5 for ; Mon, 23 Feb 2004 00:37:20 -0300 (BRT) Message-ID: <40397570.8050207@matrix.com.br> Date: Mon, 23 Feb 2004 00:37:20 -0300 From: Sidnei Rodrigo Basei User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6b) Gecko/20040222 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Macromedia FLASH ... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 03:37:23 -0000 Hi All First: I want install the flash player in my FreeBSD 4.9-STABLE .. I use the Opera 7.23 build 518... I was installed by ports.. but this plugin is too old.... I want install a new Flash-plugin in my new FreeBSD installation... anyone have any idea??? Secound: i have installed the j2sdk 1.4.1_07 in /usr/local/j2sdk directory ($JAVA_HOME) ... but i can't access sites witch java applications... I've only this 2 problems to exclude the WINDOWS from my LIVE ... (Oops... maybe the vpn client too ... :P ) Thank You.. From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 19:51:24 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A05E16A4D0 for ; Sun, 22 Feb 2004 19:51:24 -0800 (PST) Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mx1.FreeBSD.org (Postfix) with SMTP id 68AD943D1F for ; Sun, 22 Feb 2004 19:51:24 -0800 (PST) (envelope-from john_m_cooper@yahoo.com) Received: from unknown (HELO yahoo.com) (john?m?cooper@67.21.169.8 with plain) by smtp013.mail.yahoo.com with SMTP; 23 Feb 2004 03:51:24 -0000 Message-ID: <403978AF.7070102@yahoo.com> Date: Sun, 22 Feb 2004 19:51:11 -0800 From: John Merryweather Cooper User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sidnei Rodrigo Basei References: <40397570.8050207@matrix.com.br> In-Reply-To: <40397570.8050207@matrix.com.br> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: Macromedia FLASH ... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 03:51:24 -0000 Sidnei Rodrigo Basei wrote: > Hi All > > First: > I want install the flash player in my FreeBSD 4.9-STABLE .. I use the > Opera 7.23 build 518... I was installed by ports.. but this plugin is > too old.... I want install a new Flash-plugin in my new FreeBSD > installation... anyone have any idea??? The best bet I've found is to install the linuxpluginwrapper port, but you'll need a recently compiled 4.9-STABLE world/kernel to make it work. > > Secound: > i have installed the j2sdk 1.4.1_07 in /usr/local/j2sdk directory > ($JAVA_HOME) ... but i can't access sites witch java applications... > > I've only this 2 problems to exclude the WINDOWS from my LIVE ... > (Oops... maybe the vpn client too ... :P ) > It's apparent that you've installed Java other than with a port. There are several problems with this: 1) native applications don't operate too well with Linux Java (and vice versa); 2) neither the files nor the symlinks are installed where FreeBSD and native apps expect them to be; 3) Opera probably can't even find the Java plugin as a result. > > Thank You.. > _______________________________________________ Moral of the story . . . "use the ports Luke!" They're there for a reason. jmc From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 23:10:26 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06EBF16A4CE for ; Sun, 22 Feb 2004 23:10:26 -0800 (PST) Received: from hilbert.chtf.stuba.sk (hilbert.chtf.stuba.sk [147.175.67.128]) by mx1.FreeBSD.org (Postfix) with SMTP id 3166343D1D for ; Sun, 22 Feb 2004 23:10:25 -0800 (PST) (envelope-from babjak@hilbert.chtf.stuba.sk) Received: (qmail 4213 invoked by uid 1000); 23 Feb 2004 07:10:23 -0000 Date: Mon, 23 Feb 2004 08:10:23 +0100 From: Jozef Babjak To: freebsd-stable@freebsd.org Message-ID: <20040223071023.GA4145@hilbert.chtf.stuba.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: problems with ntpd configuration X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: babjak@neuron.tuke.sk List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 07:10:26 -0000 Hi! I have a problem to configure properly a ntpd server for local network. I followed a handbook example, but maybe I didn't understand something well. My aim is to configure a ntpd server, allow to synchronize computers from local network according to this server and hide mentioned ntpd server for all computers out of local network. My ntp server is: >uname -a FreeBSD hilbert.chtf.stuba.sk 4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Feb 11 18:23:18 CET 2004 root@hilbert.chtf.stuba.sk:/usr/obj/usr/src/sys/HILBERT i386 > ntpd server is allowed in rc.conf with no additional flags: xntpd_enable="YES" Its IP is 147.175.67.128, network is class B: 147.175.0.0 with netmask 255.255.0.0. My ntp.conf: server public.stratum2.server1 server public.stratum2.server2 server public.stratum2.server3 driftfile /var/db/ntp.drift # default to ignore restrict default ignore # allow my net to configure, byt not act my setting (according to handbook): restrict 147.175.0.0 mask 255.255.0.0 notrust nomodify notrap Server synchronize itself well, but when I try query from 147.175.64.41, i obtain: > ntpdate -vq 147.175.67.128 23 Feb 07:54:52 ntpdate[6145]: ntpdate 4.1.0-a Fri Feb 6 09:54:31 CET 2004 (1) server 147.175.67.128, stratum 16, offset 0.301619, delay 0.02689 23 Feb 07:54:52 ntpdate[6145]: no server suitable for synchronization found > ntpd is already running for several days, so it si synchronized and -- i think -- ready to serve. Can you help me with appropriate 'restrict' rule sets? No firewall is running here. Thanks, Jozef. From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 23:52:46 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C11116A4CE for ; Sun, 22 Feb 2004 23:52:46 -0800 (PST) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAAA843D1D for ; Sun, 22 Feb 2004 23:52:44 -0800 (PST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [127.0.0.1]) i1N7qeiE042317; Mon, 23 Feb 2004 09:52:40 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost)i1N7qd2Q042316; Mon, 23 Feb 2004 09:52:39 +0200 (SAST) (envelope-from jhay) Date: Mon, 23 Feb 2004 09:52:39 +0200 From: John Hay To: babjak@neuron-ai.fei.tuke.sk Message-ID: <20040223075239.GA41617@zibbi.icomtek.csir.co.za> References: <20040223071023.GA4145@hilbert.chtf.stuba.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040223071023.GA4145@hilbert.chtf.stuba.sk> User-Agent: Mutt/1.4.1i cc: freebsd-stable@freebsd.org Subject: Re: problems with ntpd configuration X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 07:52:46 -0000 You might get better results to you ntp questions on the ntp news group: comp.protocols.time.ntp > I have a problem to configure properly a ntpd server for local network. I > followed a handbook example, but maybe I didn't understand something well. My > aim is to configure a ntpd server, allow to synchronize computers from local > network according to this server and hide mentioned ntpd server for all > computers out of local network. Start by removing all the restrict lines, then if it works, you know that you have the basic setup right. > Its IP is 147.175.67.128, network is class B: 147.175.0.0 with netmask > 255.255.0.0. My ntp.conf: > > server public.stratum2.server1 > server public.stratum2.server2 > server public.stratum2.server3 > driftfile /var/db/ntp.drift > # default to ignore > restrict default ignore > # allow my net to configure, byt not act my setting (according to handbook): > restrict 147.175.0.0 mask 255.255.0.0 notrust nomodify notrap You should also add restrict lines, with less restriction than the default, for the servers you use. Just adding a server line does not un-restrict it automatically. > Server synchronize itself well, but when I try query from 147.175.64.41, i > obtain: Are you really sure about this? Does a "ntpq -c rv" show the stratum as below 15? > > ntpdate -vq 147.175.67.128 > 23 Feb 07:54:52 ntpdate[6145]: ntpdate 4.1.0-a Fri Feb 6 09:54:31 CET 2004 (1) > server 147.175.67.128, stratum 16, offset 0.301619, delay 0.02689 > 23 Feb 07:54:52 ntpdate[6145]: no server suitable for synchronization found This looks like your server is not synchronized. Stratum 16 means not synced. John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org From owner-freebsd-stable@FreeBSD.ORG Mon Feb 23 02:20:10 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14F1916A4CE for ; Mon, 23 Feb 2004 02:20:10 -0800 (PST) Received: from bingo.yandex.ru (bingo.yandex.ru [213.180.200.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C5E943D1F for ; Mon, 23 Feb 2004 02:20:09 -0800 (PST) (envelope-from grint@yandex.ru) Received: from gw01.nln.ru ([217.174.98.193]:38080 "EHLO grint.int.nln.ru" smtp-auth: "grint") by mail.yandex.ru with ESMTP id ; Mon, 23 Feb 2004 13:19:57 +0300 Received: from grint by grint.int.nln.ru with local (Exim 4.30; FreeBSD) id 1AvD8c-0000Yi-QO for freebsd-stable@freebsd.org; Mon, 23 Feb 2004 13:16:34 +0300 Date: Mon, 23 Feb 2004 13:16:34 +0300 From: "Ruslan N. Gogunsci" To: freebsd-stable@freebsd.org Message-ID: <20040223101634.GA2062@grint.int.nln.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: fm801 based sound card and FreeBSD5.2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 10:20:10 -0000 Hello, I have fm801 based sound card(Genius SoundMaker),and my FreeBSD5.2 doesn't recognised it. On FreeBSD5.1 i simple install fm801.c from FreeBSD4.6, and it work. But on 5.2 i have kernel compilation errors with fm801.c from 4.6 My dmesg: Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.2.1-RC2 #1: Sun Feb 22 18:13:51 MSK 2004 root@grint.int.nln.ru:/usr/obj/usr/src/sys/MYKERNEL Preloaded elf kernel "/boot/kernel/kernel" at 0xc0974000. Preloaded elf module "/boot/kernel/snd_via82c686.ko" at 0xc09741f4. Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc09742a8. Preloaded elf module "/boot/kernel/agp.ko" at 0xc0974354. Preloaded elf module "/boot/modules/nvidia.ko" at 0xc09743fc. Preloaded elf module "/boot/kernel/linux.ko" at 0xc09744a8. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0974554. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) processor (805.40-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x642 Stepping = 2 Features=0x183f9ff AMD Features=0xc0440000 real memory = 268369920 (255 MB) avail memory = 251043840 (239 MB) Pentium Pro MTRR support enabled npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 7 entries at 0xc00fdf00 acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0 pci0: on pcib0 pcib0: slot 7 INTD is routed to irq 10 pcib0: slot 7 INTC is routed to irq 3 pcib0: slot 9 INTA is routed to irq 9 pcib0: slot 11 INTA is routed to irq 10 pcib0: slot 11 INTA is routed to irq 10 pcib0: slot 12 INTA is routed to irq 11 agp0: mem 0xe8000000-0xebffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pcib0: slot 1 INTA is routed to irq 11 pcib1: slot 0 INTA is routed to irq 11 nvidia0: mem 0xe0000000-0xe7ffffff,0xec000000-0xecffffff irq 11 at device 0.0 on pci1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xc000-0xc00f at device 7.1 on pci0 atapci0: Correcting VIA config for southbridge data corruption bug ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] uhci0: port 0xc400-0xc41f irq 10 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered viapropm0: SMBus I/O base at 0x5000 viapropm0: port 0x5000-0x500f at device 7.4 on pci0 viapropm0: SMBus revision code 0x40 smbus0: on viapropm0 smb0: on smbus0 pcm0: port 0xd400-0xd403,0xd000-0xd003,0xcc00-0xccff irq 3 at device 7.5 on pci0 pcm0: pci0: at device 9.0 (no driver attached) pci0: