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. sk0 problems (Tomas Randa)
2. repair of broken via ata controller (Divacky Roman)
3. panic: APIC: Previous IPI is stuck (Andre Guibert de Bruet)
4. About ISC-cron (Xin LI)
5. Re: About ISC-cron (Dan Langille)
6. Re: sk0 problems (Mike Jakubik)
7. Re: sk0 problems (Andre Guibert de Bruet)
8. Re: panic: APIC: Previous IPI is stuck (Lars Erik Gullerud)
9. Re: sk0 problems (Bjoern A. Zeeb)
10. Re: PPPoE misbehaving? (Bjoern A. Zeeb)
11. RE:[current tinderbox] failure on i386/i386 (Grover Lines)
12. Re: [current tinderbox] failure on i386/i386 (Scott Long)
13. rl network driver / patch for peppercon card (Andy Hilker)
14. Re: [current tinderbox] failure on i386/i386 (Grover Lines)
15. NEW TAR (Tim Kientzle)
16. Re: kernel build error in cam_periph_mapmem (Robert Watson)
17. Re: panic: APIC: Previous IPI is stuck (Kris Kennaway)
18. Re: sk0 problems (John Leimon)
19. Re: pccbb crashes when detaching (unsafe interrupt handler)
(M. Warner Losh)
20. Re: pccbb crashes when detaching (unsafe interrupt handler)
(Brian Fundakowski Feldman)
21. Re: About ISC-cron (Kris Kennaway)
22. Re: NEW TAR (Brian Fundakowski Feldman)
23. Re: panic: APIC: Previous IPI is stuck (Brian Fundakowski Feldman)
24. Re: NEW TAR (Kris Kennaway)
25. Re: NEW TAR (Wilko Bulte)
26. Re: pccbb crashes when detaching (unsafe interrupt handler)
(M. Warner Losh)
27. Re: NEW TAR (Norikatsu Shigemura)
28. Re: NEW TAR (Pawel Jakub Dawidek)
29. Re: pccbb crashes when detaching (unsafe interrupt handler)
(Brian Fundakowski Feldman)
30. Re: pccbb crashes when detaching (unsafe interrupt handler)
(Bosko Milekic)
31. Re: panic: APIC: Previous IPI is stuck (Andre Guibert de Bruet)
32. make -j3 world - Syntax error: Unterminated quoted string
(Andre Guibert de Bruet)
33. Re: panic: APIC: Previous IPI is stuck (Kris Kennaway)
34. Re: panic: APIC: Previous IPI is stuck (Kris Kennaway)
35. Re: Call for PRs: nullfs (Alex Vasylenko)
36. Re: make -j3 world - Syntax error: Unterminated quoted string
(Marcel Moolenaar)
37. Re: PPPoE misbehaving? (Martin)
----------------------------------------------------------------------
Message: 1
Date: Sat, 17 Jul 2004 14:16:34 +0000
From: Tomas Randa <lists@hosting50.cz>
Subject: sk0 problems
To: current@freebsd.org
Message-ID: <1090073794.706.5.camel@ares.internetservice.cz>
Content-Type: text/plain
Hi,
i am using network card Marvell Semiconductor 88E1000 with sk driver on
FreeBSD 5.2.1 on two machines, but i have problem with it.
When a high traffic is going through the interface (about 6-9MB/s), the
card stops working, no ping, no answer, no message in log. Sometimes
help do ifconfig sk0 down and up, but sometimes not.
skc0: <Marvell Gigabit Ethernet> port 0xb400-0xb4ff mem
0xfb020000-0xfb023fff irq 5 at device 9.0 on pci2
skc0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xfb020000
skc0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
Is driver broken?
Thanks.
--
Tomas Randa <lists@hosting50.cz>
------------------------------
Message: 2
Date: Sat, 17 Jul 2004 15:05:12 +0200
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Subject: repair of broken via ata controller
To: current@freebsd.org
Cc: sos@freebsd.org
Message-ID: <20040717130512.GA78470@stud.fit.vutbr.cz>
Content-Type: text/plain; charset=us-ascii
Hi,
A few days ago I posted here that I have problems with via8237 ata controller
the patch subscribed in PR/69180 seems to fix it...
pls take a look at it
I have tested it on via8237 but those two other controllers are marked broken
too...
roman
------------------------------
Message: 3
Date: Sat, 17 Jul 2004 10:53:33 -0400 (EDT)
From: Andre Guibert de Bruet <andy@siliconlandmark.com>
Subject: panic: APIC: Previous IPI is stuck
To: current@freebsd.org
Message-ID: <20040717103509.N24726@alpha.siliconlandmark.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Hi,
While buildworlding (Straight buildworld, no -jX), I managed to get the
following at the serial console. The system is a Dual Athlon 2000+ MP on
an Asus A7M266D w/3.5GB running an SMP kernel as of:
FreeBSD 5.2-CURRENT #7: Wed Jul 14 19:36:00 EDT 2004
root@bling.home:/usr/CURRENT/sys/i386/compile/BLING
panic: APIC: Previous IPI is stuck
cpuid = 0;
KDB: stack backtrace:
kdb_backtrace(60737992,0,60752233,a9f44bf4,100) at 0x605782ae
panic(60752233,60553c7a,607b5be0,1,2) at 0x6055d8a3
lapic_ipi_vectored(fc,1,a9f44c84,a9f44c84,64faf780) at 0x606e3233
ipi_selected(2,fc,a9f44c40,606f31c5,a9f44c84) at 0x606e8284
forward_statclock(a9f44c84,65282780,a9f44c6c,606e0048,a9f44c84) at
0x606e8199
pmap_rltacziynftirx(:a 9sfp4u4nc 8f4o,r0 ,56040f0b0f0c0108
,a9f44c80,8) at 0x606f31c5
intr_execute_handlers(64f574f0,a9f44c84,a9f44cc8,606dc923,38) at
0x606e0048
lapic_handle_intr(38) at 0x606e2dca
Xapic_isr1() at 0x606dc923
--- interrupt, eip = 0x608e9135, esp = 0xa9f44cc8, ebp = 0xa9f44cc8 ---
acpi_cpu_c1(1,1,0,607b5be0,a9f44cfc) at 0x608e9135
acpi_cpu_idle(a9f44d14,60545f87,607b5c20,2,607351dc) at 0x608e8fe6
cpu_idle(607b5c20,2,607351dc,53,a9f44d34) at 0x606e4858
idle_proc(0,a9f44d48,60735072,328,0) at 0x60545f87
fork_exit(60545f50,0,a9f44d48) at 0x60545cb2
fork_trampoline() at 0x606dc5cc
--- trap 0x1, eip = 0, esp = 0xa9f44d7c, ebp = 0 ---
KDB: enter: panic
I am a little worried by the line that starts with pmap_rltac. It appears
to be the output of two interleaved messages, which I have yet to make
sense of. At this point the machine is deadlocked and nothing short of a
reset will get it to budge.
Any ideas?
Andy
> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/ >
------------------------------
Message: 4
Date: Sat, 17 Jul 2004 23:30:16 +0800
From: Xin LI <delphij@frontfree.net>
Subject: About ISC-cron
To: current@FreeBSD.org
Message-ID: <20040717153016.GA3805@frontfree.net>
Content-Type: text/plain; charset="us-ascii"
Hi folks,
I have did a preliminary work on ISC-cron 4.1 for FreeBSD. I have noticed
that:
- Both FreeBSD and NetBSD have cron and friends based on cron 3.0
with some respective local modifications.
- OpenBSD has adopted ISC cron 4.0b1 in early 2001. After that,
they have did several security and stablity related improvements
that IMO is valuable for us, too.
- There are some minor bugs in FreeBSD's cron that should be
fixed. (e.g. having */0 in crontab will cause a local DoS,
crontab does not remove temp files when it is abnormally
terminated, etc.)
I have Google'd the mailing list and found no discussion explaining why
we have not upgraded our cron and friends. Is there any discussion I
have missed? In other words, should I make these work a port, or a diff
against src/, when I have finished the whole thing?
/* POLA will be respected :-) */
Thanks in advance!
Cheers,
--
Xin LI <delphij frontfree net> http://www.delphij.net/
See complete headers for GPG key and other information.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040717/
a1d45ad3/attachment-0001.bin
------------------------------
Message: 5
Date: Sat, 17 Jul 2004 11:44:15 -0400
From: "Dan Langille" <dan@langille.org>
Subject: Re: About ISC-cron
To: Xin LI <delphij@frontfree.net>
Cc: current@FreeBSD.org
Message-ID: <40F9110F.13794.15FF9E60@localhost>
Content-Type: text/plain; charset=US-ASCII
On 17 Jul 2004 at 23:30, Xin LI wrote:
> /* POLA will be respected :-) */
One thing about /etc/crontab which has caught out many people: the
last entry must have an ENTER at the end of the line or it will be
ignored.
FWIW, /etc/sysctl.conf has the same issue.
--
Dan Langille : http://www.langille.org/
------------------------------
Message: 6
Date: Sat, 17 Jul 2004 11:53:30 -0400 (EDT)
From: "Mike Jakubik" <mikej@rogers.com>
Subject: Re: sk0 problems
To: "Tomas Randa" <lists@hosting50.cz>
Cc: current@freebsd.org
Message-ID: <3952.192.168.0.200.1090079610.squirrel@192.168.0.200>
Content-Type: text/plain;charset=iso-8859-1
Tomas Randa said:
> Hi,
>
> i am using network card Marvell Semiconductor 88E1000 with sk driver on
> FreeBSD 5.2.1 on two machines, but i have problem with it.
> When a high traffic is going through the interface (about 6-9MB/s), the
> card stops working, no ping, no answer, no message in log. Sometimes
> help do ifconfig sk0 down and up, but sometimes not.
Myself and others are also havingthis problem, me on the Asus SK8 mb. Have
a look at the -amd64 and -net mailing lists for more info about this. I
dont think (sadly) anyone is working on a fix however, so your best bet is
to get a new card.
------------------------------
Message: 7
Date: Sat, 17 Jul 2004 12:06:21 -0400 (EDT)
From: Andre Guibert de Bruet <andy@siliconlandmark.com>
Subject: Re: sk0 problems
To: Mike Jakubik <mikej@rogers.com>
Cc: Tomas Randa <lists@hosting50.cz>
Message-ID: <20040717120415.L24726@alpha.siliconlandmark.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Sat, 17 Jul 2004, Mike Jakubik wrote:
> Tomas Randa said:
>
>> i am using network card Marvell Semiconductor 88E1000 with sk driver on
>> FreeBSD 5.2.1 on two machines, but i have problem with it.
>> When a high traffic is going through the interface (about 6-9MB/s), the
>> card stops working, no ping, no answer, no message in log. Sometimes
>> help do ifconfig sk0 down and up, but sometimes not.
>
> Myself and others are also havingthis problem, me on the Asus SK8 mb. Have
> a look at the -amd64 and -net mailing lists for more info about this. I
> dont think (sadly) anyone is working on a fix however, so your best bet is
> to get a new card.
I have a couple of cards that use this same driver (Of the Linksys brand
though) and they work without issues under STABLE. IIRC, the driver was
MFC'ed... I'll look into the diffs between both drivers.
Andy
> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/ >
------------------------------
Message: 8
Date: Sat, 17 Jul 2004 18:10:45 +0200 (CEST)
From: Lars Erik Gullerud <lerik@nolink.net>
Subject: Re: panic: APIC: Previous IPI is stuck
To: Andre Guibert de Bruet <andy@siliconlandmark.com>
Cc: "current@freebsd.org" <current@freebsd.org>
Message-ID: <20040717180605.E58695-100000@electra.nolink.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sat, 17 Jul 2004, Andre Guibert de Bruet wrote:
> pmap_rltacziynftirx(:a 9sfp4u4nc 8f4o,r0 ,56040f0b0f0c0108
> ,a9f44c80,8) at 0x606f31c5
[snip]
> I am a little worried by the line that starts with pmap_rltac. It appears
> to be the output of two interleaved messages, which I have yet to make
> sense of. At this point the machine is deadlocked and nothing short of a
> reset will get it to budge.
FYI, the two interleaved lines actually seem to be:
rtcintr(a9f44c84,0,64fbfc18,a9f44c80,8) at 0x606f31c5
pmap_lazyfix: spun for 50000000
I seem to remember Kris Kennaway also having a couple of panics where
pmap_lazyfix errors got interleaved with the output.
/leg
------------------------------
Message: 9
Date: Sat, 17 Jul 2004 16:32:15 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: Re: sk0 problems
To: Tomas Randa <lists@hosting50.cz>
Cc: FreeBSD current mailing list <current@freebsd.org>
Message-ID:
<Pine.BSF.4.53.0407171627480.43309@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sat, 17 Jul 2004, Tomas Randa wrote:
> i am using network card Marvell Semiconductor 88E1000 with sk driver on
> FreeBSD 5.2.1 on two machines, but i have problem with it.
> When a high traffic is going through the interface (about 6-9MB/s), the
> card stops working, no ping, no answer, no message in log. Sometimes
> help do ifconfig sk0 down and up, but sometimes not.
sometimes you have to wait a minute before doing the down/up to
actually make things working again; that depends but cannot say on
what. Had down/up withtinh 10 seconds and things worked fine but the
next time it just took the minute...
> Is driver broken?
it's known to have not-so-correct locking. Check the mailing list
archive for a patch from Doug White from the last 6 weeks or so; that
should help a bit.
Apart from that there might be more issues as people with special
brands or special chip-on-motherboards seem to see more problems.
Check the archives for these postings too (amd64, net, current from
the last two months)
--
Greetings
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
------------------------------
Message: 10
Date: Sat, 17 Jul 2004 16:37:34 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: Re: PPPoE misbehaving?
To: Martin <nakal@web.de>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID:
<Pine.BSF.4.53.0407171632450.43309@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Fri, 16 Jul 2004, Martin wrote:
> > Has
> > something changed?????
has but nothing that should bug.
> PPPoE is broken for me on -CURRENT, too, now since about 2 weeks.
I do have a built from friday and it works just fine with German DTAG
DSL.
Make sure your world is in sync with the kernel because of netgraph
cookie changes though I did not follow this thread to be able to say
if this could be the problem.
--
Greetings
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
------------------------------
Message: 11
Date: Sat, 17 Jul 2004 09:45:19 -0700
From: "Grover Lines" <grover@ceribus.net>
Subject: RE:[current tinderbox] failure on i386/i386
To: <freebsd-current@freebsd.org>
Message-ID: <20040717164519.E942343D2F@mx1.FreeBSD.org>
Content-Type: text/plain; charset="US-ASCII"
I guess no one is reading current, I reported that failure about 16hrs ago.
It's caused from the WARNS?= 2 in
# $FreeBSD: src/usr.bin/hexdump/Makefile,v 1.7 2004/07/16 11:07:07 johan Exp
$
--
Grover Lines
------------------------------
Message: 12
Date: Sat, 17 Jul 2004 11:08:25 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: [current tinderbox] failure on i386/i386
To: Grover Lines <grover@ceribus.net>
Cc: freebsd-current@freebsd.org
Message-ID: <40F95D09.3070508@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Grover Lines wrote:
> I guess no one is reading current, I reported that failure about 16hrs ago.
> It's caused from the WARNS?= 2 in
>
> # $FreeBSD: src/usr.bin/hexdump/Makefile,v 1.7 2004/07/16 11:07:07 johan Exp
> $
>
> --
> Grover Lines
>
It's not that no one is reading current, it's that no one has come up
with a fix yet. I'll have one soon.
Scott
------------------------------
Message: 13
Date: Sat, 17 Jul 2004 19:11:02 +0200
From: Andy Hilker <ah@crypta.net>
Subject: rl network driver / patch for peppercon card
To: freebsd-current@freebsd.org
Message-ID: <20040717171102.GA41182@mail.crypta.net>
Content-Type: text/plain; charset=us-ascii
Hi,
i have a rl8139, but special edition from peppercon with some extra
features:
- watchdog (i do not need and do not use it)
- a hardware reset by a magic LAN packet (like Wake on LAN)
Networking works with standard FreeBSD driver, but not the reset
feature. I only use the reset feature, nothing else.
Some peppercon developer was very kind and made a patch for if_rl.c
and if_rleg.h. This Patch works about 1 year. But now (with current)
there are many driver changes and patch fails at some hunks. Last
known working patch was with files from may.
Unfortunately i have not nearly enough knowledge to fix this. So i
have to search someone (is anybody here, who is able to take a look
at the patch?) or ask the peppercon developer a second time. But
maybe there is an opportunity to get this support permanent to
FreeBSD?
bye and thanks for hopefully some answers :),
Andy
------------------------------
Message: 14
Date: Sat, 17 Jul 2004 10:28:07 -0700
From: Grover Lines <grover@ceribus.net>
Subject: Re: [current tinderbox] failure on i386/i386
To: freebsd-current@freebsd.org
Message-ID: <40F961A7.1080701@ceribus.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Scott Long wrote:
> Grover Lines wrote:
>
>> I guess no one is reading current, I reported that failure about 16hrs
>> ago.
>> It's caused from the WARNS?= 2 in
>>
>> # $FreeBSD: src/usr.bin/hexdump/Makefile,v 1.7 2004/07/16 11:07:07
>> johan Exp
>> $
>>
>> --
>> Grover Lines
>>
>
> It's not that no one is reading current, it's that no one has come up
> with a fix yet. I'll have one soon.
>
> Scott
> _______________________________________________
> 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"
>
>
No problem, just checking for life out there.
--
Grover Lines
------------------------------
Message: 15
Date: Sat, 17 Jul 2004 10:37:28 -0700
From: Tim Kientzle <kientzle@freebsd.org>
Subject: NEW TAR
To: current@freebsd.org, ports@freebsd.org
Message-ID: <40F963D8.6010201@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
By default, /usr/bin/tar is now a symlink pointing
to /usr/bin/bsdtar.
How will this affect you?
Most people should not notice the change. bsdtar
accepts the most popular gtar command-line options, reads
gtar files, and generally does what most people
expect from a modern tar implementation.
However, bsdtar is not a clone of gtar. If you rely
on specific gtar features, then you should be using gtar.
What are the differences?
* Command line: bsdtar implements the -l and -o
options according to the Single Unix Standard,
gtar's -l and -o options directly contradict SUS.
bsdtar warns about most mis-uses of these options,
but there is a potential for silent changes to the
behavior of existing scripts.
* File format: bsdtar can read gtar files, including
long file names, long link names, and sparse files.
bsdtar can also read many other formats that gtar
does not support.
bsdtar writes POSIX-standard ustar archives by default.
gtar can read ustar archives with no problem.
bsdtar uses POSIX "pax extended attributes" for long file
names, long link names, ACLs, file flags, and other
additional information. gtar does not understand pax
extended attributes and will warn about them. (Joerg
Schilling's "star" does support pax extended attributes
as do POSIX-compliant pax implementations on many commercial
Unix platforms.)
* Error reporting: bsdtar is more critical than gtar about
certain kinds of errors. In particular, it will exit with
an error if you provide nonsensical command-line options or
if you attempt to read an unrecognized archive. gtar does
not warn about many such problems.
* Ease of use: When reading archives, bsdtar automatically
determines compression and file format. The -j, -y, -z, and -Z
options are ignored when reading archives.
bsdtar can "interpolate" entries from existing archives when
creating new archives (see the "@archive" extension).
* Advanced tape drive support: gtar has a variety of options
for managing tape drives, including rmt support. bsdtar currently
lacks these features.
* Portability: gtar is portable to many different Unix and non-Unix
systems. bsdtar supports standard file formats that are widely
supported by other implementations. There are efforts to port
bsdtar to other platforms.
If you have any questions or concerns, feel free to address them
to me at: kientzle@freebsd.org
Tim Kientzle
------------------------------
Message: 16
Date: Sat, 17 Jul 2004 13:48:43 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: kernel build error in cam_periph_mapmem
To: Harald Schmalzbauer <h@schmalzbauer.de>
Cc: freebsd-current@freebsd.org
Message-ID:
<Pine.NEB.3.96L.1040717134658.30611G-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Fri, 16 Jul 2004, Harald Schmalzbauer wrote:
> for several cvsups my kernel build fails with the following:
>
> cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
> -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys
> -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq
> -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf
> -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd
> -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common
> -finline-limit=8000 -mno-align-long-strings -mpreferred-stack-boundary=2
> -ffreestanding -Werror /usr/src/sys/cam/cam_periph.c
> /usr/src/sys/cam/cam_periph.c: In function `cam_periph_mapmem':
> /usr/src/sys/cam/cam_periph.c:624: warning: implicit declaration of function
> `_mtx_assert'
> /usr/src/sys/cam/cam_periph.c:624: error: `MA_OWNED' undeclared (first use i
n
> this function)
It looks like your copy of cam_periph.c doesn't #include mutex.h, which is
where MA_OWNED is defined. Revision 1.56, which is what I have checked
out here, appears to include if. Could you confirm you have revision 1.56
without any local modifications?
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
Message: 17
Date: Sat, 17 Jul 2004 11:10:26 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: panic: APIC: Previous IPI is stuck
To: Lars Erik Gullerud <lerik@nolink.net>
Cc: "current@freebsd.org" <current@freebsd.org>
Message-ID: <20040717181026.GA63963@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"
On Sat, Jul 17, 2004 at 06:10:45PM +0200, Lars Erik Gullerud wrote:
> On Sat, 17 Jul 2004, Andre Guibert de Bruet wrote:
>
> > pmap_rltacziynftirx(:a 9sfp4u4nc 8f4o,r0 ,56040f0b0f0c0108
> > ,a9f44c80,8) at 0x606f31c5
> [snip]
>
> > I am a little worried by the line that starts with pmap_rltac. It appears
> > to be the output of two interleaved messages, which I have yet to make
> > sense of. At this point the machine is deadlocked and nothing short of a
> > reset will get it to budge.
>
> FYI, the two interleaved lines actually seem to be:
>
> rtcintr(a9f44c84,0,64fbfc18,a9f44c80,8) at 0x606f31c5
> pmap_lazyfix: spun for 50000000
>
> I seem to remember Kris Kennaway also having a couple of panics where
> pmap_lazyfix errors got interleaved with the output.
Yeah, I've had to disable SMP because this panic happens too often.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040717/
112054c0/attachment-0001.bin
------------------------------
Message: 18
Date: Sat, 17 Jul 2004 13:11:38 +0000
From: John Leimon <jleimon@sbcglobal.net>
Subject: Re: sk0 problems
To: freebsd-current@freebsd.org
Message-ID: <200407171311.38491.jleimon@sbcglobal.net>
Content-Type: text/plain; charset="iso-8859-1"
On Saturday 17 July 2004 02:16 pm, Tomas Randa wrote:
> Hi,
>
> i am using network card Marvell Semiconductor 88E1000 with sk driver on
> FreeBSD 5.2.1 on two machines, but i have problem with it.
> When a high traffic is going through the interface (about 6-9MB/s), the
> card stops working, no ping, no answer, no message in log. Sometimes
> help do ifconfig sk0 down and up, but sometimes not.
>
> skc0: <Marvell Gigabit Ethernet> port 0xb400-0xb4ff mem
> 0xfb020000-0xfb023fff irq 5 at device 9.0 on pci2
> skc0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xfb020000
> skc0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
> sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
>
>
> Is driver broken?
>
> Thanks.
I've never been able to get dhcp working with the marvell, had to use a
realtek to connect to the internet. I think the driver is pretty flaky at the
moment.
John
------------------------------
Message: 19
Date: Sat, 17 Jul 2004 12:17:12 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: pccbb crashes when detaching (unsafe interrupt handler)
To: green@FreeBSD.ORG
Cc: current@FreeBSD.ORG
Message-ID: <20040717.121712.83689795.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii
In message: <20040717054014.GP1626@green.homeunix.org>
Brian Fundakowski Feldman <green@freebsd.org> writes:
: On Fri, Jul 16, 2004 at 11:28:44PM -0600, M. Warner Losh wrote:
: > In message: <20040715180854.GZ1626@green.homeunix.org>
: > Brian Fundakowski Feldman <green@freebsd.org> writes:
: > : Devices that attach to a pccbb end up getting screwed if they share
: > : interrupt handlers with anything else and one comes in at such time
: > : that the interrupt handler has been deallocated but not torn down.
: >
: > How do they get screwed by this case? I considered these cases. What
: > scenario, exactly, does this cause problems for.
: >
: > : There is no interrupt protection for the pccbb interrupt handler,
: >
: > There doesn't need to be one because we preclude calling it when
: > things are in a bad state. Is there some case that we've not taken
: > care of?
: >
: > : and the cleanest method I can think of is add a "don't run" count to
: > : the real ithread interrupt handler (parent); however, this is a fair
: > : bit of infrastructure if it's not something very useful, and in SMP,
: > : concurrent accesses of the local interrupt handler list in pccbb do
: > : need to be protected, not just preventing interrupt handlers.
: >
: > I don't think this sort of insfrastructure is useful. I don't
: > understand when the case you are trying to protect against can happen,
: > so I'm having trouble seeing why the code is necessary.
: >
: > : This is what I have so far, but I'm not happy with it because it
: > : seems like it would be so much nicer to increment a count on the
: > : ithread's intrhand and drain any current interrupt out of the
: > : ithread, but possibly making each interrupt a lot more expensive.
: >
: > Like I said in another note, I don't like this because I don't want to
: > take out a lock on every interrupt to guard against such a rare case
: > as you've discovered (I'm assuming it is rare becuase I've never seen
: > it in 5 years of maintaining the code).
: >
: > ...
: > : if (sc->flags & CBB_CARD_OK) {
: > ...
: >
: > What I want to know is why the above check doesn't guard against this
: > problem. If the card is detached because you ejected it, the isr
: > already guards against calling the hanlders for this card.
:
: Do you want to see the driver? This is a simple problem. The removal
: from the interrupt handler list in pccbb is not even remotely safe with
: regard to SMP _or_to_interrupts_. I am literally receiving crashes
: with the function 0xdeadc0de() being called from the interrupts. Do you
: not believe me? It's extremely easy to test. I just play something on the
: sound card while I kldunload, or eject, my cardbus wireless card.
I've read the driver, and I've shared interrupts and I never see this
problem. Please try not to use hyperbole in your mail to me and tone
down the rheteric. You are only succeeding in making me more angry
without achieving your goal of getting this issue resolved.
The card_ok test generally catches these problems, and I've made a few
changes in p4 to make it stronger, but not perfect. I see the race.
There's trivial ways to make it harder to happen, but completly fixing
it without impacting the performance of every interrupt is much
harder. I'm not too interested in using an sx lock, unless it is the
fastest way to deal with the problem.
Warner
------------------------------
Message: 20
Date: Sat, 17 Jul 2004 14:28:41 -0400
From: Brian Fundakowski Feldman <green@FreeBSD.ORG>
Subject: Re: pccbb crashes when detaching (unsafe interrupt handler)
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: current@FreeBSD.ORG
Message-ID: <20040717182841.GR1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii
On Sat, Jul 17, 2004 at 12:17:12PM -0600, M. Warner Losh wrote:
> In message: <20040717054014.GP1626@green.homeunix.org>
> Brian Fundakowski Feldman <green@freebsd.org> writes:
> : On Fri, Jul 16, 2004 at 11:28:44PM -0600, M. Warner Losh wrote:
> : > In message: <20040715180854.GZ1626@green.homeunix.org>
> : > Brian Fundakowski Feldman <green@freebsd.org> writes:
> : > : Devices that attach to a pccbb end up getting screwed if they share
> : > : interrupt handlers with anything else and one comes in at such time
> : > : that the interrupt handler has been deallocated but not torn down.
> : >
> : > How do they get screwed by this case? I considered these cases. What
> : > scenario, exactly, does this cause problems for.
> : >
> : > : There is no interrupt protection for the pccbb interrupt handler,
> : >
> : > There doesn't need to be one because we preclude calling it when
> : > things are in a bad state. Is there some case that we've not taken
> : > care of?
> : >
> : > : and the cleanest method I can think of is add a "don't run" count to
> : > : the real ithread interrupt handler (parent); however, this is a fair
> : > : bit of infrastructure if it's not something very useful, and in SMP,
> : > : concurrent accesses of the local interrupt handler list in pccbb do
> : > : need to be protected, not just preventing interrupt handlers.
> : >
> : > I don't think this sort of insfrastructure is useful. I don't
> : > understand when the case you are trying to protect against can happen,
> : > so I'm having trouble seeing why the code is necessary.
> : >
> : > : This is what I have so far, but I'm not happy with it because it
> : > : seems like it would be so much nicer to increment a count on the
> : > : ithread's intrhand and drain any current interrupt out of the
> : > : ithread, but possibly making each interrupt a lot more expensive.
> : >
> : > Like I said in another note, I don't like this because I don't want to
> : > take out a lock on every interrupt to guard against such a rare case
> : > as you've discovered (I'm assuming it is rare becuase I've never seen
> : > it in 5 years of maintaining the code).
> : >
> : > ...
> : > : if (sc->flags & CBB_CARD_OK) {
> : > ...
> : >
> : > What I want to know is why the above check doesn't guard against this
> : > problem. If the card is detached because you ejected it, the isr
> : > already guards against calling the hanlders for this card.
> :
> : Do you want to see the driver? This is a simple problem. The removal
> : from the interrupt handler list in pccbb is not even remotely safe with
> : regard to SMP _or_to_interrupts_. I am literally receiving crashes
> : with the function 0xdeadc0de() being called from the interrupts. Do you
> : not believe me? It's extremely easy to test. I just play something on th
e
> : sound card while I kldunload, or eject, my cardbus wireless card.
>
> I've read the driver, and I've shared interrupts and I never see this
> problem. Please try not to use hyperbole in your mail to me and tone
> down the rheteric. You are only succeeding in making me more angry
> without achieving your goal of getting this issue resolved.
>
> The card_ok test generally catches these problems, and I've made a few
> changes in p4 to make it stronger, but not perfect. I see the race.
> There's trivial ways to make it harder to happen, but completly fixing
> it without impacting the performance of every interrupt is much
> harder. I'm not too interested in using an sx lock, unless it is the
> fastest way to deal with the problem.
It's just as unfair for you to use hyperbole and deny it as a problem
or basically call me a liar, but I'm glad at least you're admitting it
is a problem now. You need to use atomic/SMP-safe synchronizations,
and that does not come at zero cost. There is a race between the driver
checking if the card is still "okay" and running the interrupt handler
that is impossible to solve without at least two atomic operations.
Zero will not do.
Be pissed off all you want, Warner. FreeBSD 5.x is not based on the spl
model anymore, and unless you want to ADD the ability to do something like
that, which is certainly quite feasible (that is, add a "blocking" count
to the interrupt handler, which the ithread has to ack before you can
return with the interrupt "blocked") there will be a specific cost inside
the pccbb driver to do things safely and it will involve some sort of
synchronization.
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green@FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
------------------------------
Message: 21
Date: Sat, 17 Jul 2004 11:30:22 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: About ISC-cron
To: Xin LI <delphij@frontfree.net>
Cc: current@FreeBSD.org
Message-ID: <20040717183022.GA64172@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"
On Sat, Jul 17, 2004 at 11:30:16PM +0800, Xin LI wrote:
> Hi folks,
>
> I have did a preliminary work on ISC-cron 4.1 for FreeBSD. I have noticed
> that:
> - Both FreeBSD and NetBSD have cron and friends based on cron 3.0
> with some respective local modifications.
> - OpenBSD has adopted ISC cron 4.0b1 in early 2001. After that,
> they have did several security and stablity related improvements
> that IMO is valuable for us, too.
> - There are some minor bugs in FreeBSD's cron that should be
> fixed. (e.g. having */0 in crontab will cause a local DoS,
> crontab does not remove temp files when it is abnormally
> terminated, etc.)
>
> I have Google'd the mailing list and found no discussion explaining why
> we have not upgraded our cron and friends. Is there any discussion I
> have missed? In other words, should I make these work a port, or a diff
> against src/, when I have finished the whole thing?
About the only reason in favour of keeping cron 3.0 would be if there
are compatibility issues. However this is still a weak reason since
this is 5.x-CURRENT.
I think upgrading cron in src sounds like a good idea.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040717/
60ea3de4/attachment-0001.bin
------------------------------
Message: 22
Date: Sat, 17 Jul 2004 14:36:58 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: NEW TAR
To: Tim Kientzle <kientzle@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040717183658.GS1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii
On Sat, Jul 17, 2004 at 10:37:28AM -0700, Tim Kientzle wrote:
> By default, /usr/bin/tar is now a symlink pointing
> to /usr/bin/bsdtar.
>
> How will this affect you?
>
> Most people should not notice the change. bsdtar
> accepts the most popular gtar command-line options, reads
> gtar files, and generally does what most people
> expect from a modern tar implementation.
>
> However, bsdtar is not a clone of gtar. If you rely
> on specific gtar features, then you should be using gtar.
>
> What are the differences?
>
* Don't forget to mention it can be faster than GNU tar, too :)
Great job!
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green@FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
------------------------------
Message: 23
Date: Sat, 17 Jul 2004 14:42:40 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: panic: APIC: Previous IPI is stuck
To: Kris Kennaway <kris@obsecurity.org>
Cc: "current@freebsd.org" <current@freebsd.org>
Message-ID: <20040717184240.GT1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii
On Sat, Jul 17, 2004 at 11:10:26AM -0700, Kris Kennaway wrote:
> On Sat, Jul 17, 2004 at 06:10:45PM +0200, Lars Erik Gullerud wrote:
> > On Sat, 17 Jul 2004, Andre Guibert de Bruet wrote:
> >
> > > pmap_rltacziynftirx(:a 9sfp4u4nc 8f4o,r0 ,56040f0b0f0c0108
> > > ,a9f44c80,8) at 0x606f31c5
> > [snip]
> >
> > > I am a little worried by the line that starts with pmap_rltac. It appear
s
> > > to be the output of two interleaved messages, which I have yet to make
> > > sense of. At this point the machine is deadlocked and nothing short of a
> > > reset will get it to budge.
> >
> > FYI, the two interleaved lines actually seem to be:
> >
> > rtcintr(a9f44c84,0,64fbfc18,a9f44c80,8) at 0x606f31c5
> > pmap_lazyfix: spun for 50000000
> >
> > I seem to remember Kris Kennaway also having a couple of panics where
> > pmap_lazyfix errors got interleaved with the output.
>
> Yeah, I've had to disable SMP because this panic happens too often.
Does it only happen with a constant $NCPU+ load average? I have never
seen it here.
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green@FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
------------------------------
Message: 24
Date: Sat, 17 Jul 2004 11:43:39 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: NEW TAR
To: Tim Kientzle <kientzle@freebsd.org>
Cc: ports@freebsd.org
Message-ID: <20040717184339.GA64464@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"
On Sat, Jul 17, 2004 at 10:37:28AM -0700, Tim Kientzle wrote:
> What are the differences?
> * Portability: gtar is portable to many different Unix and non-Unix
> systems. bsdtar supports standard file formats that are widely
> supported by other implementations. There are efforts to port
> bsdtar to other platforms.
* Less known bugginess: gtar on sparc64 has sporadic problems,
e.g. attempting to use all available VM. bsdtar doesn't have obvious
problems on other FreeBSD architectures.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040717/
e2490ee0/attachment-0001.bin
------------------------------
Message: 25
Date: Sat, 17 Jul 2004 20:48:27 +0200
From: Wilko Bulte <wb@freebie.xs4all.nl>
Subject: Re: NEW TAR
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: Tim Kientzle <kientzle@freebsd.org>
Message-ID: <20040717184827.GA54053@freebie.xs4all.nl>
Content-Type: text/plain; charset=us-ascii
On Sat, Jul 17, 2004 at 02:36:58PM -0400, Brian Fundakowski Feldman wrote:
> On Sat, Jul 17, 2004 at 10:37:28AM -0700, Tim Kientzle wrote:
> > By default, /usr/bin/tar is now a symlink pointing
> > to /usr/bin/bsdtar.
> >
> > How will this affect you?
> >
> > Most people should not notice the change. bsdtar
> > accepts the most popular gtar command-line options, reads
> > gtar files, and generally does what most people
> > expect from a modern tar implementation.
> >
> > However, bsdtar is not a clone of gtar. If you rely
> > on specific gtar features, then you should be using gtar.
> >
> > What are the differences?
> >
> * Don't forget to mention it can be faster than GNU tar, too :)
And certified GPLfree ;-)
--
Wilko Bulte wilko@FreeBSD.org
------------------------------
Message: 26
Date: Sat, 17 Jul 2004 12:48:03 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: pccbb crashes when detaching (unsafe interrupt handler)
To: green@FreeBSD.ORG
Cc: current@FreeBSD.ORG
Message-ID: <20040717.124803.33210527.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii
In message: <20040717182841.GR1626@green.homeunix.org>
Brian Fundakowski Feldman <green@FreeBSD.ORG> writes:
: It's just as unfair for you to use hyperbole and deny it as a problem
: or basically call me a liar, but I'm glad at least you're admitting it
: is a problem now.
You are taking offence where none was intended. I didn't call you a
liar, I just said that I've *NEVER* seen the problem in the last 4
years of working with the code. There's a big difference. 4 years of
trouble free operation for as much as I use the code is enough to bias
the burdon of proof for a race that's been there for those 4 years to
the submitter... Races seem obvious in hindsight, but are difficult
to find so explaination of them is key in getting the problem
understood.
: You need to use atomic/SMP-safe synchronizations,
: and that does not come at zero cost. There is a race between the driver
: checking if the card is still "okay" and running the interrupt handler
: that is impossible to solve without at least two atomic operations.
:
: Zero will not do.
Agreed. The eject case is easy to guard against (since pccbb turns
off interrupt forwarding immediately when it detects the card is gone
and we detach in a separate thread). The unload case is the more
difficult to deal with since interrupts may come in during the unload
process and you can't guard against them all. You can't turn off the
interrupt stream in that case because there may be more than one
function on the card.
: Be pissed off all you want, Warner.
I think this is a counter productive attitude, and an uncalled for
cheap shot. Let's stop that part of this conversation and get onto
solving the problem at hand.
: FreeBSD 5.x is not based on the spl
: model anymore, and unless you want to ADD the ability to do something like
: that, which is certainly quite feasible (that is, add a "blocking" count
: to the interrupt handler, which the ithread has to ack before you can
: return with the interrupt "blocked") there will be a specific cost inside
: the pccbb driver to do things safely and it will involve some sort of
: synchronization.
I don't assume that things are spl based, I just had never seen the
race that you found. I don't want to use sx locks to solve this
because I'd one day like to make the cbb isr a fast interrupt handler
so that we can restore fast interrupt handlers to pccard and cardbus
modems. sx locks sleep, and can't be used in a fast interrupt
handler.
Warner
------------------------------
Message: 27
Date: Sun, 18 Jul 2004 04:00:44 +0900 (JST)
From: Norikatsu Shigemura <nork@FreeBSD.org>
Subject: Re: NEW TAR
To: Tim Kientzle <kientzle@FreeBSD.org>
Cc: ports@FreeBSD.org
Message-ID: <200407171900.i6HJ0iSv031891@sakura.ninth-nine.com>
Content-Type: text/plain; charset=US-ASCII
On Sat, 17 Jul 2004 10:37:28 -0700
Tim Kientzle <kientzle@freebsd.org> wrote:
> * File format: bsdtar can read gtar files, including
> long file names, long link names, and sparse files.
> bsdtar can also read many other formats that gtar
> does not support.
WoW! > shar format support
This is useful for ports committers:-). I wanted it!
Of course, I am using knu's sunshar. But...
------------------------------
Message: 28
Date: Sat, 17 Jul 2004 21:03:16 +0200
From: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject: Re: NEW TAR
To: Tim Kientzle <kientzle@freebsd.org>
Cc: ports@freebsd.org
Message-ID: <20040717190316.GM12007@darkness.comp.waw.pl>
Content-Type: text/plain; charset="iso-8859-2"
On Sat, Jul 16, 2004 at 10:37:28AM -0700, Tim Kientzle wrote:
+> By default, /usr/bin/tar is now a symlink pointing
+> to /usr/bin/bsdtar.
And I hope it will stay. Great work, thank you!
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd@FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040717/
fc2b5079/attachment-0001.bin
------------------------------
Message: 29
Date: Sat, 17 Jul 2004 15:19:43 -0400
From: Brian Fundakowski Feldman <green@FreeBSD.ORG>
Subject: Re: pccbb crashes when detaching (unsafe interrupt handler)
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: current@FreeBSD.ORG
Message-ID: <20040717191943.GU1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii
On Sat, Jul 17, 2004 at 12:48:03PM -0600, M. Warner Losh wrote:
> In message: <20040717182841.GR1626@green.homeunix.org>
> : FreeBSD 5.x is not based on the spl
> : model anymore, and unless you want to ADD the ability to do something like
> : that, which is certainly quite feasible (that is, add a "blocking" count
> : to the interrupt handler, which the ithread has to ack before you can
> : return with the interrupt "blocked") there will be a specific cost inside
> : the pccbb driver to do things safely and it will involve some sort of
> : synchronization.
>
> I don't assume that things are spl based, I just had never seen the
> race that you found. I don't want to use sx locks to solve this
> because I'd one day like to make the cbb isr a fast interrupt handler
> so that we can restore fast interrupt handlers to pccard and cardbus
> modems. sx locks sleep, and can't be used in a fast interrupt
> handler.
I'd love it if we could tone down the anger and incredulity. From this
point on, let's start off assuming each one of us knows what the other is
talking about. None of us likes feeling insulted or slighted, so I would
like to publically apologize for being provoked and taking an angry tone
when I am simply interested in fixing this matter (and many others) so
that 5.3 Does Not Suck.
Okay, using an sx_xlock() (instead of sx_tryxlock()) would certainly prevent
that, but I can understand not wanting to add more weight to the fast
path. It's something no one wants, even if it's the cleanest solution.
So now that I've had more time to think about it, here's my idea on the
feasibility of an ithread handler critical section. It should cost no
more in the fast path than it does now, other than increasing the amount
of code jumped past by several instructions when it's skipped.
>From currentish kern_intr.c:
if ((ih->ih_flags & IH_DEAD) != 0) {
mtx_lock(&ithd->it_lock);
TAILQ_REMOVE(&ithd->it_handlers, ih,
ih_next);
wakeup(ih);
mtx_unlock(&ithd->it_lock);
goto restart;
}
We add a flag IH_PIN:
if ((ih->ih_flags & (IH_DEAD | IH_PIN)) != 0)
{
if ((ih->ih_flags & IH_DEAD) == 0) {
wakeup(ih);
continue;
}
mtx_lock(&ithd->it_lock);
TAILQ_REMOVE(&ithd->it_handlers,
ih, ih_next);
wakeup(ih);
mtx_unlock(&ithd->it_lock);
goto restart;
}
The implementation for the caller would look almost the same as the
ithread_remove_handler() function. It would push essentially all of the
cost out to the code actually modifying the specifics of the interrupt
handler, and should provide a sufficient critical section for any such
drivers that want to create their own interrupt sub-handlers.
So ithread_pin_handler()/ithread_unpin_handler() seem like a reasonable
solution, if a little bit ugly to be calling ithread support code from
drivers directly? I don't know if there's any reason on FreeBSD the
driver should not be able to know for certain that all interrupts are
registered as an intrhand on on ithread.
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green@FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
------------------------------
Message: 30
Date: Sat, 17 Jul 2004 19:33:51 +0000
From: Bosko Milekic <bmilekic@FreeBSD.org>
Subject: Re: pccbb crashes when detaching (unsafe interrupt handler)
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040717193351.GA83772@freefall.freebsd.org>
Content-Type: text/plain; charset=us-ascii
Brian Feldman wrote:
>>From currentish kern_intr.c:
> if ((ih->ih_flags & IH_DEAD) != 0) {
> mtx_lock(&ithd->it_lock);
> TAILQ_REMOVE(&ithd->it_handlers, ih,
> ih_next);
> wakeup(ih);
> mtx_unlock(&ithd->it_lock);
> goto restart;
> }
>We add a flag IH_PIN:
> if ((ih->ih_flags & (IH_DEAD | IH_PIN)) != 0) {
> if ((ih->ih_flags & IH_DEAD) == 0) {
> wakeup(ih);
> continue;
> }
> mtx_lock(&ithd->it_lock);
> TAILQ_REMOVE(&ithd->it_handlers,
> ih, ih_next);
> wakeup(ih);
> mtx_unlock(&ithd->it_lock);
> goto restart;
> }
Neither -current nor your version should be holding the ithd lock
across the wakeup(). What is being done is that the ithd lock which
is supposed to protect the ithd data structure is being used to
also protect against a temporary (insignificant) race in wakeup().
However, the race is non-fatal and should exist. The race that
results from trying to plug this one is now between the thread
doing the wakeup returning from the wakeup and dropping the lock
before the woken-up thread picks it up. This is (IMO) more wrong
than the non-fatal race this is trying to plug against.
I'll comment more on your proposed solution later but thought I
should get the above off my chest, because it's not the first time
I see it.
-Bosko
------------------------------
Message: 31
Date: Sat, 17 Jul 2004 15:42:45 -0400 (EDT)
From: Andre Guibert de Bruet <andy@siliconlandmark.com>
Subject: Re: panic: APIC: Previous IPI is stuck
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: "current@freebsd.org" <current@freebsd.org>
Message-ID: <20040717154040.P24726@alpha.siliconlandmark.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Sat, 17 Jul 2004, Brian Fundakowski Feldman wrote:
> On Sat, Jul 17, 2004 at 11:10:26AM -0700, Kris Kennaway wrote:
>> On Sat, Jul 17, 2004 at 06:10:45PM +0200, Lars Erik Gullerud wrote:
>>> On Sat, 17 Jul 2004, Andre Guibert de Bruet wrote:
>>>
>>>> pmap_rltacziynftirx(:a 9sfp4u4nc 8f4o,r0 ,56040f0b0f0c0108
>>>> ,a9f44c80,8) at 0x606f31c5
>>> [snip]
>>>
>>>> I am a little worried by the line that starts with pmap_rltac. It appears
>>>> to be the output of two interleaved messages, which I have yet to make
>>>> sense of. At this point the machine is deadlocked and nothing short of a
>>>> reset will get it to budge.
>>>
>>> FYI, the two interleaved lines actually seem to be:
>>>
>>> rtcintr(a9f44c84,0,64fbfc18,a9f44c80,8) at 0x606f31c5
>>> pmap_lazyfix: spun for 50000000
>>>
>>> I seem to remember Kris Kennaway also having a couple of panics where
>>> pmap_lazyfix errors got interleaved with the output.
>>
>> Yeah, I've had to disable SMP because this panic happens too often.
>
> Does it only happen with a constant $NCPU+ load average? I have never
> seen it here.
Can't really tell, as that was the first time I had ever seen that
message. I upgraded kernels and am able to successfully build world
on the same machine without any problems. Dare I try it with -j($NCPU+1)?
Andy
> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/ >
------------------------------
Message: 32
Date: Sat, 17 Jul 2004 15:53:24 -0400 (EDT)
From: Andre Guibert de Bruet <andy@siliconlandmark.com>
Subject: make -j3 world - Syntax error: Unterminated quoted string
To: current@freebsd.org
Message-ID: <20040717154947.T24726@alpha.siliconlandmark.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Hi,
I found the following, trying to stress test my system (See the "panic:
APIC: Previous IPI is stuck" thread for more details on that):
bling# make world
WARNING: make world will overwrite your existing FreeBSD
installation without also building and installing a new
kernel. This can be dangerous. Please read the handbook,
'Using make world', for how to upgrade your system.
Define DESTDIR to the where you want to install FreeBSD,
including /, to override this warning and proceed as usual.
Bailing out now...
*** Error code 1
Stop in /usr/CURRENT.
bling# make -j3 world
WARNING: make world will overwrite your existing FreeBSD
installation without also building and installing a new
kernel. This can be dangerous. Please read the handbook,
'Using make world', for how to upgrade your system.
Syntax error: Unterminated quoted string
*** Error code 2
1 error
bling#
Regards,
Andy
> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/ >
------------------------------
Message: 33
Date: Sat, 17 Jul 2004 12:56:32 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: panic: APIC: Previous IPI is stuck
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: "current@freebsd.org" <current@freebsd.org>
Message-ID: <20040717195632.GA67466@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"
On Sat, Jul 17, 2004 at 02:42:40PM -0400, Brian Fundakowski Feldman wrote:
> On Sat, Jul 17, 2004 at 11:10:26AM -0700, Kris Kennaway wrote:
> > On Sat, Jul 17, 2004 at 06:10:45PM +0200, Lars Erik Gullerud wrote:
> > > On Sat, 17 Jul 2004, Andre Guibert de Bruet wrote:
> > >
> > > > pmap_rltacziynftirx(:a 9sfp4u4nc 8f4o,r0 ,56040f0b0f0c0108
> > > > ,a9f44c80,8) at 0x606f31c5
> > > [snip]
> > >
> > > > I am a little worried by the line that starts with pmap_rltac. It appe
ars
> > > > to be the output of two interleaved messages, which I have yet to make
> > > > sense of. At this point the machine is deadlocked and nothing short of
a
> > > > reset will get it to budge.
> > >
> > > FYI, the two interleaved lines actually seem to be:
> > >
> > > rtcintr(a9f44c84,0,64fbfc18,a9f44c80,8) at 0x606f31c5
> > > pmap_lazyfix: spun for 50000000
> > >
> > > I seem to remember Kris Kennaway also having a couple of panics where
> > > pmap_lazyfix errors got interleaved with the output.
> >
> > Yeah, I've had to disable SMP because this panic happens too often.
>
> Does it only happen with a constant $NCPU+ load average? I have never
> seen it here.
Yeah, it's usually a pretty busy machine. It does a lot of
buildworlds, nfs, concurrent www serving and ssh dispatching.
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040717/
18228b93/attachment-0001.bin
------------------------------
Message: 34
Date: Sat, 17 Jul 2004 12:58:27 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: panic: APIC: Previous IPI is stuck
To: Andre Guibert de Bruet <andy@siliconlandmark.com>
Cc: "current@freebsd.org" <current@freebsd.org>
Message-ID: <20040717195827.GA67530@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"
On Sat, Jul 17, 2004 at 03:42:45PM -0400, Andre Guibert de Bruet wrote:
> Can't really tell, as that was the first time I had ever seen that
> message. I upgraded kernels and am able to successfully build world
> on the same machine without any problems. Dare I try it with -j($NCPU+1)?
Depends, how much do you like panics and system lockups? :-)
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040717/
dfd78936/attachment-0001.bin
------------------------------
Message: 35
Date: Sat, 17 Jul 2004 15:59:31 -0400
From: Alex Vasylenko <lxv@omut.org>
Subject: Re: Call for PRs: nullfs
To: Julian Elischer <julian@elischer.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040717195929.GA26144@tadpole.intranet>
Content-Type: text/plain; charset=us-ascii
On Fri, Jul 16, 2004 at 01:08:48PM -0700, Julian Elischer wrote:
> I'm using nullfs for jails on -4.8(ish) without problems so far..
I find the performance of nullfs somewhat lacking as measured in the test
described below (a config with nullfs performs worse (~2x slower) than the sam
e
config with vnodefs). For simplicity the test was done in chroot, doing it in
a
jail has no significant impact on performance.
Hardware/OS:
------------
FreeBSD 5.2.1-RELEASE-p4 #1: Fri Apr 9 09:09:06 PDT 2004
CPU: Intel Pentium III (701.59-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x683 Stepping = 3
Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,
PAT,PSE36,PN,MMX,FXSR,SSE>
real memory = 268173312 (255 MB)
atapci0: <Intel PIIX4 UDMA33 controller> port 0xffa0-0xffaf at device 7.1 on p
ci0
ad0: 38166MB <WDC WD400JB-00ENA0> [77545/16/63] at ata0-master UDMA33
Config common:
--------------
/var/tmp/world:
populated with 'cd /usr/src; make installworld DESTDIR=/var/tmp/world'
/var/tmp/jail:
bin@ -> ro/bin
dev/
etc/
lib@ -> ro/lib
libexec@ -> ro/libexec
ro/
root/
sbin@ -> ro/sbin
tmp/
user/
usr/
var/
/var/tmp/jail/usr:
X11R6/
bin@ -> ../ro/usr/bin
include@ -> ../ro/usr/include
lib@ -> ../ro/usr/lib
libexec@ -> ../ro/usr/libexec
local/
ports/
sbin@ -> ../ro/usr/sbin
share@ -> ../ro/usr/share
Config vnodefs:
---------------
$ mdconfig -l -u md2
md2 vnode 131072 KBytes
$ mount | grep /var/tmp/jail
devfs on /var/tmp/jail/dev (devfs, local)
/dev/md2 on /var/tmp/jail/ro (ufs, local, read-only)
/usr/ports on /var/tmp/jail/usr/ports (nullfs, local, read-only)
Config nullfs:
--------------
$ mount | grep /var/tmp/jail
devfs on /var/tmp/jail/dev (devfs, local)
/var/tmp/world on /var/tmp/jail/ro (nullfs, local, read-only)
/usr/ports on /var/tmp/jail/usr/ports (nullfs, local, read-only)
Test:
-----
chroot /var/tmp/jail
cd /usr/ports/lang/perl5; time make WRKDIRPREFIX=/tmp
Numbers:
--------
nullfs: 176.257u 38.316s 6:04.13 58.9% 2801+2353k 183+366io 76805pf+0w
vnodefs: 173.918u 33.775s 3:36.65 95.8% 2845+2407k 303+339io 251pf+0w
base(*): 174.084u 33.281s 3:37.30 95.4% 2843+2415k 329+358io 252pf+0w
(*) This was a simple 'cd /usr/ports/lang/perl5; time make'
--
Alex.
------------------------------
Message: 36
Date: Sat, 17 Jul 2004 13:58:34 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: make -j3 world - Syntax error: Unterminated quoted string
To: Andre Guibert de Bruet <andy@siliconlandmark.com>
Cc: current@freebsd.org
Message-ID: <20040717205834.GA36010@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Sat, Jul 17, 2004 at 03:53:24PM -0400, Andre Guibert de Bruet wrote:
>
> bling# make -j3 world
> WARNING: make world will overwrite your existing FreeBSD
> installation without also building and installing a new
> kernel. This can be dangerous. Please read the handbook,
> 'Using make world', for how to upgrade your system.
> Syntax error: Unterminated quoted string
> *** Error code 2
> 1 error
> bling#
Fixed.
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
Message: 37
Date: Sat, 17 Jul 2004 23:02:06 +0200
From: Martin <nakal@web.de>
Subject: Re: PPPoE misbehaving?
To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <1090098125.1317.4.camel@klotz.local>
Content-Type: text/plain
Am Sa, den 17.07.2004 schrieb Bjoern A. Zeeb um 18:37:
> > PPPoE is broken for me on -CURRENT, too, now since about 2 weeks.
>
> I do have a built from friday and it works just fine with German DTAG
> DSL.
It seems to be an xl driver (3Com) problem. I have now a new
NIC and PPPoE works fine again. You can read in the PR, which
I mentioned.
Martin
------------------------------
_______________________________________________
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 40
***********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[31m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m