Message-ID: <4DVBJc$Cu4@bbs.ustc.edu.cn>
Subject: freebsd-current Digest, Vol 71, Issue 12
Date: Thu, 05 Aug 2004 04:25:26 +0000
From: Galoisz.bbs@bbs.ustc.edu.cn (���博士)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.unix.mbox.zip!g2news1.google.com!news1.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!news-out.visi.com!news-out.octanews.net!petbe.visi.com!green.octanews.net!news-out.octanews.net!indigo.octanews.net!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!USTC
Newsgroups: cn.bbs.comp.unix
Organization: 嫺�����
X-Filename: Unix/M.1091679926.A
Lines: 1727
Xref: 74.82.202.154 cn.bbs.comp.unix:1423
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. Instant Reboots (was: Re: Postgresql locks up server - no
response at all) (Geoff Speicher)
2. Re: Instant Reboots (was: Re: Postgresql locks up server - no
response at all) (Eric Anholt)
3. Re: FreeBSD and wine mmap (Anish Mistry)
4. Re: FreeBSD and wine mmap (John Birrell)
5. kernel build error (Randy Bush)
6. Re: FreeBSD and wine mmap (Julian Elischer)
7. Re: kernel build error (Jon Noack)
8. Re: kernel build error (Jeremy Chadwick)
9. Re: radeon.ko doesn't load on recent current (Ben Paley)
10. something strange with amd64 or fetch or ports or gcc
(Steve Kargl)
11. Re: status of bind9 import (Randy Bush)
12. Re: Postgresql locks up server - no response at all (Scott Long)
13. Re: 5.3-RELEASE TODO (John Kennedy)
14. Re: cvs commit: src/sys/sys memrange.h src/sys/amd64/amd64
mem.c mp_machdep.c src/sys/i386/i386 mem.c mp_machdep.c
src/sys/dev/mem memdev.c memutil.c src/sys/modules/mem Makefile
(Hannes Mehnert)
15. Re: kernel build error (Jon Noack)
16. Re: kernel build error (Robert Watson)
17. Re: kernel build error (Robert Watson)
18. Re: cvs commit: src/sys/sys memrange.h src/sys/amd64/amd64
mem.c mp_machdep.c src/sys/i386/i386 mem.c mp_machdep.c
src/sys/dev/mem memdev.c memutil.c src/sys/modules/mem Makefile
(Hannes Mehnert)
19. Re: USB drivers (Chris)
20. Re: USB drivers (Bernd Walter)
21. bsd.cpu.mk (Deng XueFeng)
22. Re: cvs commit: src/sys/i386/i386 machdep.c mp_machdep.c
(andrew.lankford@verizon.net)
23. Re: kernel build error (Randy Bush)
24. kernel compile flags? (George D. Gal)
25. Re: kernel compile flags? (Robert Watson)
26. Re: Challenge getting touchpad to work since
src/sys/isa/psm.c 1.71 (Alexandre "Sunny" Kovalenko)
27. Re: Unable to build recent kernels (Alexandre "Sunny" Kovalenko)
28. Re: bsd.cpu.mk (Conrad J. Sabatier)
29. buildworld failure, broken libc? (Pawel Worach)
30. Re: Unable to build recent kernels (Maxim Konovalov)
31. Re: USB drivers (M. Warner Losh)
32. Optimization opportunity: don't recurse callout mutex in
timeout_reset() (Robert Watson)
33. Re: 5.3-RELEASE TODO (M. Warner Losh)
34. Re: 5.3-RELEASE TODO (Scott Long)
35. Re: Optimization opportunity: don't recurse callout mutex in
timeout_reset() (Colin Percival)
36. Re: 5.3-RELEASE TODO (M. Warner Losh)
37. So much entropy it's coming out of our ears? (Robert Watson)
----------------------------------------------------------------------
Message: 1
Date: Wed, 4 Aug 2004 18:07:18 -0400
From: Geoff Speicher <geoff@speicher.org>
Subject: Instant Reboots (was: Re: Postgresql locks up server - no
response at all)
To: Scott Long <scottl@freebsd.org>
Cc: Jeremy Chadwick <freebsd@jdc.parodius.com>
Message-ID: <20040804220718.GA99590@sirius.speicher.org>
Content-Type: text/plain; charset=us-ascii
On Wed, Aug 04, 2004 at 03:34:49PM -0600, Scott Long wrote:
> Geoff Speicher wrote:
>
> >FWIW, in mid-late July, my problems were not PREEMPTION-related. I
> >tried everything I could to get usable threaded apps under XFree86, but
> >my Athlon XP rebooted every time I tried to run kdm, Firefox, etc.
> >
> >This included all four combinations of PREEMPTION and ULE/4BSD. Rolling
> >back to July 1 was the only thing that worked for me.
>
> Yeah, the instant reboots have hit me too. Disabling PREEMPTION did
> seem to help this for me, but then it might have been a coincidence.
> Incidentally, what video drivers are you using?
Snippets from /var/log/XFree86.0.log:
(II) ATI: ATI driver (version 6.4.18) for chipsets: ati, ativga
(--) RADEON(0): Chipset: "ATI Radeon VE/7000 QY (AGP)" (ChipID = 0x5159)
(II) Loading /usr/X11R6/lib/modules/drivers/radeon_drv.o
(II) Module radeon: vendor="The XFree86 Project"
compiled for 4.3.0, module version = 4.0.1
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.6
(II) RADEON(0): [drm] loaded kernel module for "radeon" driver
(II) RADEON(0): Direct rendering enabled
Hmm... but I also just realized that I added the following to my kernel
config many moons ago:
nooption DDB
nooption INVARIANTS
nooption INVARIANT_SUPPORT
nooption WITNESS
nooption WITNESS_SKIPSPIN
Is it possible that's not helping?
Geoff
------------------------------
Message: 2
Date: Wed, 04 Aug 2004 15:26:13 -0700
From: Eric Anholt <eta@lclark.edu>
Subject: Re: Instant Reboots (was: Re: Postgresql locks up server - no
response at all)
To: Geoff Speicher <geoff@speicher.org>
Cc: Scott Long <scottl@freebsd.org>
Message-ID: <1091658373.893.15.camel@leguin>
Content-Type: text/plain
On Wed, 2004-08-04 at 15:07, Geoff Speicher wrote:
> On Wed, Aug 04, 2004 at 03:34:49PM -0600, Scott Long wrote:
> > Geoff Speicher wrote:
> >
> > >FWIW, in mid-late July, my problems were not PREEMPTION-related. I
> > >tried everything I could to get usable threaded apps under XFree86, but
> > >my Athlon XP rebooted every time I tried to run kdm, Firefox, etc.
> > >
> > >This included all four combinations of PREEMPTION and ULE/4BSD. Rolling
> > >back to July 1 was the only thing that worked for me.
> >
> > Yeah, the instant reboots have hit me too. Disabling PREEMPTION did
> > seem to help this for me, but then it might have been a coincidence.
> > Incidentally, what video drivers are you using?
>
> Snippets from /var/log/XFree86.0.log:
>
> (II) ATI: ATI driver (version 6.4.18) for chipsets: ati, ativga
> (--) RADEON(0): Chipset: "ATI Radeon VE/7000 QY (AGP)" (ChipID = 0x5159)
> (II) Loading /usr/X11R6/lib/modules/drivers/radeon_drv.o
> (II) Module radeon: vendor="The XFree86 Project"
> compiled for 4.3.0, module version = 4.0.1
> Module class: XFree86 Video Driver
> ABI class: XFree86 Video Driver, version 0.6
>
> (II) RADEON(0): [drm] loaded kernel module for "radeon" driver
> (II) RADEON(0): Direct rendering enabled
Does this happen without using threaded apps? More specifically, does
it continue if you disable DRI in your X config? If so, please send me
your dmesg.
--
Eric Anholt eta@lclark.edu
http://people.freebsd.org/~anholt/ anholt@FreeBSD.org
------------------------------
Message: 3
Date: Wed, 4 Aug 2004 18:28:02 -0400
From: Anish Mistry <mistry.7@osu.edu>
Subject: Re: FreeBSD and wine mmap
To: John Birrell <jb@cimlogic.com.au>
Cc: freebsd-current@freebsd.org
Message-ID: <200408041828.26762.mistry.7@osu.edu>
Content-Type: Text/Plain; charset="iso-8859-1"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 29 July 2004 05:12 pm, you wrote:
> On Thu, Jul 29, 2004 at 10:04:12AM -0400, Anish Mistry wrote:
> > I should have a bit of time, once I get the acpi_fuji driver cleaned up
> > and Nate or Mark can import it. Which direction capitan? :)
>
> Look in /usr/src/sys/vm/vm_mmap.c:mmap() for the comment:
>
> /*
> * XXX for non-fixed mappings where no hint is provided or
> * the hint would fall in the potential heap space,
> * place it after the end of the largest possible heap.
> *
> * There should really be a pmap call to determine a reasonable
> * location.
> */
>
> The code currently maps memory without a fixed address above the highest
> address that the process has used.
>
> The problem with Wine is that it needs to reserve the top half of the
> process address space for use like older versions of Windows. When Wine
> starts up, it goes through and grabs that memory as soon as it can, then
> it proceeds to dynamically load it's libraries (the Unix shared libraries
> that implement the functions in the DLLs). The first load fails because
> the library can't be mapped above the highest address used.
>
> What you need to do is take the hint from the comment above and write a
> pmap function to determine a reasonable location. You could say that
> a reasonable location is above the highest address used, if there is
> space up there. Otherwise find a hole in the address space.
Ok, so we need something like vm_map_findspace(), but for process address
mapping? ie. pmap_findspace() that will return an address to a large enough
free chunk?
- --
Anish Mistry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFBEWL8xqA5ziudZT0RAkvlAJ0eNZx0JD5gbkYW9gKoGP4ouNexMACglLAp
uSyYfUKUzIq0xm9GZqJ5G3I=
=jkUH
-----END PGP SIGNATURE-----
------------------------------
Message: 4
Date: Thu, 5 Aug 2004 08:39:37 +1000
From: John Birrell <jb@cimlogic.com.au>
Subject: Re: FreeBSD and wine mmap
To: Anish Mistry <mistry.7@osu.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <20040804223937.GA99521@freebsd3.cimlogic.com.au>
Content-Type: text/plain; charset=us-ascii
On Wed, Aug 04, 2004 at 06:28:02PM -0400, Anish Mistry wrote:
> Ok, so we need something like vm_map_findspace(), but for process address
> mapping? ie. pmap_findspace() that will return an address to a large enough
> free chunk?
That's a good start, just to get something to work with. How this fits in
with the vm code and whether it is ultimately suitable in the long run is
probably up to Alan Cox. For now, just get something that (a) doesn't break
anything else; and (b) lets Wine behave the way it needs to.
AFAIK, there are still pthread issues with Wine, but those can't be addressed
until the mmap issue has a work-around.
--
John Birrell
------------------------------
Message: 5
Date: Wed, 4 Aug 2004 12:44:01 -1000
From: Randy Bush <randy@psg.com>
Subject: kernel build error
To: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <16657.26289.6205.220165@roam.psg.com>
Content-Type: text/plain; charset=us-ascii
linking kernel.debug
i686_mem.o(.text+0xf6a): In function `i686_mem_drvinit':
/usr/src/sys/i386/i386/i686_mem.c:616: undefined reference to `mem_range_softc'
k6_mem.o(.text+0x433): In function `k6_mem_drvinit':
/usr/src/sys/i386/i386/k6_mem.c:181: undefined reference to `mem_range_softc'
mem.o(.text+0x2a3): In function `memioctl':
/usr/src/sys/i386/i386/mem.c:174: undefined reference to `mem_range_softc'
mem.o(.text+0x2b5):/usr/src/sys/i386/i386/mem.c:178: undefined reference to `mem_range_softc'
mem.o(.text+0x2dc): In function `memioctl':
/usr/src/sys/sys/libkern.h:52: undefined reference to `mem_range_softc'
mem.o(.text+0x31d): In function `memioctl':
/usr/src/sys/i386/i386/mem.c:188: undefined reference to `mem_range_attr_get'
mem.o(.text+0x363):/usr/src/sys/i386/i386/mem.c:195: undefined reference to `mem_range_softc'
mem.o(.text+0x3bb):/usr/src/sys/i386/i386/mem.c:206: undefined reference to `mem_range_attr_set'
mem.o(.text+0x408): In function `dev_mem_md_init':
/usr/src/sys/i386/i386/mem.c:216: undefined reference to `mem_range_softc'
mem.o(.text+0x412):/usr/src/sys/i386/i386/mem.c:217: undefined reference to `mem_range_softc'
mem.o(.text+0x417):/usr/src/sys/i386/i386/mem.c:217: undefined reference to `mem_range_softc'
*** Error code 1
Stop in /usr/obj/usr/src/sys/ROAM.
*** Error code 1
Stop in /usr/src.
*** Error code 1
------------------------------
Message: 6
Date: Wed, 04 Aug 2004 15:46:42 -0700
From: Julian Elischer <julian@elischer.org>
Subject: Re: FreeBSD and wine mmap
To: John Birrell <jb@cimlogic.com.au>
Cc: freebsd-current@freebsd.org
Message-ID: <41116752.4030003@elischer.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
John Birrell wrote:
>On Wed, Aug 04, 2004 at 06:28:02PM -0400, Anish Mistry wrote:
>
>
>>Ok, so we need something like vm_map_findspace(), but for process address
>>mapping? ie. pmap_findspace() that will return an address to a large enough
>>free chunk?
>>
>>
>
>That's a good start, just to get something to work with. How this fits in
>with the vm code and whether it is ultimately suitable in the long run is
>probably up to Alan Cox. For now, just get something that (a) doesn't break
>anything else; and (b) lets Wine behave the way it needs to.
>
/proc/curproc/map
can give you a quick temporary solution..
julian@ref3:cat /proc/curproc/map
0x8048000 0x808b000 67 0 0xc1040ad4 r-x 30 15 0x4 COW NC vnode /bin/csh
0x808b000 0x808e000 3 0 0xc1b8239c rw- 1 0 0x2180 COW NNC vnode /bin/csh
0x808e000 0x80bb000 16 0 0xc1cdd630 rw- 1 0 0x2180 COW NNC default -
0x80bb000 0x80ca000 15 0 0xc1e904a4 rwx 1 0 0x2180 COW NNC default -
0x80ca000 0x8107000 61 0 0xc1ed5ce4 rwx 1 0 0x2180 NCOW NNC default -
0x2808b000 0x280a7000 23 0 0xc103f738 r-x 103 45 0x4 COW NC vnode
/libexec/ld-el
f.so.1
0x280a7000 0x280a8000 1 0 0xc2096840 rw- 1 0 0x2180 COW NC vnode
/libexec/ld-elf
so.1
0x280a8000 0x280ad000 5 0 0xc1d55ef4 rw- 1 0 0x2180 COW NNC default -
0x280ad000 0x280b5000 7 0 0xc1abd7bc rwx 1 0 0x2180 COW NNC default -
0x280b5000 0x280e8000 49 0 0xc103fb58 r-x 48 32 0x4 COW NC vnode
/lib/libncurses
so.5
0x280e8000 0x280e9000 1 0 0xc1f1d5ac r-x 1 0 0x2180 COW NC vnode
/lib/libncurses
so.5
0x280e9000 0x280f1000 8 0 0xc1a95ad4 rwx 1 0 0x2180 COW NNC vnode
/lib/libncurse
s.so.5
0x280f1000 0x280f2000 1 0 0xc1a02ef4 rwx 1 0 0x2180 NCOW NNC default -
0x280f2000 0x280f7000 5 0 0xc183c5ac r-x 84 44 0x4 COW NC vnode
/lib/libcrypt.so
2
0x280f7000 0x280f8000 1 0 0xc1cddd68 r-x 1 0 0x2180 COW NC vnode
/lib/libcrypt.s
o.2
0x280f8000 0x280f9000 1 0 0xc22d16b4 rwx 1 0 0x2180 COW NC vnode
/lib/libcrypt.s
o.2
0x280f9000 0x2810a000 0 0 0 rwx 0 0 0x0 NCOW NNC none -
0x2810a000 0x281bf000 123 0 0xc26a818c r-x 1 0 0x2180 COW NC vnode
/lib/libc.so.
5
0x281bf000 0x281c0000 1 0 0xc1db58c4 r-x 1 0 0x2180 COW NC vnode
/lib/libc.so.5
0x281c0000 0x281c6000 6 0 0xc27938c4 rwx 1 0 0x2180 COW NNC vnode
/lib/libc.so.5
0x281c6000 0x281da000 12 0 0xc258f5ac rwx 1 0 0x2180 COW NNC default -
0xbfbe0000 0xbfc00000 15 0 0xc1fd35ac rwx 1 0 0x2180 COW NNC default -
>
>AFAIK, there are still pthread issues with Wine, but those can't be addressed
>until the mmap issue has a work-around.
>
>
>
------------------------------
Message: 7
Date: Wed, 04 Aug 2004 18:04:57 -0500
From: Jon Noack <noackjr@alumni.rice.edu>
Subject: Re: kernel build error
To: Randy Bush <randy@psg.com>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <41116B99.2050903@alumni.rice.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
On 08/04/04 17:44, Randy Bush wrote:
> linking kernel.debug
> i686_mem.o(.text+0xf6a): In function `i686_mem_drvinit':
> /usr/src/sys/i386/i386/i686_mem.c:616: undefined reference to `mem_range_softc'
> k6_mem.o(.text+0x433): In function `k6_mem_drvinit':
> /usr/src/sys/i386/i386/k6_mem.c:181: undefined reference to `mem_range_softc'
> mem.o(.text+0x2a3): In function `memioctl':
> /usr/src/sys/i386/i386/mem.c:174: undefined reference to `mem_range_softc'
> mem.o(.text+0x2b5):/usr/src/sys/i386/i386/mem.c:178: undefined reference to `mem_range_softc'
> mem.o(.text+0x2dc): In function `memioctl':
> /usr/src/sys/sys/libkern.h:52: undefined reference to `mem_range_softc'
> mem.o(.text+0x31d): In function `memioctl':
> /usr/src/sys/i386/i386/mem.c:188: undefined reference to `mem_range_attr_get'
> mem.o(.text+0x363):/usr/src/sys/i386/i386/mem.c:195: undefined reference to `mem_range_softc'
> mem.o(.text+0x3bb):/usr/src/sys/i386/i386/mem.c:206: undefined reference to `mem_range_attr_set'
> mem.o(.text+0x408): In function `dev_mem_md_init':
> /usr/src/sys/i386/i386/mem.c:216: undefined reference to `mem_range_softc'
> mem.o(.text+0x412):/usr/src/sys/i386/i386/mem.c:217: undefined reference to `mem_range_softc'
> mem.o(.text+0x417):/usr/src/sys/i386/i386/mem.c:217: undefined reference to `mem_range_softc'
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/ROAM.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
Same problem here with CPUTYPE=p4 and CFLAGS=-O2 -pipe -g on my Pentium
4 workstation (w/o SMP). Oddly enough, it works fine on my dual Pentium
3 server (w/ SMP) with CPUTYPE=p3 and CFLAGS=-O2 -pipe -g. Both have
identical source. The kernel config files are very similar and are
stripped down to necessary stuff. Other than SMP, the only differences
between the two are for differing drivers (SCSI vs. IDE, USB, network,
and sound).
Here's my exact error message (using 'make -s' so it might be a little
short):
linking kernel.debug
memutil.o(.text+0xd): In function `mem_range_attr_get':
/usr/src/sys/dev/mem/memutil.c:43: undefined reference to `mem_range_softc'
memutil.o(.text+0x1f):/usr/src/sys/dev/mem/memutil.c:47: undefined
reference to `mem_range_softc'
memutil.o(.text+0x3d):/usr/src/sys/dev/mem/memutil.c:49: undefined
reference to `mem_range_softc'
memutil.o(.text+0x5a): In function `mem_range_attr_set':
/usr/src/sys/dev/mem/memutil.c:58: undefined reference to `mem_range_softc'
memutil.o(.text+0x68):/usr/src/sys/dev/mem/memutil.c:61: undefined
reference to `mem_range_softc'
i686_mem.o(.text+0xe49):/usr/src/sys/i386/i386/i686_mem.c:616: more
undefined references to `mem_range_softc' follow
*** Error code 1
Stop in /usr/obj/usr/src/sys/COMPGEEK.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Jon
------------------------------
Message: 8
Date: Wed, 4 Aug 2004 16:07:41 -0700
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject: Re: kernel build error
To: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <20040804230741.GA51098@parodius.com>
Content-Type: text/plain; charset=us-ascii
Wasn't there a discussion on -current not too long ago about the use of
non-stock CFLAGS in make.conf causing these type-of problems?
--
| Jeremy Chadwick jdc at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, USA |
| Making life hard for others since 1977. |
On Wed, Aug 04, 2004 at 06:04:57PM -0500, Jon Noack wrote:
> On 08/04/04 17:44, Randy Bush wrote:
> >linking kernel.debug
> >i686_mem.o(.text+0xf6a): In function `i686_mem_drvinit':
> >/usr/src/sys/i386/i386/i686_mem.c:616: undefined reference to
> >`mem_range_softc'
> >k6_mem.o(.text+0x433): In function `k6_mem_drvinit':
> >/usr/src/sys/i386/i386/k6_mem.c:181: undefined reference to
> >`mem_range_softc'
> >mem.o(.text+0x2a3): In function `memioctl':
> >/usr/src/sys/i386/i386/mem.c:174: undefined reference to `mem_range_softc'
> >mem.o(.text+0x2b5):/usr/src/sys/i386/i386/mem.c:178: undefined reference
> >to `mem_range_softc'
> >mem.o(.text+0x2dc): In function `memioctl':
> >/usr/src/sys/sys/libkern.h:52: undefined reference to `mem_range_softc'
> >mem.o(.text+0x31d): In function `memioctl':
> >/usr/src/sys/i386/i386/mem.c:188: undefined reference to
> >`mem_range_attr_get'
> >mem.o(.text+0x363):/usr/src/sys/i386/i386/mem.c:195: undefined reference
> >to `mem_range_softc'
> >mem.o(.text+0x3bb):/usr/src/sys/i386/i386/mem.c:206: undefined reference
> >to `mem_range_attr_set'
> >mem.o(.text+0x408): In function `dev_mem_md_init':
> >/usr/src/sys/i386/i386/mem.c:216: undefined reference to `mem_range_softc'
> >mem.o(.text+0x412):/usr/src/sys/i386/i386/mem.c:217: undefined reference
> >to `mem_range_softc'
> >mem.o(.text+0x417):/usr/src/sys/i386/i386/mem.c:217: undefined reference
> >to `mem_range_softc'
> >*** Error code 1
> >
> >Stop in /usr/obj/usr/src/sys/ROAM.
> >*** Error code 1
> >
> >Stop in /usr/src.
> >*** Error code 1
>
> Same problem here with CPUTYPE=p4 and CFLAGS=-O2 -pipe -g on my Pentium
> 4 workstation (w/o SMP). Oddly enough, it works fine on my dual Pentium
> 3 server (w/ SMP) with CPUTYPE=p3 and CFLAGS=-O2 -pipe -g. Both have
> identical source. The kernel config files are very similar and are
> stripped down to necessary stuff. Other than SMP, the only differences
> between the two are for differing drivers (SCSI vs. IDE, USB, network,
> and sound).
>
> Here's my exact error message (using 'make -s' so it might be a little
> short):
>
> linking kernel.debug
> memutil.o(.text+0xd): In function `mem_range_attr_get':
> /usr/src/sys/dev/mem/memutil.c:43: undefined reference to `mem_range_softc'
> memutil.o(.text+0x1f):/usr/src/sys/dev/mem/memutil.c:47: undefined
> reference to `mem_range_softc'
> memutil.o(.text+0x3d):/usr/src/sys/dev/mem/memutil.c:49: undefined
> reference to `mem_range_softc'
> memutil.o(.text+0x5a): In function `mem_range_attr_set':
> /usr/src/sys/dev/mem/memutil.c:58: undefined reference to `mem_range_softc'
> memutil.o(.text+0x68):/usr/src/sys/dev/mem/memutil.c:61: undefined
> reference to `mem_range_softc'
> i686_mem.o(.text+0xe49):/usr/src/sys/i386/i386/i686_mem.c:616: more
> undefined references to `mem_range_softc' follow
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/COMPGEEK.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Jon
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
------------------------------
Message: 9
Date: Thu, 5 Aug 2004 00:13:13 +0100
From: Ben Paley <ben@spooty.net>
Subject: Re: radeon.ko doesn't load on recent current
To: mark@remotelab.org
Cc: Rossam Souza da Silva <rss@cesar.org.br>
Message-ID: <200408050013.13252.ben@spooty.net>
Content-Type: text/plain; charset="iso-8859-1"
> On Wed, Aug 04, 2004 at 09:28:48AM -0300, Rossam Souza da Silva wrote:
> > I have the same problem with VMWare3 kernel modules...
> > no one is loaded, with error messages about symbols.
>
> What is the error message?
>
> Is this one?
>
> <boot>
> Additional ABI support:
> linux
> .
> Starting cron.
> Local package initialization:
> link_elf: symbol kmem_alloc_pageable undefined
> kldload:
> can't load /usr/local/lib/vmware/modules/vmmon_up.ko
>
> No such file or directory
> vmnet1: Ethernet address: 00:bd:c4:3d:00:01
> VMware
> </boot>
>
> In this case, download last vmware3 port skeleton from
>
> http://www.break.net/orlando/vmware3/
>
> and try again.
I've had something like this recently, more than once, as well as other vmware
related nonsense (dll error running flash mx 2004 pro in W98 guest, anyone?)
and I discovered I had to upgrade rtc after any makeworld / kernel, then
reinstall vmware3. If I _don't_ do that I get panics, crashes, hangs and all
sorts, and if I _do_, everything works fine... so I recommend giving it a go.
Cheers,
Ben
------------------------------
Message: 10
Date: Wed, 4 Aug 2004 16:28:54 -0700
From: Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject: something strange with amd64 or fetch or ports or gcc
To: freebsd-current@freebsd.org
Message-ID: <20040804232854.GC9742@troutmask.apl.washington.edu>
Content-Type: text/plain; charset=us-ascii
While trying to build math/octave, make(1) stopped with
lapack.tgz 991003402600f 4874 kB 2448 kBps
fetch: lapack.tgz appears to be truncated: 4991991/4991992 bytes
>> Couldn't fetch it - please try to retrieve this
>> port manually into /usr/ports/distfiles/lapack and try again.
*** Error code 1
Stop in /usr/ports/math/atlas/work/lapack.
*** Error code 1
Stop in /usr/ports/math/atlas.
I simply restarted make(1) and the port infrastructure computed and
validated the md5 checksum on lapack.tgz without me manually retrieving
the tar ball. So all 4991992 bytes were successfully retrieved from
netlib.org.
The system is a SMP amd64 system, and FreeBSD (world and kernel) were
rebuild from today's sources. I use the standard CFLAGS of "-O -pipe".
I haven't seen other reports of this behaviour. This could
be amd64 specific, caused by the new gcc, a 64-bit issue with
fetch (I doubt this it, but...), or some problem in the
ports system *.mk glue.
--
Steve
------------------------------
Message: 11
Date: Wed, 4 Aug 2004 13:32:33 -1000
From: Randy Bush <randy@psg.com>
Subject: Re: status of bind9 import
To: Garance A Drosihn <drosih@rpi.edu>
Cc: Dennis Berger <db@nipsi.de>
Message-ID: <16657.29201.1449.555118@roam.psg.com>
Content-Type: text/plain; charset=us-ascii
> He is waiting for a specific official release to happen from the BIND9
> folks
decade++ experience with bind is 1,000 betas and rcs, maybe finally
a release, and then immediate fixes.
i have been running bind9 snap on heavily loaded -current servers
for a long while. just do it.
randy
------------------------------
Message: 12
Date: Wed, 04 Aug 2004 17:36:37 -0600
From: Scott Long <scottl@freebsd.org>
Subject: Re: Postgresql locks up server - no response at all
To: Sven Willenberger <sven@dmv.com>
Cc: freebsd-current@freebsd.org
Message-ID: <41117305.2010301@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Sven Willenberger wrote:
> On Wed, 2004-08-04 at 15:27 -0600, Scott Long wrote:
>
>>Sven Willenberger wrote:
>>
>>
>>>On Wed, 2004-08-04 at 13:49 -0700, Kevin Oberman wrote:
>>>
>>>
>>>>>Date: Wed, 4 Aug 2004 13:34:56 -0700
>>>>>From: Jeremy Chadwick <freebsd@jdc.parodius.com>
>>>>>Sender: owner-freebsd-current@freebsd.org
>>>>>
>>>>>I've seen this with our SuperMicro SuperServer 5013C-T, running mysqld.
>>>>>Please note that the server is "heavily loaded" (note the quotes); usually
>>>>>a load of around 0.50 to 1.00 at all times, with mysqld being the top
>>>>>process. Server runs all latest -CURRENT builds.
>>>>>
>>>>>Many people over in freebsd-threads mentioned this problem, and recommended
>>>>>all sorts-of different workarounds. I tried every one available to me,
>>>>>except mucking with PREEMPTION (as I did not feel comfortable tinkering
>>>>>with a random .h file on the box; seemed to be a kernel-related thing,
>>>>>so I'd rather have just an "options" line for it -- I'm conditionally
>>>>>lazy).
>>>>
>>>>Please note that PREEMPTION is now NOT enabled in CURRENT. scottl
>>>>changed that a day or two ago because of all of these lock-ups. He and
>>>>Julian are listed as working to isolate the problem. Scott believes it's
>>>>in the scheduler. It's not specific to either ULE or 4BSD.
>>>>
>>>>So cvsup, rebuild the kernel and you should be fine.At least for a while.
>>>
>>>
>>>Based on this and Jeremy C.'s response it would appear that I should
>>>either try to upgrade my 5.2.1-P8 system to -CURRENT (which is scary
>>>because of the vinum array - root is not mounted on a vinum device, but
>>>the data directory is - will gvinum simply read this correctly? it is a
>>>stripe+mirror array of 4 drives) or start from scratch and go back to
>>>4.10 (STABLE) for a while. I am assuming that the lockups I am seeing
>>>were exacerbated by the PREEMPTION episodes of the past couple weeks? If
>>>I choose the upgrade to -CURRENT, are there any caveats or
>>>recommendations? (besides reading "/usr/src/UPDATING" which I do
>>>religiously anyway)
>>>
>>>_______________________________________________
>>>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"
>>
>>I'm a bit nervous with asking you to upgrade to -current. PREEMPTION is
>>practically disabled in 5.2.1 so upgrading has a low chance of fixing
>>the problem except maybe by sheer luck. The best action would be to
>>get a crashdump. If your system has an NMI button, then there are some
>>trivial patches that will assist with this. If not, then you might want
>>to look at backporting the ichwd watchdog driver and letting that do a
>>chip-assisted NMI.
>>
>>In any case, finding out exactly what each CPU is doing at the time of
>>the lockup is going to be vital. The lockups that I've been able to
>>reproduce happen when a TAILQ in the scheduler gets corrupted and
>>resulting in one CPU spinning on the list forever with the scheduler
>>lock held. All other cpus then quickly grind to a halt while they wait
>>for the sched lock to become free, which it never does.
>>
>
>
> The case unfortunately does not have a button (although the mobo does
> have an NMI header/jumper). Backporting the watchdog driver sounds
> doable; other than downloading the sys/dev/ichwd directory from a
> repository and adding "options ichwd" to my kernel config file, what
> else would be needed? I am willing to try to get at least one crashdump
> before I have to go back to a -STABLE setup or try something so I can
> get some uptime on this box.
>
I believe that the ichwd driver depends on the watchdog infrastructure
driver that was added back in the early spring. I'm not 100�$��=�(@ure,
though.
Scott
------------------------------
Message: 13
Date: Wed, 4 Aug 2004 16:54:44 -0700
From: John Kennedy <jk@jk.homeunix.net>
Subject: Re: 5.3-RELEASE TODO
To: Kenneth Culver <culverk@sweetdreamsracing.biz>
Cc: re@freebsd.org
Message-ID: <20040804235444.GA36881@memnoch.jk.homeunix.net>
Content-Type: text/plain; charset=us-ascii
On Wed, Aug 04, 2004 at 01:01:41PM -0400, Kenneth Culver wrote:
> Quoting Scott Long <scottl@freebsd.org>:
> >Hmm, maybe I'm mis-informed then. I thought that
> >snapshots.jp.freebsd.org was having problems building the 5.2-CURRENT
> >sources because it's world was too old, and that this pointed to a
> >source upgrade problem. I guess we need clarification here. David?
> >
> >Scott
>
> I've actually done this 2 or 3 times in the last week or 2 on a few
> different computers, so unless a recent commit broke something,
> it should still be ok.
FYI, I just did a chunk of it this morning. I used a 5.2.1-RELEASE-p9
system to grab a 5-Current via cvs:
make buildworld
make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=GENERIC
I'll have to go home to install+reboot, but it finished building.
------------------------------
Message: 14
Date: Thu, 5 Aug 2004 01:59:49 +0200
From: Hannes Mehnert <hannes@mehnert.org>
Subject: Re: cvs commit: src/sys/sys memrange.h src/sys/amd64/amd64
mem.c mp_machdep.c src/sys/i386/i386 mem.c mp_machdep.c
src/sys/dev/mem memdev.c memutil.c src/sys/modules/mem Makefile
To: Mark Murray <markm@FreeBSD.org>
Cc: current@freebsd.org
Message-ID: <20040804235949.GA639@mehnert.org>
Content-Type: text/plain; charset=us-ascii
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Mark,
On Wed, Aug 04, 2004 at 06:30:31PM +0000, Mark Murray wrote:
> markm 2004-08-04 18:30:31 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/sys memrange.h
> sys/amd64/amd64 mem.c mp_machdep.c
> sys/i386/i386 mem.c mp_machdep.c
> sys/dev/mem memdev.c
> sys/modules/mem Makefile
> Added files:
> sys/dev/mem memutil.c
> Log:
> Fix module builds for i386 and amd64.
This commit broke /dev/mem for me.
Trying to load the module when building /dev/mem as a module ended up
in following kernel message:
kernel: link_elf: symbol mem_range_softc undefined
When trying to compile /dev/mem in kernel (device mem), the following
error occured:
memutil.o(.text+0x10): In function `mem_range_attr_get':
/usr/src/sys/dev/mem/memutil.c:43: undefined reference to
`mem_range_softc'
memutil.o(.text+0x1d):/usr/src/sys/dev/mem/memutil.c:47: undefined
reference to `mem_range_softc'
memutil.o(.text+0x3f):/usr/src/sys/dev/mem/memutil.c:49: undefined
reference to `mem_range_softc'
memutil.o(.text+0x6d): In function `mem_range_attr_set':
/usr/src/sys/dev/mem/memutil.c:58: undefined reference to
`mem_range_softc'
memutil.o(.text+0x85):/usr/src/sys/dev/mem/memutil.c:61: undefined
reference to `mem_range_softc'
memutil.o(.text+0x8a):/usr/src/sys/dev/mem/memutil.c:61: more undefined
references to `mem_range_softc' follow
Best Regards,
Hannes Mehnert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFBEXhxRcuNlziBjRwRAjgIAJ9u6W5i74HTw2wGxNsga3D9SDt4jQCgrEYa
J2L+og23qW1cGuFfIrdC5G8=
=w2LY
-----END PGP SIGNATURE-----
------------------------------
Message: 15
Date: Wed, 04 Aug 2004 19:04:06 -0500
From: Jon Noack <noackjr@alumni.rice.edu>
Subject: Re: kernel build error
To: Jeremy Chadwick <freebsd@jdc.parodius.com>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <41117976.5030908@alumni.rice.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
On 08/04/04 18:07, Jeremy Chadwick wrote:
> Wasn't there a discussion on -current not too long ago about the use of
> non-stock CFLAGS in make.conf causing these type-of problems?
No change with:
#CPUTYPE= p4
CFLAGS= -O -pipe# -g
I'm sure there are issues with non-stock CFLAGS, but this doesn't appear
to be one of them.
Jon
------------------------------
Message: 16
Date: Wed, 4 Aug 2004 20:25:16 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: kernel build error
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID:
<Pine.NEB.3.96L.1040804202427.19039A-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 4 Aug 2004, Jon Noack wrote:
> On 08/04/04 18:07, Jeremy Chadwick wrote:
> > Wasn't there a discussion on -current not too long ago about the use of
> > non-stock CFLAGS in make.conf causing these type-of problems?
>
> No change with:
> #CPUTYPE= p4
> CFLAGS= -O -pipe# -g
>
> I'm sure there are issues with non-stock CFLAGS, but this doesn't appear
> to be one of them.
The problem appears to be that 'mem_range_softc' is defined in
mp_machdep.c, which means you can't build a non-SMP i386 kernel because
the symbol is undefined. We probably need to move the declaration to
machdep.c or the like.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
Message: 17
Date: Wed, 4 Aug 2004 20:31:31 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: kernel build error
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID:
<Pine.NEB.3.96L.1040804203053.19039B-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 4 Aug 2004, Robert Watson wrote:
> The problem appears to be that 'mem_range_softc' is defined in
> mp_machdep.c, which means you can't build a non-SMP i386 kernel because
> the symbol is undefined. We probably need to move the declaration to
> machdep.c or the like.
I've committed this change and things now appear to build. Might take a
couple of minutes to propagate to cvsup, etc.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
Message: 18
Date: Thu, 5 Aug 2004 03:07:50 +0200
From: Hannes Mehnert <hannes@mehnert.org>
Subject: Re: cvs commit: src/sys/sys memrange.h src/sys/amd64/amd64
mem.c mp_machdep.c src/sys/i386/i386 mem.c mp_machdep.c
src/sys/dev/mem memdev.c memutil.c src/sys/modules/mem Makefile
To: Mark Murray <markm@FreeBSD.org>
Cc: current@freebsd.org
Message-ID: <20040805010748.GB639@mehnert.org>
Content-Type: text/plain; charset=us-ascii
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
for the records, this was fixed by Robert Watson in
http://lists.freebsd.org/pipermail/cvs-src/2004-August/028791.html
Best Regards,
Hannes Mehnert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFBEYhjRcuNlziBjRwRAp8uAKCt1OIYAKB4H1YvjRWbr23soAPWjgCgh8fj
pjMSwMr6m+xxgqN9sYZPXj8=
=oXUu
-----END PGP SIGNATURE-----
------------------------------
Message: 19
Date: Wed, 04 Aug 2004 21:17:19 -0400
From: Chris <chris@tellme3times.com>
Subject: Re: USB drivers
To: ticso@cicely.de
Cc: freebsd-current@freebsd.org
Message-ID: <41118A9F.8030302@tellme3times.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Bernd Walter wrote:
>On Wed, Aug 04, 2004 at 10:41:50AM -0400, Chris wrote:
>
>
>>The last time I programed was over 15 years ago and I was thinking of
>>looking into the USB drivers for FreeBSD concerning multifunction
>>devices. If I ask stupid questions forgive me because I am seeing this
>>as a user.
>>
>>First I would like to know if there is a technical reason why two
>>different divers cannot attach to the same device. If each driver works
>>well independently, what is the reason to prevent the second one from
>>attaching? I would assume that if you attempted to use both drivers at
>>the same time you would get a device busy error.
>>
>>
>
>USB devices can be designed to have multiple interfaces at which you
>can have different drivers - e.g. you can have a ulpt/umass combo
>and both drivers just clain the according interface from the same
>device.
>Therefor also drivers can be programmed for whole USB devices and for
>USB subdevices.
>This works perfectly with FreeBSD.
>
>
>
>>Am I misunderstanding something here? I see ulpt: and unlpt: attaching
>>to the same device and the choice of which one to use is up to the user
>>and the hardware they have. If we have two drivers attach in one case
>>why, and where, do we prevent other drivers from attaching if they meet
>>the minimum requirements?
>>
>>
>
>unlpt and ulpt are just different representations from the same driver.
>There is absolutely no sense in having two clients printing at the same
>time on the same printer, so blocking each other is absolutely reasonable.
>Scheduling multiple requests is up to software like lpd.
>See ulpt(4) for details about the functional difference in ulpt vs. unlpt
>device nodes - depending on the printer you will likely end up in always
>using the same devicenode.
>Why do you think this is wrong?
>
>
What I am looking to accomplish is to attach uscanner and ulpt to an
EPSON CX5400. While each driver works great by itself I am unable to
attach both at the same time. I was told on this list that we may not
attach two drivers to the same device. If this is not correct then I
would appreciate a little help in attaching existing drivers or writing
a new one.
Chris
------------------------------
Message: 20
Date: Thu, 5 Aug 2004 03:27:14 +0200
From: Bernd Walter <ticso@cicely12.cicely.de>
Subject: Re: USB drivers
To: Chris <chris@tellme3times.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040805012713.GP20488@cicely12.cicely.de>
Content-Type: text/plain; charset=us-ascii
On Wed, Aug 04, 2004 at 09:17:19PM -0400, Chris wrote:
> What I am looking to accomplish is to attach uscanner and ulpt to an
> EPSON CX5400. While each driver works great by itself I am unable to
> attach both at the same time. I was told on this list that we may not
> attach two drivers to the same device. If this is not correct then I
> would appreciate a little help in attaching existing drivers or writing
> a new one.
uscanner unfortunately is designed as a device level driver, which
is correct for some scanners, but not for modern combo devices as
yours.
ulpt does the right thing.
--
B.Walter BWCT http://www.bwct.de
bernd@bwct.de info@bwct.de
------------------------------
Message: 21
Date: Thu, 05 Aug 2004 01:40:10 +0000
From: "Deng XueFeng" <dsnofe@msn.com>
Subject: bsd.cpu.mk
To: current@freebsd.org
Message-ID: <BAY11-F46FTUliWQFCh00008c29@hotmail.com>
Content-Type: text/plain; charset=gb2312; format=flowed
Since Gcc 3.4.2 has imported.
should src/share/mk/bsd.cpu.mk to be updated to support more CPU types
which gcc[3.4.2] support?
_________________________________________________________________
�������������牡����始�系统�� MSN Hotmail�� http://www.hotmail.com
------------------------------
Message: 22
Date: Wed, 4 Aug 2004 20:49:48 -0500
From: <andrew.lankford@verizon.net>
Subject: Re: cvs commit: src/sys/i386/i386 machdep.c mp_machdep.c
To: <cvs-src@FreeBSD.org>, <current@freebsd.org>
Cc: Robert Watson <rwatson@FreeBSD.org>
Message-ID:
<20040805014948.IKWJ14580.out011.verizon.net@outgoing.verizon.net>
Content-Type: text/plain; charset=ISO-8859-1
Ah, perhaps that's what's been mucking up buildkernel for
my uniprocessor machine (with a kernel configuration sans
the io and mem devices).
--snip--
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Win
line -Wcast-qual -fformat-extensions -std=c99 -g -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/us
r/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -includ
e opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --
param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-r
ed-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-
asynchronous-unwind-tables -ffreestanding -Werror vers.c
linking kernel.debug
amd64_mem.o(.text+0xa8a): In function `amd64_mrinit':
/usr/src/sys/amd64/amd64/amd64_mem.c:562: undefined reference to `M_MEMDESC'
amd64_mem.o(.text+0xc2c): In function `amd64_mem_drvinit':
/usr/src/sys/amd64/amd64/amd64_mem.c:622: undefined reference to `mem_range_soft
c'
*** Error code 1
Stop in /usr/obj/usr/src/sys/ARL_AMD64.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Andrew Lankford
------------------------------
Message: 23
Date: Wed, 4 Aug 2004 15:52:58 -1000
From: Randy Bush <randy@psg.com>
Subject: Re: kernel build error
To: Robert Watson <rwatson@FreeBSD.org>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <16657.37626.672698.725848@roam.psg.com>
Content-Type: text/plain; charset=us-ascii
thanks, robert
Edit src/sys/i386/i386/machdep.c
Add delta 1.597 2004.08.05.00.32.08 rwatson
Edit src/sys/i386/i386/mp_machdep.c
Add delta 1.233 2004.08.05.00.32.08 rwatson
fixed it
randy
------------------------------
Message: 24
Date: Wed, 4 Aug 2004 21:53:46 -0400 (EDT)
From: "George D. Gal" <ggal@vsecurity.com>
Subject: kernel compile flags?
To: freebsd-current@freebsd.org
Message-ID: <20040804215007.K6244@zeroday.vsecurity.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
It seems that the kernel build requires 2 new compile flags. Is there any
issues if these flags are simply commented out.
cc1: error: invalid parameter `inline-unit-growth'
cc1: error: invalid parameter `large-function-growth'
-george
------------------------------
Message: 25
Date: Wed, 4 Aug 2004 22:08:27 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: kernel compile flags?
To: "George D. Gal" <ggal@vsecurity.com>
Cc: freebsd-current@freebsd.org
Message-ID:
<Pine.NEB.3.96L.1040804220710.19039F-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 4 Aug 2004, George D. Gal wrote:
> It seems that the kernel build requires 2 new compile flags. Is there
> any issues if these flags are simply commented out.
>
> cc1: error: invalid parameter `inline-unit-growth'
> cc1: error: invalid parameter `large-function-growth'
This is a less user friendly form of the error "You are compiling with gcc
3.3.x, and need to compile with gcc 3.4.x". I.e., buildworld before
buildkernel and it should fix the problem. The arguments between compiler
versions aren't 100�ompatible.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
Message: 26
Date: Wed, 04 Aug 2004 22:11:42 -0400
From: "Alexandre \"Sunny\" Kovalenko" <Alex.Kovalenko@verizon.net>
Subject: Re: Challenge getting touchpad to work since
src/sys/isa/psm.c 1.71
To: freebsd-current@freebsd.org
Message-ID: <1091671902.698.4.camel@RabbitsDen>
Content-Type: text/plain
On Wed, 2004-08-04 at 17:00, David Wolfskill wrote:
> Sorry about the delay; right around the time of the commit, I was having
> some thermal issues with my laptop (a Dell Inspiron 5000e). I believe
> those are fixed now -- it's gone through 5 days, each of which has
> involved a "buildworld cycle" for each of -STABLE & -CURRENT, without
> incident.
>
> But I'm now having trouble getting a "touchpad tap" to be recognized as
> a press/release of a mouse button in -CURRENT; I believe that the recent
> commit to src/sys/isa/psm.c 1.71 is involved.
Rolling psm.c back to 1.70 restores tapping behavior of the touchpad on
my AVERATEC 3150H. Unfortunately with 200+ lines of diff, I could not
come up with the better idea at the moment.
I can test patches or try out settings if necessary.
Alexandre "Sunny" Kovalenko.
------------------------------
Message: 27
Date: Wed, 04 Aug 2004 22:18:22 -0400
From: "Alexandre \"Sunny\" Kovalenko" <Alex.Kovalenko@verizon.net>
Subject: Re: Unable to build recent kernels
To: freebsd-current@freebsd.org
Message-ID: <1091672302.698.9.camel@RabbitsDen>
Content-Type: text/plain
On Wed, 2004-08-04 at 10:28, Maxim Konovalov wrote:
> On Wed, 4 Aug 2004, 10:22-0400, Robin P. Blanchard wrote:
>
> >
> > [snip]
> > linking kernel.debug
> > mp_machdep.o(.text+0x705): In function `init_secondary':
> > /usr/src/sys/i386/i386/mp_machdep.c:518: undefined reference to
> > `mem_range_AP_init'
> > *** Error code 1
>
> cat >> your_kernel_config_file <<EOF
> device mem
> device null
> device zero
> EOF
Is this really necessary?
System below cvsup'ed and built on Aug 3 22:47 EST
RabbitsDen# grep mem /sys/i386/conf/AVERATEC
options SYSVSHM #SYSV-style shared memory
RabbitsDen# kldstat
Id Refs Address Size Name
1 25 0xc0400000 473d7c kernel
2 1 0xc0874000 5e9c snd_via8233.ko
3 9 0xc087a000 2b0c8 usb.ko
4 1 0xc08a6000 3b4c ulpt.ko
5 1 0xc08aa000 40b0 ums.ko
6 1 0xc08b2000 3254 powernow_k7.ko
7 1 0xc08b6000 2f90 uplcom.ko
8 3 0xc08b9000 406c ucom.ko
9 1 0xc08be000 38a8 ubsa.ko
10 1 0xc08c2000 bc6c ng_ubt.ko
11 1 0xc08ce000 2d58 dcons_crom.ko
12 2 0xc08d1000 14d20 firewire.ko
13 2 0xc08e6000 39e8 dcons.ko
14 1 0xc08ea000 1ce4 io.ko
15 1 0xc08ec000 2a8c mem.ko
16 1 0xc1e5e000 a000 ntfs.ko
17 1 0xc1eb1000 6000 linprocfs.ko
18 1 0xc1eb7000 1a000 linux.ko
RabbitsDen#
Alexandre "Sunny" Kovalenko.
------------------------------
Message: 28
Date: Wed, 4 Aug 2004 21:49:43 -0500
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: Re: bsd.cpu.mk
To: freebsd-current@freebsd.org
Message-ID: <20040804214943.1dd07a68@dolphin.local.net>
Content-Type: text/plain; charset=US-ASCII
On Thu, 05 Aug 2004 01:40:10 +0000
"Deng XueFeng" <dsnofe@msn.com> wrote:
> Since Gcc 3.4.2 has imported.
> should src/share/mk/bsd.cpu.mk to be updated to support more CPU types
> which gcc[3.4.2] support?
I asked a similar question recently re: adding CPUTYPE=athlon64. I
imagine someone will get around to it soon, at least before 5.3-RELEASE.
--
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
------------------------------
Message: 29
Date: Thu, 5 Aug 2004 04:58:54 +0200 (CEST)
From: Pawel Worach <pawel.worach@telia.com>
Subject: buildworld failure, broken libc?
To: current@freebsd.org
Message-ID: <200408050258.i752ws3I035448@corona.sajd.net>
Hi,
Recently my buildworld fails with:
cc -fpic -DPIC -O -pipe -march=pentium2 -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib
/libc/../../contrib/gdtoa -DINET6 -I/export/data/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/
libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c nslexer.c -o nslexer.So
building static c library
building shared library libc.so.5
/libexec/ld-elf.so.1: ./libc.so.5: invalid file format
/libexec/ld-elf.so.1: ./libc.so.5: invalid file format
/libexec/ld-elf.so.1: ./libc.so.5: invalid file format
ranlib libc.a
/libexec/ld-elf.so.1: ./libc.so.5: invalid file format
*** Error code 1
Using CPUTYPE?=p2
darkstar# file /export/data/obj/usr/src/lib/libc/libc.so.5
/export/data/obj/usr/src/lib/libc/libc.so.5: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), not stripped
Any ideas?
--
Pawel
------------------------------
Message: 30
Date: Thu, 5 Aug 2004 07:16:05 +0400 (MSD)
From: Maxim Konovalov <maxim@macomnet.ru>
Subject: Re: Unable to build recent kernels
To: "Alexandre \"Sunny\" Kovalenko" <Alex.Kovalenko@verizon.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040805071554.C37076@mp2.macomnet.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 4 Aug 2004, 22:18-0400, Alexandre "Sunny" Kovalenko wrote:
> On Wed, 2004-08-04 at 10:28, Maxim Konovalov wrote:
> > On Wed, 4 Aug 2004, 10:22-0400, Robin P. Blanchard wrote:
> >
> > >
> > > [snip]
> > > linking kernel.debug
> > > mp_machdep.o(.text+0x705): In function `init_secondary':
> > > /usr/src/sys/i386/i386/mp_machdep.c:518: undefined reference to
> > > `mem_range_AP_init'
> > > *** Error code 1
> >
> > cat >> your_kernel_config_file <<EOF
> > device mem
> > device null
> > device zero
> > EOF
> Is this really necessary?
> System below cvsup'ed and built on Aug 3 22:47 EST
>
> RabbitsDen# grep mem /sys/i386/conf/AVERATEC
> options SYSVSHM #SYSV-style shared memory
> RabbitsDen# kldstat
> Id Refs Address Size Name
> 1 25 0xc0400000 473d7c kernel
> 2 1 0xc0874000 5e9c snd_via8233.ko
> 3 9 0xc087a000 2b0c8 usb.ko
> 4 1 0xc08a6000 3b4c ulpt.ko
> 5 1 0xc08aa000 40b0 ums.ko
> 6 1 0xc08b2000 3254 powernow_k7.ko
> 7 1 0xc08b6000 2f90 uplcom.ko
> 8 3 0xc08b9000 406c ucom.ko
> 9 1 0xc08be000 38a8 ubsa.ko
> 10 1 0xc08c2000 bc6c ng_ubt.ko
> 11 1 0xc08ce000 2d58 dcons_crom.ko
> 12 2 0xc08d1000 14d20 firewire.ko
> 13 2 0xc08e6000 39e8 dcons.ko
> 14 1 0xc08ea000 1ce4 io.ko
> 15 1 0xc08ec000 2a8c mem.ko
> 16 1 0xc1e5e000 a000 ntfs.ko
> 17 1 0xc1eb1000 6000 linprocfs.ko
> 18 1 0xc1eb7000 1a000 linux.ko
> RabbitsDen#
http://freebsd.rambler.ru/bsdmail/cvs-src_curr/msg00134.html
--
Maxim Konovalov
------------------------------
Message: 31
Date: Wed, 04 Aug 2004 21:22:42 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: USB drivers
To: chris@tellme3times.com
Cc: freebsd-current@freebsd.org
Message-ID: <20040804.212242.112819552.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii
In message: <4110F5AE.6030403@tellme3times.com>
Chris <chris@tellme3times.com> writes:
: First I would like to know if there is a technical reason why two
: different divers cannot attach to the same device. If each driver works
: well independently, what is the reason to prevent the second one from
: attaching? I would assume that if you attempted to use both drivers at
: the same time you would get a device busy error.
Because there's only one pointer.
: Am I misunderstanding something here? I see ulpt: and unlpt: attaching
: to the same device and the choice of which one to use is up to the user
: and the hardware they have. If we have two drivers attach in one case
: why, and where, do we prevent other drivers from attaching if they meet
: the minimum requirements?
You misunerstand what's actually happening. There's no case in the
tree where two drivers are attached, at the same time, to the same
device node. There's only one set of pointers. However, with USB,
there can be reasons why multiple things can attach to the same
driver. The usb code tries to do smart things for devices that have
multiple configurations.
With USB and multi-function devices, here's the code that we use:
/* First try with device specific drivers. */
probe and attach driver with a config # of -1 (usegeneric = 0)
return if successful
/* Next try with interface drivers. */
foreach valid configuration
foreach interface
probe and attach driver
/* Finally try the generic driver. */
probe and attach driver with a config # of -1 (usegeneric = 1)
return if successful
I'm not familiar with the specific instance of ulpt and unlpt.
> What I am looking to accomplish is to attach uscanner and ulpt to an
> EPSON CX5400. While each driver works great by itself I am unable to
> attach both at the same time. I was told on this list that we may not
> attach two drivers to the same device. If this is not correct then I
> would appreciate a little help in attaching existing drivers or writing
> a new one.
You might want to look at the above probing order to see if there
might be multiple configurations that the EPSON implements.
Warner
------------------------------
Message: 32
Date: Wed, 4 Aug 2004 23:28:07 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.org>
Subject: Optimization opportunity: don't recurse callout mutex in
timeout_reset()
To: cperciva@FreeBSD.org
Cc: current@FreeBSD.org
Message-ID:
<Pine.NEB.3.96L.1040804232402.19039I-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
I'm currently walking our somewhat overburdened interrupt path handling
for network packets looking for optimization opportunities. The good (and
bad) news is that there are a lot. I'll be sending out some e-mail with
some of them. Here's the first. I've sent it to Colin but CC'd current@
because Colin has expressed interest in the callout code previously :-).
timeout_reset() is called from the TCP code pretty frequently. I observed
that the callout code path is recursing the callout mutex. Here's the KTR
trace:
12053 0 596 LOCK (spin mutex) callout r = 0 at
./../../kern/kern_timeout.c:488 callout_reset().
12054 0 1056 LOCK (spin mutex) callout r = 1 at
./../../kern/kern_timeout.c:525
12055 0 580 UNLOCK (spin mutex) callout r = 1 at
./../../kern/kern_timeout.c:562
12056 0 17320 UNLOCK (spin mutex) callout r = 0 at
./../../kern/kern_timeout.c:515
The line numbers are off because they're from the rwatson_netperf branch,
which includes tracing and profiling for callouts. The translation to CVS
locations is that :488 is the spin lock acquire in callout_reset(), :525
is the spin lock acquire in _callout_stop_safe(), :562 is the spin lock
drop in _callout_stop_safe(), and :515 is the spin lock drop in
callout_reset().
Eliminating the recursion would be beneficial, if we could.
Thanks!
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
Message: 33
Date: Wed, 04 Aug 2004 21:35:08 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: 5.3-RELEASE TODO
To: steve@sohara.org
Cc: scottl@freebsd.org
Message-ID: <20040804.213508.117635370.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii
In message: <20040804102101.5e0f4023.steve@sohara.org>
"Steve O'Hara-Smith" <steve@sohara.org> writes:
: On Wed, 4 Aug 2004 01:43:54 -0600 (MDT)
: Scott Long <scottl@FreeBSD.org> wrote:
:
: > | Source upgrade | Not done | David Schultz | problematic. The |
: > | incompatibility | | | 5.3 world sources |
: > | | | | must be buildable |
: > | | | | and installable |
: > | | | | from a 5.2.1 |
: > | | | | system. |
:
: Should they not also be buildable and installable from a 4.10 or 4.11 system
: in order to preserve the -stable upgrade route ?
I can verify that buildworld works on 4.10 as of yesterday.
Warner
------------------------------
Message: 34
Date: Wed, 04 Aug 2004 21:39:43 -0600
From: Scott Long <scottl@samsco.org>
Subject: Re: 5.3-RELEASE TODO
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: scottl@freebsd.org
Message-ID: <4111ABFF.9050203@samsco.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
M. Warner Losh wrote:
> In message: <20040804102101.5e0f4023.steve@sohara.org>
> "Steve O'Hara-Smith" <steve@sohara.org> writes:
> : On Wed, 4 Aug 2004 01:43:54 -0600 (MDT)
> : Scott Long <scottl@FreeBSD.org> wrote:
> :
> : > | Source upgrade | Not done | David Schultz | problematic. The |
> : > | incompatibility | | | 5.3 world sources |
> : > | | | | must be buildable |
> : > | | | | and installable |
> : > | | | | from a 5.2.1 |
> : > | | | | system. |
> :
> : Should they not also be buildable and installable from a 4.10 or 4.11 system
> : in order to preserve the -stable upgrade route ?
>
> I can verify that buildworld works on 4.10 as of yesterday.
>
> Warner
>
Does the resulting world actually work? Can you install it via DESTDIR
to another disk and boot off of it?
Scott
------------------------------
Message: 35
Date: Wed, 04 Aug 2004 20:36:42 -0700
From: Colin Percival <colin.percival@wadham.ox.ac.uk>
Subject: Re: Optimization opportunity: don't recurse callout mutex in
timeout_reset()
To: current@freebsd.org
Cc: Robert Watson <rwatson@freebsd.org>
Message-ID: <6.1.0.6.1.20040804203601.03ed4bc0@popserver.sfu.ca>
Content-Type: text/plain; charset=us-ascii
At 20:28 04/08/2004, Robert Watson wrote:
>timeout_reset() is called from the TCP code pretty frequently. I observed
>that the callout code path is recursing the callout mutex. Here's the KTR
>trace:
>...
>Eliminating the recursion would be beneficial, if we could.
I'll take care of this.
Colin Percival
------------------------------
Message: 36
Date: Wed, 04 Aug 2004 21:48:00 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: 5.3-RELEASE TODO
To: scottl@samsco.org
Cc: scottl@freebsd.org
Message-ID: <20040804.214800.41244805.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii
In message: <4111ABFF.9050203@samsco.org>
Scott Long <scottl@samsco.org> writes:
: M. Warner Losh wrote:
: > In message: <20040804102101.5e0f4023.steve@sohara.org>
: > "Steve O'Hara-Smith" <steve@sohara.org> writes:
: > : On Wed, 4 Aug 2004 01:43:54 -0600 (MDT)
: > : Scott Long <scottl@FreeBSD.org> wrote:
: > :
: > : > | Source upgrade | Not done | David Schultz | problematic. The |
: > : > | incompatibility | | | 5.3 world sources |
: > : > | | | | must be buildable |
: > : > | | | | and installable |
: > : > | | | | from a 5.2.1 |
: > : > | | | | system. |
: > :
: > : Should they not also be buildable and installable from a 4.10 or 4.11 system
: > : in order to preserve the -stable upgrade route ?
: >
: > I can verify that buildworld works on 4.10 as of yesterday.
: >
: > Warner
: >
:
: Does the resulting world actually work? Can you install it via DESTDIR
: to another disk and boot off of it?
Sure. I'll give it a shot... Last time I tried it, it worked...
Warner
------------------------------
Message: 37
Date: Wed, 4 Aug 2004 23:56:19 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.org>
Subject: So much entropy it's coming out of our ears?
To: markm@FreeBSD.org
Cc: current@FreeBSD.org
Message-ID:
<Pine.NEB.3.96L.1040804234812.19039J-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
As you know, I'm currently profiling and tracing our inbound and outbound
network stacks, and I've already bothered you with an e-mail about lock
coalescing and avoiding lock thrashing in the Yarrow thread. This is more
of the same sort of thing, and is about per-packet processing costs.
I've observed in tracing that we grab and release two entropy related spin
mutexes for every ethernet packet processed. We do this in the ithread
before the netisr runs, and it directly introduces latency (and cost) in
the network path. Here's a sample trace fragment from receiving an
ethernet packet:
12024 0 1280 ithread_schedule: setrunqueue 27
12025 0 1480 UNLOCK (spin mutex) sched lock r = 0 at ../../../kern/kern_intr.c:414
12026 0 1048 LOCK (spin mutex) entropy harvest r = 0 at ../../../dev/random/randomdev_soft.c:300
12027 0 788 LOCK (spin mutex) entropy harvest buffers r = 0 at ../../../dev/random/randomdev_soft.c:309
12028 0 856 UNLOCK (spin mutex) entropy harvest buffers r = 0 at ../../../dev/random/randomdev_soft.c:317
12029 0 616 UNLOCK (spin mutex) entropy harvest r = 0 at ../../../dev/random/randomdev_soft.c:338
On inspecting random_harvest_internal(), it seems to be the case upfront
that we can do an unlocked read of harvestfifo[origin].count to compare
with RANDOM_FIFO_MAX and avoid any locks in the event that the event fifo
is full. Obviously, you'd need to retest after acquiring the locks in the
event there would appear to be room, but assuming that the fifo will often
be full under load, this would save a useful amount of cost. I haven't
attempted to measure how often the fifo fills, however, so can't currently
reason about whether that will save work in the common case.
Another observation is that we seem to be doing a lot of entropy
gathering. That is to say -- a lot. On a busy system, I have to wonder
whether we're not paying a high cost to gather more entropy than we really
need. I'm not familiar with the Yarrow implementation nor harvesting
bits, but I'd pose this question to you: right now, we appear to pay four
mutex operations per packet if the fifo isn't full. Can we rate limit
entropy gathering in entropy-rich systems to avoid doing so much work? If
we're processing 25,000 or 100,000 packets a second, that's a lot of goup
passing through Yarrow. Is it possible to do lockless rate limiting so
that we gather it only once every few seconds? This might make a big
aggregate difference when processing ethernet packets at a high rate, such
as in bridging/forwarding scenarios, etc.
Thanks!
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
_______________________________________________
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 71, Issue 12
***********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[35m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m