From owner-freebsd-bugs Sun Nov 24 0:40: 7 2002 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 EADE337B401 for ; Sun, 24 Nov 2002 00:40:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1A6243EA3 for ; Sun, 24 Nov 2002 00:40:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAO8e3x3094039 for ; Sun, 24 Nov 2002 00:40:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAO8e3l6094038; Sun, 24 Nov 2002 00:40:03 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3075937B401 for ; Sun, 24 Nov 2002 00:36:10 -0800 (PST) Received: from lambda.foldr.org (lambda.foldr.org [198.78.66.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61A8343E88 for ; Sun, 24 Nov 2002 00:36:04 -0800 (PST) (envelope-from vs@foldr.org) Received: from theater.foldr.org (pD95099FD.dip.t-dialin.net [217.80.153.253]) by lambda.foldr.org (8.12.3/8.11.6) with ESMTP id gAO8ZljN028222 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK) for ; Sun, 24 Nov 2002 09:35:52 +0100 (CET) (envelope-from vs@foldr.org) Received: from monster.theater.foldr.org (monster.theater.foldr.org [IPv6:3ffe:b80:2de:3:2e0:29ff:fe98:abca]) by theater.foldr.org (8.12.5/8.12.5) with ESMTP id gAO8a2Ba057222 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Sun, 24 Nov 2002 09:36:03 +0100 (CET) (envelope-from vs@monster.theater.foldr.org) Received: (from vs@localhost) by monster.theater.foldr.org (8.12.6/8.12.6/Submit) id gAO8ZeMs003709; Sun, 24 Nov 2002 09:35:40 +0100 (CET) (envelope-from vs) Message-Id: <200211240835.gAO8ZeMs003709@monster.theater.foldr.org> Date: Sun, 24 Nov 2002 09:35:40 +0100 (CET) From: Volker Stolz Reply-To: Volker Stolz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/45669: pam_ssh fails in presence of SIGCHLD handlers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45669 >Category: bin >Synopsis: pam_ssh fails in presence of SIGCHLD handlers >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 24 00:40:03 PST 2002 >Closed-Date: >Last-Modified: >Originator: Volker Stolz >Release: FreeBSD 5.0-CURRENT i386 >Organization: Lehrstuhl für Informatik II >Environment: System: FreeBSD monster.theater.foldr.org 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Wed Nov 13 19:42:10 CET 2002 root@monster.ikea.net:/usr/src/sys/i386/compile/MONSTER i386 >Description: The pam_ssh module uses popen() to start an ssh-agent for the user during PAM authentication. However, pclose() causes the pam-module to return an error if somebody else already called waitpid(-1,...) because now pclose returns -1 and errno is set to ECHILD (observed with gdm who uses a whole bunch of processes). >How-To-Repeat: Install gdm, enable pam_ssh & try to login: You will get a login error an the first try because the pam_module fails on pclose(). If you try for a second time, now PAM will reuse the already running ssh-agent and let you in since it doesn't have to take the popen/pclose path. >Fix: Either use signal(SIGCHLD,SIG_DFL) before invoking popen() (tested here, works) or make the pclose() fail more gracefully when ECHILD is returned. For the latter case, I'm not sure if this combination of -1/ECHILD can be caused by a real, fatal error. Although the first solution is not bullet proof in cases where other processes are repeatedly wait()ing, it least provides a viable workaround because as is the case with gdm they do so in SIGCHLD handlers. [When debugging/reproducing this, make sure you remove ~/.ssh/agent-* between runs!] >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 3:36:31 2002 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 AB58637B401; Sun, 24 Nov 2002 03:36:30 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D76443E3B; Sun, 24 Nov 2002 03:36:30 -0800 (PST) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOBaUx3058641; Sun, 24 Nov 2002 03:36:30 -0800 (PST) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOBaUvJ058637; Sun, 24 Nov 2002 03:36:30 -0800 (PST) Date: Sun, 24 Nov 2002 03:36:30 -0800 (PST) From: Johan Karlsson Message-Id: <200211241136.gAOBaUvJ058637@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-bugs@FreeBSD.org, johan@FreeBSD.org Subject: Re: bin/44582: usr.bin/bin/Makefile issues Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: usr.bin/bin/Makefile issues Responsible-Changed-From-To: freebsd-bugs->johan Responsible-Changed-By: johan Responsible-Changed-When: Sun Nov 24 03:35:32 PST 2002 Responsible-Changed-Why: I will take care of this when the code-freeze for current is over. http://www.freebsd.org/cgi/query-pr.cgi?pr=44582 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 3:38:32 2002 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 EAADF37B401; Sun, 24 Nov 2002 03:38:31 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A04243E91; Sun, 24 Nov 2002 03:38:31 -0800 (PST) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOBcVx3058735; Sun, 24 Nov 2002 03:38:31 -0800 (PST) (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOBcVas058731; Sun, 24 Nov 2002 03:38:31 -0800 (PST) Date: Sun, 24 Nov 2002 03:38:31 -0800 (PST) From: Maxim Konovalov Message-Id: <200211241138.gAOBcVas058731@freefall.freebsd.org> To: gerti-freebsd@bitart.com, maxim@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/34919: portmap can not exclusively bind to 127.0.0.1 [patch included] Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: portmap can not exclusively bind to 127.0.0.1 [patch included] State-Changed-From-To: open->closed State-Changed-By: maxim State-Changed-When: Sun Nov 24 03:37:20 PST 2002 State-Changed-Why: Duplicate of bin/30235. http://www.freebsd.org/cgi/query-pr.cgi?pr=34919 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 3:39:52 2002 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 2242637B401; Sun, 24 Nov 2002 03:39:41 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD8A143E6E; Sun, 24 Nov 2002 03:39:40 -0800 (PST) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOBdex3058785; Sun, 24 Nov 2002 03:39:40 -0800 (PST) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOBdeNt058781; Sun, 24 Nov 2002 03:39:40 -0800 (PST) Date: Sun, 24 Nov 2002 03:39:40 -0800 (PST) From: Johan Karlsson Message-Id: <200211241139.gAOBdeNt058781@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-bugs@FreeBSD.org, sos@FreeBSD.org Subject: Re: bin/44803: burncd hangs after 'blank' Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Old Synopsis: (no subject) New Synopsis: burncd hangs after 'blank' Responsible-Changed-From-To: freebsd-bugs->sos Responsible-Changed-By: johan Responsible-Changed-When: Sun Nov 24 03:39:01 PST 2002 Responsible-Changed-Why: Over to burncd author/maintainer http://www.freebsd.org/cgi/query-pr.cgi?pr=44803 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 4: 2:28 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E51D37B401; Sun, 24 Nov 2002 04:02:26 -0800 (PST) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C78B43E88; Sun, 24 Nov 2002 04:02:19 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.5/8.12.6) id gAOC2IXN095375; Sun, 24 Nov 2002 13:02:18 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200211241202.gAOC2IXN095375@spider.deepcore.dk> Subject: Re: bin/44803: burncd hangs after 'blank' In-Reply-To: <200211241139.gAOBdeNt058781@freefall.freebsd.org> To: Johan Karlsson Date: Sun, 24 Nov 2002 13:02:17 +0100 (CET) Cc: freebsd-bugs@FreeBSD.ORG, sos@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org It seems Johan Karlsson wrote: > Old Synopsis: (no subject) > New Synopsis: burncd hangs after 'blank' > > Responsible-Changed-From-To: freebsd-bugs->sos > Responsible-Changed-By: johan > Responsible-Changed-When: Sun Nov 24 03:39:01 PST 2002 > Responsible-Changed-Why: > Over to burncd author/maintainer Yeps. just seen it here too, I'll look into it asap, it seems to be an artifact of the DVD support code... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 4:51:58 2002 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 097CD37B401; Sun, 24 Nov 2002 04:51:58 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEC1343E6E; Sun, 24 Nov 2002 04:51:57 -0800 (PST) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOCpvx3089595; Sun, 24 Nov 2002 04:51:57 -0800 (PST) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOCpvTj089591; Sun, 24 Nov 2002 04:51:57 -0800 (PST) Date: Sun, 24 Nov 2002 04:51:57 -0800 (PST) From: Johan Karlsson Message-Id: <200211241251.gAOCpvTj089591@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-bugs@FreeBSD.org, des@FreeBSD.org Subject: Re: bin/45669: pam_ssh fails in presence of SIGCHLD handlers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: pam_ssh fails in presence of SIGCHLD handlers Responsible-Changed-From-To: freebsd-bugs->des Responsible-Changed-By: johan Responsible-Changed-When: Sun Nov 24 04:51:03 PST 2002 Responsible-Changed-Why: Over to PAM maintainer. http://www.freebsd.org/cgi/query-pr.cgi?pr=45669 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 5: 0:12 2002 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 4C93937B401 for ; Sun, 24 Nov 2002 05:00:10 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A7E843E4A for ; Sun, 24 Nov 2002 05:00:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOD09x3090252 for ; Sun, 24 Nov 2002 05:00:09 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOD09Vm090251; Sun, 24 Nov 2002 05:00:09 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5836D37B401 for ; Sun, 24 Nov 2002 04:52:24 -0800 (PST) Received: from mail.parodius.com (mail.parodius.com [64.71.184.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id B37B843EA9 for ; Sun, 24 Nov 2002 04:52:23 -0800 (PST) (envelope-from jdc@pentarou.parodius.com) Received: from pentarou.parodius.com (jdc@localhost [127.0.0.1]) by mail.parodius.com (8.12.6/8.12.6) with ESMTP id gAOCqDCQ028190 for ; Sun, 24 Nov 2002 04:52:13 -0800 (PST) (envelope-from jdc@pentarou.parodius.com) Received: (from jdc@localhost) by pentarou.parodius.com (8.12.6/8.12.6/Submit) id gAOCqDB2028189; Sun, 24 Nov 2002 04:52:13 -0800 (PST) (envelope-from jdc) Message-Id: <200211241252.gAOCqDB2028189@pentarou.parodius.com> Date: Sun, 24 Nov 2002 04:52:13 -0800 (PST) From: Jeremy Chadwick Reply-To: Jeremy Chadwick To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/45672: Makefile support for sendmail CIDR pre-parsing (cidrexpand) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45672 >Category: conf >Synopsis: Makefile support for sendmail CIDR pre-parsing (cidrexpand) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Nov 24 05:00:08 PST 2002 >Closed-Date: >Last-Modified: >Originator: Jeremy Chadwick >Release: FreeBSD 4.7-STABLE i386 >Organization: Parodius Networking >Environment: System: FreeBSD pentarou.parodius.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Nov 14 01:41:15 PST 2002 root@pentarou.parodius.com:/usr/obj/usr/src/sys/PARODIUS-SMP i386 >Description: This is a request to add support for the contrib/cidrexpand script that comes with sendmail, into /etc/mail/Makefile. The script is src/contrib/sendmail/contrib/cidrexpand. We maintain a fairly complex set of rules in /etc/mail/access, and for numerous reasons, sendmail does not have native support for CIDR notation within it's hash files. The script in question addresses this issue. It permits you to use CIDR notation inside /etc/mail/access and pre-parses the contents, generating all possible IP combos from that CIDR (while leaving non-CIDR lines alone), sending the results to stdout. It would be absolutely *fantastic* to have this as part of the /etc/mail/Makefile process. It looks to be highly possible. My recommendation would be to add a new variable to defaults/make.conf called SENDMAIL_CIDR, which would define if the administrator desired using "contrib/cidrexpand | makemap" instead of just the normal makemap process. >How-To-Repeat: Not applicable. >Fix: Not applicable. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 5:30: 5 2002 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 CB11537B401 for ; Sun, 24 Nov 2002 05:30:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22B4A43E6E for ; Sun, 24 Nov 2002 05:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAODU1x3004043 for ; Sun, 24 Nov 2002 05:30:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAODU1N6004042; Sun, 24 Nov 2002 05:30:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E8DF37B401 for ; Sun, 24 Nov 2002 05:23:54 -0800 (PST) Received: from smtp2.nifty.ne.jp (smtp2.nifty.ne.jp [202.219.63.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8894943E3B for ; Sun, 24 Nov 2002 05:23:53 -0800 (PST) (envelope-from CQG00620@nifty.ne.jp) Received: from nifty.ne.jp (mcda014n021.ppp.infoweb.ne.jp [61.124.80.148]) by smtp2.nifty.ne.jp (8.9.3+3.2W/3.7W-991025) with ESMTP id WAA11027 for ; Sun, 24 Nov 2002 22:23:45 +0900 (JST) Message-Id: <200211241323.WAA11027@smtp2.nifty.ne.jp> Date: Sun, 24 Nov 2002 22:21:08 +0900 From: Watanabe Kazuhiro To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/45673: PC98 internal CS4231A is mis-detected to OPTi chip (newpcm) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45673 >Category: kern >Synopsis: PC98 internal CS4231A is mis-detected to OPTi chip (newpcm) >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 Nov 24 05:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Watanabe Kazuhiro >Release: FreeBSD 4.5-RELEASE i386 >Organization: >Environment: System: FreeBSD aries.zodiac.org 4.5-RELEASE FreeBSD 4.5-RELEASE #13: Sun Nov 24 15:30:52 JST 2002 nabe@aries.zodiac.org:/usr/src/sys/compile/LEFTEYE i386 I'm tested on PC-9821Xa9. >Description: PC98 internal CS4231A, which used mostly PC-9821xx and some models of PC-9801xx, is mis-detected to OPTi chip. I think there isn't a soundcard which use a OPTi chip and also can use PC98. >How-To-Repeat: *kernel configuration* device pcm0 at isa? port 0xf40 irq 10 drq 1 flags 0x10000 *dmesg* Found OPTi device OPTi930 pcm0: at port 0xf40-0xf47,0xf8f-0xf97,0xe0e irq 10 drq 1 flags 0x1b000 on isa0 drq/irq conf 1a *dmesg - applied this patch* pcm0: at port 0xf40-0xf47 irq 10 drq 1 flags 0x1a100 on isa0 drq/irq conf 1a >Fix: --- mss.c.original Sun Nov 24 16:55:40 2002 +++ mss.c Sun Nov 24 17:17:07 2002 @@ -1341,6 +1341,7 @@ name = "AD1848"; mss->bd_id = MD_AD1848; /* AD1848 or CS4248 */ +#ifndef PC98 if (opti_detect(dev, mss)) { switch (mss->bd_id) { case MD_OPTI924: @@ -1353,6 +1354,7 @@ printf("Found OPTi device %s\n", name); if (opti_init(dev, mss) == 0) goto gotit; } +#endif /* * Check that the I/O address is in use. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 7:25:57 2002 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 980CE37B401; Sun, 24 Nov 2002 07:25:56 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48C2A43E3B; Sun, 24 Nov 2002 07:25:56 -0800 (PST) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOFPux3067978; Sun, 24 Nov 2002 07:25:56 -0800 (PST) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOFPm4p067969; Sun, 24 Nov 2002 07:25:48 -0800 (PST) Date: Sun, 24 Nov 2002 07:25:48 -0800 (PST) From: Johan Karlsson Message-Id: <200211241525.gAOFPm4p067969@freefall.freebsd.org> To: trost@cloud.rain.com, johan@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: conf/15010: "client" firewall configuration kills incoming broadcast Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: "client" firewall configuration kills incoming broadcast State-Changed-From-To: open->feedback State-Changed-By: johan State-Changed-When: Sun Nov 24 07:24:42 PST 2002 State-Changed-Why: Is this still a problem in more recent releases, say for example 4.7? Please followup by sending a mail to freebsd-gnats-submit@FreeBSD.org with the subject of this mail intact. http://www.freebsd.org/cgi/query-pr.cgi?pr=15010 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 8: 0:46 2002 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 BE5E637B401; Sun, 24 Nov 2002 08:00:45 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DCE343E6E; Sun, 24 Nov 2002 08:00:45 -0800 (PST) (envelope-from johan@FreeBSD.org) Received: from freefall.freebsd.org (johan@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOG0jx3015583; Sun, 24 Nov 2002 08:00:45 -0800 (PST) (envelope-from johan@freefall.freebsd.org) Received: (from johan@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOG0jJT015579; Sun, 24 Nov 2002 08:00:45 -0800 (PST) Date: Sun, 24 Nov 2002 08:00:45 -0800 (PST) From: Johan Karlsson Message-Id: <200211241600.gAOG0jJT015579@freefall.freebsd.org> To: johan@FreeBSD.org, freebsd-bugs@FreeBSD.org, johan@FreeBSD.org Subject: Re: bin/12244: realpath() fails when there is no permission to read the WD Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: realpath() fails when there is no permission to read the WD Responsible-Changed-From-To: freebsd-bugs->johan Responsible-Changed-By: johan Responsible-Changed-When: Sun Nov 24 07:59:54 PST 2002 Responsible-Changed-Why: I will look into this and hopefully commit once 5.0 is out. http://www.freebsd.org/cgi/query-pr.cgi?pr=12244 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 8: 6:39 2002 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 9231B37B401; Sun, 24 Nov 2002 08:06:38 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D5AA43EA9; Sun, 24 Nov 2002 08:06:38 -0800 (PST) (envelope-from keramida@FreeBSD.org) Received: from freefall.freebsd.org (keramida@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOG6cx3022104; Sun, 24 Nov 2002 08:06:38 -0800 (PST) (envelope-from keramida@freefall.freebsd.org) Received: (from keramida@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOG6ba1022100; Sun, 24 Nov 2002 08:06:37 -0800 (PST) Date: Sun, 24 Nov 2002 08:06:37 -0800 (PST) From: Giorgos Keramidas Message-Id: <200211241606.gAOG6ba1022100@freefall.freebsd.org> To: imp@bsdimp.com, keramida@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/45638: Re: wi0 device_probe_and_attach returns 6 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Re: wi0 device_probe_and_attach returns 6 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45638 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 8: 7: 5 2002 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 172AF37B401; Sun, 24 Nov 2002 08:07:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCE6343E9C; Sun, 24 Nov 2002 08:07:03 -0800 (PST) (envelope-from keramida@FreeBSD.org) Received: from freefall.freebsd.org (keramida@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOG73x3022180; Sun, 24 Nov 2002 08:07:03 -0800 (PST) (envelope-from keramida@freefall.freebsd.org) Received: (from keramida@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOG73eC022176; Sun, 24 Nov 2002 08:07:03 -0800 (PST) Date: Sun, 24 Nov 2002 08:07:03 -0800 (PST) From: Giorgos Keramidas Message-Id: <200211241607.gAOG73eC022176@freefall.freebsd.org> To: imp@bsdimp.com, keramida@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/45639: Re: wi0 device_probe_and_attach returns 6 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Re: wi0 device_probe_and_attach returns 6 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45638 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45639 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 8: 7:32 2002 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 45BA137B401; Sun, 24 Nov 2002 08:07:31 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 078A043EAA; Sun, 24 Nov 2002 08:07:31 -0800 (PST) (envelope-from keramida@FreeBSD.org) Received: from freefall.freebsd.org (keramida@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOG7Ux3022257; Sun, 24 Nov 2002 08:07:30 -0800 (PST) (envelope-from keramida@freefall.freebsd.org) Received: (from keramida@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOG7UXH022253; Sun, 24 Nov 2002 08:07:30 -0800 (PST) Date: Sun, 24 Nov 2002 08:07:30 -0800 (PST) From: Giorgos Keramidas Message-Id: <200211241607.gAOG7UXH022253@freefall.freebsd.org> To: imp@bsdimp.com, keramida@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/45640: Re: wi0 device_probe_and_attach returns 6 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Re: wi0 device_probe_and_attach returns 6 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45638 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45639 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45640 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 8: 8:11 2002 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 74D6437B401; Sun, 24 Nov 2002 08:08:09 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33B8B43E9C; Sun, 24 Nov 2002 08:08:09 -0800 (PST) (envelope-from keramida@FreeBSD.org) Received: from freefall.freebsd.org (keramida@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOG88x3022326; Sun, 24 Nov 2002 08:08:09 -0800 (PST) (envelope-from keramida@freefall.freebsd.org) Received: (from keramida@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOG839c022322; Sun, 24 Nov 2002 08:08:03 -0800 (PST) Date: Sun, 24 Nov 2002 08:08:03 -0800 (PST) From: Giorgos Keramidas Message-Id: <200211241608.gAOG839c022322@freefall.freebsd.org> To: chris@unixpages.org, keramida@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/45641: Re: wi0 device_probe_and_attach returns 6 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Re: wi0 device_probe_and_attach returns 6 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45638 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45639 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45640 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45641 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 8: 8:55 2002 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 573D637B406; Sun, 24 Nov 2002 08:08:53 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E86743E6E; Sun, 24 Nov 2002 08:08:52 -0800 (PST) (envelope-from keramida@FreeBSD.org) Received: from freefall.freebsd.org (keramida@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOG8qx3022382; Sun, 24 Nov 2002 08:08:52 -0800 (PST) (envelope-from keramida@freefall.freebsd.org) Received: (from keramida@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOG8qSV022378; Sun, 24 Nov 2002 08:08:52 -0800 (PST) Date: Sun, 24 Nov 2002 08:08:52 -0800 (PST) From: Giorgos Keramidas Message-Id: <200211241608.gAOG8qSV022378@freefall.freebsd.org> To: imp@bsdimp.com, keramida@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/45649: Re: wi0 device_probe_and_attach returns 6 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Re: wi0 device_probe_and_attach returns 6 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45638 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45639 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45640 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45641 State-Changed-From-To: open->closed State-Changed-By: keramida State-Changed-When: Sun Nov 24 08:05:49 PST 2002 State-Changed-Why: Followup to kern/45637 misfiled as a new PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Sun Nov 24 08:05:49 PST 2002 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=45649 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 8:10:13 2002 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 0EE4237B401 for ; Sun, 24 Nov 2002 08:10:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7761743E3B for ; Sun, 24 Nov 2002 08:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOGA2x3022441 for ; Sun, 24 Nov 2002 08:10:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOGA2Lv022440; Sun, 24 Nov 2002 08:10:02 -0800 (PST) Date: Sun, 24 Nov 2002 08:10:02 -0800 (PST) Message-Id: <200211241610.gAOGA2Lv022440@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Giorgos Keramidas Subject: Re: kern/45637: kern/45637: wi0 device_probe_and_attach returns 6 Reply-To: Giorgos Keramidas Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/45637; it has been noted by GNATS. From: Giorgos Keramidas To: bug-followup@freebsd.org Cc: Subject: Re: kern/45637: kern/45637: wi0 device_probe_and_attach returns 6 Date: Sun, 24 Nov 2002 18:05:07 +0200 Add to audit trail multiple followups that were misfiled... :===================================================================== : : Message-Id: <20021123.012811.85895040.imp@bsdimp.com> : In-Reply-To: <200211230800.gAN80Wig000699@dhcp2.gsicomp.on.ca> : Date: Sat, 23 Nov 2002 01:28:11 -0700 (MST) : From: "M. Warner Losh" : : This patch isn't quite right, but I can see it might work for you. : However, it does show that I've been ignoring the pmem* part of the : bridge and need to correct that. Looks like the following patch will : do the trick. This might let us get rid of unsupported ranges, or at : least reduce its need. This should also make the nvida people happier : too, I hope, since they need this since their card is mapped in : non-prefetchable region. : : # still need fix it so drivers can request prefetch or non-prefetch : # memory on their own. Cardbus needs this, for example. : : ==== //depot/user/imp/newcard/dev/pci/pci_pci.c#8 - /dell/imp/p4/newcard/src/sys/dev/pci/pci_pci.c ==== : @@ -282,6 +282,7 @@ : u_long start, u_long end, u_long count, u_int flags) : { : struct pcib_softc *sc = device_get_softc(dev); : + int ok; : : /* : * If this is a "default" allocation against this rid, we can't work : @@ -299,14 +300,18 @@ : */ : switch (type) { : case SYS_RES_IOPORT: : + ok = 1; : if (!pcib_is_isa_io(start)) { : if (!pci_allow_unsupported_io_range) { : if (start < sc->iobase) : start = sc->iobase; : if (end > sc->iolimit) : end = sc->iolimit; : - if (end < start) : + if (end < start) { : start = 0; : + end = 0; : + ok = 0; : + } : } else { : if (start < sc->iobase) : printf("start (%lx) < sc->iobase (%x)\n", start, : @@ -318,12 +323,11 @@ : printf("end (%lx) < start (%lx)\n", end, start); : } : } : - if (!pcib_is_isa_io(start) && : - ((start < sc->iobase) || (end > sc->iolimit))) { : - device_printf(dev, "device %s%d requested unsupported I/O range 0x%lx-0x%lx" : - " (decoding 0x%x-0x%x)\n", : - device_get_name(child), device_get_unit(child), start, end, : - sc->iobase, sc->iolimit); : + if (!ok) { : + device_printf(dev, "device %s%d requested unsupported I/O " : + "range 0x%lx-0x%lx (decoding 0x%x-0x%x)\n", : + device_get_name(child), device_get_unit(child), start, end, : + sc->iobase, sc->iolimit); : return (NULL); : } : if (bootverbose) : @@ -332,20 +336,35 @@ : break; : : /* : - * XXX will have to decide whether the device making the request is asking : - * for prefetchable memory or not. If it's coming from another bridge : - * down the line, do we assume not, or ask the bridge to pass in another : - * flag as the request bubbles up? : + * XXX will have to decide whether the device making the request : + * is asking for prefetchable memory or not. If it's coming : + * from another bridge down the line, do we assume not, or ask : + * the bridge to pass in another flag as the request bubbles up? : */ : case SYS_RES_MEMORY: : + ok = 1; : if (!pcib_is_isa_mem(start)) { : if (!pci_allow_unsupported_io_range) { : - if (start < sc->membase && end >= sc->membase) : - start = sc->membase; : - if (end > sc->memlimit) : - end = sc->memlimit; : - if (end < start) : - start = 0; : + ok = 0; : + if (sc->membase > sc->memlimit) : + ok = ok || : + (start >= sc->membase && end <= sc->memlimit); : + if (sc->pmembase > sc->pmemlimit) : + ok = ok || : + (start >= sc->pmembase && end <= sc->pmemlimit); : + if (!ok) { : + /* XXX Assume non-prefetchable */ : + if (start < sc->membase) : + start = sc->membase; : + if (end > sc->memlimit) : + end = sc->memlimit; : + ok = true; : + if (end < start) { : + start = 0; : + end = 0; : + ok = false; : + } : + } : } else { : if (start < sc->membase && end > sc->membase) : printf("start (%lx) < sc->membase (%x)\n", : @@ -357,19 +376,15 @@ : printf("end (%lx) < start (%lx)\n", end, start); : } : } : - if (!pcib_is_isa_mem(start) && : - (((start < sc->membase) || (end > sc->memlimit)) && : - ((start < sc->pmembase) || (end > sc->pmemlimit)))) { : - if (bootverbose) : - device_printf(dev, : - "device %s%d requested unsupported memory range " : - "0x%lx-0x%lx (decoding 0x%x-0x%x, 0x%x-0x%x)\n", : - device_get_name(child), device_get_unit(child), start, : - end, sc->membase, sc->memlimit, sc->pmembase, : - sc->pmemlimit); : - if (!pci_allow_unsupported_io_range) : - return (NULL); : - } : + if (!ok && bootverbose) : + device_printf(dev, : + "device %s%d requested unsupported memory range " : + "0x%lx-0x%lx (decoding 0x%x-0x%x, 0x%x-0x%x)\n", : + device_get_name(child), device_get_unit(child), start, : + end, sc->membase, sc->memlimit, sc->pmembase, : + sc->pmemlimit); : + if (!ok) : + return (NULL); : if (bootverbose) : device_printf(sc->dev, "device %s%d requested decoded memory range 0x%lx-0x%lx\n", : device_get_name(child), device_get_unit(child), start, end); : :===================================================================== : : Message-Id: <20021123.012850.91094754.imp@bsdimp.com> : In-Reply-To: <200211230800.gAN80Wig000699@dhcp2.gsicomp.on.ca> : Date: Sat, 23 Nov 2002 01:28:50 -0700 (MST) : From: "M. Warner Losh" : : P.S. s/true/1/g;s/false/0/g : :===================================================================== : : Message-Id: <20021123.013939.109040651.imp@bsdimp.com> : In-Reply-To: <200211230800.gAN80Wig000699@dhcp2.gsicomp.on.ca> : Date: Sat, 23 Nov 2002 01:39:39 -0700 (MST) : From: "M. Warner Losh" : : Actually, I think this patch has all the comparisons going the right : way. : : Warner : : --- //depot/user/imp/freebsd-imp/sys/dev/pci/pci_pci.c 2002/11/14 23:02:51 : +++ //depot/user/imp/newcard/dev/pci/pci_pci.c 2002/11/23 00:35:32 : @@ -282,6 +282,7 @@ : u_long start, u_long end, u_long count, u_int flags) : { : struct pcib_softc *sc = device_get_softc(dev); : + int ok; : : /* : * If this is a "default" allocation against this rid, we can't work : @@ -299,14 +300,18 @@ : */ : switch (type) { : case SYS_RES_IOPORT: : + ok = 1; : if (!pcib_is_isa_io(start)) { : if (!pci_allow_unsupported_io_range) { : if (start < sc->iobase) : start = sc->iobase; : if (end > sc->iolimit) : end = sc->iolimit; : - if (end < start) : + if (end < start) { : start = 0; : + end = 0; : + ok = 0; : + } : } else { : if (start < sc->iobase) : printf("start (%lx) < sc->iobase (%x)\n", start, : @@ -318,12 +323,11 @@ : printf("end (%lx) < start (%lx)\n", end, start); : } : } : - if (!pcib_is_isa_io(start) && : - ((start < sc->iobase) || (end > sc->iolimit))) { : - device_printf(dev, "device %s%d requested unsupported I/O range 0x%lx-0x%lx" : - " (decoding 0x%x-0x%x)\n", : - device_get_name(child), device_get_unit(child), start, end, : - sc->iobase, sc->iolimit); : + if (!ok) { : + device_printf(dev, "device %s%d requested unsupported I/O " : + "range 0x%lx-0x%lx (decoding 0x%x-0x%x)\n", : + device_get_name(child), device_get_unit(child), start, end, : + sc->iobase, sc->iolimit); : return (NULL); : } : if (bootverbose) : @@ -332,44 +336,64 @@ : break; : : /* : - * XXX will have to decide whether the device making the request is asking : - * for prefetchable memory or not. If it's coming from another bridge : - * down the line, do we assume not, or ask the bridge to pass in another : - * flag as the request bubbles up? : + * XXX will have to decide whether the device making the request : + * is asking for prefetchable memory or not. If it's coming : + * from another bridge down the line, do we assume not, or ask : + * the bridge to pass in another flag as the request bubbles up? : */ : case SYS_RES_MEMORY: : + ok = 1; : if (!pcib_is_isa_mem(start)) { : + ok = 0; : + if (sc->membase > 0 && sc->membase < sc->memlimit) : + ok = ok || (start >= sc->membase && end <= sc->memlimit); : + if (sc->membase > 0 && sc->pmembase < sc->pmemlimit) : + ok = ok || (start >= sc->pmembase && end <= sc->pmemlimit); : if (!pci_allow_unsupported_io_range) { : - if (start < sc->membase && end >= sc->membase) : - start = sc->membase; : - if (end > sc->memlimit) : - end = sc->memlimit; : + if (!ok) { : + /* XXX Assume non-prefetchable */ : + if (start < sc->membase) : + start = sc->membase; : + if (end > sc->memlimit) : + end = sc->memlimit; : + ok = 1; : + if (end < start) { : + start = 0; : + end = 0; : + ok = 0; : + } : + } : + } else if (!ok) { : + ok = 1; /* pci_allow_unsupported_ranges -> always ok */ : + if (sc->membase > 0 && sc->membase < sc->memlimit) { : + if (start < sc->membase) : + printf("start (%lx) < sc->membase (%x)\n", : + start, sc->membase); : + if (end > sc->memlimit) : + printf("end (%lx) > sc->memlimit (%x)\n", : + end, sc->memlimit); : + } : + if (sc->pmembase > 0 && sc->pmembase < sc->pmemlimit) { : + if (start < sc->pmembase) : + printf("start (%lx) < sc->pmembase (%x)\n", : + start, sc->pmembase); : + if (end > sc->pmemlimit) : + printf("end (%lx) > sc->pmemlimit (%x)\n", : + end, sc->memlimit); : + } : if (end < start) : - start = 0; : - } else { : - if (start < sc->membase && end > sc->membase) : - printf("start (%lx) < sc->membase (%x)\n", : - start, sc->membase); : - if (end > sc->memlimit) : - printf("end (%lx) > sc->memlimit (%x)\n", : - end, sc->memlimit); : - if (end < start) : printf("end (%lx) < start (%lx)\n", end, start); : } : } : - if (!pcib_is_isa_mem(start) && : - (((start < sc->membase) || (end > sc->memlimit)) && : - ((start < sc->pmembase) || (end > sc->pmemlimit)))) { : - if (bootverbose) : - device_printf(dev, : - "device %s%d requested unsupported memory range " : - "0x%lx-0x%lx (decoding 0x%x-0x%x, 0x%x-0x%x)\n", : - device_get_name(child), device_get_unit(child), start, : - end, sc->membase, sc->memlimit, sc->pmembase, : - sc->pmemlimit); : - if (!pci_allow_unsupported_io_range) : - return (NULL); : - } : + if (!ok && bootverbose) : + device_printf(dev, : + "device %s%d requested unsupported memory range " : + "0x%lx-0x%lx (decoding 0x%x-0x%x, 0x%x-0x%x)\n", : + device_get_name(child), device_get_unit(child), start, : + end, sc->membase, sc->memlimit, sc->pmembase, : + sc->pmemlimit); : + if (!ok) : + return (NULL); : if (bootverbose) : device_printf(sc->dev, "device %s%d requested decoded memory range 0x%lx-0x%lx\n", : device_get_name(child), device_get_unit(child), start, end); : :===================================================================== : : Message-Id: <20021123091751.GJ1766@unixpages.org> : In-Reply-To: <20021123.013939.109040651.imp@bsdimp.com> : Date: Sat, 23 Nov 2002 10:17:52 +0100 : From: Christian Brueffer : : On Sat, Nov 23, 2002 at 01:39:39AM -0700, M. Warner Losh wrote: : > Actually, I think this patch has all the comparisons going the right : > way. : : Hi, : : your patch has fixed it for me. Thanks! : : - Christian : :===================================================================== : : Message-Id: <20021123.101017.55148442.imp@bsdimp.com> : In-Reply-To: <20021123091751.GJ1766@unixpages.org> : Date: Sat, 23 Nov 2002 10:10:17 -0700 (MST) : From: "M. Warner Losh" : : In message: <20021123091751.GJ1766@unixpages.org> : Christian Brueffer writes: : : your patch has fixed it for me. Thanks! : : Thanks for the info! : : Warner : :===================================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 8:20: 6 2002 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 21A0B37B401 for ; Sun, 24 Nov 2002 08:20:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DB0A43EA9 for ; Sun, 24 Nov 2002 08:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOGK1x3025380 for ; Sun, 24 Nov 2002 08:20:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOGK1wW025379; Sun, 24 Nov 2002 08:20:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6807537B40B for ; Sun, 24 Nov 2002 08:15:53 -0800 (PST) Received: from teryx.bobdbob.com (w178.z067105181.was-dc.dsl.cnc.net [67.105.181.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF41A43E6E for ; Sun, 24 Nov 2002 08:15:47 -0800 (PST) (envelope-from protius@teryx.bobdbob.com) Received: (from protius@localhost) by teryx.bobdbob.com (8.12.6/8.12.6) id gAOGFk9x016231; Sun, 24 Nov 2002 11:15:46 -0500 (EST) (envelope-from protius) Message-Id: <200211241615.gAOGFk9x016231@teryx.bobdbob.com> Date: Sun, 24 Nov 2002 11:15:46 -0500 (EST) From: Tommy Johnson Reply-To: Tommy Johnson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: i386/45678: The bktr driver when capturing a full frame fails to generate signals Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45678 >Category: i386 >Synopsis: The bktr driver when capturing a full frame fails to generate signals >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 Nov 24 08:20:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Tommy Johnson >Release: FreeBSD 4.7-STABLE i386 >Organization: bobDbob.com (personal system) >Environment: System: FreeBSD teryx.bobdbob.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Wed Oct 30 19:31:17 EST 2002 protius@teryx.bobdbob.com:/local/src/sys/compile/TERYX i386 bktr1: mem 0xfebfc000-0xfebfcfff irq 14 at device 18.0 on pci0 iicbb1: on bti2c1 iicbus2: on iicbb1 master-only iicbus3: on iicbb1 master-only smbus2: on bti2c1 bktr1: Pinnacle/Miro TV, Philips NTSC tuner. pci0: (vendor=0x109e, dev=0x0878) at 18.1 irq 14 >Description: When one is attempting to capture full frames of video in YUV, continuous mode, the device driver will never signal the userland program when it has captured a frame. Yet it works fine with single fields, or RGB. The problem is that the DMA program for YUV mode is generating extra interupts, which makes the driver think it has missed fields, so it does not deliver any frames. The RGB DMA program does not generate the extra interupts. >How-To-Repeat: >Fix: http://www.bobdbob.com/~tjohnson/software/bktrdiff.txt (in case the mail system dammages the diff file) *** bktr_core.c.orig Sat Nov 23 17:39:20 2002 --- bktr_core.c Sat Nov 23 21:22:59 2002 *************** *** 806,812 **** } - /* * Register the completed field * (For dual-field mode, require fields from the same frame) --- 806,811 ---- *************** *** 3080,3086 **** /* contruct sync : for video packet format */ /* sync, mode indicator packed data */ ! *dma_prog++ = OP_SYNC | 1 << 15 | BKTR_FM1; *dma_prog++ = 0; /* NULL WORD */ b = cols; --- 3079,3085 ---- /* contruct sync : for video packet format */ /* sync, mode indicator packed data */ ! *dma_prog++ = OP_SYNC | BKTR_RESYNC | BKTR_FM1; *dma_prog++ = 0; /* NULL WORD */ b = cols; *************** *** 3096,3102 **** switch (i_flag) { case 1: /* sync vre */ ! *dma_prog++ = OP_SYNC | 1 << 24 | BKTR_VRE; *dma_prog++ = 0; /* NULL WORD */ *dma_prog++ = OP_JUMP; --- 3095,3101 ---- switch (i_flag) { case 1: /* sync vre */ ! *dma_prog++ = OP_SYNC | BKTR_GEN_IRQ | BKTR_VRE; *dma_prog++ = 0; /* NULL WORD */ *dma_prog++ = OP_JUMP; *************** *** 3105,3111 **** case 2: /* sync vro */ ! *dma_prog++ = OP_SYNC | 1 << 24 | BKTR_VRO; *dma_prog++ = 0; /* NULL WORD */ *dma_prog++ = OP_JUMP; *dma_prog++ = (u_long ) vtophys(bktr->dma_prog); --- 3104,3110 ---- case 2: /* sync vro */ ! *dma_prog++ = OP_SYNC | BKTR_GEN_IRQ | BKTR_VRO; *dma_prog++ = 0; /* NULL WORD */ *dma_prog++ = OP_JUMP; *dma_prog++ = (u_long ) vtophys(bktr->dma_prog); *************** *** 3113,3119 **** case 3: /* sync vro */ ! *dma_prog++ = OP_SYNC | 1 << 24 | 1 << 15 | BKTR_VRO; *dma_prog++ = 0; /* NULL WORD */ *dma_prog++ = OP_JUMP ; *dma_prog = (u_long ) vtophys(bktr->odd_dma_prog); --- 3112,3118 ---- case 3: /* sync vro */ ! *dma_prog++ = OP_SYNC | BKTR_GEN_IRQ | BKTR_RESYNC | BKTR_VRO; *dma_prog++ = 0; /* NULL WORD */ *dma_prog++ = OP_JUMP ; *dma_prog = (u_long ) vtophys(bktr->odd_dma_prog); *************** *** 3127,3133 **** dma_prog = (u_long * ) bktr->odd_dma_prog; /* sync vre */ ! *dma_prog++ = OP_SYNC | 1 << 24 | 1 << 15 | BKTR_FM1; *dma_prog++ = 0; /* NULL WORD */ for (i = 0; i < (rows/interlace) ; i++) { --- 3126,3132 ---- dma_prog = (u_long * ) bktr->odd_dma_prog; /* sync vre */ ! *dma_prog++ = OP_SYNC | BKTR_RESYNC | BKTR_FM1; *dma_prog++ = 0; /* NULL WORD */ for (i = 0; i < (rows/interlace) ; i++) { *************** *** 3140,3146 **** } /* sync vro IRQ bit */ ! *dma_prog++ = OP_SYNC | 1 << 24 | 1 << 15 | BKTR_VRE; *dma_prog++ = 0; /* NULL WORD */ *dma_prog++ = OP_JUMP ; *dma_prog++ = (u_long ) vtophys(bktr->dma_prog); --- 3139,3145 ---- } /* sync vro IRQ bit */ ! *dma_prog++ = OP_SYNC | BKTR_GEN_IRQ | BKTR_RESYNC | BKTR_VRE; *dma_prog++ = 0; /* NULL WORD */ *dma_prog++ = OP_JUMP ; *dma_prog++ = (u_long ) vtophys(bktr->dma_prog); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 8:30: 6 2002 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 EF16137B401 for ; Sun, 24 Nov 2002 08:30:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F07243E9C for ; Sun, 24 Nov 2002 08:30:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOGU2x3028021 for ; Sun, 24 Nov 2002 08:30:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOGU2mB028020; Sun, 24 Nov 2002 08:30:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1590537B401 for ; Sun, 24 Nov 2002 08:22:00 -0800 (PST) Received: from ums509.nifty.ne.jp (ums509.nifty.ne.jp [202.248.20.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9E1043E6E for ; Sun, 24 Nov 2002 08:21:58 -0800 (PST) (envelope-from CQG00620@nifty.ne.jp) Received: from nifty.ne.jp (mcda014n054.ppp.infoweb.ne.jp [61.124.80.181]) by ums509.nifty.ne.jp (8.9.3+3.2W/3.7W-991025) with ESMTP id BAA13362 for ; Mon, 25 Nov 2002 01:21:48 +0900 (JST) Message-Id: <200211241621.BAA13362@ums509.nifty.ne.jp> Date: Mon, 25 Nov 2002 01:12:08 +0900 From: Watanabe Kazuhiro To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/45679: Cannot record except 8bit-mono with CS4231A & newpcm (half-duplex mode) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45679 >Category: kern >Synopsis: Cannot record except 8bit-mono with CS4231A & newpcm (half-duplex mode) >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 Nov 24 08:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Watanabe Kazuhiro >Release: FreeBSD 4.5-RELEASE i386 >Organization: >Environment: System: FreeBSD aries.zodiac.org 4.5-RELEASE FreeBSD 4.5-RELEASE #13: Sun Nov 24 15:30:52 JST 2002 nabe@aries.zodiac.org:/usr/src/sys/compile/LEFTEYE i386 dmesg: pcm0: at port 0xf40-0xf47 irq 10 drq 1 flags 0x1a100 on isa0 drq/irq conf 1a I'm tested on NEC PC-9821Xa9 and applied a patch posted below: >Description: With newpcm driver that probed CS4231A on half-duplex mode, only record 8bit-mono. Other formats (16bit and/or stereo) cannot record exactly. The problem is happened in any sample rate. OSS/Free driver work fine. In newpcm driver, CS4231A is set to Mode2 (enhanced mode). In Mode2, recording format should be set to a register I28. But newpcm driver is not set the I28 in half-duplex mode. The problem is always happened in NEC PC98's internal CS4231A, which support half-duplex only. >How-To-Repeat: Wavrec is a part of ports/audio/wavplay. cat /dev/sndstat FreeBSD Audio Driver (newpcm) Oct 15 2002 22:36:30 Installed devices: pcm0: at io 0xf40 irq 10 drq 1 (1p/1r/0v channels) # it's not full-duplex. /usr/bin/time wavrec -M -b 8 -t 5 foo.wav # mono/8bit/5sec. 5.28 real 0.01 user 0.28 sys # work fine. /usr/bin/time wavrec -S -b 16 -t 5 bar.wav # stereo/16bit/5sec. 20.27 real 0.00 user 0.40 sys # four times as many as five seconds. /usr/bin/time wavplay bar.wav Pathname: test.wav Device: /dev/audio Sampling Rate: 22050 Hz Mode: Stereo Samples: 110250 Bits: 16 5.22 real 0.02 user 0.29 sys # sounds like a tongle twister. >Fix: In OSS/Free driver, the I28 register is set unconditionally. I don't know what a modification is the best way. --- mss.c.orig Sun Nov 24 23:40:02 2002 +++ mss.c Sun Nov 24 23:40:08 2002 @@ -998,7 +998,9 @@ arg <<= 4; ad_enter_MCE(mss); ad_write(mss, 8, (ad_read(mss, 8) & 0x0f) | arg); - if (FULL_DUPLEX(mss)) ad_write(mss, 28, arg); /* capture mode */ + if (ad_read(mss, 12) & 0x40) { /* mode2 ? */ + ad_write(mss, 28, arg); /* capture mode */ + } ad_leave_MCE(mss); return format; } >Release-Note: >Audit-Trail: >Unformatted: >> "PC98 internal CS4231A is mis-detected to OPTi chip (newpcm)" >> http://www.freebsd.org/cgi/query-pr.cgi?pr=45673 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 9:20: 9 2002 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 24A6337B404 for ; Sun, 24 Nov 2002 09:20:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7ADD43E9C for ; Sun, 24 Nov 2002 09:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOHK2x3046248 for ; Sun, 24 Nov 2002 09:20:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOHK2vc046247; Sun, 24 Nov 2002 09:20:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D91637B401 for ; Sun, 24 Nov 2002 09:17:38 -0800 (PST) Received: from ums509.nifty.ne.jp (ums509.nifty.ne.jp [202.248.20.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F13D43E4A for ; Sun, 24 Nov 2002 09:17:37 -0800 (PST) (envelope-from CQG00620@nifty.ne.jp) Received: from nifty.ne.jp (mcda014n040.ppp.infoweb.ne.jp [61.124.80.167]) by ums509.nifty.ne.jp (8.9.3+3.2W/3.7W-991025) with ESMTP id CAA20372 for ; Mon, 25 Nov 2002 02:17:34 +0900 (JST) Message-Id: <200211241717.CAA20372@ums509.nifty.ne.jp> Date: Mon, 25 Nov 2002 02:10:10 +0900 From: Watanabe Kazuhiro To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/45682: Sometime failed to record/play with CS4231A & newpcm Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45682 >Category: kern >Synopsis: Sometime failed to record/play with CS4231A & newpcm >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 Nov 24 09:20:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Watanabe Kazuhiro >Release: FreeBSD 4.5-RELEASE i386 >Organization: >Environment: System: FreeBSD aries.zodiac.org 4.5-RELEASE FreeBSD 4.5-RELEASE #13: Sun Nov 24 15:30:52 JST 2002 nabe@aries.zodiac.org:/usr/src/sys/compile/LEFTEYE i386 dmesg: pcm0: at port 0xf40-0xf47 irq 10 drq 1 flags 0x1a100 on isa0 drq/irq conf 1a I'm tested on NEC PC-9821Xa9 and applied patches posted below: "PC98 internal CS4231A is mis-detected to OPTi chip (newpcm)" http://www.FreeBSD.org/cgi/query-pr.cgi?pr=kern/45673 "Cannot record except 8bit-mono with CS4231A & newpcm (half-duplex mode)" http://www.FreeBSD.org/cgi/query-pr.cgi?pr=kern/45679 >Description: With newpcm driver & CS4231A, an application software (such as ports/audio/wavplay) sometime failed to play/record with a console message like "play interrupt timeout, channel dead". OSS/Free driver work fine. In newpcm driver, doesn't call ad_wait_init() after set the sampling frequency or rec/play format to CS4231A. >How-To-Repeat: /usr/bin/time wavrec -S -b 16 -t 5 test.wav 5.38 real 0.01 user 0.34 sys # recording stereo/16bit/5sec. /usr/bin/time wavplay test.wav Pathname: test.wav Device: /dev/audio Sampling Rate: 22050 Hz Mode: Stereo Samples: 110250 Bits: 16 Writing samples to audio device 2.31 real 0.01 user 0.30 sys # aborted. console message: Nov 25 01:45:37 aries /kernel: pcm0: play interrupt timeout, channel dead >Fix: --- mss.c.orig Mon Nov 25 01:36:16 2002 +++ mss.c Mon Nov 25 01:36:19 2002 @@ -959,6 +959,7 @@ abs(speed-speeds[i]) < abs(speed-speeds[sel])) sel = i; speed = speeds[sel]; ad_write(mss, 8, (ad_read(mss, 8) & 0xf0) | sel); + ad_wait_init(mss, 10000); } ad_leave_MCE(mss); @@ -998,8 +999,10 @@ arg <<= 4; ad_enter_MCE(mss); ad_write(mss, 8, (ad_read(mss, 8) & 0x0f) | arg); + ad_wait_init(mss, 10000); if (ad_read(mss, 12) & 0x40) { /* mode2 ? */ ad_write(mss, 28, arg); /* capture mode */ + ad_wait_init(mss, 10000); } ad_leave_MCE(mss); return format; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Nov 24 9:50: 7 2002 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 A08C237B401 for ; Sun, 24 Nov 2002 09:50:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A743343E6E for ; Sun, 24 Nov 2002 09:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAOHo1x3054398 for ; Sun, 24 Nov 2002 09:50:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAOHo1fD054397; Sun, 24 Nov 2002 09:50:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D753537B401 for ; Sun, 24 Nov 2002 09:42:36 -0800 (PST) Received: from oak.shadetreesoftware.com (cpe-66-87-52-132.co.sprintbbd.net [66.87.52.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA4C043E3B for ; Sun, 24 Nov 2002 09:42:35 -0800 (PST) (envelope-from durian@oak.shadetreesoftware.com) Received: from oak.shadetreesoftware.com (localhost [127.0.0.1]) by oak.shadetreesoftware.com (8.12.6/8.12.6) with ESMTP id gAOHgOfq005077 for ; Sun, 24 Nov 2002 10:42:24 -0700 (MST) (envelope-from durian@oak.shadetreesoftware.com) Received: (from durian@localhost) by oak.shadetreesoftware.com (8.12.6/8.12.6/Submit) id gAOHgORY005076; Sun, 24 Nov 2002 10:42:24 -0700 (MST) Message-Id: <200211241742.gAOHgORY005076@oak.shadetreesoftware.com> Date: Sun, 24 Nov 2002 10:42:24 -0700 (MST) From: Mike Durian Reply-To: Mike Durian To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/45684: systat -vmstat reports "alternate system clock has died!" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45684 >Category: kern >Synopsis: systat -vmstat reports "alternate system clock has died!" >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 Nov 24 09:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Mike Durian >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD oak.shadetreesoftware.com 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Sat Nov 23 13:02:14 MST 2002 root@oak.shadetreesoftware.com:/usr/obj/usr/src/sys/SHADETREE i386 >Description: When I run 'systat -vmstat 1' I get the following message: The alternate system clock has died! Reverting to ``pigs'' display. The system was cvsup'd 11/24/02 around 10:00am mountain time. This is an SMP system with the following dmesg: Copyright (c) 1992-2002 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.0-CURRENT #3: Sat Nov 23 13:02:14 MST 2002 root@oak.shadetreesoftware.com:/usr/obj/usr/src/sys/SHADETREE Preloaded elf kernel "/boot/kernel/kernel" at 0xc0682000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06820a8. Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (400.91-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183fbff real memory = 536858624 (511 MB) avail memory = 514539520 (490 MB) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): apic id: 1, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Initializing GEOMetry subsystem Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard Using $PIR table, 6 entries at 0xc00f0d20 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-safe" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 acpi_cpu0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 ---- initial configuration ------------------------ \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.12.0 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.12.1 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.12.2 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.12.3 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.11.0 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.11.1 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.11.2 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.11.3 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.10.0 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.10.1 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.10.2 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.10.3 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.9.0 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.9.1 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.9.2 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.9.3 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.4.0 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.4.1 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.4.2 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.4.3 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.1.0 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.1.1 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.1.2 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.1.3 ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.12.0 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.12.1 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.12.2 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.12.3 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.11.0 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.11.1 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.11.2 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.11.3 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.10.0 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.10.1 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.10.2 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.10.3 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.9.0 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.9.1 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.9.2 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.9.3 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.4.0 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.4.1 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.4.2 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.4.3 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.1.0 \\_SB_.LNKB irq 10: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.1.1 \\_SB_.LNKC irq 12: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.1.2 \\_SB_.LNKD irq 5: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.1.3 pci0: on pcib0 IOAPIC #0 intpin 19 -> irq 2 IOAPIC #0 intpin 18 -> irq 5 IOAPIC #0 intpin 17 -> irq 10 IOAPIC #0 intpin 16 -> irq 11 agp0: mem 0xe4000000-0xe7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xd800-0xd80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd400-0xd41f irq 2 at device 4.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered Timecounter "PIIX" frequency 3579545 Hz pci0: at device 4.3 (no driver attached) dc0: port 0xd000-0xd0ff mem 0xe1000000-0xe10003ff irq 5 at device 10.0 on pci0 dc0: Ethernet address: 00:04:5a:6f:5b:79 miibus0: on dc0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xb800-0xb87f mem 0xe0800000-0xe080007f irq 10 at device 11.0 on pci0 xl0: Ethernet address: 00:50:04:7c:b5:48 miibus1: on xl0 xlphy0: <3Com internal media interface> on miibus1 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0xb400-0xb4ff mem 0xe0000000-0xe0000fff irq 11 at device 12.0 on pci0 aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs 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/9 bytes threshold 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 orm0: