From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 14 01:10:19 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BECC016A4CE for ; Sun, 14 Dec 2003 01:10:19 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB4AC43D1D for ; Sun, 14 Dec 2003 01:10:17 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBE9AHFR007514 for ; Sun, 14 Dec 2003 01:10:17 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBE9AHA6007513; Sun, 14 Dec 2003 01:10:17 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 14 Dec 2003 01:10:17 -0800 (PST) Resent-Message-Id: <200312140910.hBE9AHA6007513@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Zagrebin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 654FE16A4CE for ; Sun, 14 Dec 2003 01:04:17 -0800 (PST) Received: from srv1.visp.ru (srv1.visp.ru [213.154.182.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7732543D39 for ; Sun, 14 Dec 2003 01:04:16 -0800 (PST) (envelope-from root@srv1.visp.ru) Received: from root by srv1.visp.ru with local (Exim 3.36 #1) id 1AVSAg-000J10-00 for FreeBSD-gnats-submit@freebsd.org; Sun, 14 Dec 2003 12:04:14 +0300 Message-Id: <200312121559.hBCFx85d032228@bsd.home.local> Date: Fri, 12 Dec 2003 18:59:08 +0300 (MSK) From: Alexander Zagrebin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/60226: ichsmb driver doesn't detects SMB bus on Asus P4B533/P4PE motherboards X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alexander Zagrebin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2003 09:10:19 -0000 >Number: 60226 >Category: kern >Synopsis: ichsmb driver doesn't detects SMB bus on Asus P4B533/P4PE motherboards >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Dec 14 01:10:17 PST 2003 >Closed-Date: >Last-Modified: >Originator: Alexander Zagrebin >Release: FreeBSD 5.2-RC i386 >Organization: >Environment: System: FreeBSD bsd.home.local 5.2-RC FreeBSD 5.2-RC #0: Mon Dec 8 21:54:08 MSK 2003 alex@bsd.home.local:/usr/obj/usr/src/sys/KERNEL i386 >Description: Asus hides the SMBus PCI bridge within the ICH2 or ICH4 southbridge on Asus P4B533/P4PE mainboards. So ichsmb driver doesn't detects SMB bus. >How-To-Repeat: Include device smbus device ichsmb device smb to the kernel config file, recompile kernel and reboot. New kernel will not detects SMB bus. pciconf -lv will not list it too. >Fix: There are linux patch. See http://www.cs.helsinki.fi/linux/linux-kernel/2003-11/0868.html for details. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 14 03:50:14 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB62616A4CF for ; Sun, 14 Dec 2003 03:50:14 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F58443D2D for ; Sun, 14 Dec 2003 03:50:13 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBEBoDFR027158 for ; Sun, 14 Dec 2003 03:50:13 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBEBoDBb027157; Sun, 14 Dec 2003 03:50:13 -0800 (PST) (envelope-from gnats) Date: Sun, 14 Dec 2003 03:50:13 -0800 (PST) Message-Id: <200312141150.hBEBoDBb027157@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Gleb Smirnoff Subject: Re: kern/51410: SiS 5591 ATA133 controller not supported X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gleb Smirnoff List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2003 11:50:14 -0000 The following reply was made to PR kern/51410; it has been noted by GNATS. From: Gleb Smirnoff To: =?koi8-r?Q?S=F8ren?= Schmidt Cc: stolz@i2.informatik.rwth-aachen.de Subject: Re: kern/51410: SiS 5591 ATA133 controller not supported Date: Tue, 9 Dec 2003 13:31:19 +0300 On Mon, May 05, 2003 at 02:57:05AM -0700, Søren Schmidt wrote: S> Synopsis: SiS 5591 ATA133 controller not supported S> S> State-Changed-From-To: open->closed S> State-Changed-By: sos S> State-Changed-When: Mon May 5 02:56:41 PDT 2003 S> State-Changed-Why: S> This is fixed in 5.1 Since 4.x branch of FreeBSD is still supported, this PR should be reopened. Leaving it closed means that FreeBSD 4.x will not work at all on a large number of mainboards based on SiS chipset, and FreeBSD team is not going to fix this. These mainboards support CPUs > 1 GHz (so they are not trash yet), and are sold all over the world. If Søren says, that hardwiring PCI-ID can break something, than, at least, some option like SIS5591_HACK in kernel config must be present, which enables this hack. P.S. I have 3 boxes with this controller onboard, running 4-STABLE with uptime > 90 days. I use patch from originator, which hardwires PCI-ID. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org" From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 14 04:06:17 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 567AA16A4EA; Sun, 14 Dec 2003 04:06:17 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9BC643D35; Sun, 14 Dec 2003 04:06:15 -0800 (PST) (envelope-from ceri@FreeBSD.org) Received: from freefall.freebsd.org (ceri@localhost [127.0.0.1]) hBEC6FFR034846; Sun, 14 Dec 2003 04:06:15 -0800 (PST) (envelope-from ceri@freefall.freebsd.org) Received: (from ceri@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBEC6F5S034842; Sun, 14 Dec 2003 04:06:15 -0800 (PST) (envelope-from ceri) Date: Sun, 14 Dec 2003 04:06:15 -0800 (PST) From: Ceri Davies Message-Id: <200312141206.hBEC6F5S034842@freefall.freebsd.org> To: m69_s3_me9mqm@listhost.us, ceri@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: junk/60212: VERY TOUCHING CHRISTMAS STORY X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2003 12:06:17 -0000 Synopsis: VERY TOUCHING CHRISTMAS STORY State-Changed-From-To: open->closed State-Changed-By: ceri State-Changed-When: Sun Dec 14 04:05:43 PST 2003 State-Changed-Why: I could use (15 MILLION U.S. DOLLARS)|(a bigger penis)|(free cable). http://www.freebsd.org/cgi/query-pr.cgi?pr=60212 From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 14 12:10:24 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7728216A5B2 for ; Sun, 14 Dec 2003 12:10:24 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3129E43D35 for ; Sun, 14 Dec 2003 12:10:21 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBEKALFR044656 for ; Sun, 14 Dec 2003 12:10:21 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBEKALLo044655; Sun, 14 Dec 2003 12:10:21 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 14 Dec 2003 12:10:21 -0800 (PST) Resent-Message-Id: <200312142010.hBEKALLo044655@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mikhail Teterin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68AD016A4CE for ; Sun, 14 Dec 2003 12:06:22 -0800 (PST) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id B85C643D48 for ; Sun, 14 Dec 2003 12:06:19 -0800 (PST) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (mi@localhost [127.0.0.1]) by aldan.algebra.com (8.12.10/8.12.10) with ESMTP id hBEK6FsJ071281 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 14 Dec 2003 15:06:16 -0500 (EST) (envelope-from mi@aldan.algebra.com) Received: (from mi@localhost) by aldan.algebra.com (8.12.10/8.12.10/Submit) id hBEK6FNG071280; Sun, 14 Dec 2003 15:06:15 -0500 (EST) (envelope-from mi) Message-Id: <200312142006.hBEK6FNG071280@aldan.algebra.com> Date: Sun, 14 Dec 2003 15:06:15 -0500 (EST) From: Mikhail Teterin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/60235: some /dev-entries missing for newly auto-added disks X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2003 20:10:24 -0000 >Number: 60235 >Category: kern >Synopsis: some /dev-entries missing for newly auto-added disks >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 14 12:10:20 PST 2003 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 5.2-BETA i386 >Organization: Virtual Estates, Inc. >Environment: System: FreeBSD aldan.algebra.com 5.2-BETA FreeBSD 5.2-BETA #4: Mon Nov 24 22:24:34 EST 2003 root@aldan.algebra.com:/ccd/obj/ccd/src/sys/DEBUG i386 >Description: When I connect the USB flash card reader, FreeBSD detects it properly and the new /dev/da3 is added. However, the /dev/da3s1 is missing, even though fdisk lists 4 slises on the device: ******* Working on device /dev/da3 ******* parameters extracted from in-core disklabel are: cylinders=488 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=488 heads=64 sectors/track=32 (2048 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 6 (0x06),(Primary 'big' DOS (>= 32MB)) start 63, size 999873 (488 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 991/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: Trying to mount it fails at first: % mount -oro -t msdos /dev/da3s1 /sandisk msdosfs: /dev/da3s1: No such file or directory But succeeds after the following chicken-waiving: % mount -oro -t msdos /dev/da3 /sandisk msdosfs: /dev/da3: Invalid argument % mount -oro -t msdos /dev/da3s1 /sandisk % So, even though the attempt to mount /dev/da3 directly fails (as expected), it somehow creates the missing da3s1, so that the subsequent attempt to mount it finaly succeeds. The files are nicely accessible after this and everything else seems to work. >How-To-Repeat: See description >Fix: See description >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 14 16:50:22 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D096B16A4CE for ; Sun, 14 Dec 2003 16:50:22 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 754CA43D32 for ; Sun, 14 Dec 2003 16:50:20 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBF0oKFR081018 for ; Sun, 14 Dec 2003 16:50:20 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBF0oKaN081017; Sun, 14 Dec 2003 16:50:20 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 14 Dec 2003 16:50:20 -0800 (PST) Resent-Message-Id: <200312150050.hBF0oKaN081017@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Jin-Hwan Cho" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24BC516A4CE for ; Sun, 14 Dec 2003 16:49:11 -0800 (PST) Received: from mail.kias.re.kr (mail.kias.re.kr [210.98.29.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 095F843D31 for ; Sun, 14 Dec 2003 16:49:08 -0800 (PST) (envelope-from chofchof@kias.re.kr) Received: from mail (localhost [127.0.0.1]) by mail2 (Spambreaker) with ESMTP id 564ED92E84 for ; Mon, 15 Dec 2003 09:47:36 +0900 (KST) Received: from spin (dhcp.kias.re.kr [210.98.29.3]) by mail.kias.re.kr (Spambreaker) with SMTP id 4143E92E83; Mon, 15 Dec 2003 09:47:36 +0900 (KST) Message-Id: <002501c3c2a5$3a5c8480$8f1da8c0@kias.re.kr> Date: Mon, 15 Dec 2003 09:48:59 +0900 From: "Jin-Hwan Cho" To: cc: "Cho, Jin-Hwan" Subject: misc/60243: Problem in calling kpathsea library from Python extension X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 00:50:22 -0000 >Number: 60243 >Category: misc >Synopsis: Problem in calling kpathsea library from Python extension >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 14 16:50:19 PST 2003 >Closed-Date: >Last-Modified: >Originator: Jin-Hwan Cho >Release: FreeBSD 5.1-RELEASE i386 >Organization: Korean TeX Users Group >Environment: System: FreeBSD hep-ph.konkuk.ac.kr 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386 Packages: python-2.2.2_2, teTeX-2.0.2_2 (kpathsea library version 3.4.5) >Description: Recently I am trying to write a Python extension using the kpathsea library. It was simple and everying went smoothly. But I got a severe problem in FreeBSD. Even simple code did not work in FreeBSD. After trying some tests, I found where the problem occurred. That was "cnf.c" in the kpathsea library (contained in teTeX-2.0.2_2 package). There is a place in "cnf.c" calling "hash_create()" function (defined in hash.c). However, in FreeBSD, the "hash_create()" was not called properly. After changing the name "hash_create()" to another one, for example, "hash_create2()", everything worked fine. I'd like to know exact reason why this kind of problem occurs in FreeBSD. >How-To-Repeat: On FreeBSD system with python-2.2.2_2 and teTeX-2.0.2_2 installed, using the attached three files, run the following command python setup.py install and then run python kpse_test.py The result is "Segmentation fault (core dumped)". >Fix: The problem above can be fixed by modifying the kpathsea library itself as follows: Change the name of "hash_create" function (defined in hash.c) to another name, for example, "hash_create2" from several files, cnf.c, db.c, dir.c, fontname.c, hash.c, and hash.h. It seems quite curious because there was no problem in cygwin. --- setup.py begins here --- from distutils.core import setup, Extension kpse_module = Extension('kpse', include_dirs = ['/usr/local/include'], libraries = ['kpathsea'], library_dirs = ['/usr/local/lib'], sources = ['kpse_module.c']) setup(name = 'kpse', ext_modules = [kpse_module]) --- setup.py ends here --- --- kpse_module.c begins here --- #include #include static PyObject *SetProgramName (PyObject *self, PyObject *args) { string argv0, progname; if (!PyArg_ParseTuple(args, "sz", &argv0, &progname)) return NULL; kpse_set_program_name(argv0, progname); return Py_BuildValue(""); } static PyObject *VarValue (PyObject *self, PyObject *args) { string var; if (!PyArg_ParseTuple(args, "s", &var)) return NULL; return Py_BuildValue("z", kpse_var_value(var)); } static PyMethodDef kpseMethods[] = { {"set_program_name", SetProgramName, METH_VARARGS, NULL}, {"var_value", VarValue, METH_VARARGS, NULL}, {NULL, NULL, 0, NULL} /* sentinel */ }; void initkpse (void) { Py_InitModule("kpse", kpseMethods); } --- kpse_module.c ends here --- --- kpse_test.py begins here --- import kpse kpse.set_program_name('/usr/local/bin/kpsewhich', None) print kpse.var_value('TEXMFMAIN') --- kpse_test.py ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 14 21:10:19 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE4B616A4CE for ; Sun, 14 Dec 2003 21:10:19 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA7E443D36 for ; Sun, 14 Dec 2003 21:10:18 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBF5AIFR008314 for ; Sun, 14 Dec 2003 21:10:18 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBF5AIHA008313; Sun, 14 Dec 2003 21:10:18 -0800 (PST) (envelope-from gnats) Date: Sun, 14 Dec 2003 21:10:18 -0800 (PST) Message-Id: <200312150510.hBF5AIHA008313@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Alexey Popov Subject: Re[2]: kern/59185: 4.9-RELEASE kernel panic (page fault) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alexey Popov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 05:10:19 -0000 The following reply was made to PR kern/59185; it has been noted by GNATS. From: Alexey Popov To: tedm@toybox.placo.com, freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re[2]: kern/59185: 4.9-RELEASE kernel panic (page fault) Date: Mon, 15 Dec 2003 08:05:33 +0300 TM> Perhaps your panics are happening TM> during periods of high network activity, could you try using a TM> different network adapter? I have found out that there is no dependence between a level of network actvity and panics. Also now I know that setting sysctl kern.timecounter=1 makes panics less less often. Thank you for advise, I'll try using another NIC. From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 14 21:50:28 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9006216A4CF for ; Sun, 14 Dec 2003 21:50:28 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 824D043D39 for ; Sun, 14 Dec 2003 21:50:24 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBF5oOFR010568 for ; Sun, 14 Dec 2003 21:50:24 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBF5oOJ7010567; Sun, 14 Dec 2003 21:50:24 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 14 Dec 2003 21:50:24 -0800 (PST) Resent-Message-Id: <200312150550.hBF5oOJ7010567@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Joel Ray Holveck Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2151616A4CE for ; Sun, 14 Dec 2003 21:46:58 -0800 (PST) Received: from thor.piquan.org (adsl-66-125-235-59.dsl.sntc01.pacbell.net [66.125.235.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBCDA43D1F for ; Sun, 14 Dec 2003 21:46:55 -0800 (PST) (envelope-from joelh@thor.piquan.org) Received: from thor.piquan.org (joelh@localhost [127.0.0.1]) by thor.piquan.org (8.12.10/8.12.10) with ESMTP id hBF5ktb0013354 for ; Sun, 14 Dec 2003 21:46:55 -0800 (PST) (envelope-from joelh@thor.piquan.org) Received: (from joelh@localhost) by thor.piquan.org (8.12.10/8.12.10/Submit) id hBF5ktKI013353; Sun, 14 Dec 2003 21:46:55 -0800 (PST) (envelope-from joelh) Message-Id: <200312150546.hBF5ktKI013353@thor.piquan.org> Date: Sun, 14 Dec 2003 21:46:55 -0800 (PST) From: Joel Ray Holveck To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/60246: [PATCH] mergemaster does not warn for obsolete rc.d files X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 05:50:28 -0000 >Number: 60246 >Category: bin >Synopsis: [PATCH] mergemaster does not warn for obsolete rc.d files >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 14 21:50:24 PST 2003 >Closed-Date: >Last-Modified: >Originator: Joel Ray Holveck >Release: FreeBSD 5.2-RC i386 >Organization: >Environment: System: FreeBSD thor.piquan.org 5.2-RC FreeBSD 5.2-RC #21: Sun Dec 14 19:40:38 PST 2003 joelh@thor.piquan.org:/usr/local/src/freebsd/obj/usr/local/src/freebsd/src/sys/THOR i386 >Description: >From UPDATING: 20030829: The following rc.d scripts have been removed and should be deleted from your installation: atm2.sh atm3.sh devdb localdaemons network1 network2 network3. Depending on when you last updated world and used mergemaster(8) you may or may not have problems during the rc boot sequence. The simplest solution is an 'rm -rf /etc/rc.d/*' and then 'mergemaster -i'. The atm2.sh atm3.sh and devdb scripts were removed some time ago, so depending on when you installed -CURRENT these scripts may or may not exist on your system. These scripts can certainly cause boot problems. It would be nice if mergemaster warned the user if these scripts existed, and offered to move them. >How-To-Repeat: >From a 5.1 system, upgrade to 5.2-RC, but don't delete anything from rc.d. On your next boot, look for failures. If you have them installed, error messages will get logged into /var/log/messages from dhcpd, samba, postgres, and probably others. >Fix: Apply the following patch to src/usr.sbin/mergemaster/mergemaster.sh: --- mergemaster.sh.~1~ Sun Dec 14 21:33:45 2003 +++ mergemaster.sh Sun Dec 14 21:39:59 2003 @@ -650,6 +650,71 @@ esac esac +for file in atm2.sh atm3.sh devdb localdaemons network1 network2 network3; do + if [ -f "${DESTDIR}/etc/rc.d/${file}" ]; then + OLD_RC_D_PRESENT=1 + break + fi +done + +case "${OLD_RC_D_PRESENT}" in +1) + echo '' + echo " *** There are old rc.d scripts in ${DESTDIR}/etc/rc.d." + echo '' + echo ' Depending on when you last updated world and used mergemaster' + echo ' they may or may not cause problems during the rc boot sequence.' + echo ' These files can and probably should be removed.' + echo '' + + case "${AUTO_RUN}" in + '') + echo -n 'Move these files to /var/tmp/mergemaster/old_rc_d? [yes] ' + read MOVE_OLD_RC_D + + case "${MOVE_OLD_RC_D}" in + [nN]*) ;; + *) + mkdir -p /var/tmp/mergemaster/old_rc_d + for file in atm2.sh atm3.sh devdb localdaemons network1 network2 \ + network3; do + if [ -f "${DESTDIR}/etc/rc.d/${file}" ]; then + mv ${DESTDIR}/etc/rc.d/${file} /var/tmp/mergemaster/old_rc_d/ + fi + done + echo ' The files have been moved to /var/tmp/mergemaster/old_rc_d/' + press_to_continue + ;; + esac + ;; + *) + # auto_run is a bit anomolous for this case. We don't terribly + # want to risk the next boot being messed up, but we don't really + # want to modify /etc. (The run may not even be for an immediate + # installation!) + # + # We create dummy files in our temp directory. When the operator + # manually reviews the files, then this should clue him that + # attention is needed for these files. If the files are copied + # into /etc later, bulk-style, then the files won't hurt the boot + # process. (As a precaution, we don't make them executable, so + # they won't even be run.) The content is to make them show up in + # the summary at the end, which doesn't list 0-length files. + for file in atm2.sh atm3.sh devdb localdaemons network1 network2 \ + network3; do + if [ -f "${DESTDIR}/etc/rc.d/${file}" ]; then + echo " *** /etc/rc.d/${file} will remain for your consideration" + cat > ${TEMPROOT}/etc/rc.d/${file} <Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 14 23:20:27 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69EE416A4D0 for ; Sun, 14 Dec 2003 23:20:27 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C2D043D45 for ; Sun, 14 Dec 2003 23:20:23 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBF7KNFR020009 for ; Sun, 14 Dec 2003 23:20:23 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBF7KN94020008; Sun, 14 Dec 2003 23:20:23 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 14 Dec 2003 23:20:23 -0800 (PST) Resent-Message-Id: <200312150720.hBF7KN94020008@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, dirk.meyer@dinoex.sub.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3CBB16A4CE for ; Sun, 14 Dec 2003 23:14:18 -0800 (PST) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [212.184.201.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0409743D31 for ; Sun, 14 Dec 2003 23:14:17 -0800 (PST) (envelope-from dm@home.dinoex.sub.de) Received: from home.dinoex.sub.de (home.dinoex.sub.de [217.6.200.196]) by uucp.dinoex.sub.de (8.12.10/8.12.10) with ESMTP id hBF7DxJK030813 for ; Mon, 15 Dec 2003 08:13:59 +0100 (CET) (envelope-from dm@home.dinoex.sub.de) Received: (from dm@localhost) by home.dinoex.sub.de (8.12.10/8.12.9/Submit) id hBF7E1f0093543; Mon, 15 Dec 2003 08:14:01 +0100 (CET) (envelope-from dm) Message-Id: <200312150714.hBF7E1f0093543@home.dinoex.sub.de> Date: Mon, 15 Dec 2003 08:14:01 +0100 (CET) From: dirk.meyer@dinoex.sub.org To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/60247: mutex problems in geom_io X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dirk.meyer@dinoex.sub.org List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 07:20:27 -0000 >Number: 60247 >Category: kern >Synopsis: mutex problems in geom_io >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 14 23:20:22 PST 2003 >Closed-Date: >Last-Modified: >Originator: Dirk Meyer >Release: FreeBSD 5.1-CURRENT i386 >Organization: privat >Environment: FreeBSD 5.2-CURRENT #8: Sun Dec 14 11:17:35 CET 2003 GENERIC >Description: Dec 14 12:58:58 current kernel: Stack backtrace: Dec 15 08:02:33 current syslogd: kernel boot file is /boot/kernel/kernel Dec 15 08:02:33 current kernel: ad0: FAILURE - READ_DMA status=51 error=40 Dec 15 08:02:33 current kernel: vinum: data2.p0.s0 is crashed by force Dec 15 08:02:33 current kernel: vinum: data2.p0 is faulty Dec 15 08:02:33 current kernel: vinum: data2 is down Dec 15 08:02:33 current kernel: malloc() of "16" with the following non-sleepable locks held: Dec 15 08:02:33 current kernel: exclusive sleep mutex g_xup r = 0 (0xd7596cbc) locked @ /usr/src/sys/geom/geom_io.c: 374 Dec 15 08:02:33 current kernel: malloc() of "16" with the following non-sleepable locks held: Dec 15 08:02:33 current kernel: exclusive sleep mutex g_xup r = 0 (0xd7596cbc) locked @ /usr/src/sys/geom/geom_io.c: 374 Dec 15 08:02:33 current kernel: fatal:data2.p0.s0 read error, block 55769385 for 16384 bytes Dec 15 08:02:33 current kernel: data2.p0.s0: user buffer block 54949920 for 16384 bytes Dec 15 08:02:33 current kernel: malloc() of "16" with the following non-sleepable locks held: Dec 15 08:02:33 current kernel: exclusive sleep mutex g_xup r = 0 (0xd7596cbc) locked @ /usr/src/sys/geom/geom_io.c: 374 >How-To-Repeat: set a vinum volume down ... >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 15 01:50:24 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F84316A4CE for ; Mon, 15 Dec 2003 01:50:24 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E652E43D37 for ; Mon, 15 Dec 2003 01:50:20 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBF9oKFR033599 for ; Mon, 15 Dec 2003 01:50:20 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBF9oKfT033598; Mon, 15 Dec 2003 01:50:20 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 15 Dec 2003 01:50:20 -0800 (PST) Resent-Message-Id: <200312150950.hBF9oKfT033598@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, =?Windows-1251?B?x+Dp6u7iINEuwy4=?= Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF23F16A4CE for ; Mon, 15 Dec 2003 01:43:33 -0800 (PST) Received: from linux.tsu.tula.ru (linux.tsu.tula.ru [62.76.50.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id B53BC43D31 for ; Mon, 15 Dec 2003 01:43:25 -0800 (PST) (envelope-from zs060174@uic.tula.ru) Received: from b2-gw.tsu.tula.ru ([62.76.48.135] helo=127.0.0.1) by linux.tsu.tula.ru with esmtp (Exim 3.35 #1 (Debian)) id 1AVpFz-0004Ky-00 for ; Mon, 15 Dec 2003 12:43:15 +0300 Message-Id: <1928717640.20031215124820@uic.tula.ru> Date: Mon, 15 Dec 2003 12:48:20 +0300 From: =?Windows-1251?B?x+Dp6u7iINEuwy4=?= To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/60248: Problem with USB printer HP LaserJet 1300 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: =?Windows-1251?B?x+Dp6u7iINEuwy4=?= List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 09:50:24 -0000 >Number: 60248 >Category: kern >Synopsis: Problem with USB printer HP LaserJet 1300 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 15 01:50:20 PST 2003 >Closed-Date: >Last-Modified: >Originator: úÁÊËÏ× ó.ç. >Release: FreeBSD 4.9-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD acc.acc.tula.ru 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #13: Sun Dec 14 18:54:10 MSK 2003 acc107_3@acc.acc.tula.ru:/usr/obj/usr/src/sys/Z i386 >Description: I have a USB printer HP LaserJet 1300. My FreeBSD detected it as "ugen" device instead "ulpt" device. ugen0: Hewlett-Packard hp LaserJet 1300, rev 1.10/1.00, addr 2 >How-To-Repeat: allways :) >Fix: patch with --ignore-whitespace --Sr1nOIr3CvdE5hEN - --- ulpt.c.orig Fri May 2 15:50:58 2003 +++ ulpt.c Fri May 2 15:56:40 2003 @@ -174,7 +174,8 @@ id->bInterfaceClass == UICLASS_PRINTER && id->bInterfaceSubClass == UISUBCLASS_PRINTER && (id->bInterfaceProtocol == UIPROTO_PRINTER_UNI || - id->bInterfaceProtocol == UIPROTO_PRINTER_BI)) + id->bInterfaceProtocol == UIPROTO_PRINTER_BI || + id->bInterfaceProtocol == UIPROTO_PRINTER_1284)) return (UMATCH_IFACECLASS_IFACESUBCLASS_IFACEPROTO); return (UMATCH_NONE); } @@ -183,79 +184,63 @@ { USB_ATTACH_START(ulpt, sc, uaa); usbd_device_handle dev = uaa->device; + + usb_config_descriptor_t *cdesc; + usbd_interface_handle iface = uaa->iface; - usb_interface_descriptor_t *id = usbd_get_interface_descriptor(iface); + usb_interface_descriptor_t *ifcd = usbd_get_interface_descriptor(iface); + usb_interface_descriptor_t *id, *iend; char devinfo[1024]; usb_endpoint_descriptor_t *ed; usbd_status err; + u_int8_t epcount; + int i, altno; DPRINTFN(10,("ulpt_attach: sc=%p\n", sc)); usbd_devinfo(dev, 0, devinfo); USB_ATTACH_SETUP; - printf("%s: %s, iclass %d/%d\n", USBDEVNAME(sc->sc_dev), - devinfo, id->bInterfaceClass, id->bInterfaceSubClass); - /* Figure out which endpoint is the bulk out endpoint. */ - ed = usbd_interface2endpoint_descriptor(iface, 0); - if (ed == NULL) - goto nobulk; - if (UE_GET_DIR(ed->bEndpointAddress) != UE_DIR_OUT || - (ed->bmAttributes & UE_XFERTYPE) != UE_BULK) { - /* In case we are using a bidir protocol... */ - ed = usbd_interface2endpoint_descriptor(iface, 1); - if (ed == NULL) - goto nobulk; - if (UE_GET_DIR(ed->bEndpointAddress) != UE_DIR_OUT || - (ed->bmAttributes & UE_XFERTYPE) != UE_BULK) - goto nobulk; - } - sc->sc_bulk = ed->bEndpointAddress; - DPRINTFN(10, ("ulpt_attach: bulk=%d\n", sc->sc_bulk)); - - sc->sc_iface = iface; - err = usbd_interface2device_handle(iface, &sc->sc_udev); - if (err) { - sc->sc_dying = 1; - USB_ATTACH_ERROR_RETURN; - } - sc->sc_ifaceno = id->bInterfaceNumber; - -#if 0 -/* - * This code is disabled because for some mysterious reason it causes - * printing not to work. But only sometimes, and mostly with - * UHCI and less often with OHCI. *sigh* - */ - { - usb_config_descriptor_t *cd = usbd_get_config_descriptor(dev); - usb_device_request_t req; - int len, alen; - - req.bmRequestType = UT_READ_CLASS_INTERFACE; - req.bRequest = UR_GET_DEVICE_ID; - USETW(req.wValue, cd->bConfigurationValue); - USETW2(req.wIndex, id->bInterfaceNumber, id->bAlternateSetting); - USETW(req.wLength, sizeof devinfo - 1); - err = usbd_do_request_flags(dev, &req, devinfo, USBD_SHORT_XFER_OK, - &alen); - if (err) { - printf("%s: cannot get device id\n", USBDEVNAME(sc->sc_dev)); - } else if (alen <= 2) { - printf("%s: empty device id, no printer connected?\n", - USBDEVNAME(sc->sc_dev)); - } else { - /* devinfo now contains an IEEE-1284 device ID */ - len = ((devinfo[0] & 0xff) << 8) | (devinfo[1] & 0xff); - if (len > sizeof devinfo - 3) - len = sizeof devinfo - 3; - devinfo[len] = 0; - printf("%s: device id <", USBDEVNAME(sc->sc_dev)); - ieee1284_print_id(devinfo+2); - printf(">\n"); - } - } + cdesc = usbd_get_config_descriptor(dev); + if (cdesc == NULL) { + printf("%s: failed to get configuration descriptor\n", + USBDEVNAME(sc->sc_dev)); + USB_ATTACH_ERROR_RETURN; + } + iend = (usb_interface_descriptor_t *) + ((char *)cdesc + UGETW(cdesc->wTotalLength)); +#ifdef DIAGNOSTIC + if (ifcd < (usb_interface_descriptor_t *)cdesc || + ifcd >= iend) + panic("ulpt: iface desc out of range\n"); #endif - + /* Step through all the descriptors looking for bidir mode */ + for (id = ifcd, altno = 0; + id < iend; + id = (void *)((char *)id + id->bLength)) { + if (id->bDescriptorType == UDESC_INTERFACE && + id->bInterfaceNumber == ifcd->bInterfaceNumber) { + if (id->bInterfaceClass == UICLASS_PRINTER && + id->bInterfaceSubClass == UISUBCLASS_PRINTER && + id->bInterfaceProtocol == UIPROTO_PRINTER_BI) { + DPRINTF(("ulpt_attach: set altno = %d\n", altno)); + err = usbd_set_interface(iface, altno); + if (err == 0) { + printf("%s: %s, iclass %d/%d-%d(%d)\n",USBDEVNAME(sc->sc_dev), + devinfo, id->bInterfaceClass, id->bInterfaceSubClass, + id->bInterfaceNumber+id->bAlternateSetting,id->bInterfaceProtocol); + epcount = 0; + (void)usbd_endpoint_count(iface, &epcount); + for (i = 0; i < epcount; i++) { + ed = usbd_interface2endpoint_descriptor(iface, i); + if (ed != NULL) { + if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && + (ed->bmAttributes & UE_XFERTYPE) == UE_BULK) { + sc->sc_bulk = ed->bEndpointAddress; + DPRINTFN(10, ("ulpt_attach: bulk=%d\n",sc->sc_bulk)); + sc->sc_iface = iface; + err = usbd_interface2device_handle(iface,&sc->sc_udev); + if (err == 0) { + sc->sc_ifaceno = id->bInterfaceNumber; #if defined(__FreeBSD__) sc->dev = make_dev(&ulpt_cdevsw, device_get_unit(self), UID_ROOT, GID_OPERATOR, 0644, "ulpt%d", device_get_unit(self)); @@ -263,10 +248,17 @@ device_get_unit(self)|ULPT_NOPRIME, UID_ROOT, GID_OPERATOR, 0644, "unlpt%d", device_get_unit(self)); #endif - USB_ATTACH_SUCCESS_RETURN; - - nobulk: + } + } + } + } + } + } + altno++; + } + } + id = ifcd; /* not found, use original */ printf("%s: could not find bulk endpoint\n", USBDEVNAME(sc->sc_dev)); sc->sc_dying = 1; USB_ATTACH_ERROR_RETURN; --Sr1nOIr3CvdE5hEN-- >Release-Note: >Audit-Trail: >Unformatted: To: FreeBSD-gnats-submit@freebsd.org From:zs060174@uic.tula.ru Reply-To:zs060174@uic.tula.ru Cc: X-send-pr-version: 3.113 X-GNATS-Notify: From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 15 02:00:35 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B85B16A4CE for ; Mon, 15 Dec 2003 02:00:35 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D05843D37 for ; Mon, 15 Dec 2003 02:00:34 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBFA0YFR033832 for ; Mon, 15 Dec 2003 02:00:34 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBFA0YmM033831; Mon, 15 Dec 2003 02:00:34 -0800 (PST) (envelope-from gnats) Date: Mon, 15 Dec 2003 02:00:34 -0800 (PST) Message-Id: <200312151000.hBFA0YmM033831@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Simun Mikecin Subject: Re: kern/60094: NVIDIA drivers + SMP causes hard lock up X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Simun Mikecin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 10:00:35 -0000 The following reply was made to PR kern/60094; it has been noted by GNATS. From: Simun Mikecin To: freebsd-gnats-submit@FreeBSD.org, bacon@smithers.neuro.mcw.edu Cc: Subject: Re: kern/60094: NVIDIA drivers + SMP causes hard lock up Date: Mon, 15 Dec 2003 10:53:27 +0100 Try this: 1) use kernel AGPGART (either compile it in the kernel, or put agp_load="YES" in /boot/loader.conf 2) do: cd /usr/ports/x11/nvidia-driver make -DWITH_FREEBSD_AGP install clean reboot 3) after rebooting: kldload nvidia sysctl -w hw.nvidia.registry.UpdateKernelAGP=0 startx If it still doesn't work remove agp from the kernel if you compiled it in and remove agp_load line from the /boot/loader.conf. After booting with a new kernel try "make install clean" instead of the above make command. That will use NVidia's AGP driver instead of the one from the kernel. From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 15 02:50:23 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15D8216A4CE for ; Mon, 15 Dec 2003 02:50:23 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9733343D41 for ; Mon, 15 Dec 2003 02:50:18 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBFAoIFR038920 for ; Mon, 15 Dec 2003 02:50:18 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBFAoI9k038919; Mon, 15 Dec 2003 02:50:18 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 15 Dec 2003 02:50:18 -0800 (PST) Resent-Message-Id: <200312151050.hBFAoI9k038919@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Belashov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E46D316A4CE for ; Mon, 15 Dec 2003 02:46:36 -0800 (PST) Received: from white.orel.ru (white.orel.ru [213.59.64.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FD6043D2D for ; Mon, 15 Dec 2003 02:46:35 -0800 (PST) (envelope-from bel@white.orel.ru) Received: from white.orel.ru (localhost [127.0.0.1]) by white.orel.ru (8.12.9/8.12.9) with ESMTP id hBFAkUuU022551 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Dec 2003 13:46:31 +0300 (MSK) (envelope-from bel@white.orel.ru) Received: (from bel@localhost) by white.orel.ru (8.12.9/8.12.9/Submit) id hBFAkTqG022550; Mon, 15 Dec 2003 13:46:29 +0300 (MSK) Message-Id: <200312151046.hBFAkTqG022550@white.orel.ru> Date: Mon, 15 Dec 2003 13:46:29 +0300 (MSK) From: Andrew Belashov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: Andrew Belashov Subject: kern/60250: [patch] rl(4) driver incorrect reset TX descriptors after network errors X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andrew Belashov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 10:50:23 -0000 >Number: 60250 >Category: kern >Synopsis: [patch] rl(4) driver incorrect reset TX descriptors after network errors >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 15 02:50:17 PST 2003 >Closed-Date: >Last-Modified: >Originator: Andrew Belashov >Release: FreeBSD 5.1-RELEASE sparc64 >Organization: JSC "CenterTelecom" >Environment: System: FreeBSD white 5.1-RELEASE FreeBSD 5.1-RELEASE #1: Wed Dec 10 16:15:47 MSK 2003 bel@orel.ru:/usr/obj/usr/src/sys/WHITE sparc64 >Description: Kernel panic with message "panic: trap: memory address not aligned" on FreeBSD/sparc64 after network errors on rl(4) interface. The reason: Driver incorrect reset array of TX descriptors (DVMA address). >How-To-Repeat: >Fix: Use this patch. --- if_rl.c.diff begins here --- --- sys/pci/if_rl.c.orig Sun Jul 6 10:11:14 2003 +++ sys/pci/if_rl.c Wed Dec 10 16:07:14 2003 @@ -1832,7 +1832,8 @@ sc->rl_cdata.rl_tx_dmamap[i]); m_freem(sc->rl_cdata.rl_tx_chain[i]); sc->rl_cdata.rl_tx_chain[i] = NULL; - CSR_WRITE_4(sc, RL_TXADDR0 + i, 0x0000000); + CSR_WRITE_4(sc, RL_TXADDR0 + (i * sizeof(u_int32_t)), + 0x0000000); } } --- if_rl.c.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 15 03:00:34 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B635A16A4CE for ; Mon, 15 Dec 2003 03:00:34 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92DF643D32 for ; Mon, 15 Dec 2003 03:00:31 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBFB0VFR039370 for ; Mon, 15 Dec 2003 03:00:31 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBFB0V3I039369; Mon, 15 Dec 2003 03:00:31 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 15 Dec 2003 03:00:31 -0800 (PST) Resent-Message-Id: <200312151100.hBFB0V3I039369@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alex Dupre Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB4FC16A4CE; Mon, 15 Dec 2003 02:54:59 -0800 (PST) Received: from relay.gufi.org (civetta.gufi.org [212.110.23.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 574CE43D45; Mon, 15 Dec 2003 02:54:56 -0800 (PST) (envelope-from alex@armada.alexdupre.com) Received: from armada.alexdupre.com (host245-49.pool8288.interbusiness.it [82.88.49.245]) by relay.gufi.org (Postfix) with ESMTP id F1FE420F45; Mon, 15 Dec 2003 09:50:23 +0100 (CET) Received: from armada.alexdupre.com (localhost.alexdupre.com [127.0.0.1]) hBF8oN4K082319; Mon, 15 Dec 2003 09:50:23 +0100 (CET) (envelope-from alex@armada.alexdupre.com) Received: (from alex@localhost) by armada.alexdupre.com (8.12.10/8.12.10/Submit) id hBF8oNX1082318; Mon, 15 Dec 2003 09:50:23 +0100 (CET) (envelope-from alex) Message-Id: <200312150850.hBF8oNX1082318@armada.alexdupre.com> Date: Mon, 15 Dec 2003 09:50:23 +0100 (CET) From: Alex Dupre To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: luigi@FreeBSD.org cc: sam@FreeBSD.org Subject: kern/60251: [Patch] Fix visualization of bridge version X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alex Dupre List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 11:00:34 -0000 >Number: 60251 >Category: kern >Synopsis: [Patch] Fix visualization of bridge version >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 15 03:00:31 PST 2003 >Closed-Date: >Last-Modified: >Originator: Alex Dupre >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD armada.alexdupre.com 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Dec 10 02:01:44 CET 2003 alex@armada.alexdupre.com:/usr/obj/usr/src/sys/ARMADA i386 >Description: The cvs keywords in sys/net/bridge.c are not expanded and so the net.link.ether.bridge.version sysctl is useless. Replace the keywords with $FreeBSD$. >How-To-Repeat: # sysctl net.link.ether.bridge.version net.link.ether.bridge.version: $Revision$ $Date$ >Fix: --- bridge.c.diff begins here --- --- bridge.c.orig Mon Dec 15 09:39:26 2003 +++ bridge.c Mon Dec 15 09:40:01 2003 @@ -199,7 +199,7 @@ SYSCTL_DECL(_net_link_ether); SYSCTL_NODE(_net_link_ether, OID_AUTO, bridge, CTLFLAG_RD, 0, "Bridge parameters"); -static char bridge_version[] = "$Revision$ $Date$"; +static char bridge_version[] = "$FreeBSD$"; SYSCTL_STRING(_net_link_ether_bridge, OID_AUTO, version, CTLFLAG_RD, bridge_version, 0, "software version"); --- bridge.c.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 15 09:20:24 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EB8B16A4D8 for ; Mon, 15 Dec 2003 09:20:24 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6773F43D35 for ; Mon, 15 Dec 2003 09:20:19 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBFHKJFR030652 for ; Mon, 15 Dec 2003 09:20:19 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBFHKJ9r030651; Mon, 15 Dec 2003 09:20:19 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 15 Dec 2003 09:20:19 -0800 (PST) Resent-Message-Id: <200312151720.hBFHKJ9r030651@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Alexey A. Kiritchun" , ru@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AB1316A4CE for ; Mon, 15 Dec 2003 09:11:37 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CD1643D45 for ; Mon, 15 Dec 2003 09:11:34 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id hBFHBYdL057116 for ; Mon, 15 Dec 2003 09:11:34 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id hBFHBYqM057115; Mon, 15 Dec 2003 09:11:34 -0800 (PST) (envelope-from nobody) Message-Id: <200312151711.hBFHBYqM057115@www.freebsd.org> Date: Mon, 15 Dec 2003 09:11:34 -0800 (PST) From: "Alexey A. Kiritchun" , ru@FreeBSD.org To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.0 Subject: kern/60276: Kernel panic when plugginh in USB storage X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 17:20:24 -0000 >Number: 60276 >Category: kern >Synopsis: Kernel panic when plugginh in USB storage >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 15 09:20:19 PST 2003 >Closed-Date: >Last-Modified: >Originator: Alexey A. Kiritchun >Release: RELENG_5_2 >Organization: INLINE Tech. >Environment: FreeBSD lair.in-line.ru 5.2-RC FreeBSD 5.2-RC #1: Mon Dec 15 17:17:25 MSK 2003 root@lair.in-line.ru:/usr/obj/usr/src/sys/LAIR i386 >Description: When powering on XClef-HD500 MP3 player/USB storage when it is connected to USB, kernel panics and enters debugger. Error message is: Fatal trap 12: page fault while in kernel mode. at: umass_cam_rescan+0x40 where says: umass_cam_rescan softclock ithread_loop fork_exit fork_trampoline Before that, kernel driver find, the immidiately looses the device. Kernel logs (approx, copyed by hand): BBB: reset failed, IOERROR BBB: bulk-in clear failed, IOERROR BBB: bulk-out clear failed, IOERROR synchronize cache failed, status=0x39, scsi status=0x0 then device is immidiately found again, with another error message: uhub1: illegal enable change, port1 umass0 detaches, then system panics. Dependic on port to which I plug the device, I get different behaviour, but it does not work. This player works properly with both Windows and Linux, and reports to system as "In-System Design" device. dmesg follows: Copyright (c) 1992-2003 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-RC #1: Mon Dec 15 17:17:25 MSK 2003 root@lair.in-line.ru:/usr/obj/usr/src/sys/LAIR Preloaded elf kernel "/boot/kernel/kernel" at 0xc0854000. Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc08541cc. Preloaded elf module "/boot/kernel/snd_cmi.ko" at 0xc0854278. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel Celeron (700.00-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383f9ff real memory = 394252288 (375 MB) avail memory = 373272576 (355 MB) Pentium Pro MTRR support enabled acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 6 entries at 0xc00f1420 acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 acpi_cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib0: slot 1 INTC is routed to irq 10 pcib0: slot 1 INTD is routed to irq 12 pcib0: slot 1 INTD is routed to irq 12 atapci0: port 0xd800-0xd80f at device 0.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] isab0: at device 1.0 on pci0 isa0: on isab0 sis0: port 0xd400-0xd4ff mem 0xee800000-0xee800fff irq 10 at device 1.1 on pci0 sis0: Ethernet address: 00:e0:18:37:52:24 miibus0: on sis0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ohci0: mem 0xee000000-0xee000fff irq 12 at device 1.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ums0: Logitech Optical USB Mouse, rev 2.00/3.40, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. ohci1: mem 0xed800000-0xed800fff irq 12 at device 1.3 on pci0 usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pcib1: at device 2.0 on pci0 pci1: on pcib1 pcib1: slot 0 INTA is routed to irq 11 pci1: at device 0.0 (no driver attached) pcm0: port 0x9800-0x98ff at device 5.0 on pci0 pcib0: slot 5 INTA is routed to irq 10 fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 npx0: [FAST] npx0: on motherboard npx0: INT 16 interface orm0: