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: gdb (Grover Lines)
2. Re: Current does not build (annotate.texi) (David O'Brien)
3. Re: Current does not build (annotate.texi) (David O'Brien)
4. -CURRENT buildproblem (Marco van Lienen)
5. Testers wanted: USB printers (Lukas Ertl)
6. HEADSUP: Network interface cloning changes (Brooks Davis)
7. Re: -CURRENT buildproblem (Liam J. Foy)
8. Re: -Os -> libXaw.so: undefined reference to `.L91'
(Ulrich Spoerlein)
9. Re: -CURRENT buildproblem (Marco van Lienen)
10. Re: -Os -> libXaw.so: undefined reference to `.L91' (Steve Kargl)
11. Re: STI, HLT in acpi_cpu_idle_c1 (John Baldwin)
12. Re: Optimized ether_crc32_be() (John Baldwin)
13. Re: Optimized ether_crc32_be() (Poul-Henning Kamp)
14. Re: ithread priority question... (John Baldwin)
15. Re: ithread priority question... (John Baldwin)
16. Re: > panic: APIC: Previous IPI is stupcmka (John Baldwin)
17. Re: > panic: APIC: Previous IPI is stupcmka (John Baldwin)
18. Re: -Os -> libXaw.so: undefined reference to `.L91' (Dan Nelson)
19. Re: STI, HLT in acpi_cpu_idle_c1 (Matthew Dillon)
20. RE: STI, HLT in acpi_cpu_idle_c1 (Gerrit Nagelhout)
21. Re: STI, HLT in acpi_cpu_idle_c1 (Andrew Thompson)
22. RE: Problems installing Fre*BSD with 3ware 9500S-4LP (Doug White)
23. Re: STI, HLT in acpi_cpu_idle_c1 (John Baldwin)
24. Re: IPSEC on -current [was: -current build failure] (Doug White)
25. RE: STI, HLT in acpi_cpu_idle_c1 (Matthew Dillon)
26. Re: ithread priority question... (Julian Elischer)
27. Re: ithread priority question... (Julian Elischer)
28. Re: Using Geom to mirror root partitions? (Josef Karthauser)
29. Re: Wireless support for the Netgear WG311T? (Josef Karthauser)
30. Re: vfs.usermount not working anymore on SMB shares? (Doug White)
31. Re: STI, HLT in acpi_cpu_idle_c1 (Matthew Dillon)
32. Re: ithread priority question... (Bosko Milekic)
33. Re: _<service> users [Was: startup error for pflogd] (Doug White)
34. Re: ithread priority question... (Bosko Milekic)
35. RE: 5.2.1 boot question (Doug White)
36. Re: vfs.usermount not working anymore on SMB shares? (AK)
----------------------------------------------------------------------
Message: 1
Date: Tue, 22 Jun 2004 11:30:19 -0700
From: "Grover Lines" <grover@ceribus.net>
Subject: Re: gdb
To: <freebsd-current@freebsd.org>
Message-ID: <20040622183029.89A3F43D1F@mx1.FreeBSD.org>
Content-Type: text/plain; charset="us-ascii"
Here's a link with 2 ktraces and a tcpdump with the cvsup failing towards
the end of the files.
http://www.ceribus.net/freebsd/
I really appreciate all the help.
Thanks
--
Grover Lines
------------------------------
Message: 2
Date: Tue, 22 Jun 2004 11:54:30 -0700
From: "David O'Brien" <obrien@freebsd.org>
Subject: Re: Current does not build (annotate.texi)
To: "Axel S. Gruner" <axel.gruner@suedfactoring.de>
Cc: current@freebsd.org
Message-ID: <20040622185430.GA38213@dragon.nuxi.com>
Content-Type: text/plain; charset=us-ascii
On Mon, Jun 21, 2004 at 02:40:55PM +0200, Axel S. Gruner wrote:
> i got some problems building CURRENT maybe someone can tell me what the
> problem is:
..
> Stop in /usr/src.
>
> Thanks in advance,
The advice is to read this list if you are going to run 5-CURRENT; AND be
caught up before sending off "problems" that are were answered yesterday.
--
-- David (obrien@FreeBSD.org)
------------------------------
Message: 3
Date: Tue, 22 Jun 2004 11:55:01 -0700
From: "David O'Brien" <obrien@freebsd.org>
Subject: Re: Current does not build (annotate.texi)
To: "Axel S. Gruner" <axel.gruner@suedfactoring.de>
Cc: current@freebsd.org
Message-ID: <20040622185501.GB38213@dragon.nuxi.com>
Content-Type: text/plain; charset=us-ascii
On Mon, Jun 21, 2004 at 02:40:55PM +0200, Axel S. Gruner wrote:
> i got some problems building CURRENT maybe someone can tell me what the
> problem is:
..
> Thanks in advance,
CVSup and you'll be able to get past this build problem.
--
-- David (obrien@FreeBSD.org)
------------------------------
Message: 4
Date: Tue, 22 Jun 2004 21:42:28 +0200
From: Marco van Lienen <marco+freebsd-current@lordsith.net>
Subject: -CURRENT buildproblem
To: FreeBSD-CURRENT <freebsd-current@freebsd.org>
Message-ID: <20040622194228.GA29201@lordsith.net>
Content-Type: text/plain; charset="us-ascii"
I Cvsup'ed sources yesterday:
Make buildworld failed:
building profiled y library
ranlib liby_p.a
===> lib/libz
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/adler32.c -o adler32.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/compress.c -o compress.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/crc32.c -o crc32.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/gzio.c -o gzio.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/uncompr.c -o uncompr.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/deflate.c -o deflate.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/trees.c -o trees.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/zutil.c -o zutil.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/inflate.c -o inflate.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/infblock.c -o infblock.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/inftrees.c -o inftrees.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/infcodes.c -o infcodes.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/infutil.c -o infutil.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/inffast.c -o inffast.po
cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
/usr/src/lib/libz/zopen.c -o zopen.po
gzip -cn /usr/src/lib/libz/zlib.3 > zlib.3.gz
building profiled z library
ranlib libz_p.a
1 error
*** Error code 2
1 error
*** Error code 2
1 error
Did I miss something in UPDATING ?
TIA
Marco
--
Marco van Lienen (__)
Email: <marcovl@lordsith.net> \\\'',)
Web : http://lordsith.net/ \/ \^
PGP : 0x8580E6CB .\._/_)
-------------- 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/20040622/
950da828/attachment-0001.bin
------------------------------
Message: 5
Date: Tue, 22 Jun 2004 22:06:18 +0200 (CEST)
From: Lukas Ertl <le@FreeBSD.org>
Subject: Testers wanted: USB printers
To: current@FreeBSD.org
Message-ID: <20040622220540.V640@korben.in.tern>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Hi,
I'd like to merge a ulpt(4) patch from NetBSD, but since I don't have a
USB printer I'd be glad if someone out there owning such a piece of
hardware could test it:
<http://people.freebsd.org/~le/ulpt.diff>
Thank you,
le
--
Lukas Ertl http://homepage.univie.ac.at/l.ertl/
le@FreeBSD.org http://people.freebsd.org/~le/
------------------------------
Message: 6
Date: Tue, 22 Jun 2004 13:23:57 -0700
From: Brooks Davis <brooks@one-eyed-alien.net>
Subject: HEADSUP: Network interface cloning changes
To: current@freebsd.org
Message-ID: <20040622202357.GA11085@Odin.AC.HMC.Edu>
Content-Type: text/plain; charset="us-ascii"
I just commited network interface cloning. For most users there are no
effects. The single real exception is that users who create their
stf(4) interface with the command "ifconfig stf" will get an interface
named stf rather then stf0 and ifconfig will not print "stf0" to stdout.
For the record: THERE ARE NO OTHER CHANGES TO THINGS THAT PREVIOUSLY
WORKED!!!
New features:
- Creation and configuration of vlans can be accomlished with "ifconfig
<interface>.<tag> create". There is no support for this in etc yet
so it's not fully useable.
- stf(4) interfaces can be created with "ifconfig 6to4" inaddition to
"ifconfig stf" and "ifconfig stf0". This mostly exists as an easier
to understand example of the new cloning code then that provided by
the new vlan code.
- Attempting to "ifconfig lo0 destory" now fails rather then panicing
the machine.
This change will require a recompile of modules using cloning and
modification of external ones to the new API. __FreeBSD_version has
been bumped to 502119 to mark this change.
-- Brooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040622/
16e0224d/attachment-0001.bin
------------------------------
Message: 7
Date: Tue, 22 Jun 2004 21:29:31 +0100
From: "Liam J. Foy" <liamfoy@sepulcrum.org>
Subject: Re: -CURRENT buildproblem
To: Marco van Lienen <marco+freebsd-current@lordsith.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040622212931.4fc946bb.liamfoy@sepulcrum.org>
Content-Type: text/plain; charset=US-ASCII
On Tue, 22 Jun 2004 21:42:28 +0200
Marco van Lienen <marco+freebsd-current@lordsith.net> wrote:
> I Cvsup'ed sources yesterday:
>
> Make buildworld failed:
>
> building profiled y library
> ranlib liby_p.a
> ===> lib/libz
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/adler32.c -o adler32.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/compress.c -o compress.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/crc32.c -o crc32.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/gzio.c -o gzio.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/uncompr.c -o uncompr.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/deflate.c -o deflate.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/trees.c -o trees.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/zutil.c -o zutil.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/inflate.c -o inflate.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/infblock.c -o infblock.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/inftrees.c -o inftrees.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/infcodes.c -o infcodes.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/infutil.c -o infutil.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/inffast.c -o inffast.po
> cc -pg -O -pipe -march=pentiumpro -DHAS_snprintf -DHAS_vsnprintf -c
> /usr/src/lib/libz/zopen.c -o zopen.po
> gzip -cn /usr/src/lib/libz/zlib.3 > zlib.3.gz
> building profiled z library
> ranlib libz_p.a
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
>
> Did I miss something in UPDATING ?
Did you do `make -j4 buildworld` if so try and just do
`make buildworld` getting rid of the -j4.
>
> TIA
>
> Marco
>
> --
> Marco van Lienen (__)
> Email: <marcovl@lordsith.net> \\\'',)
> Web : http://lordsith.net/ \/ \^
> PGP : 0x8580E6CB .\._/_)
>
--
-Liam J. Foy
http://liamfoy.kerneled.org
"Now I wish it would rain down on me"
------------------------------
Message: 8
Date: Tue, 22 Jun 2004 22:40:08 +0200
From: Ulrich Spoerlein <q@uni.de>
Subject: Re: -Os -> libXaw.so: undefined reference to `.L91'
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: freebsd-x11@freebsd.org
Message-ID: <20040622204008.GB800@galgenberg.net>
Content-Type: text/plain; charset="us-ascii"
On Tue, 22.06.2004 at 03:22:32 -0500, Jon Noack wrote:
> Cross-posted because the failure happens when compiling teTex even
> though the problem is really caused by (XFree86|xorg)-libraries.
> Ignorant folks (like me) may not know to do a "pkg_which
> /usr/X11R6/lib/libXaw.so" and ask on the -x11 list. Also, this shows
> that -Os may not be as reliable as expected. I apologize if I shouldn't
> have cross-posted.
>
> Short version:
> Don't compile (XFree86|xorg)-libraries with -Os.
>
> Long, rambling version:
> I have been running into the following problem when attempting to
> compile teTex:
> /usr/X11R6/lib/libXaw.so: undefined reference to `.L91'
me too here. But also XFree86-clients were broken by this. Funny thing
is, my error message was this:
/usr/X11R6/lib/libXaw.so: undefined reference to `.L99'
^^^
Anyway, if this is a known GCC problem, as mentioned in another post, I
can only hope that -CURRENT will get a newer gcc snapshot before
branching to 5-STABLE.
Cheers,
Ulrich Spoerlein
--
PGP Key ID: F0DB9F44 Get it while it's hot!
PGP Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." -- Benjamin Franklin
-------------- 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/20040622/
17b8b9be/attachment-0001.bin
------------------------------
Message: 9
Date: Tue, 22 Jun 2004 22:48:57 +0200
From: Marco van Lienen <marco+freebsd-current@lordsith.net>
Subject: Re: -CURRENT buildproblem
To: freebsd-current@freebsd.org
Message-ID: <20040622204857.GA30061@lordsith.net>
Content-Type: text/plain; charset="us-ascii"
On Tue, Jun 22, 2004 at 09:29:31PM +0100, in a galaxy far far away, Liam J. Fo
y <liamfoy@sepulcrum.org> said:
>
> Did you do `make -j4 buildworld` if so try and just do
> `make buildworld` getting rid of the -j4.
Yup, not using -j4 got rid of the error message.
Thx.
Marco
--
Marco van Lienen (__)
Email: <marcovl@lordsith.net> \\\'',)
Web : http://lordsith.net/ \/ \^
PGP : 0x8580E6CB .\._/_)
-------------- 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/20040622/
eb13a443/attachment-0001.bin
------------------------------
Message: 10
Date: Tue, 22 Jun 2004 13:51:44 -0700
From: Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject: Re: -Os -> libXaw.so: undefined reference to `.L91'
To: Jon Noack <noackjr@alumni.rice.edu>, freebsd-current@freebsd.org,
freebsd-x11@freebsd.org
Message-ID: <20040622205144.GA95050@troutmask.apl.washington.edu>
Content-Type: text/plain; charset=us-ascii
On Tue, Jun 22, 2004 at 10:40:08PM +0200, Ulrich Spoerlein wrote:
> ^^^
> Anyway, if this is a known GCC problem, as mentioned in another post, I
> can only hope that -CURRENT will get a newer gcc snapshot before
> branching to 5-STABLE.
>
Do you read the -current mailing list? kan@ is working on an
update for GCC.
--
Steve
------------------------------
Message: 11
Date: Tue, 22 Jun 2004 17:08:32 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: STI, HLT in acpi_cpu_idle_c1
To: current@FreeBSD.org
Cc: Julian Elischer <julian@elischer.org>
Message-ID: <200406221708.32433.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Thursday 17 June 2004 07:33 pm, Matthew Dillon wrote:
> It kinda sounds like ACPI has bokered the other cpus. I'm not sure
> why one would even *want* to use ACPI to idle down Xeon's in an MP
> system, actually :-)
Power and heat savings.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 12
Date: Tue, 22 Jun 2004 17:12:13 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: Optimized ether_crc32_be()
To: freebsd-current@FreeBSD.org
Cc: Christian Weisgerber <naddy@mips.inka.de>
Message-ID: <200406221712.13015.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Friday 18 June 2004 07:37 pm, Christian Weisgerber wrote:
> Taken from kern/49957, here's a table-driven implementation of
> ether_crc32_be() to complement the little-endian one. For 6-byte
> MAC addresses it's about five times faster than the double loop.
>
> Comments?
Doesn't look like anyone responded. Perhaps ask someone on sparc64 to test it
along with some simple multicast test? (Use mtest to join a group, turn on
bmcastecho and then ping the multicast group to see if it responds?)
> Index: net/if_ethersubr.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/net/if_ethersubr.c,v
> retrieving revision 1.172
> diff -u -r1.172 if_ethersubr.c
> --- net/if_ethersubr.c 15 Jun 2004 23:57:41 -0000 1.172
> +++ net/if_ethersubr.c 18 Jun 2004 23:28:37 -0000
> @@ -883,9 +883,8 @@
>
> #if 0
> /*
> - * This is for reference. We have a table-driven version
> - * of the little-endian crc32 generator, which is faster
> - * than the double-loop.
> + * This is for reference. We have table-driven versions of the
> + * crc32 generators, which are faster than the double-loop.
> */
> uint32_t
> ether_crc32_le(const uint8_t *buf, size_t len)
> @@ -907,6 +906,28 @@
>
> return (crc);
> }
> +
> +uint32_t
> +ether_crc32_be(const uint8_t *buf, size_t len)
> +{
> + size_t i;
> + uint32_t crc, carry;
> + int bit;
> + uint8_t data;
> +
> + crc = 0xffffffff; /* initial value */
> +
> + for (i = 0; i < len; i++) {
> + for (data = *buf++, bit = 0; bit < 8; bit++, data >>= 1) {
> + carry = ((crc & 0x80000000) ? 1 : 0) ^ (data & 0x01);
> + crc <<= 1;
> + if (carry)
> + crc = (crc ^ ETHER_CRC_POLY_BE) | carry;
> + }
> + }
> +
> + return (crc);
> +}
> #else
> uint32_t
> ether_crc32_le(const uint8_t *buf, size_t len)
> @@ -930,29 +951,35 @@
>
> return (crc);
> }
> -#endif
>
> uint32_t
> ether_crc32_be(const uint8_t *buf, size_t len)
> {
> + static const uint8_t rev[] = {
> + 0x0, 0x8, 0x4, 0xc, 0x2, 0xa, 0x6, 0xe,
> + 0x1, 0x9, 0x5, 0xd, 0x3, 0xb, 0x7, 0xf
> + };
> + static const uint32_t crctab[] = {
> + 0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9,
> + 0x130476dc, 0x17c56b6b, 0x1a864db2, 0x1e475005,
> + 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, 0x2b4bcb61,
> + 0x350c9b64, 0x31cd86d3, 0x3c8ea00a, 0x384fbdbd
> + };
> size_t i;
> - uint32_t crc, carry;
> - int bit;
> + uint32_t crc;
> uint8_t data;
>
> crc = 0xffffffff; /* initial value */
>
> for (i = 0; i < len; i++) {
> - for (data = *buf++, bit = 0; bit < 8; bit++, data >>= 1) {
> - carry = ((crc & 0x80000000) ? 1 : 0) ^ (data & 0x01);
> - crc <<= 1;
> - if (carry)
> - crc = (crc ^ ETHER_CRC_POLY_BE) | carry;
> - }
> + data = buf[i];
> + crc = (crc << 4) ^ crctab[(crc >> 28) ^ rev[data & 0xf]];
> + crc = (crc << 4) ^ crctab[(crc >> 28) ^ rev[data >> 4]];
> }
>
> return (crc);
> }
> +#endif
>
> int
> ether_ioctl(struct ifnet *ifp, int command, caddr_t data)
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 13
Date: Tue, 22 Jun 2004 23:16:07 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: Optimized ether_crc32_be()
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <4878.1087938967@critter.freebsd.dk>
In message <200406221712.13015.jhb@FreeBSD.org>, John Baldwin writes:
>On Friday 18 June 2004 07:37 pm, Christian Weisgerber wrote:
>> Taken from kern/49957, here's a table-driven implementation of
>> ether_crc32_be() to complement the little-endian one. For 6-byte
>> MAC addresses it's about five times faster than the double loop.
>>
>> Comments?
>
>Doesn't look like anyone responded. Perhaps ask someone on sparc64 to test i
t
>along with some simple multicast test? (Use mtest to join a group, turn on
>bmcastecho and then ping the multicast group to see if it responds?)
For things like this I would really advocate adding a regression
test over in src/tools/regression.
Please ?
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
------------------------------
Message: 14
Date: Tue, 22 Jun 2004 17:17:13 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: ithread priority question...
To: freebsd-current@FreeBSD.org
Cc: Julian Elischer <julian@elischer.org>
Message-ID: <200406221717.13179.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Monday 21 June 2004 03:48 am, Julian Elischer wrote:
> On Mon, 21 Jun 2004, Bruce Evans wrote:
> > On Sun, 20 Jun 2004, Julian Elischer wrote:
> > > In swi_add, the priority is multiplied by PPQ.
> > > This is a layering violation really because PPQ should only be known
> > > within the scheduler.... but..... "Why multiply by PPQ inthe first
> > > place?" we are not using the system run queues for interrupt threads.
> > >
> > > (PPQ = Priorities Per Queue).
> > >
> > > Without this you can remove runq.h from proc.h and include it only in
> > > the scheduler related files.
> >
> > I agree that this makes no sense. Apart from the layering violation,
> > It seems to just waste priority space. The wastage is not just cosmetic
> > since someone increased the number of SWIs although there was no room
> > for expansion.
> >
> >
> > Hardware ithread priorities are also separated by 4. The magic number 4
> > is encoded in their definitions in priority.h. It's not clear if the 4
> > is PPQ or just room for expansion without changing the ABI. Preserving
> > this ABI doesn't seem very important.
>
> seems pointless to me..
> It looks to me that at on stage someone was considerring using the
> standard run-queue code to make interrupt threads runnable.
> They wanted each interrupt thread to eb on a differen queue and to use
> the ffs() code to find the next one to run.
That was the intention. One question though, if the ithreads aren't on the
system run queues then which run queues are they on?
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 15
Date: Tue, 22 Jun 2004 17:17:13 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: ithread priority question...
To: freebsd-current@FreeBSD.org
Cc: Julian Elischer <julian@elischer.org>
Message-ID: <200406221717.13179.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Monday 21 June 2004 03:48 am, Julian Elischer wrote:
> On Mon, 21 Jun 2004, Bruce Evans wrote:
> > On Sun, 20 Jun 2004, Julian Elischer wrote:
> > > In swi_add, the priority is multiplied by PPQ.
> > > This is a layering violation really because PPQ should only be known
> > > within the scheduler.... but..... "Why multiply by PPQ inthe first
> > > place?" we are not using the system run queues for interrupt threads.
> > >
> > > (PPQ = Priorities Per Queue).
> > >
> > > Without this you can remove runq.h from proc.h and include it only in
> > > the scheduler related files.
> >
> > I agree that this makes no sense. Apart from the layering violation,
> > It seems to just waste priority space. The wastage is not just cosmetic
> > since someone increased the number of SWIs although there was no room
> > for expansion.
> >
> >
> > Hardware ithread priorities are also separated by 4. The magic number 4
> > is encoded in their definitions in priority.h. It's not clear if the 4
> > is PPQ or just room for expansion without changing the ABI. Preserving
> > this ABI doesn't seem very important.
>
> seems pointless to me..
> It looks to me that at on stage someone was considerring using the
> standard run-queue code to make interrupt threads runnable.
> They wanted each interrupt thread to eb on a differen queue and to use
> the ffs() code to find the next one to run.
That was the intention. One question though, if the ithreads aren't on the
system run queues then which run queues are they on?
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 16
Date: Tue, 22 Jun 2004 17:22:44 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: > panic: APIC: Previous IPI is stupcmka
To: freebsd-current@FreeBSD.org
Cc: current@FreeBSD.org
Message-ID: <200406221722.44505.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Tuesday 22 June 2004 05:43 am, Kris Kennaway wrote:
> On Mon, Jun 21, 2004 at 09:41:42PM -0700, Kris Kennaway wrote:
> > > panic: APIC: Previous IPI is stupcmka
> > > u_clpauziydf i=x :0 ;s p
> > > cnD efbourg g5e0r0(0"0p0a0n0i
> > > ")
> >
> > I updated this smp machine -current tonight, played with mutex
> > profiling a bit, and it died after an hour or so of package building
> > load. It hung here.
>
> This happened again under similar circumstances (running a cvs update
> with some network stuff going on). Similar interleaved panic message:
>
> _anic: APIC: Previous IPI is stpumcakp
> nlcapzuyifdi x=: 0s;p u
> i Dfeobru g5g0e0r0(0"0p0a0n
> c")
Seems the two CPUs are deadlocked waiting on each other. The first sent a
pmap_lazyfixup IPI to the second but the second has interrupts disabled as it
is trying to send an IPI as well.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 17
Date: Tue, 22 Jun 2004 17:22:44 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: > panic: APIC: Previous IPI is stupcmka
To: freebsd-current@FreeBSD.org
Cc: current@FreeBSD.org
Message-ID: <200406221722.44505.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Tuesday 22 June 2004 05:43 am, Kris Kennaway wrote:
> On Mon, Jun 21, 2004 at 09:41:42PM -0700, Kris Kennaway wrote:
> > > panic: APIC: Previous IPI is stupcmka
> > > u_clpauziydf i=x :0 ;s p
> > > cnD efbourg g5e0r0(0"0p0a0n0i
> > > ")
> >
> > I updated this smp machine -current tonight, played with mutex
> > profiling a bit, and it died after an hour or so of package building
> > load. It hung here.
>
> This happened again under similar circumstances (running a cvs update
> with some network stuff going on). Similar interleaved panic message:
>
> _anic: APIC: Previous IPI is stpumcakp
> nlcapzuyifdi x=: 0s;p u
> i Dfeobru g5g0e0r0(0"0p0a0n
> c")
Seems the two CPUs are deadlocked waiting on each other. The first sent a
pmap_lazyfixup IPI to the second but the second has interrupts disabled as it
is trying to send an IPI as well.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 18
Date: Tue, 22 Jun 2004 16:25:38 -0500
From: Dan Nelson <dnelson@allantgroup.com>
Subject: Re: -Os -> libXaw.so: undefined reference to `.L91'
To: Jon Noack <noackjr@alumni.rice.edu>, freebsd-current@freebsd.org,
freebsd-x11@freebsd.org
Message-ID: <20040622212538.GA51531@dan.emsphone.com>
Content-Type: text/plain; charset=us-ascii
In the last episode (Jun 22), Ulrich Spoerlein said:
> On Tue, 22.06.2004 at 03:22:32 -0500, Jon Noack wrote:
> > I have been running into the following problem when attempting to
> > compile teTex:
> > /usr/X11R6/lib/libXaw.so: undefined reference to `.L91'
>
> me too here. But also XFree86-clients were broken by this. Funny
> thing is, my error message was this:
> /usr/X11R6/lib/libXaw.so: undefined reference to `.L99'
> ^^^
L## symbols are temporary labels used for short jumps, like around
if() or while loops. The number may be different depending on your CPU
and optimization flags. gcc probably generated a reference to one but
forgot to generate the label itself.
--
Dan Nelson
dnelson@allantgroup.com
------------------------------
Message: 19
Date: Tue, 22 Jun 2004 14:34:26 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: Re: STI, HLT in acpi_cpu_idle_c1
To: John Baldwin <jhb@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <200406222134.i5MLYQ9O041828@apollo.backplane.com>
:
:On Thursday 17 June 2004 07:33 pm, Matthew Dillon wrote:
:> It kinda sounds like ACPI has bokered the other cpus. I'm not sure
:> why one would even *want* to use ACPI to idle down Xeon's in an MP
:> system, actually :-)
:
:Power and heat savings.
:
:--
:John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
All well and nice, but if you want power and heat savings you don't
purchase a big honking SMP box in the first place.
This sounds like a disaster waiting to happen to me. ACPI barely works
on UP systems, there is no way I would ever trust it to properly HLT or
otherwise screw around with the cpu timing on an SMP system. HLT is
plenty good enough. IMHO this type of feature is not something that
should be turned on by default on SMP.
-Matt
Matthew Dillon
<dillon@backplane.com>
------------------------------
Message: 20
Date: Tue, 22 Jun 2004 17:50:05 -0400
From: Gerrit Nagelhout <gnagelhout@sandvine.com>
Subject: RE: STI, HLT in acpi_cpu_idle_c1
To: 'Matthew Dillon' <dillon@apollo.backplane.com>, John Baldwin
<jhb@FreeBSD.org>, Don Bowman <don@sandvine.com>
Cc: current@FreeBSD.org
Message-ID:
<FE045D4D9F7AED4CBFF1B3B813C85337054EC4AD@mail.sandvine.com>
Content-Type: text/plain; charset="iso-8859-1"
> :
> :On Thursday 17 June 2004 07:33 pm, Matthew Dillon wrote:
> :> It kinda sounds like ACPI has bokered the other cpus.
> I'm not sure
> :> why one would even *want* to use ACPI to idle down
> Xeon's in an MP
> :> system, actually :-)
> :
> :Power and heat savings.
> :
> :--
> :John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
>
> All well and nice, but if you want power and heat savings
> you don't
> purchase a big honking SMP box in the first place.
>
> This sounds like a disaster waiting to happen to me.
> ACPI barely works
> on UP systems, there is no way I would ever trust it to
> properly HLT or
> otherwise screw around with the cpu timing on an SMP
> system. HLT is
> plenty good enough. IMHO this type of feature is not
> something that
> should be turned on by default on SMP.
I am working with Don Bowman to try and debug this problem (the lockup).
I have an emulator attached, and managed to get it into the locked up
state. Three of the cpus are in idle (acpi_cpu_c1) (and have interrupts
enabled, EFLAGS=0x246), and the other one (cpu 3) is in smp_tlb_shootdown
waiting for one more processor to respond. The APIC register for CPU 3
(icr_lo) indicates that the IPI (0xf3) has been sent (ie it's idle).
The isr registers for CPU 1 indicate that vector oxf3 is pending, but it
is not being handled. I am still trying to figure out why this is, but
does anyone have any suggested on what else I can look at?
Thanks,
Gerrit
------------------------------
Message: 21
Date: Wed, 23 Jun 2004 09:54:58 +1200
From: Andrew Thompson <andy@fud.org.nz>
Subject: Re: STI, HLT in acpi_cpu_idle_c1
To: Matthew Dillon <dillon@apollo.backplane.com>
Cc: current@freebsd.org
Message-ID: <20040622215458.GB79973@fire.masaclaw.co.nz>
Content-Type: text/plain; charset=us-ascii
On Tue, Jun 22, 2004 at 02:34:26PM -0700, Matthew Dillon wrote:
>
> :
> :On Thursday 17 June 2004 07:33 pm, Matthew Dillon wrote:
> :> It kinda sounds like ACPI has bokered the other cpus. I'm not sure
> :> why one would even *want* to use ACPI to idle down Xeon's in an MP
> :> system, actually :-)
> :
> :Power and heat savings.
> :
> :--
> :John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
>
> All well and nice, but if you want power and heat savings you don't
> purchase a big honking SMP box in the first place.
>
Sure, but what about the larger scale.
Put 100 or a 1000 of them in a room and any heat savings make a big difference
to your air-conditioning and power distribution.
------------------------------
Message: 22
Date: Tue, 22 Jun 2004 14:58:56 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: RE: Problems installing Fre*BSD with 3ware 9500S-4LP
To: Vinod Kashyap <vkashyap@amcc.com>
Cc: Patrick Hurrelmann <outi@bytephobia.de>
Message-ID: <20040622145703.E79584@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sun, 20 Jun 2004, Vinod Kashyap wrote:
>
> Looks like you cannot reboot after an install since the
> driver is not part of the OS you just finished installing.
>
> This is what you can do:
>
> 1. While installing the OS, load the driver from a floppy
> (sysinstall->Configure->KLDLoad). You are probably already
> doing this.
> 2. After installation, during reboot, escape to the loader
> prompt, and again with a floppy with the driver inserted,
> load the driver by doing 'load disk0:twa.ko'.
> 3. Do a 'boot' and you should be able to boot.
Vinod, the problem is that loader itself is crashing. It dies before you
even get the loader prompt. Its as if the BIOS is not reading the array
properly and returns bad data, or the BIOS is corrupting memory during
certain reads.
There are known cases where turning on DMA in the BIOS can cause BTX
panics due to overly-promiscuous BIOS code, but this doesn't seem to be
one of those cases.
--
Doug White | FreeBSD: The Power to Serve
dwhite@gumbysoft.com | www.FreeBSD.org
------------------------------
Message: 23
Date: Tue, 22 Jun 2004 18:05:44 -0400
From: John Baldwin <jhb@FreeBSD.org>
Subject: Re: STI, HLT in acpi_cpu_idle_c1
To: Matthew Dillon <dillon@apollo.backplane.com>
Cc: current@FreeBSD.org
Message-ID: <200406221805.44339.jhb@FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
On Tuesday 22 June 2004 05:34 pm, Matthew Dillon wrote:
> :On Thursday 17 June 2004 07:33 pm, Matthew Dillon wrote:
> :> It kinda sounds like ACPI has bokered the other cpus. I'm not sure
> :> why one would even *want* to use ACPI to idle down Xeon's in an MP
> :> system, actually :-)
> :
> :Power and heat savings.
> :
> :--
> :John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
>
> All well and nice, but if you want power and heat savings you don't
> purchase a big honking SMP box in the first place.
>
> This sounds like a disaster waiting to happen to me. ACPI barely works
> on UP systems, there is no way I would ever trust it to properly HLT or
> otherwise screw around with the cpu timing on an SMP system. HLT is
> plenty good enough. IMHO this type of feature is not something that
> should be turned on by default on SMP.
Certain large CPU vendors disagree.
http://www.theinquirer.net/?article=16739
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
------------------------------
Message: 24
Date: Tue, 22 Jun 2004 15:06:09 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: IPSEC on -current [was: -current build failure]
To: Kim Culhan <w8hdkim@yahoo.com>
Cc: Max Laier <max@love2party.net>
Message-ID: <20040622150517.N79584@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sun, 20 Jun 2004, Kim Culhan wrote:
> As we're on the topic, what is the -current state of IPSEC ?
>
> Googling the net shows lots of examples using gif devices and
> running racoon.
>
> Is this still the way to go on -current ?
Yes. I personally don't use the gif device method, I set up 2 SAs if I'm
expecting the gateway system to use the tunnel as well, but the gif method
should still work.
--
Doug White | FreeBSD: The Power to Serve
dwhite@gumbysoft.com | www.FreeBSD.org
------------------------------
Message: 25
Date: Tue, 22 Jun 2004 15:14:38 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: RE: STI, HLT in acpi_cpu_idle_c1
To: Gerrit Nagelhout <gnagelhout@sandvine.com>
Cc: Julian Elischer <julian@elischer.org>
Message-ID: <200406222214.i5MMEcsO042104@apollo.backplane.com>
:I am working with Don Bowman to try and debug this problem (the lockup).
:I have an emulator attached, and managed to get it into the locked up
:state. Three of the cpus are in idle (acpi_cpu_c1) (and have interrupts
:enabled, EFLAGS=0x246), and the other one (cpu 3) is in smp_tlb_shootdown
:waiting for one more processor to respond. The APIC register for CPU 3
:(icr_lo) indicates that the IPI (0xf3) has been sent (ie it's idle).
:The isr registers for CPU 1 indicate that vector oxf3 is pending, but it
:is not being handled. I am still trying to figure out why this is, but
:does anyone have any suggested on what else I can look at?
:Thanks,
:
:Gerrit
If the interrupt is pending on the idle cpu's APICs but no interrupt is
being delivered, and the idle cpus are in HLT with interrupts enabled,
then something is masking the pending interrupt. Check the following:
In the local APIC for each idle cpu:
* Check the TPR (task priority register) verses the priority set for
the IPI interrupt. The top 4 bits is the main priority field.
Interrupts with priorities <= the main priority bits will be masked
(so 11111111 masks all interrupts). The TPR priority should be lower
then the priority set for the IPI in question.
* Check the PPR (process priority register). This register tells you
what the priority of the highest pending interrupt that can be
dispensed to the processor. It will be set to the same contents as
the TPR if no servable interrupt is pending. The PPR is a quick way
to tell what priority of interrupt the APIC is trying to deliver to the
cpu. My guess is that it will be 0 (meaning that the APIC is not trying
to deliver anything to the cpu).
* Check the ISR bits, the TMR bits, and the IRR bits. These control
interrupt delivery:
(from /usr/src/sys/i386/include/apicreg.h in the DFly source tree):
* TMR - Trigger mode register. Upon acceptance of an int
* the corresponding bit is cleared for edge-trig and
* set for level-trig. If the TMR bit is set (level),
* the local APIC sends an EOI to all I/O APICs as
* a result of software issuing an EOI command.
*
* IRR - Interrupt Request Register. Contains active
* interrupt requests that have been accepted but not
* yet dispensed by the current local APIC. The bit is
* cleared and the corresponding ISR bit is set when
* the INTA cycle is issued.
*
* ISR - Interrupt In-Service register. Interrupt has been
* delivered but not yet fully serviced. Cleared when
* an EOI is issued from the processor. An EOI will
* also send an EOI to all I/O APICs if TMR was set.
If the interrupt is masked it should be set in the IRR but not set in
the ISR. If it is set in the ISR and interrupts are enabled on the cpu,
then I have no idea what the hell is going on (because the cpu should then
service the interrupt)... unless the cpu is totally bokered.
Other possibilities: The IPI interrupt vector on the receiving CPUs is
not set up properly (I'm not sure how you can access that data, it's
programmed via the ICR so presumably it can be read back out via the
ICR somehow. Not sure).
In anycase, pull out /usr/src/sys/i386/include/apicreg.h from the
DragonFly source base... I had to go through all this crap a year ago
and decided to document the APIC registers to the hilt (based on the Intel
documentation). There is a lot of very useful information in that
header file.
-Matt
Matthew Dillon
<dillon@backplane.com>
------------------------------
Message: 26
Date: Tue, 22 Jun 2004 15:27:01 -0700 (PDT)
From: Julian Elischer <julian@elischer.org>
Subject: Re: ithread priority question...
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID:
<Pine.BSF.4.21.0406221526000.54870-100000@InterJet.elischer.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Tue, 22 Jun 2004, John Baldwin wrote:
> On Monday 21 June 2004 03:48 am, Julian Elischer wrote:
> > On Mon, 21 Jun 2004, Bruce Evans wrote:
> > > On Sun, 20 Jun 2004, Julian Elischer wrote:
> > > > In swi_add, the priority is multiplied by PPQ.
> > > > This is a layering violation really because PPQ should only be known
> > > > within the scheduler.... but..... "Why multiply by PPQ inthe first
> > > > place?" we are not using the system run queues for interrupt threads.
> > > >
> > > > (PPQ = Priorities Per Queue).
> > > >
> > > > Without this you can remove runq.h from proc.h and include it only in
> > > > the scheduler related files.
> > >
> > > I agree that this makes no sense. Apart from the layering violation,
> > > It seems to just waste priority space. The wastage is not just cosmetic
> > > since someone increased the number of SWIs although there was no room
> > > for expansion.
> > >
> > >
> > > Hardware ithread priorities are also separated by 4. The magic number 4
> > > is encoded in their definitions in priority.h. It's not clear if the 4
> > > is PPQ or just room for expansion without changing the ABI. Preserving
> > > this ABI doesn't seem very important.
> >
> > seems pointless to me..
> > It looks to me that at on stage someone was considerring using the
> > standard run-queue code to make interrupt threads runnable.
> > They wanted each interrupt thread to eb on a differen queue and to use
> > the ffs() code to find the next one to run.
>
> That was the intention. One question though, if the ithreads aren't on the
> system run queues then which run queues are they on?
aren't they run from the interupt?
>
> --
> John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve" = http://www.FreeBSD.org
>
------------------------------
Message: 27
Date: Tue, 22 Jun 2004 15:27:01 -0700 (PDT)
From: Julian Elischer <julian@elischer.org>
Subject: Re: ithread priority question...
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID:
<Pine.BSF.4.21.0406221526000.54870-100000@InterJet.elischer.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Tue, 22 Jun 2004, John Baldwin wrote:
> On Monday 21 June 2004 03:48 am, Julian Elischer wrote:
> > On Mon, 21 Jun 2004, Bruce Evans wrote:
> > > On Sun, 20 Jun 2004, Julian Elischer wrote:
> > > > In swi_add, the priority is multiplied by PPQ.
> > > > This is a layering violation really because PPQ should only be known
> > > > within the scheduler.... but..... "Why multiply by PPQ inthe first
> > > > place?" we are not using the system run queues for interrupt threads.
> > > >
> > > > (PPQ = Priorities Per Queue).
> > > >
> > > > Without this you can remove runq.h from proc.h and include it only in
> > > > the scheduler related files.
> > >
> > > I agree that this makes no sense. Apart from the layering violation,
> > > It seems to just waste priority space. The wastage is not just cosmetic
> > > since someone increased the number of SWIs although there was no room
> > > for expansion.
> > >
> > >
> > > Hardware ithread priorities are also separated by 4. The magic number 4
> > > is encoded in their definitions in priority.h. It's not clear if the 4
> > > is PPQ or just room for expansion without changing the ABI. Preserving
> > > this ABI doesn't seem very important.
> >
> > seems pointless to me..
> > It looks to me that at on stage someone was considerring using the
> > standard run-queue code to make interrupt threads runnable.
> > They wanted each interrupt thread to eb on a differen queue and to use
> > the ffs() code to find the next one to run.
>
> That was the intention. One question though, if the ithreads aren't on the
> system run queues then which run queues are they on?
aren't they run from the interupt?
>
> --
> John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve" = http://www.FreeBSD.org
>
------------------------------
Message: 28
Date: Mon, 21 Jun 2004 03:40:20 +0100
From: Josef Karthauser <joe@FreeBSD.org>
Subject: Re: Using Geom to mirror root partitions?
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: current@FreeBSD.org
Message-ID: <20040621024020.GD757@genius.tao.org.uk>
Content-Type: text/plain; charset="us-ascii"
Hi Poul,
I've not been keeping up to date with recent developments. Are we any
closer to being able to mirror with geom yet?
Joe
On Wed, Nov 19, 2003 at 12:12:37PM +0100, Poul-Henning Kamp wrote:
> In message <20031119110556.GA83112@genius.tao.org.uk>, Josef Karthauser writ
es:
> >
> >--RnlQjJ0d97Da+TV1
> >Content-Type: text/plain; charset=us-ascii
> >Content-Disposition: inline
> >Content-Transfer-Encoding: quoted-printable
> >
> >On Sat, Nov 15, 2003 at 09:42:18AM +0100, Poul-Henning Kamp wrote:
> >> In message <20031115014133.GB31237@genius.tao.org.uk>, Josef Karthauser w
=
> >rites:
> >>=20
> >> >What's the best way to prepare for this? Should I leave some
> >> >unallocated space at the beginning of the disk so that any magic geom
> >> >bits can be inserted later?
> >>=20
> >> Rather: leave a bit free at the end.
> >>=20
> >
> >How much would you recommend I leave? Proportional to the disk size, or
> >just enough space for data structures?
>
> In theory one sector should do fine, but make it a bit more.
>
> --
> Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
> phk@FreeBSD.ORG | TCP/IP since RFC 956
> FreeBSD committer | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>
--
Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/
FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/
Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040621/
dcd407c5/attachment-0001.bin
------------------------------
Message: 29
Date: Mon, 21 Jun 2004 03:39:15 +0100
From: Josef Karthauser <joe@FreeBSD.org>
Subject: Re: Wireless support for the Netgear WG311T?
To: David Malone <dwmalone@maths.tcd.ie>
Message-ID: <20040621023915.GB757@genius.tao.org.uk>
Content-Type: text/plain; charset="us-ascii"
On Sun, Jun 20, 2004 at 06:52:05PM +0100, David Malone wrote:
> On Sun, Jun 20, 2004 at 02:54:34PM +0100, Josef Karthauser wrote:
> > I should have said that the atheros web site states that the 511T and
> > the 311T use the same chipset, which is the AR5002G, but that the
>
> I know someone with a 511T, and it works with the ath driver, I
> believe. I also have a WAG511, which also works with the ath driver.
> The WG511 and WG311 a non-Atheros chipset and so you'd have to try
> project evil.
>
Is there a bug in the ath manual page then?
Netgear WAG311 AR5212 PCI a/b/g
Netgear WAB501 AR5211 CardBus a/b
Netgear WAG511 AR5212 CardBus a/b/g
Netgear WG311 AR5212 PCI b/g
Netgear WG511T AR5212 CardBus b/g
It clearly says that the WG311 is an atheros chipset.
> > FreeBSD manual page states that the 511T uses the AR5212 chipset and
> > doesn't mention the AR5002G by name at all. Addionally the atheros web
> > site doesn't mention a WG311 card at at all, only a HA311, WAG311 and
> > WG311T.
>
> I think that's 'cos they are a different chipset all together.
Hmm, it looks like someone in the know could do with reviewing the ath
manual page.
Joe
--
Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/
FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/
Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040621/
5791bcf6/attachment-0001.bin
------------------------------
Message: 30
Date: Tue, 22 Jun 2004 15:33:40 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: vfs.usermount not working anymore on SMB shares?
To: AK <lesha@intercaf.ru>
Cc: freebsd-current@freebsd.org
Message-ID: <20040622153317.W79584@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 21 Jun 2004, AK wrote:
> $ mount_smbfs //LESHA@ROUTER/USB /home/lesha/samba
> mount_smbfs: can not setup kernel iconv table (default:tolower): syserr =
> Operation not permitted
> $ sysctl vfs.usermount
> vfs.usermount: 1
Try loading the iconv kernel module first. While usermount lets users
mount, it doesn't let them load kernel modules.
--
Doug White | FreeBSD: The Power to Serve
dwhite@gumbysoft.com | www.FreeBSD.org
------------------------------
Message: 31
Date: Tue, 22 Jun 2004 15:41:19 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: Re: STI, HLT in acpi_cpu_idle_c1
To: John Baldwin <jhb@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <200406222241.i5MMfJk7042206@apollo.backplane.com>
:> This sounds like a disaster waiting to happen to me. ACPI barely works
:> on UP systems, there is no way I would ever trust it to properly HLT or
:> otherwise screw around with the cpu timing on an SMP system. HLT is
:> plenty good enough. IMHO this type of feature is not something that
:> should be turned on by default on SMP.
:
:Certain large CPU vendors disagree.
:
:http://www.theinquirer.net/?article=16739
:
:--
:John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
John, the vast majority of people who run FreeBSD almost certainly
(A) don't care and (B) would just rather the machines work and (C) do
not run clusters with thousands of MP machines.
If certain large CPU vendors want to turn on the feature, they can turn
it on. If you want to create a special 'big-vendor' release then you
can create a special big-vendor release. But turning it on by default
is just plain a bad idea. It creates unnecessasry additional pain on
a system that already has enough pain to deal with. It is an unnecessary
imposition on your user base.
This isn't about the existance of the feature, this is about setting a
reasonable default so you don't have to be rocket scientist to run
FreeBSD-5 reliably. There are serious problems with ACPI. We have
FreeBSD-5's ACPI in the DragonFly tree (not on by default) and I've
played with everything through the acpica-unix-20040211 dist and it
is a horrendous mess. It's a miracle that it works at all.
And, for that matter, WITNESS should either be turned off by default
(not just for releases), or it should be fixed to not impose such
horrendous overheads. Are the mutex abstractions and use of those
abstractions so unstable, even after all this time, that WITNESS is
going to have to stay in the tree forever? Maybe you should start
rethinking some of those abstractions.
You guys don't have to listen to me, god knows I'm sure many of you don't
any more, but while I don't have solutions to the ACPI mess (other then
to turn off by default those features that are not absolutely required),
I sure as hell do have solutions to the IPI and SMP rendezvous mess - we
have a ground-up designed API (our IPI messaging API) that *WORKS*
without deadlocking anything in DragonFly. It forms the basis for all IPI
operations in DragonFly and is used by half a dozen core subsystems.
It would even be fairly easy to port if someone over there made the
effort and if you ripped out some of the more ridiculous features
(such as preemptive migration across cpus while in kernel mode and
preemptive non-interrupt thread scheduling as a side effect from an
interrupt blocking on a mutex and priority borrowing). All that junk
is not making FreeBSD-5 any faster, they're just hacks on top of hacks
to get around fundamental, serious problems with the mutex and
fine-grained locking model that you are trying to implement.
-Matt
------------------------------
Message: 32
Date: Tue, 22 Jun 2004 22:52:13 +0000
From: Bosko Milekic <bmilekic@FreeBSD.org>
Subject: Re: ithread priority question...
To: Julian Elischer <julian@elischer.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040622225213.GA26151@freefall.freebsd.org>
Content-Type: text/plain; charset=us-ascii
Julian Elischer wrote:
>On Tue, 22 Jun 2004, John Baldwin wrote:
..
>> That was the intention. One question though, if the ithreads aren't on the
>> system run queues then which run queues are they on?
>
>aren't they run from the interupt?
Not always. They have to be put on a runqueue if they block on a
mutex, say.
-Bosko
------------------------------
Message: 33
Date: Tue, 22 Jun 2004 15:56:43 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: _<service> users [Was: startup error for pflogd]
To: Garance A Drosihn <drosih@rpi.edu>
Cc: Max Laier <max@love2party.net>
Message-ID: <20040622155106.C79584@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 21 Jun 2004, Garance A Drosihn wrote:
> I like _pflogd
I like the idea too, but I think its missed the train to get in on 5.x.
This breaks a lot of distributed user management since the system users
will become desync'd from prior releases, particularly 4.x. Adoption of 5
is a bit slack and I expect to see mixed 4/5 environments for quite a
while still. 4 to 5 is going to be a bad enough migration as is; lets not
make it worse :)
I think its quite doable for 6.x; this gives ports a chance to get on
board without having a huge rush before 5.3 hits the street.
--
Doug White | FreeBSD: The Power to Serve
dwhite@gumbysoft.com | www.FreeBSD.org
------------------------------
Message: 34
Date: Tue, 22 Jun 2004 22:57:26 +0000
From: Bosko Milekic <bmilekic@FreeBSD.org>
Subject: Re: ithread priority question...
To: Bosko Milekic <bmilekic@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040622225726.GA26611@freefall.freebsd.org>
Content-Type: text/plain; charset=us-ascii
I'm obviously talking nonsense below. Sorry.
The real explanation is that they are put on a runqueue when executed:
if (TD_AWAITING_INTR(td)) {
CTR2(KTR_INTR, "%s: setrunqueue %d", __func__, p->p_pid);
TD_CLR_IWAIT(td);
setrunqueue(td);
if (do_switch &&
(ctd->td_critnest == 1) ) {
..
Sorry again!
-bosko
Julian Elischer wrote:
>On Tue, 22 Jun 2004, John Baldwin wrote:
..
>> That was the intention. One question though, if the ithreads aren't on the
>> system run queues then which run queues are they on?
>
>aren't they run from the interupt?
Not always. They have to be put on a runqueue if they block on a
mutex, say.
-Bosko
------------------------------
Message: 35
Date: Tue, 22 Jun 2004 15:58:22 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: RE: 5.2.1 boot question
To: Darin <derwood@naebunny.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040622155654.C79584@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 21 Jun 2004, Darin wrote:
> Thanks for the response..
>
> >This was a known bug with that package build, sadly. Any recent build has
> a fix.
>
> How recent? I compiled KDE 3.2.3 from cvsuped ports on Thursday, June 18.
> I found messages discussing the problem with KUser that dated back to
> October of 2003.
It was committed a week after 4.9 or 5.2.1 was released, I think.
> FYI - The only change I had made to /etc/sysctl.conf was to add 'sysctl -w
> vfs.usermount=1' so that my daughter could mount CDs from her ID
That'll do it. sysctl.conf format is just:
vfs.usermount=1
since it does something like
for i in `cat /etc/sysctl.conf`; do
sysctl $i
done
:)
--
Doug White | FreeBSD: The Power to Serve
dwhite@gumbysoft.com | www.FreeBSD.org
------------------------------
Message: 36
Date: Wed, 23 Jun 2004 03:03:30 +0400
From: AK <lesha@intercaf.ru>
Subject: Re: vfs.usermount not working anymore on SMB shares?
To: Doug White <dwhite@gumbysoft.com>
Cc: freebsd-current@freebsd.org
Message-ID: <200406230303.31381.lesha@intercaf.ru>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 23 June 2004 02:33, Doug White wrote:
> On Mon, 21 Jun 2004, AK wrote:
> > $ mount_smbfs //LESHA@ROUTER/USB /home/lesha/samba
> > mount_smbfs: can not setup kernel iconv table (default:tolower): syserr =
> > Operation not permitted
> > $ sysctl vfs.usermount
> > vfs.usermount: 1
>
> Try loading the iconv kernel module first. While usermount lets users
> mount, it doesn't let them load kernel modules.
It is there already.
It is auto-loaded by smbfs.ko
# kldstat
Id Refs Address Size Name
1 25 0xc0400000 3c3264 kernel
[ blah blah blah ]
13 1 0xc2264000 1b000 smbfs.ko
14 2 0xc227f000 3000 libiconv.ko
15 2 0xc228b000 3000 libmchain.ko
Cheers,
AL.
------------------------------
_______________________________________________
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 66, Issue 8
**********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[36m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m