Send freebsd-current mailing list submissions to
freebsd-current@freebsd.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
freebsd-current-request@freebsd.org
You can reach the person managing the list at
freebsd-current-owner@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."
Today's Topics:
1. Re: CVSUP and 5.2.1 RELEASE (Marcel Moolenaar)
2. lock (sleep mutex) UMA pcpu not locked (Willem Jan Withagen)
3. Re: Hang on boot - "ATAPI_RESET no interrupt" with DVD+RW
(Brian Fundakowski Feldman)
4. Re: CVSUP and 5.2.1 RELEASE (Garance A Drosihn)
5. Re: CVSUP and 5.2.1 RELEASE (Andre Guibert de Bruet)
6. Re: CVSUP and 5.2.1 RELEASE (Jon Noack)
7. Re: CVSUP and 5.2.1 RELEASE (Andre Guibert de Bruet)
8. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
(Marcel Moolenaar)
9. Re: Renaming sound drivers (Doug White)
10. Re: CVSUP and 5.2.1 RELEASE (Jason Dusek)
11. Re: Network related procs hang in unusual sfpbsy state
(Doug White)
12. Re: serial console stops just before login prompt (Doug White)
13. Re: CVSUP and 5.2.1 RELEASE (Garance A Drosihn)
14. [PATCH] Remove obsolete reference to <sys/_posix.h>
(Panagiotis Astithas)
15. Re: CVSUP and 5.2.1 RELEASE (Garance A Drosihn)
16. Re: Renaming sound drivers (Seigo Tanimura)
17. Re: CVSUP and 5.2.1 RELEASE (Marcel Moolenaar)
18. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
(Marcel Moolenaar)
19. FAILURE - ATAPI_RESET no interrupt (Jason Dusek)
20. Re: FAILURE - ATAPI_RESET no interrupt (Conrad J. Sabatier)
21. cvs-src summary for July 5-12 (Mark Johnston)
22. Re: T41 lockups (Kent Hauser)
23. Some netgraph node global locking patches (Robert Watson)
24. [amd64] pcm0 dies after a while (Conrad J. Sabatier)
25. support for Asus P4P8X onboard audio (vladimir@math.uic.edu)
26. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch (Bjoern A. Zeeb)
27. Re: support for Asus P4P8X onboard audio (Max Laier)
28. Re: support for Asus P4P8X onboard audio (Vladimir Egorin)
29. Re: kldload won't load (M. Warner Losh)
30. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
(Marcel Moolenaar)
----------------------------------------------------------------------
Message: 1
Date: Tue, 13 Jul 2004 16:22:14 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Garance A Drosihn <drosih@rpi.edu>
Cc: Barney Wolff <barney@databus.com>
Message-ID: <20040713232214.GA9507@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset="us-ascii"
On Tue, Jul 13, 2004 at 06:23:38PM -0400, Garance A Drosihn wrote:
>
> a) how about if we print a warning and exit if DESTDIR is
> not defined? Are there "important" uses of `make world'
> which do not use DESTDIR?
My thoughts exactly. See attached patch.
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/ncvs/src/Makefile,v
retrieving revision 1.300
diff -u -r1.300 Makefile
--- Makefile 9 Jul 2004 13:55:50 -0000 1.300
+++ Makefile 13 Jul 2004 23:18:27 -0000
@@ -144,14 +144,17 @@
# Set a reasonable default
.MAIN: all
+.if defined(DESTDIR)
.if make(world)
STARTTIME!= LC_ALL=C date
.endif
#
# world
#
-# Attempt to rebuild and reinstall *everything*, with reasonable chance of
-# success, regardless of how old your existing system is.
+# Attempt to rebuild and reinstall everything. This target is not to be
+# used for upgrading an existing FreeBSD system, because the kernel is
+# not included. One can argue that this target doesn't build everything
+# then.
#
world: upgrade_checks
@echo "--------------------------------------------------------------"
@@ -178,6 +181,16 @@
@echo ">>> make world completed on `LC_ALL=C date`"
@echo " (started ${STARTTIME})"
@echo "--------------------------------------------------------------"
+.else
+world:
+ @echo "WARNING: make world will overwrite your existing FreeBSD"
+ @echo "installation without also building and installing a new"
+ @echo "kernel. This can be dangerous. Please read the handbook,"
+ @echo "'Using make world', for how to upgrade your system."
+ @echo "Define DESTDIR to the where you want to install FreeBSD,
+ @echo "including /, to override this warning and proceed as usual."
+ @echo "You have been warned..."
+.endif
#
# kernel
------------------------------
Message: 2
Date: Wed, 14 Jul 2004 01:44:40 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: lock (sleep mutex) UMA pcpu not locked
To: <freebsd-current@freebsd.org>
Message-ID: <03c701c46933$5d867d00$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
Something is really scr*d here...
Unfortunatly I replaces DDB bij KDB without adding the DDB. And these panics a
nd
stuff come while building a new kernel. :( So no backtraces here...
--WjW
With
FreeBSD opteron.digiware.nl 5.2-CURRENT FreeBSD 5.2-CURRENT #62: Tue Jul 13
15:25:31 CEST 2004
wjw@opteron.digiware.nl:/usr/obj/home2/src/sys/OPTERON.amd64 amd64
panic: lock (sleep mutex) UMA pcpu not locked @
/home2/src/sys/vm/uma_core.c:2034
cpuid = 1;
boot() called on cpu#1
Uptime: 5m7s
panic: _mtx_lock_sleep: recursed on non-recursive mutex UMA pcpu @
/home2/src/sys/vm/uma_core.c:1633
cpuid = 1;
boot() called on cpu#1
Uptime: 5m7s
panic: _mtx_lock_sleep: recursed on non-recursive mutex UMA pcpu @
/home2/src/sys/vm/uma_core.c:1633
OR:
panic: lock (sleep mutex) UMA pcpu not locked @
/home2/src/sys/vm/uma_core.c:1654
cpuid = 0;
boot() called on cpu#0
Uptime: 2m20s
panic: _mtx_lock_sleep: recursed on non-recursive mutex UMA pcpu @
/home2/src/sys/vm/uma_core.c:1633
OR:
panic: lock (sleExpensive timeout(9) function: 0xffffffff8026cdac(0xffffff007b
6a
5250) 0.031261241 s
panic: process 1002(fsck_ufs):2 holds process lock but isn't blocked on a lock
cpuid = 1;
boot() called on cpu#1
Uptime: 2m43s
panic: cv_wait: not TDS_RUNNING
cpuid = 1;
boot() called on cpu#1
And also:
suspending ithread with the following locks held:
Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address = 0x17805dc110
fault code = supervisor read, page not present
instruction pointer = 0x8:0xffffffff8026ffe4
stack pointer = 0x10:0xffffffffb1a0b5f0
frame pointer = 0x10:0xffffff007b6d6950
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 36 (swi5: clock sio)
trap number = 12
panic: page fault
cpuid = 1;
boot() called on cpu#1
Uptime: 1h1m26s
And
kernel trap 9 with interrupts disabled
Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer = 0x8:0xffffffff802712fc
stack pointer = 0x10:0xffffffffb1aa4a40
frame pointer = 0x10:0xffffffff8058aa30
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = resume, IOPL = 0
current process = 3 (g_up)
trap number = 9
panic: general protection fault
cpuid = 0;
boot() called on cpu#0
Uptime: 3m18s
------------------------------
Message: 3
Date: Tue, 13 Jul 2004 19:56:09 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: Hang on boot - "ATAPI_RESET no interrupt" with DVD+RW
To: Brian Rogers <burpmaster@truffula.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040713235609.GQ1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii
On Tue, Jul 13, 2004 at 03:19:51PM -0700, Brian Rogers wrote:
> Since last night and continuing today, the kernel from -CURRENT usually
> hangs during boot. Safe mode worked once, but the second time it didn't
> work. I now got in through single-user mode, so it appears to just work
> every once in a while, randomly.
>
> I have a dmesg from the booted system below. When it hangs, it stops
> one line after "ata1-slave: FAILURE - ATAPI_RESET no interrupt", in
> other words it hangs after detecting ata1-master but before detecting
> ata1-slave, my DVD+RW drive.
Try using these diffs to src/sys/dev/ata; they fixed it for me.
cvs diff: Diffing .
Index: ata-all.c
===================================================================
RCS file: /usr/ncvs/src/sys/dev/ata/ata-all.c,v
retrieving revision 1.214
diff -u -r1.214 ata-all.c
--- ata-all.c 22 Jun 2004 11:18:24 -0000 1.214
+++ ata-all.c 26 Jun 2004 03:38:25 -0000
@@ -183,17 +183,20 @@
if (!dev || !(ch = device_get_softc(dev)) || !ch->r_irq)
return ENXIO;
- /* detach devices on this channel */
if (ch->device[MASTER].detach)
- ch->device[MASTER].detach(&ch->device[MASTER]);
+ ch->device[MASTER].flags |= ATA_D_DETACHING;
if (ch->device[SLAVE].detach)
- ch->device[SLAVE].detach(&ch->device[SLAVE]);
+ ch->device[SLAVE].flags |= ATA_D_DETACHING;
+ /* fail outstanding requests on this channel */
+ ata_fail_requests(ch, NULL);
#ifdef DEV_ATAPICAM
atapi_cam_detach_bus(ch);
#endif
-
- /* fail outstanding requests on this channel */
- ata_fail_requests(ch, NULL);
+ /* detach devices on this channel */
+ if (ch->device[MASTER].detach)
+ ch->device[MASTER].detach(&ch->device[MASTER]);
+ if (ch->device[SLAVE].detach)
+ ch->device[SLAVE].detach(&ch->device[SLAVE]);
/* flush cache and powerdown device */
if (ch->device[MASTER].param) {
@@ -254,8 +257,9 @@
request->result = ENXIO;
request->retries = 0;
}
- ch->device[MASTER].detach(&ch->device[MASTER]);
+ ch->device[MASTER].flags |= ATA_D_DETACHING;
ata_fail_requests(ch, &ch->device[MASTER]);
+ ch->device[MASTER].detach(&ch->device[MASTER]);
free(ch->device[MASTER].param, M_ATA);
ch->device[MASTER].param = NULL;
}
@@ -265,8 +269,9 @@
request->result = ENXIO;
request->retries = 0;
}
- ch->device[SLAVE].detach(&ch->device[SLAVE]);
+ ch->device[SLAVE].flags |= ATA_D_DETACHING;
ata_fail_requests(ch, &ch->device[SLAVE]);
+ ch->device[SLAVE].detach(&ch->device[SLAVE]);
free(ch->device[SLAVE].param, M_ATA);
ch->device[SLAVE].param = NULL;
}
Index: ata-disk.c
===================================================================
RCS file: /usr/ncvs/src/sys/dev/ata/ata-disk.c,v
retrieving revision 1.173
diff -u -r1.173 ata-disk.c
--- ata-disk.c 22 Jun 2004 11:18:24 -0000 1.173
+++ ata-disk.c 26 Jun 2004 03:38:25 -0000
@@ -160,7 +160,6 @@
{
struct ad_softc *adp = atadev->softc;
- atadev->flags |= ATA_D_DETACHING;
#ifdef DEV_ATARAID
if (adp->flags & AD_F_RAID_SUBDISK)
ata_raiddisk_detach(adp);
Index: ata-lowlevel.c
===================================================================
RCS file: /usr/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
retrieving revision 1.38
diff -u -r1.38 ata-lowlevel.c
--- ata-lowlevel.c 11 Jun 2004 07:39:15 -0000 1.38
+++ ata-lowlevel.c 26 Jun 2004 03:38:25 -0000
@@ -476,7 +476,8 @@
break;
default:
- ata_prtdev(request->device, "unknown transfer phase\n");
+ ata_prtdev(request->device, "unknown transfer phase %#x:%#x\n",
+ ATA_IDX_INB(ch, ATA_IREASON), request->status);
request->status = ATA_S_ERROR;
}
Index: ata-queue.c
===================================================================
RCS file: /usr/ncvs/src/sys/dev/ata/ata-queue.c,v
retrieving revision 1.29
diff -u -r1.29 ata-queue.c
--- ata-queue.c 1 Jun 2004 12:26:08 -0000 1.29
+++ ata-queue.c 30 Jun 2004 00:15:39 -0000
@@ -211,7 +211,8 @@
ATA_DEBUG_RQ(request, "taskqueue completition");
/* request is done schedule it for completition */
- if (request->device->channel->flags & ATA_IMMEDIATE_MODE) {
+ if (request->device->channel->flags & ATA_IMMEDIATE_MODE ||
+ request->result != 0) {
ata_completed(request, 0);
}
else {
Index: atapi-cd.c
===================================================================
RCS file: /usr/ncvs/src/sys/dev/ata/atapi-cd.c,v
retrieving revision 1.168
diff -u -r1.168 atapi-cd.c
--- atapi-cd.c 22 Jun 2004 11:18:24 -0000 1.168
+++ atapi-cd.c 30 Jun 2004 01:49:02 -0000
@@ -113,6 +113,8 @@
}
ata_set_name(atadev, "acd", cdp->lun);
+ /* perform a reset to get hardware in a known state */
+ (void)ata_controlcmd(atadev, ATA_ATAPI_RESET, 0, 0, 0);
acd_get_cap(cdp);
/* if this is a changer device, allocate the neeeded lun's */
@@ -154,7 +156,7 @@
tmpcdp->driver = cdparr;
tmpcdp->slot = count;
tmpcdp->changer_info = chp;
- g_post_event(acd_geom_create, tmpcdp, M_WAITOK, NULL);
+ g_waitfor_event(acd_geom_create, tmpcdp, M_WAITOK, NULL);
}
if (!(name = malloc(strlen(atadev->name) + 2, M_ACD, M_NOWAIT))) {
ata_prtdev(atadev, "out of memory\n");
@@ -169,7 +171,7 @@
}
}
else
- g_post_event(acd_geom_create, cdp, M_WAITOK, NULL);
+ g_waitfor_event(acd_geom_create, cdp, M_WAITOK, NULL);
/* setup the function ptrs */
atadev->detach = acd_detach;
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green@FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
------------------------------
Message: 4
Date: Tue, 13 Jul 2004 20:04:30 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Marcel Moolenaar <marcel@xcllnt.net>
Cc: Barney Wolff <barney@databus.com>
Message-ID: <p06110417bd1a257b4447@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
At 4:22 PM -0700 7/13/04, Marcel Moolenaar wrote:
>On Tue, Jul 13, 2004 at 06:23:38PM -0400, Garance A Drosihn wrote:
>>
>> a) how about if we print a warning and exit if DESTDIR is
>> not defined? Are there "important" uses of `make world'
>> which do not use DESTDIR?
>
>My thoughts exactly. See attached patch.
I imagine we could debate the best wording to use for the warning
message, but I do think this patch would be an improvement for our
users. If it saves a few users from a trashed system, it will be
a valuable change. In my quick testing, it seemed to do the right
things.
One other thing we might want to change is the part where we:
# Set a reasonable default
.MAIN: all
I am not so sure that is a reasonable default. Someone who roams
into /usr/src and types a plain `make' should probably be told to
read the documentation for what to do. However, this does not
bother me much. I think `make world' is the bigger issue.
--
Garance Alistair Drosehn = gad@gilead.netel.rpi.edu
Senior Systems Programmer or gad@freebsd.org
Rensselaer Polytechnic Institute or drosih@rpi.edu
------------------------------
Message: 5
Date: Tue, 13 Jul 2004 20:18:08 -0400 (EDT)
From: Andre Guibert de Bruet <andy@siliconlandmark.com>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Marcel Moolenaar <marcel@xcllnt.net>
Cc: current@freebsd.org
Message-ID: <20040713201539.G24726@alpha.siliconlandmark.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Tue, 13 Jul 2004, Marcel Moolenaar wrote:
> On Tue, Jul 13, 2004 at 06:23:38PM -0400, Garance A Drosihn wrote:
>>
>> a) how about if we print a warning and exit if DESTDIR is
>> not defined? Are there "important" uses of `make world'
>> which do not use DESTDIR?
>
> My thoughts exactly. See attached patch.
May I suggest a sleep (Say 5 seconds) after the message is printed?
Regards,
Andy
> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/ >
------------------------------
Message: 6
Date: Tue, 13 Jul 2004 19:42:24 -0500 (CDT)
From: "Jon Noack" <noackjr@alumni.rice.edu>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: "Andre Guibert de Bruet" <andy@siliconlandmark.com>
Cc: current@freebsd.org
Message-ID: <57834.69.53.57.66.1089765744.squirrel@69.53.57.66>
Content-Type: text/plain;charset=iso-8859-1
Andre Guibert de Bruet wrote:
> On Tue, 13 Jul 2004, Marcel Moolenaar wrote:
>> On Tue, Jul 13, 2004 at 06:23:38PM -0400, Garance A Drosihn wrote:
>>> a) how about if we print a warning and exit if DESTDIR is
>>> not defined? Are there "important" uses of `make world'
>>> which do not use DESTDIR?
>>
>> My thoughts exactly. See attached patch.
>
> May I suggest a sleep (Say 5 seconds) after the message is printed?
Um... why? Look at the patch (more closely). If you don't define DESTDIR
then the *only* thing that happens is that you get the warning message.
Jon
------------------------------
Message: 7
Date: Tue, 13 Jul 2004 20:57:48 -0400 (EDT)
From: Andre Guibert de Bruet <andy@siliconlandmark.com>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: current@freebsd.org
Message-ID: <20040713205629.E24726@alpha.siliconlandmark.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Tue, 13 Jul 2004, Jon Noack wrote:
> Andre Guibert de Bruet wrote:
>> On Tue, 13 Jul 2004, Marcel Moolenaar wrote:
>>> On Tue, Jul 13, 2004 at 06:23:38PM -0400, Garance A Drosihn wrote:
>>>> a) how about if we print a warning and exit if DESTDIR is
>>>> not defined? Are there "important" uses of `make world'
>>>> which do not use DESTDIR?
>>>
>>> My thoughts exactly. See attached patch.
>>
>> May I suggest a sleep (Say 5 seconds) after the message is printed?
>
> Um... why? Look at the patch (more closely). If you don't define DESTDIR
> then the *only* thing that happens is that you get the warning message.
You're absolutely right. That's what I get for flying through my email.
It's been "one of those days"... heh
> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/ >
------------------------------
Message: 8
Date: Tue, 13 Jul 2004 18:11:56 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: current@freebsd.org
Message-ID: <20040714011156.GA14310@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 14, 2004 at 12:09:47AM +0200, Poul-Henning Kamp wrote:
>
> http://phk.freebsd.dk/patch/tty.patch
>
> This patch removes 2500 lines of copy&paste insanity in tty drivers
> and generally tries to get things to be less confused & confusing.
>
> I need testers for all the different kinds of serial hardware we support.
>
> Please help test!
I think NL->CRNL translation is off by default. On an i386 with uart(4)
as the system console I get the following:
\begin{console}
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%
ad0: 19574MB <WDC WD205BA> [39770/16/63] at ata0-master UDMA66
ata1-master: FAILURE - ATAPI_RESET no interrupt
acd0: DVDROM <HL-DT-STDVD-ROM GDR8160B> at ata1-master UDMA66
Mounting root from ufs:/dev/ad0s1a
Pre-seeding PRNG: kickstart.
Loading configuration files.
Entropy harvesting: in
terrupts ethernet point_to_point kickstart.
kernel dumps on /dev/ad0s1b
\end{console}
When getty(8) gets started everything gets back to normal, but as soon
as the system console kicks in again, CR doesn't happen.
\begin{console}
FreeBSD/i386 (athlon.pn.xcllnt.net) (ttyu0)
login: marcel
Password:
Last login: Tue Jul 13 17:16:28 on ttyu0
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
Never worry about theory as long as the machinery does what it's
supposed to do.
-- R. A. Heinlein
athlon% sudo shutdown -r now
Shutdown NOW!
shutdown: [pid 518]
athlon%
*** FINAL System shutdown message from marcel@athlon.pn.xcllnt.net ***
System going down IMMEDIATELY
Jul 13 17:18:55 athlon shutdown: reboot by marcel:
System shutdown time has arrived
dc0: TX underrun -- increasing TX threshold
Stopping inetd.
Shutting down daemon processes:.
Stopping cron.
Shutting down loc
al daemons:.
Writing entropy file:.
Terminated
.
JWaiting (max 60 seconds) for syste
m process `vnlru' to stop...stopped
Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped
Waiting (max 60 seconds) for system process `syncer' to stop...2 1 dc0: watchd
og
\end{console}
I see the same behaviour on ia64 with uart(4), plus also a panic:
\begin{console}
Tue Jul 13 17:29:42 PDT 2004
panic: foo
KDB: enter: panic
\end{console}
#0 kdb_enter (msg=0xe00000000459f1c8 "panic") at cpufunc.h:47
#1 0xe000000004279f80 in panic (fmt=0xe00000000458b528 "foo")
at ../../../kern/kern_shutdown.c:525
#2 0xe0000000041aaa60 in uart_tty_close (tp=0xe000000000712000)
at ../../../dev/uart/uart_tty.c:309
#3 0xe0000000042eff20 in ttyclose (dev=0xe0000000046a73c8, flag=6532608,
mode=7413760, td=0xe0000000041fc950) at ../../../kern/tty.c:2973
#4 0xe0000000041fc950 in spec_close (ap=0xa000000031173310)
at ../../../fs/specfs/spec_vnops.c:637
#5 0xe0000000041f9d10 in spec_vnoperate (ap=0xa000000031173310)
at ../../../fs/specfs/spec_vnops.c:118
#6 0xe00000000435af70 in vn_close (vp=0xe000000003ca8b40, flags=6,
file_cred=0xe00000000029bc00, td=0xe00000007c6a66f0) at vnode_if.h:262
#7 0xe0000000042f44d0 in cnclose (dev=0xe0000000046a4ea0, flag=4, mode=8192,
td=0xe00000007c6a66f0) at ../../../kern/tty_cons.c:441
#8 0xe0000000041fc950 in spec_close (ap=0xa0000000311733a0)
at ../../../fs/specfs/spec_vnops.c:637
#9 0xe0000000041f9d10 in spec_vnoperate (ap=0xa0000000311733a0)
at ../../../fs/specfs/spec_vnops.c:118
#10 0xe000000004345ba0 in vclean (vp=0xe000000003ca8d20, flags=8,
td=0xe00000007c6a66f0) at vnode_if.h:262
#11 0xe000000004346900 in vgonel (vp=0xe000000003ca8d20, td=0xe00000007c6a66f0
)
at ../../../kern/vfs_subr.c:2699
#12 0xe000000004346580 in vgone (vp=0xe000000003ca8d20)
at ../../../kern/vfs_subr.c:2631
#13 0xe0000000043463f0 in vop_revoke (ap=0xe0000000046a4f10)
at ../../../kern/vfs_subr.c:2592
#14 0xe0000000041d7580 in devfs_revoke (ap=0xe0000000046a4f10)
at ../../../fs/devfs/devfs_vnops.c:720
#15 0xe0000000042461a0 in exit1 (td=0xe00000007c6a66f0, rv=0) at vnode_if.h:59
3
#16 0xe000000004245210 in sys_exit (td=0xe00000007c6a66f0,
uap=0xa0000000311734e8) at ../../../kern/kern_exit.c:94
#17 0xe000000004555f20 in syscall (tf=0xa000000031173400)
at ../../../ia64/ia64/trap.c:998
(gdb) frame 2
#2 0xe0000000041aaa60 in uart_tty_close (tp=0xe000000000712000)
at ../../../dev/uart/uart_tty.c:309
309 sc->sc_opened = 0;
(gdb) l
304 if (sc->sc_sysdev == NULL)
305 UART_SETSIG(sc, SER_DDTR | SER_DRTS);
306
307 wakeup(sc);
308 KASSERT(!(tp->t_state & TS_ISOPEN), ("foo"));
309 sc->sc_opened = 0;
310 return;
311 }
312
313 void
Also: it's probably better to not force serial drivers to get cua*
(slave) device names. I rather prefer to have uart* for uart(4) and
foo* for foo(4). I see no advantage to have all TTY devices have
cua* names. It seems that the only reason for this is that we have
the initial and lock devices named rather crypticly.
There's also a bug there: For uart(4) the suffix is "r", which creates
cuar0, cuair0 and cualr0 as well as ttyir0 and ttylr0.
However, the TTY device for uart(4) is ttyu0. Maybe something like:
ttymakeslaves(sc->sc_u.u_tty.si, unit, "uart", "u");
Which gives us something like:
/dev/ttyu0
/dev/ttyu0.init
/dev/ttyu0.lock
/dev/uart0
/dev/uart0.init
/dev/uart0.lock
Much friendlier, not so arcane and easier on automation and the likes.
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
Message: 9
Date: Tue, 13 Jul 2004 18:36:12 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: Renaming sound drivers
To: Seigo Tanimura <tanimura@tanimura.dyndns.org>
Cc: current@FreeBSD.org
Message-ID: <20040713183517.V527@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 12 Jul 2004, Seigo Tanimura wrote:
> I am planning to rename the sound drivers as follows:
>
>
> - `sound'
>
> The generic sound driver, including pcm and midi (to come).
>
> - `snd_*'
>
> The device-dependent drivers, named after the sound driver modules at
> this moment.
>
>
> This scheme eliminates unwanted device-dependent drivers (about 260KB
> in my case) from your kernel.
If you need said drivers, how do you compile them in? Up until now,
unless you load modules, you don't know which one you grab.
This patch seems somewhat gratuitous.
--
Doug White | FreeBSD: The Power to Serve
dwhite@gumbysoft.com | www.FreeBSD.org
------------------------------
Message: 10
Date: Tue, 13 Jul 2004 20:42:03 -0500
From: Jason Dusek <jason-dusek@uiowa.edu>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: current@freebsd.org
Message-ID: <40F48F6B.5070201@uiowa.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
What about adding a new make target that *will* do what Joe user thinks 'make
world' should do (i.e. build everything including the kernel and put it
somewhere harmless for testing)? It could be 'make otherworld' and put all the
stuff in /otherworld. Then you could make jokes about daemons 'from the other
world' influencing system processes.
- Jason
Jon Disnard wrote:
> Brad Knowles wrote:
>
>> At 11:49 PM +0200 2004-07-13, Poul-Henning Kamp wrote:
>>
>>> I think the problem here is that people type "make world" when
>>> they shouldn't.
>>
>>
>>
>> Right, but they don't know that, because almost all the
>> documentation over the past ten years has said that this is the way to
>> do things. We can put "don't use 'make world'" in all the primary
>> documentation you want, and maybe 1% of the users will ever see that,
>> after they've been burned.
>>
>> The way to fix this problem is to fix it.
>>
>>> But removing the world target will make a lot of documentation
>>> wrong, about 22900 pages of documentation according to google.
>>
>>
>>
>> All that stuff is wrong anyway. There's no reason we should
>> continue to support that.
>>
>>> Find a better solution please.
>>
>>
>>
>> If you've got one, I'd love to hear it. So far, I haven't heard
>> of anything better.
>>
> I would suggest that unilateraly removing "make world" is not good, and
> neither is retaining it in its present form.
> So in good spirit, could we sprink in some thing that displays a huge
> blinking warning in bold about why this might be bad?
> If we (rather you commiters) decide to remove it, make a plan to do so
> for 6.x.
>
> This is a ballance:
> noob foot shoots who agrivate developers who speak of reading docs that
> are wrong Vs the utility of this arguably hostile facility.
>
> Where is the justification in any of it?
>
> -Jon
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
------------------------------
Message: 11
Date: Tue, 13 Jul 2004 18:48:21 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: Network related procs hang in unusual sfpbsy state
To: Gary Stanley <gary@outloud.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040713184408.W527@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 12 Jul 2004, Gary Stanley wrote:
> New current kernel from about 3 days ago, certain processes hang after
> about a day in this state;
>
> 80 599 1 0 -16 -2 59020 53548 sfpbsy D< ?? 1141:08.65
> /mnt/zeus/web/bin/zeus.web
sfpbsy is used in do_sendfile(). It blocks on this if a page for the file
its trying to send is busy. It may be blocked on another process or the
volume its on is taking a while to page the page in. You might check the
logs or whatever for zeus and see if all of them are hung trying to
request the same file, or if its on the same filesystem.
Anyone who understands the reason things get marked PG_BUSY can chime in
here :)
--
Doug White | FreeBSD: The Power to Serve
dwhite@gumbysoft.com | www.FreeBSD.org
------------------------------
Message: 12
Date: Tue, 13 Jul 2004 18:55:31 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: serial console stops just before login prompt
To: "Simon L. Nielsen" <simon@FreeBSD.org>
Cc: Kim Culhan <w8hdkim@yahoo.com>
Message-ID: <20040713185354.Q527@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Tue, 13 Jul 2004, Simon L. Nielsen wrote:
> On 2004.07.13 07:36:12 -0700, Kim Culhan wrote:
>
> > Setup serial console as follows:
> [...]
> > At this point there is no login: prompt on the terminal.
>
> You need to change /etc/tty's to start a getty on the serial console.
> E.g. for the first serial port change
>
> ttyd0 "/usr/libexec/getty std.9600" dialup off secure
> to
> ttyd0 "/usr/libexec/getty std.115200" dialup on secure
you get much better behavior if you set the terminal type to something
like vt100 :) 'dialup' is a magic terminal type thats supposed to kick
the user into providing a terminal type. For a hardwired terminal, that
may do the wrong thing.
--
Doug White | FreeBSD: The Power to Serve
dwhite@gumbysoft.com | www.FreeBSD.org
------------------------------
Message: 13
Date: Tue, 13 Jul 2004 21:56:49 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Jason Dusek <jason-dusek@uiowa.edu>, current@freebsd.org
Message-ID: <p06110419bd1a42ac1bda@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
At 8:42 PM -0500 7/13/04, Jason Dusek wrote:
>What about adding a new make target that *will* do what Joe user
>thinks 'make world' should do (i.e. build everything including
>the kernel and put it somewhere harmless for testing)?
The problem is that Joe User's are using *this* target, even though
we already have documentation that points them to a reliable set
of steps for upgrading their systems. If you do not fix the target
that they are actually typing in, then it does not matter how many
more new targets that you add.
And at least for now, a reliable set of steps must include a
"reboot and check kernel" before installing the world. There is
no way for `make' to do that.
--
Garance Alistair Drosehn = gad@gilead.netel.rpi.edu
Senior Systems Programmer or gad@freebsd.org
Rensselaer Polytechnic Institute or drosih@rpi.edu
------------------------------
Message: 14
Date: Tue, 13 Jul 2004 16:03:28 +0300
From: Panagiotis Astithas <past@ebs.gr>
Subject: [PATCH] Remove obsolete reference to <sys/_posix.h>
To: FreeBSD Current <freebsd-current@freebsd.org>
Cc: mike@freebsd.org
Message-ID: <40F3DDA0.9040108@ebs.gr>
Content-Type: text/plain; charset=us-ascii; format=flowed
Hi,
while doing some porting work I found that in src/sys/posix4/mqueue.h we
still include sys/_posix.h, despite having removed the relevant file in
2002. This tiny patch should fix this:
--- /usr/src/sys/posix4/mqueue.h Sat Sep 21 21:49:56 2002
+++ mqueue.h Tue Jul 13 15:59:12 2004
@@ -37,8 +37,6 @@
#ifndef _MQUEUE_H_
#define _MQUEUE_H_
-#include <sys/_posix.h>
-
#ifdef _P1003_1B_INCLUDE_MAYBES
#include <sys/types.h>
#include <fcntl.h>
Cheers,
--
Panagiotis Astithas, PhD
R&D Manager
EBS, Electronic Business Systems Ltd.
18 Evgenidou Street, 115 25, Athens GREECE
Phone: +30 210 674 7631
Fax: +30 210 674 7601
http://www.ebs.gr
------------------------------
Message: 15
Date: Tue, 13 Jul 2004 22:24:57 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Marcel Moolenaar <marcel@xcllnt.net>
Cc: Barney Wolff <barney@databus.com>
Message-ID: <p0611041abd1a49199d83@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
At 4:22 PM -0700 7/13/04, Marcel Moolenaar wrote:
>On Tue, Jul 13, 2004 at 06:23:38PM -0400, Garance A Drosihn wrote:
>>
>> a) how about if we print a warning and exit if DESTDIR is
>> not defined? Are there "important" uses of `make world'
>> which do not use DESTDIR?
>
>My thoughts exactly. See attached patch.
Actually, the target should end with some kind of failure, in
case someone has a script that does:
make world && do-next-thing
if we change `make world' to do nothing, then sequences like
this should error-out right away. So I think it should have
a "false" command after all the @echo's...
--
Garance Alistair Drosehn = gad@gilead.netel.rpi.edu
Senior Systems Programmer or gad@freebsd.org
Rensselaer Polytechnic Institute or drosih@rpi.edu
------------------------------
Message: 16
Date: Wed, 14 Jul 2004 11:29:31 +0900
From: Seigo Tanimura <tanimura@tanimura.dyndns.org>
Subject: Re: Renaming sound drivers
To: Doug White <dwhite@gumbysoft.com>
Cc: Seigo Tanimura <tanimura@tanimura.dyndns.org>
Message-ID: <200407140229.i6E2TVib004186@urban>
Content-Type: text/plain; charset=US-ASCII
On Tue, 13 Jul 2004 18:36:12 -0700 (PDT),
Doug White <dwhite@gumbysoft.com> said:
dwhite> On Mon, 12 Jul 2004, Seigo Tanimura wrote:
>> I am planning to rename the sound drivers as follows:
>>
>>
>> - `sound'
>>
>> The generic sound driver, including pcm and midi (to come).
>>
>> - `snd_*'
>>
>> The device-dependent drivers, named after the sound driver modules at
>> this moment.
>>
>>
>> This scheme eliminates unwanted device-dependent drivers (about 260KB
>> in my case) from your kernel.
dwhite> If you need said drivers, how do you compile them in? Up until now,
dwhite> unless you load modules, you don't know which one you grab.
The patch adds all of the sound drivers into NOTES, so all you need is
to copy them into your kernel configuration.
Alternatively, it may be better to add the sound drivers into GENERIC,
as the USB drivers do.
dwhite> This patch seems somewhat gratuitous.
--
Seigo Tanimura <tanimura@tanimura.dyndns.org> <tanimura@FreeBSD.org>
------------------------------
Message: 17
Date: Tue, 13 Jul 2004 19:42:28 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Garance A Drosihn <drosih@rpi.edu>
Cc: Barney Wolff <barney@databus.com>
Message-ID: <20040714024228.GA623@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Tue, Jul 13, 2004 at 10:24:57PM -0400, Garance A Drosihn wrote:
>
> if we change `make world' to do nothing, then sequences like
> this should error-out right away. So I think it should have
> a "false" command after all the @echo's...
Good point. I've added a false. I'll wait for a bit before committing
so people have a chance to comment whether this is the right way to
go or not.
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
Message: 18
Date: Tue, 13 Jul 2004 19:46:23 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: current@freebsd.org
Message-ID: <20040714024623.GB623@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 14, 2004 at 12:09:47AM +0200, Poul-Henning Kamp wrote:
>
> http://phk.freebsd.dk/patch/tty.patch
>
> This patch removes 2500 lines of copy&paste insanity in tty drivers
> and generally tries to get things to be less confused & confusing.
>
> I need testers for all the different kinds of serial hardware we support.
>
> Please help test!
boot -s is generally broken. No characters can be typed. This is
with syscons(4) and uart(4) and probably any other driver. Might
be related to the lack of NL->CRNL
FYI,
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
Message: 19
Date: Tue, 13 Jul 2004 22:12:37 -0500
From: Jason Dusek <jason-dusek@uiowa.edu>
Subject: FAILURE - ATAPI_RESET no interrupt
To: questions@freebsd.org, current@freebsd.org
Message-ID: <40F4A4A5.4070907@uiowa.edu>
Content-Type: text/plain; charset="us-ascii"
Hi,
My CD-ROM has a rather discouraging message attached to it:
ata1-master: FAILURE - ATAPI_RESET no interrupt
acd0: CDRW <QSI CD-RW/DVD-ROM SBW242U> at ata1-master PIO4
(The whole dmesg is attached to this email.) What does 'FAILURE - ATAPI_RESET
no
interrupt' mean in this context?
I recently rebuilt my world and kernel with source from current. I am using a
custom kernel (also attached) that got along fine with the CD drive before I
rebuilt the world. A generic kernel can read the drive okay - but I wanted to
have someone else look at this one before I started the laborious process of
removing devices one by one to get at the cause of my trouble.
- Jason
-------------- next part --------------
# $FreeBSD: src/sys/i386/conf/CUSTOM,v 1.394.2.3 2004/01/26 19:42:11 nectar Ex
p $
machine i386
cpu I686_CPU
ident FREEBSD
options SCHED_4BSD #4BSD scheduler
options INET #InterNETworking
options INET6 #InterNETworking v6
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options UFS_ACL #Support for access control lists
options UFS_DIRHASH #Improve performance on big directories
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 #Compatible with FreeBSD4
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
# BUS
device isa
device pci
device agp # support several AGP chipsets
# Floppy drives
device fdc
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
# Input
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device psm # PS/2 mouse
device vga # VGA video card driver
device splash # Splash screen and screen saver support
device sc
# FPU
device npx
device pmtimer
# Pccard
device cbb # cardbus (yenta) bridge
device pccard # PC Card (16-bit) bus
device cardbus # CardBus (32-bit) bus
# Serial (COM) ports
device sio # 8250, 16[45]50 based serial ports
# Parallel port
device ppc
device ppbus # Parallel port bus (required)
device lpt # Printer
# Nic
device miibus # MII bus support
device bge # Broadcom BCM570xx Gigabit Ethernet
# Wireless NIC cards
device wlan # 802.11 support
device an # Aironet 4500/4800 802.11 wireless NICs.
device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs.
# Audio Device
device pcm
# Pseudo devices - the number indicates how many units to allocate.
device random # Entropy device
device loop # Network loopback
device ether # Ethernet support
device pty # Pseudo-ttys (telnet etc)
device bpf # Berkeley packet filter
# USB support
device uhci # UHCI PCI->USB interface
device usb # USB Bus (required)
device ugen # Generic
device ums # Mouse
-------------- next part --------------
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.2-CURRENT #0: Tue Jul 13 20:42:11 CDT 2004
root@pikachu:/usr/obj/usr/src/sys/CUSTOM
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1500MHz (1495.16-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x695 Stepping = 5
Features=0xa7e9f9bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT
,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
real memory = 536535040 (511 MB)
avail memory = 519536640 (495 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL CPi R > on motherboard
acpi0: [GIANT-LOCKED]
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU (4 Cx states)> port 0x530-0x537 on acpi0
acpi_tz0: <Thermal Zone> port 0x530-0x537 on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_cmbat0: <Control Method Battery> on acpi0
acpi_cmbat1: <Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82855 host to AGP bridge> mem 0xe0000000-0xe7ffffff at device 0.0
on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xbf80-0xbf9f irq 11 a
t device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801DB (ICH4) USB controller USB-A> 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
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xbf40-0xbf5f irq 11 a
t device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xbf20-0xbf3f irq 11 a
t device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: <serial bus, USB> at device 29.7 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
bge0: <Broadcom BCM5705M Gigabit Ethernet, ASIC rev. 0x3001> mem 0xfaff0000-0x
faffffff irq 11 at device 0.0 on pci2
miibus0: <MII bus> on bge0
brgphy0: <BCM5705 10/100/1000baseTX PHY> on miibus0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000base
TX-FDX, auto
bge0: Ethernet address: 00:0f:1f:b3:18:45
bge0: [GIANT-LOCKED]
cbb0: <O2Micro OZ711E1 PCI-CardBus Bridge> at device 1.0 on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1: <O2Micro OZ711E1 PCI-CardBus Bridge> at device 1.1 on pci2
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pci2: <network> at device 3.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> port 0xbfa0-0xbfaf,0x376,0x170-0x177,
0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pcm0: <Intel ICH4 (82801DB)> port 0xbc40-0xbc7f,0xb800-0xb8ff mem 0xf4fff400-0
xf4fff4ff,0xf4fff800-0xf4fff9ff irq 11 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: <SigmaTel STAC9750/51 AC97 Codec>
pci0: <simple comms> at device 31.6 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model GlidePoint, device ID 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 1 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff on isa0
pmtimer0 on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1495155331 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
cpu0: Performance states changed
ad0: 38154MB <HTS548040M9AT00> [77520/16/63] at ata0-master UDMA100
pccard1: <unknown card> (manufacturer=0xffff, product=0x0001) at function 0
pccard1: CIS info: O2Micro, SmartCardBus Reader, V1.0
ata1-master: FAILURE - ATAPI_RESET no interrupt
acd0: CDRW <QSI CD-RW/DVD-ROM SBW242U> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
drm0: <ATI Radeon Lf R250 Mobility 9000 M9> port 0xc000-0xc0ff mem 0xfcff0000-
0xfcffffff,0xe8000000-0xefffffff irq 11 at device 0.0 on pci1
info: [drm] AGP at 0xe0000000 128MB
info: [drm] Initialized radeon 1.11.0 20020828 on minor 0
info: [drm] Loading R200 Microcode
------------------------------
Message: 20
Date: Tue, 13 Jul 2004 23:03:49 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: Re: FAILURE - ATAPI_RESET no interrupt
To: Jason Dusek <jason-dusek@uiowa.edu>
Cc: questions@freebsd.org
Message-ID: <XFMail.20040713230349.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii
On 14-Jul-2004 Jason Dusek wrote:
> Hi,
>
> My CD-ROM has a rather discouraging message attached to it:
>
> ata1-master: FAILURE - ATAPI_RESET no interrupt
> acd0: CDRW <QSI CD-RW/DVD-ROM SBW242U> at ata1-master PIO4
>
> (The whole dmesg is attached to this email.) What does 'FAILURE -
> ATAPI_RESET no
> interrupt' mean in this context?
Seeing the same thing here, with a new world/kernel build last night
(Monday, July 12).
The drive is working OK, it seems. No idea what the error message is
about.
--
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
------------------------------
Message: 21
Date: Tue, 13 Jul 2004 23:04:51 -0500
From: Mark Johnston <mjohnston@skyweb.ca>
Subject: cvs-src summary for July 5-12
To: current@freebsd.org
Message-ID: <200407132304.51226.mjohnston@skyweb.ca>
Content-Type: text/plain; charset="us-ascii"
FreeBSD cvs-src summary for 05/07/04 to 12/07/04
++++++++++++++++++++++++++++++++++++++++++++++++
This is a regular weekly summary of FreeBSD's cutting-edge development.
It is intended to help the FreeBSD community keep up with the fast-paced
work going on in FreeBSD-CURRENT by distilling the deluge of data from
the CVS mailing list into a (hopefully) easy-to-read newsletter. This
newsletter is marked up in reStructuredText_, so any odd punctuation
that you see is likely intended for the reST parser.
. _reStructuredText: http://docutils.sourceforge.net/rst.html
You can get old summaries, and an HTML version of this one, at
http://www.xl0.org/FreeBSD/. Please send any comments to Mark Johnston
(mark at xl0.org).
For Lukasz Dudek and Szymon Roczniak's Polish translations of these
summaries, which may lag the English ones slightly, please see
http://mocart.pinco.pl/FreeBSD/.
. contents::
============
New features
============
New kernel debugger framework added, plus GDB support
-----------------------------------------------------
Marcel Moolenaar (marcel) committed a new KDB kernel debugger framework.
KDB is a frontend that provides a way for multiple different debugger
backends to be registered with the kernel. He then added a GDB backend
for KDB, which improves on the old GDB support with threading support,
compression, and an interface for devices to register themselves as debug
consoles.
Marcel also updated many system files to use KDB instead of the old DDB.
This means that kernel options and sysctl names that used to contain "DDB"
now contain "KDB". The exception is that the kernel option DDB remains,
but now it indicates that DDB should be included as a KDB backend.
As a side note, this was a marathon committing spree; the first of some 70
commits was at 17:47 UTC and the last was at 04:39 the next morning.
http://www.freebsd.org/cgi/mid.cgi?200407101840.i6AIeCAV035547
http://www.freebsd.org/cgi/mid.cgi?200407101747.i6AHlMJu033711
http://www.freebsd.org/cgi/mid.cgi?200407102347.i6ANlKB5047187
Multi-byte character support added to regex library and many utilities
----------------------------------------------------------------------
Tim J. Robbins (tjr) added support to the the regex library, as well as
many system utilities, for multi-byte characters. The improved utilities
include tr, hexdump, od, split, csplit, and expr.
http://www.freebsd.org/cgi/mid.cgi?200407120735.i6C7Zx2f005903
GEOM_STRIPE gains FAST mode
---------------------------
Pawel Jakub Dawidek (pjd) added a new FAST mode for the GEOM_STRIPE RAID
0 code. The FAST mode uses mode memory, but it is about 10 times faster
for small stripes than other RAID 0 implementations, since it ensures that
only one I/O request is sent to each drive. If you want to use the old
mode (ECONOMIC), you can set the sysctl kern.geom.stripe.fast to 0.
http://www.freebsd.org/cgi/mid.cgi?200407091430.i69EU9qE059040
tcsh version 6.13.00 imported
-----------------------------
Mark Peek (mp) imported tcsh version 6.13.00, replacing the old 6.11.
6.13 adds a number of minor bugfixes and improvements, the most important
being better support for internationalization.
http://www.freebsd.org/cgi/mid.cgi?200407110223.i6B2Nc1G052677
AMD (am-utils) v6.0.10p1 imported
---------------------------------
Martin Blapp (mbr) committed version 6.0.10p1 of the Berkeley Automounter
utilities, replacing the old version 6.0.9. The automounter can mount and
unmount filesystems automatically, falling back to other filesystems if
remote servers are inaccessible. The new version adds some minor bugfixes
and support for an nfs_allow_insecure_port option.
http://www.freebsd.org/cgi/mid.cgi?200407061255.i66tjbo021517
NgATM ATM subsystem 1.0 imported
--------------------------------
Hartmut Brandt (harti) imported the user and kernel parts of NgATM, the
subsystem for interfacing with ATM (Asynchronous Transfer Mode) network
connections.
http://www.freebsd.org/cgi/mid.cgi?200407081638.i68GcbMo019165
http://www.freebsd.org/cgi/mid.cgi?200407081639.i68Gd3Wv019190
===============
Notable changes
===============
Ruslan's man page rampage
-------------------------
I mentioned Ruslan Ermilov (ru) having made many man page cleanup commits
last week; this week was even busier, with another big bunch of commits
from Ruslan cleaning up man pages all over the system. Many of last
week's commits were machine-generated, but this week's were generally
manual.
(many, many, many)
Major Bmake framework cleanup
-----------------------------
David O'Brien (obrien) committed a major cleanup to the Bmake framework,
used to build the GNU binutils, like the assembler and linker. He removed
a lot of old, unsupported code, and reduced code duplication as far as
possible. This also fixes make buildworld on the PowerPC platform.
http://www.freebsd.org/cgi/mid.cgi?200407081705.i68H5Ykh020695
=================
Committer changes
=================
Randy Pratt (rpratt) and Jonathan Mini (mini) have returned their commit
bits for safekeeping.
===================
Important bug fixes
===================
-O2 optimization bug in libalias fixed
--------------------------------------
Dag-Erling Smorgrav (des) fixed a bug in libalias, the library that
handles packet aliasing for NAT, that was resulting in incorrect code
being generated with gcc at optimization level -O2. This was one of the
last known -O2 bugs, so it may be possible to build the world and kernel
entirely with -O2.
http://www.freebsd.org/cgi/mid.cgi?200407060922.i669MJua014841
===============
Other bug fixes
===============
Peter Edwards (peadar) fixed a bug in the filesystem code that resulted
in file corruption under very specific circumstances; specifically, "when
read(2)ing from a 'hole' in a file where a previous page of the read
block had already been faulted in". This bug was triggered by the fsx
(filesystem exerciser) tool, but it's unlikely that other applications
would have had trouble.
http://www.freebsd.org/cgi/mid.cgi?200407062340.i66NeeLd042771
------------------------------
Message: 22
Date: Tue, 13 Jul 2004 18:16:51 -1000
From: Kent Hauser <kent.hauser@verizon.net>
Subject: Re: T41 lockups
To: freebsd-current@freebsd.org
Message-ID: <200407131816.51639.kent.hauser@verizon.net>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
I'm not on the acpi list, so I can't followup your postings.
My T41 lockups ended when I rebooted in WinXP &
ran "ps2 ide2 disable".
In particular, all of the FN-xxx things (like brightness & volume) which cause
on-screen-display in XP caused -current to lockup. CD-RW still works fine.
Good luck & pls post positive results to -mobile or -acpi.
Kent
------------------------------
Message: 23
Date: Wed, 14 Jul 2004 00:30:40 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.org>
Subject: Some netgraph node global locking patches
To: current@FreeBSD.org
Message-ID:
<Pine.NEB.3.96L.1040714002717.83353E-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
I'm starting to work my way through locking for the various netgraph nodes
shipped with FreeBSD, but have a problem in that I can't easily configure
and test all of them. As such, I've done some initial global variable
locking, and am working on tricking various FreeBSD developers into
locking down per-node/per-instance variables, etc.
The attached patch locks down global variables found in the following node
implementations:
//depot/vendor/freebsd/src/sys/netgraph/ng_eiface.c
//depot/vendor/freebsd/src/sys/netgraph/ng_fec.c
//depot/vendor/freebsd/src/sys/netgraph/ng_iface.c
//depot/vendor/freebsd/src/sys/netgraph/ng_ppp.c
//depot/vendor/freebsd/src/sys/netgraph/ng_tty.c
If people using these netgraph modules could give the patch a spin, that
would be good. There are a couple of comments regarding locking nits.
If you're the owner of a netgraph module and want to take a lock at
locking down the softc/per-instance variables, I'd appreciate any help I
can get, as there's quite a bit of other locking work for the stack left
in the queue.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
--- //depot/vendor/freebsd/src/sys/netgraph/ng_eiface.c 2004/07/04 16:15:35
+++ //depot/user/rwatson/netperf/sys/netgraph/ng_eiface.c 2004/07/09 21:19:53
@@ -33,8 +33,10 @@
#include <sys/systm.h>
#include <sys/errno.h>
#include <sys/kernel.h>
+#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
+#include <sys/mutex.h>
#include <sys/errno.h>
#include <sys/sockio.h>
#include <sys/socket.h>
@@ -119,6 +121,8 @@
#define UNITS_BITSPERWORD (sizeof(*ng_eiface_units) * NBBY)
+static struct mtx ng_eiface_mtx;
+MTX_SYSINIT(ng_eiface, &ng_eiface_mtx, "ng_eiface", MTX_DEF);
/************************************************************************
HELPER STUFF
@@ -132,6 +136,7 @@
{
int index, bit;
+ mtx_lock(&ng_eiface_mtx);
for (index = 0; index < ng_eiface_units_len
&& ng_eiface_units[index] == 0; index++);
if (index == ng_eiface_units_len) { /* extend array */
@@ -140,8 +145,10 @@
newlen = (2 * ng_eiface_units_len) + 4;
MALLOC(newarray, int *, newlen * sizeof(*ng_eiface_units),
M_NETGRAPH, M_NOWAIT);
- if (newarray == NULL)
+ if (newarray == NULL) {
+ mtx_unlock(&ng_eiface_mtx);
return (ENOMEM);
+ }
bcopy(ng_eiface_units, newarray,
ng_eiface_units_len * sizeof(*ng_eiface_units));
for (i = ng_eiface_units_len; i < newlen; i++)
@@ -157,6 +164,7 @@
ng_eiface_units[index] &= ~(1 << bit);
*unit = (index * UNITS_BITSPERWORD) + bit;
ng_units_in_use++;
+ mtx_unlock(&ng_eiface_mtx);
return (0);
}
@@ -170,6 +178,7 @@
index = unit / UNITS_BITSPERWORD;
bit = unit % UNITS_BITSPERWORD;
+ mtx_lock(&ng_eiface_mtx);
KASSERT(index < ng_eiface_units_len,
("%s: unit=%d len=%d", __func__, unit, ng_eiface_units_len));
KASSERT((ng_eiface_units[index] & (1 << bit)) == 0,
@@ -187,6 +196,7 @@
ng_eiface_units_len = 0;
ng_eiface_units = NULL;
}
+ mtx_unlock(&ng_eiface_mtx);
}
/************************************************************************
--- //depot/vendor/freebsd/src/sys/netgraph/ng_fec.c 2004/07/04 16:15:35
+++ //depot/user/rwatson/netperf/sys/netgraph/ng_fec.c 2004/07/09 21:19:53
@@ -257,6 +257,9 @@
#define UNITS_BITSPERWORD (sizeof(*ng_fec_units) * NBBY)
+static struct mtx ng_fec_mtx;
+MTX_SYSINIT(ng_fec, &ng_fec_mtx, "ng_fec", MTX_DEF);
+
/*
* Find the first free unit number for a new interface.
* Increase the size of the unit bitmap as necessary.
@@ -266,6 +269,7 @@
{
int index, bit;
+ mtx_lock(&ng_fec_mtx);
for (index = 0; index < ng_fec_units_len
&& ng_fec_units[index] == 0; index++);
if (index == ng_fec_units_len) { /* extend array */
@@ -274,8 +278,10 @@
newlen = (2 * ng_fec_units_len) + 4;
MALLOC(newarray, int *, newlen * sizeof(*ng_fec_units),
M_NETGRAPH, M_NOWAIT);
- if (newarray == NULL)
+ if (newarray == NULL) {
+ mtx_unlock(&ng_fec_mtx);
return (ENOMEM);
+ }
bcopy(ng_fec_units, newarray,
ng_fec_units_len * sizeof(*ng_fec_units));
for (i = ng_fec_units_len; i < newlen; i++)
@@ -291,6 +297,7 @@
ng_fec_units[index] &= ~(1 << bit);
*unit = (index * UNITS_BITSPERWORD) + bit;
ng_units_in_use++;
+ mtx_unlock(&ng_fec_mtx);
return (0);
}
@@ -304,6 +311,7 @@
index = unit / UNITS_BITSPERWORD;
bit = unit % UNITS_BITSPERWORD;
+ mtx_lock(&ng_fec_mtx);
KASSERT(index < ng_fec_units_len,
("%s: unit=%d len=%d", __FUNCTION__, unit, ng_fec_units_len));
KASSERT((ng_fec_units[index] & (1 << bit)) == 0,
@@ -321,6 +329,7 @@
ng_fec_units_len = 0;
ng_fec_units = NULL;
}
+ mtx_unlock(&ng_fec_mtx);
}
/************************************************************************
--- //depot/vendor/freebsd/src/sys/netgraph/ng_iface.c 2004/07/04 16:15:35
+++ //depot/user/rwatson/netperf/sys/netgraph/ng_iface.c 2004/07/09 21:19:53
@@ -59,8 +59,10 @@
#include <sys/systm.h>
#include <sys/errno.h>
#include <sys/kernel.h>
+#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
+#include <sys/mutex.h>
#include <sys/errno.h>
#include <sys/random.h>
#include <sys/sockio.h>
@@ -218,6 +220,9 @@
#define UNITS_BITSPERWORD (sizeof(*ng_iface_units) * NBBY)
+static struct mtx ng_iface_mtx;
+MTX_SYSINIT(ng_iface, &ng_iface_mtx, "ng_iface", MTX_DEF);
+
/************************************************************************
HELPER STUFF
************************************************************************/
@@ -289,6 +294,7 @@
{
int index, bit;
+ mtx_lock(&ng_iface_mtx);
for (index = 0; index < ng_iface_units_len
&& ng_iface_units[index] == 0; index++);
if (index == ng_iface_units_len) { /* extend array */
@@ -297,8 +303,10 @@
newlen = (2 * ng_iface_units_len) + 4;
MALLOC(newarray, int *, newlen * sizeof(*ng_iface_units),
M_NETGRAPH_IFACE, M_NOWAIT);
- if (newarray == NULL)
+ if (newarray == NULL) {
+ mtx_unlock(&ng_iface_mtx);
return (ENOMEM);
+ }
bcopy(ng_iface_units, newarray,
ng_iface_units_len * sizeof(*ng_iface_units));
for (i = ng_iface_units_len; i < newlen; i++)
@@ -314,6 +322,7 @@
ng_iface_units[index] &= ~(1 << bit);
*unit = (index * UNITS_BITSPERWORD) + bit;
ng_units_in_use++;
+ mtx_unlock(&ng_iface_mtx);
return (0);
}
@@ -327,6 +336,7 @@
index = unit / UNITS_BITSPERWORD;
bit = unit % UNITS_BITSPERWORD;
+ mtx_lock(&ng_iface_mtx);
KASSERT(index < ng_iface_units_len,
("%s: unit=%d len=%d", __func__, unit, ng_iface_units_len));
KASSERT((ng_iface_units[index] & (1 << bit)) == 0,
@@ -344,6 +354,7 @@
ng_iface_units_len = 0;
ng_iface_units = NULL;
}
+ mtx_unlock(&ng_iface_mtx);
}
/************************************************************************
--- //depot/vendor/freebsd/src/sys/netgraph/ng_ppp.c 2004/06/26 22:25:30
+++ //depot/user/rwatson/netperf/sys/netgraph/ng_ppp.c 2004/06/27 16:41:59
@@ -362,6 +362,13 @@
static int *compareLatencies; /* hack for ng_ppp_intcmp() */
+/*
+ * XXXRW: An ugly synchronization hack to protect an ugly hack.
+ */
+static struct mtx ng_ppp_latencies_mtx;
+MTX_SYSINIT(ng_ppp_latencies, &ng_ppp_latencies_mtx, "ng_ppp_latencies",
+ MTX_DEF);
+
/* Address and control field header */
static const u_char ng_ppp_acf[2] = { 0xff, 0x03 };
@@ -1764,10 +1771,12 @@
}
/* Sort active links by latency */
+ mtx_lock(&ng_ppp_latencies_mtx);
compareLatencies = latency;
qsort(sortByLatency,
priv->numActiveLinks, sizeof(*sortByLatency), ng_ppp_intcmp);
compareLatencies = NULL;
+ mtx_unlock(&ng_ppp_latencies_mtx);
/* Find the interval we need (add links in sortByLatency[] order) */
for (numFragments = 1;
@@ -1858,6 +1867,8 @@
const int index1 = *((const int *) v1);
const int index2 = *((const int *) v2);
+ mtx_assert(&ng_ppp_latencies_mtx, MA_OWNED);
+
return compareLatencies[index1] - compareLatencies[index2];
}
--- //depot/vendor/freebsd/src/sys/netgraph/ng_pppoe.c 2004/06/26 22:25:30
+++ //depot/user/rwatson/netperf/sys/netgraph/ng_pppoe.c 2004/06/27 16:41:59
@@ -238,6 +238,10 @@
};
typedef struct PPPOE *priv_p;
+/*
+ * XXXRW: Leave this unsynchronized, since only a single field is modified,
+ * and it's done so infrequently. Likewise, pppoe_mode.
+ */
struct ether_header eh_prototype =
{{0xff,0xff,0xff,0xff,0xff,0xff},
{0x00,0x00,0x00,0x00,0x00,0x00},
--- //depot/vendor/freebsd/src/sys/netgraph/ng_tty.c 2004/06/26 08:45:27
+++ //depot/user/rwatson/netperf/sys/netgraph/ng_tty.c 2004/06/27 03:09:51
@@ -166,10 +166,18 @@
};
NETGRAPH_INIT(tty, &typestruct);
+/*
+ * XXXRW: ngt_unit is protected by ng_tty_mtx. ngt_ldisc is constant once
+ * ng_tty is initialized. ngt_nodeop_ok is untouched, and might want to be a
+ * sleep lock in the future?
+ */
static int ngt_unit;
static int ngt_nodeop_ok; /* OK to create/remove node */
static int ngt_ldisc;
+static struct mtx ng_tty_mtx;
+MTX_SYSINIT(ng_tty, &ng_tty_mtx, "ng_tty", MTX_DEF);
+
/******************************************************************
LINE DISCIPLINE METHODS
******************************************************************/
@@ -214,7 +222,9 @@
FREE(sc, M_NETGRAPH);
goto done;
}
+ mtx_lock(&ng_tty_mtx);
snprintf(name, sizeof(name), "%s%d", typestruct.name, ngt_unit++);
+ mtx_unlock(&ng_tty_mtx);
/* Assign node its name */
if ((error = ng_name_node(sc->node, name))) {
------------------------------
Message: 24
Date: Tue, 13 Jul 2004 23:40:27 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: [amd64] pcm0 dies after a while
To: freebsd-current@freebsd.org
Message-ID: <XFMail.20040713234027.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii
I've been plagued with this problem for the last week or two now.
Constantly upgrading, tweaking, in the hopes of finding relief, but so
far, none.
pcm0 will work fine for a while, then suddenly, any further attempts to
use it generate the following:
Jul 13 23:31:18 dolphin kernel: pcm0:play:0: play interrupt timeout,
channel dead
Jul 13 23:31:49 dolphin last message repeated 10 times
Madplay, mpg123, etc. will start, play a fraction of a second's worth
of sound, and then exit.
This continues until a reboot. The device is completely unusable until
then.
$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Nvidia nForce3> at io 0xe800, 0xec00 irq 10 bufsz 16384
(1p/1r/0v channels duplex default)
--
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
------------------------------
Message: 25
Date: 14 Jul 2004 05:02:25 -0000
From: vladimir@math.uic.edu
Subject: support for Asus P4P8X onboard audio
To: freebsd-current@freebsd.org
Message-ID: <20040714050225.12980.qmail@cat.math.uic.edu>
Does anyone know the state of support for that device?
The audio device is recognized:
$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Intel ICH5 (82801EB)> at io 0xfebff800, 0xfebff400 irq 10 bufsz 16384
(1p/1r/4v channels duplex default)
$ dmesg|grep pcm
pcm0: <Intel ICH5 (82801EB)> port 0xee80-0xeebf,0xe800-0xe8ff mem 0xfebff400-0
xfebff4ff,0xfebff800-0xfebff9ff irq 10 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: <Analog Devices AD1985 AC97 Codec>
.. however I cannot hear any sound during playback. I searched on the net a
nd
saw a mention of some patches floating around, but could not
find anything definite.
I believe users of P4B800 motherboard have the same problem.
Many thanks,
Vladimir
------------------------------
Message: 26
Date: Wed, 14 Jul 2004 05:07:05 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: Marcel Moolenaar <marcel@xcllnt.net>
Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>
Message-ID:
<Pine.BSF.4.53.0407140504540.12756@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Tue, 13 Jul 2004, Marcel Moolenaar wrote:
> On Wed, Jul 14, 2004 at 12:09:47AM +0200, Poul-Henning Kamp wrote:
> >
> > http://phk.freebsd.dk/patch/tty.patch
> >
> > This patch removes 2500 lines of copy&paste insanity in tty drivers
> > and generally tries to get things to be less confused & confusing.
> >
> > I need testers for all the different kinds of serial hardware we support.
> >
> > Please help test!
>
> boot -s is generally broken. No characters can be typed. This is
> with syscons(4) and uart(4) and probably any other driver. Might
> be related to the lack of NL->CRNL
do you actually see the .../bin/sh message ?
I have reported boot -s problems on amd64 some days ago w/o any
additional tty patches but I also do not get the .../bin/sh line.
--
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
------------------------------
Message: 27
Date: Wed, 14 Jul 2004 07:10:26 +0200
From: Max Laier <max@love2party.net>
Subject: Re: support for Asus P4P8X onboard audio
To: freebsd-current@freebsd.org
Cc: vladimir@math.uic.edu
Message-ID: <200407140710.33293.max@love2party.net>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 14 July 2004 07:02, vladimir@math.uic.edu wrote:
> Does anyone know the state of support for that device?
> The audio device is recognized:
>
> $ cat /dev/sndstat
> FreeBSD Audio Driver (newpcm)
> Installed devices:
> pcm0: <Intel ICH5 (82801EB)> at io 0xfebff800, 0xfebff400 irq 10 bufsz
> 16384 (1p/1r/4v channels duplex default)
>
> $ dmesg|grep pcm
> pcm0: <Intel ICH5 (82801EB)> port 0xee80-0xeebf,0xe800-0xe8ff mem
> 0xfebff400-0xfebff4ff,0xfebff800-0xfebff9ff irq 10 at device 31.5 on pci0
> pcm0: [GIANT-LOCKED]
> pcm0: <Analog Devices AD1985 AC97 Codec>
>
>
> ... however I cannot hear any sound during playback. I searched on the
> net and saw a mention of some patches floating around, but could not
> find anything definite.
>
> I believe users of P4B800 motherboard have the same problem.
I have a P4P8000 w/ ICH5 audio onboard as well, but no complains here. The
digital output does not work however and I'd be interested in patches to
enable it. Even got hold of the chip specs (are linked somewhere on the intel
page), but haven't found time to play with it.
--
/"\ Best regards, | mlaier@freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier@EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040714/
59bb97f3/attachment-0001.bin
------------------------------
Message: 28
Date: Wed, 14 Jul 2004 00:27:17 -0500
From: Vladimir Egorin <vladimir@math.uic.edu>
Subject: Re: support for Asus P4P8X onboard audio
To: freebsd-current@freebsd.org
Message-ID: <20040714052717.GA15283@math.uic.edu>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 14, 2004 at 05:02:25AM -0000, vladimir@math.uic.edu wrote:
>
> Does anyone know the state of support for that device?
> The audio device is recognized:
>
> $ cat /dev/sndstat
> FreeBSD Audio Driver (newpcm)
> Installed devices:
> pcm0: <Intel ICH5 (82801EB)> at io 0xfebff800, 0xfebff400 irq 10 bufsz 1638
4 (1p/1r/4v channels duplex default)
>
> $ dmesg|grep pcm
> pcm0: <Intel ICH5 (82801EB)> port 0xee80-0xeebf,0xe800-0xe8ff mem 0xfebff40
0-0xfebff4ff,0xfebff800-0xfebff9ff irq 10 at device 31.5 on pci0
> pcm0: [GIANT-LOCKED]
> pcm0: <Analog Devices AD1985 AC97 Codec>
>
>
> ... however I cannot hear any sound during playback. I searched on the ne
t and
> saw a mention of some patches floating around, but could not
> find anything definite.
>
> I believe users of P4B800 motherboard have the same problem.
typo... this was supposed to be P4P800.
Max Laier <max@love2party.net> mentioned his P4P800 works, I guess the
problem is local to my setup then.
--
Vladimir
------------------------------
Message: 29
Date: Tue, 13 Jul 2004 23:46:16 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: kldload won't load
To: jdp@polstra.com
Cc: freebsd-current@freebsd.org
Message-ID: <20040713.234616.66794208.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii
In message: <XFMail.20040712143801.jdp@polstra.com>
John Polstra <jdp@polstra.com> writes:
: On 12-Jul-2004 Doug Rabson wrote:
: > Hmm. Maybe the simplest thing would be to print the link errors using
: > uprintf() instead of printf().
:
: That's a good idea. It would be a lot better than what we have now.
So long as we fix uprintf to not fail when there's not controlling
tty. Right now that's a good way to panic a system.
Warner
------------------------------
Message: 30
Date: Tue, 13 Jul 2004 22:51:23 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>
Message-ID: <20040714055123.GA2894@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 14, 2004 at 05:07:05AM +0000, Bjoern A. Zeeb wrote:
> >
> > boot -s is generally broken. No characters can be typed. This is
> > with syscons(4) and uart(4) and probably any other driver. Might
> > be related to the lack of NL->CRNL
>
> do you actually see the .../bin/sh message ?
Yes. Hitting enter just doesn't have an effect.
> I have reported boot -s problems on amd64 some days ago w/o any
> additional tty patches but I also do not get the .../bin/sh line.
It's probably not related to the patches in particular, but may
be related to TTY in general. Typically, when there's no device
found during bus enumeration that matches the device used for the
system console, then init(8) will not have a device for its stdin,
stdout and stderr. This used to result in a panic, but this may
have changed with the dev_t refcounting. This should also have its
effect when booting multi-user BTW.
So, make sure you see the device used for the system console probed
and attached in the dmesg. That's about the best thing I can suggest
without having read your report.
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
End of freebsd-current Digest, Vol 68, Issue 28
***********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[33m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m