]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoRegen to propogate <prefix>_AUE_<mumble> changes as well as the earlier
John Baldwin [Tue, 15 Aug 2006 17:37:01 +0000 (17:37 +0000)]
Regen to propogate <prefix>_AUE_<mumble> changes as well as the earlier
systrace changes.

18 years agoThis XXX remark was rendered false by rev. 103, which made the
Yaroslav Tykhiy [Tue, 15 Aug 2006 17:29:52 +0000 (17:29 +0000)]
This XXX remark was rendered false by rev. 103, which made the
VLAN_ARRAY case subject to rw locking, too.

18 years ago- Remove unused sysvec variables from various syscalls.conf.
John Baldwin [Tue, 15 Aug 2006 17:25:55 +0000 (17:25 +0000)]
- Remove unused sysvec variables from various syscalls.conf.
- Send the systrace_args files for all the compat ABIs to /dev/null for
  now.  Right now makesyscalls.sh generates a file with a hardcoded
  function name, so it wouldn't work for any of the ABIs anyway.  Probably
  the function name should be configurable via a 'systracename' variable
  and the functions should be stored in a function pointer in the sysvec
  structure.

18 years agoAdd a new set of macros <prefix>_AUE_<syscallname> to sysproto.h that
John Baldwin [Tue, 15 Aug 2006 17:09:32 +0000 (17:09 +0000)]
Add a new set of macros <prefix>_AUE_<syscallname> to sysproto.h that
map to the audit event associated with a specific system call.  For
example, SYS_AUE___semctl would be set to AUE_SEMCTL in sys/sysproto.h.

18 years agoMake it a tad easier to base other encapsulation schemes on this driver
Yaroslav Tykhiy [Tue, 15 Aug 2006 16:56:43 +0000 (16:56 +0000)]
Make it a tad easier to base other encapsulation schemes on this driver
by restoring the ifv_proto field in the vlan softc and putting it to use
this time.  It's a good companion for ifv_encaplen, which has already been
used throughout this driver.

18 years ago- Use NOSTD rather than NOIMPL for nfssvc() to match other syscalls
John Baldwin [Tue, 15 Aug 2006 16:45:41 +0000 (16:45 +0000)]
- Use NOSTD rather than NOIMPL for nfssvc() to match other syscalls
  provided via klds.
- Correct audit identifier for nfssvc().

18 years agoRename 'show lockchain' to 'show locktree' and 'show threadchain' to
John Baldwin [Tue, 15 Aug 2006 16:44:18 +0000 (16:44 +0000)]
Rename 'show lockchain' to 'show locktree' and 'show threadchain' to
'show lockchain'.  The churn is because I'm about to add a new
'show sleepchain' similar to 'show lockchain' for sleep locks (lockmgr and
sx) and 'show threadchain' was a bit ambiguous as both commands show
a chain of thread dependencies, 'lockchain' is for non-sleepable locks
(mtx and rw) and 'sleepchain' is for sleepable locks.

18 years agoOoops we need to include <machine/vmparam.h> to get the definition of
Olivier Houchard [Tue, 15 Aug 2006 16:43:07 +0000 (16:43 +0000)]
Ooops we need to include <machine/vmparam.h> to get the definition of
KERNBASE and VM_MAXUSER_ADDRESS.
Remove the useless include of opt_global.h, as noticed by netchild@ (the one
in arm/elf_trampoline.c is legit, because this file is compiled outside the
kernel, and doesn't use the standard CFLAGS).

18 years agoAdd a 'show lockmgr' command that dumps the relevant details of a lockmgr
John Baldwin [Tue, 15 Aug 2006 16:42:16 +0000 (16:42 +0000)]
Add a 'show lockmgr' command that dumps the relevant details of a lockmgr
lock.

18 years agoSet IFF_DRV_RUNNING on vlan(4) once in vlan_config(),
Yaroslav Tykhiy [Tue, 15 Aug 2006 16:40:27 +0000 (16:40 +0000)]
Set IFF_DRV_RUNNING on vlan(4) once in vlan_config(),
not at many places after each call to vlan_config().
This is consistent with IFF_DRV_RUNNING being unset
in vlan_unconfig().

18 years agoNo need for opt_global.h here
Warner Losh [Tue, 15 Aug 2006 15:48:58 +0000 (15:48 +0000)]
No need for opt_global.h here

18 years agoRemove the include of opt_global.h. It's included globally by a command
Alexander Leidinger [Tue, 15 Aug 2006 15:27:13 +0000 (15:27 +0000)]
Remove the include of opt_global.h. It's included globally by a command
line switch. Other files which may make the same mistake (according to
fxr.watson.org) but aren't fixed in this commit (people with more clue
about those files should fix this):
 - i386/xbox/xbox.c
 - arm/arm/elf_trampoline.c
 - arm/arm/mem.c

Noticed by: cognet

18 years agoDisable some parts of the code on amd64 for now to prevent a panic. A better
Alexander Leidinger [Tue, 15 Aug 2006 15:15:17 +0000 (15:15 +0000)]
Disable some parts of the code on amd64 for now to prevent a panic. A better
fix will come later.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoInitialize the eventhandlers, mutexes and sx locks.
Alexander Leidinger [Tue, 15 Aug 2006 14:58:15 +0000 (14:58 +0000)]
Initialize the eventhandlers, mutexes and sx locks.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoAdd include of opt_global.h, else the futex operations aren't locked on
Alexander Leidinger [Tue, 15 Aug 2006 13:45:39 +0000 (13:45 +0000)]
Add include of opt_global.h, else the futex operations aren't locked on
SMP systems.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoFix printing of integer Kelvins broken in rev. 1.71, which is
Ruslan Ermilov [Tue, 15 Aug 2006 13:32:39 +0000 (13:32 +0000)]
Fix printing of integer Kelvins broken in rev. 1.71, which is
fatal on sizeof(int) != sizeof(long) systems (such as amd64).

MFC after: 1 day

18 years ago- Add the new files to the linux module.
Alexander Leidinger [Tue, 15 Aug 2006 13:01:36 +0000 (13:01 +0000)]
- Add the new files to the linux module.
- Prepare the modules for build on amd64, but don't build them there as
  part of the kernel build yet. The code for the missing symbols on amd64
  isn't committed and it may be solved differently.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoadd autogenerated systrace_args stuff for dtrace
Alexander Leidinger [Tue, 15 Aug 2006 12:56:36 +0000 (12:56 +0000)]
add autogenerated systrace_args stuff for dtrace

18 years agoAdd the linux 2.6.x stuff (not used by default!):
Alexander Leidinger [Tue, 15 Aug 2006 12:54:30 +0000 (12:54 +0000)]
Add the linux 2.6.x stuff (not used by default!):
 - TLS - complete
 - pid/tid mangling - complete
 - thread area - complete
 - futexes - complete with issues
 - clone() extension - complete with some possible minor issues
 - mq*/timer*/clock* stuff - complete but untested and the mq* stuff is
   disabled when not build as part of the kernel with native FreeBSD mq*
   support (module support for this will come later)

Tested with:
 - linux-firefox - works, tested
 - linux-opera - works, tested
 - linux-realplay - doesnt work, issue with futexes
 - linux-skype - doesnt work, issue with futexes
 - linux-rt2-demo - works, tested
 - linux-acroread - doesnt work, unknown reason (coredump) and sometimes
   issue with futexes
 - various unix utilities in linux-base-gentoo3 and linux-base-fc4:
   everything tried worked

On amd64 not everything is supported like on i386, the catchup is planned for
later when the remaining bugs in the new functions are fixed.

To test this new stuff, you have to run
sysctl compat.linux.osrelease=2.6.16
to switch back use
sysctl compat.linux.osrelease=2.4.2

Don't switch while running a linux program, strange things may or may not
happen.

Sponsored by: Google SoC 2006
Submitted by: rdivacky
Some suggestions/help by: jhb, kib, manu@NetBSD.org, netchild

18 years agoregen
Alexander Leidinger [Tue, 15 Aug 2006 12:51:45 +0000 (12:51 +0000)]
regen

18 years agoBecause fuword on AMD64 returns 64bit long integer -1 on fault, clear
David Xu [Tue, 15 Aug 2006 12:45:51 +0000 (12:45 +0000)]
Because fuword on AMD64 returns 64bit long integer -1 on fault, clear
entire %rax to zero instead of only clearing %eax, otherwise it will
leave garbage data in upper 32 bits.

18 years agoAdd new syscalls in the linuxolator (only used when the sysctl
Alexander Leidinger [Tue, 15 Aug 2006 12:28:14 +0000 (12:28 +0000)]
Add new syscalls in the linuxolator (only used when the sysctl
compat.linux.osrelease is changed to "2.6.16" or similar).

On amd64 not everything is supported like on i386, the catchup is planned for
later when the remaining bugs in the new functions are fixed.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years agoAdd some new files needed for linux 2.6.x compatibility.
Alexander Leidinger [Tue, 15 Aug 2006 12:20:59 +0000 (12:20 +0000)]
Add some new files needed for linux 2.6.x compatibility.

Please don't style(9) the NetBSD code, we want to stay in sync. Not imported
on a vendor branch since we need local changes.

Sponsored by: Google SoC 2006
Submitted by: rdivacky
With help from: manu@NetBSD.org
Obtained from: NetBSD (linux_{futex,time}.*)

18 years ago- Add some ASM stuff needed for futexes (linuxolator).
Alexander Leidinger [Tue, 15 Aug 2006 12:14:36 +0000 (12:14 +0000)]
- Add some ASM stuff needed for futexes (linuxolator).

Sponsored by: Google SoC 2006
Submitted by: rdivacky
With help from: kib

18 years ago- Change process_exec function handlers prototype to include struct
Alexander Leidinger [Tue, 15 Aug 2006 12:10:57 +0000 (12:10 +0000)]
- Change process_exec function handlers prototype to include struct
  image_params arg.
- Change struct image_params to include struct sysentvec pointer and
  initialize it.
- Change all consumers of process_exit/process_exec eventhandlers to
  new prototypes (includes splitting up into distinct exec/exit functions).
- Add eventhandler to userret.

Sponsored by: Google SoC 2006
Submitted by: rdivacky
Parts suggested by: jhb (on hackers@)

18 years agoNote Intel ICH8 and ESB2 support.
Christian Brueffer [Tue, 15 Aug 2006 08:27:38 +0000 (08:27 +0000)]
Note Intel ICH8 and ESB2 support.

18 years agoAdd inverted amplifier sense quirks for Compaq Presario B3800
Pyun YongHyeon [Tue, 15 Aug 2006 07:37:41 +0000 (07:37 +0000)]
Add inverted amplifier sense quirks for Compaq Presario B3800

Reported by: Nick Withers < nick AT nickwithers DOT com >
Tested by: Nick Withers < nick AT nickwithers DOT com >
No objection from: ariff
MFC after: 1 week

18 years agoRemove extra '*/' comment close. In code not normally compiled but a bug never the...
Julian Elischer [Tue, 15 Aug 2006 04:56:29 +0000 (04:56 +0000)]
Remove extra '*/' comment close. In code not normally compiled but a bug never the less.

18 years agoDo not include ucom as a dependency line to enable inclusion of the
Warner Losh [Mon, 14 Aug 2006 21:09:37 +0000 (21:09 +0000)]
Do not include ucom as a dependency line to enable inclusion of the
serial line usb drivers that depend on it.  Instead, let the compile
fail rather than silently not including the driver.  This is more in
line with how we handle things like mii.

# I'll note: a better system for coping with missing depends is needed,
# but this dependency is clearly backwards given our current flawed
# depend system.

18 years agoEliminate an unnecessary initialization from trap_pfault() that also
Alan Cox [Mon, 14 Aug 2006 19:53:53 +0000 (19:53 +0000)]
Eliminate an unnecessary initialization from trap_pfault() that also
happens to contain a style error.

18 years agoAdd support for the ICH8 and ESB2 chips, also add a few other missing ICH7 parts.
Søren Schmidt [Mon, 14 Aug 2006 19:39:33 +0000 (19:39 +0000)]
Add support for the ICH8 and ESB2 chips, also add a few other missing ICH7 parts.

HW donated by: JMicron

18 years agoaccess only has 2 esses.
John Baldwin [Mon, 14 Aug 2006 19:29:45 +0000 (19:29 +0000)]
access only has 2 esses.

MFC after: 3 days

18 years agoImprove exception string format.
Takanori Watanabe [Mon, 14 Aug 2006 18:38:56 +0000 (18:38 +0000)]
Improve exception string format.
PR:100671
MFC after: 3 days

18 years agoRemove debug messages on notify handler.
Takanori Watanabe [Mon, 14 Aug 2006 18:24:22 +0000 (18:24 +0000)]
Remove debug messages on notify handler.

PR:100671

18 years agoDocument some files which should not get added here at all.
Alexander Leidinger [Mon, 14 Aug 2006 18:20:36 +0000 (18:20 +0000)]
Document some files which should not get added here at all.

Discussed with: kris, ru

18 years agoSeveral updates:
Christian Brueffer [Mon, 14 Aug 2006 18:04:01 +0000 (18:04 +0000)]
Several updates:

- Added missing file system/network/sound module entries
- Removed obsolete network module entries
- Capitalized (Fast|Gigabit) Ethernet

MFC after: 1 week

18 years agoDon't try to preserve PAT bits in pmap_enter(). We currently on pages that
John Baldwin [Mon, 14 Aug 2006 15:39:41 +0000 (15:39 +0000)]
Don't try to preserve PAT bits in pmap_enter().  We currently on pages that
aren't mapped via pmap_enter() (KVA).  We will eventually support PAT bits
on user pages, but those will require some sort of MI caching mode stored
in the vm_page.

Reviewed by: alc

18 years agoFix alignment of RX bufs DMA map to be realistic. Maybe it works on
Ruslan Ermilov [Mon, 14 Aug 2006 15:35:43 +0000 (15:35 +0000)]
Fix alignment of RX bufs DMA map to be realistic.  Maybe it works on
i386 (I don't know) but on amd64 at hand here, it paniced early at
boot.

(I'm pretty sure that PAGE_SIZE here was miscopied from another place
during porting, where in OpenBSD bus_dmamem_alloc() is used, but there
PAGE_SIZE means completely different thing.)

18 years agoDon't use touch when what is really meant is :> (create an empty file, or
Dag-Erling Smørgrav [Mon, 14 Aug 2006 13:28:53 +0000 (13:28 +0000)]
Don't use touch when what is really meant is :> (create an empty file, or
truncate it if it exists) or :>> (ensure the file exists, but don't change
it if it already does)

Reviewed by: ru
MFC after: 2 weeks

18 years agoHow stupid of me. :>> doesn't change a modification time.
Ruslan Ermilov [Mon, 14 Aug 2006 13:02:01 +0000 (13:02 +0000)]
How stupid of me.  :>> doesn't change a modification time.

18 years ago- Include bsd.own.mk early so existsence check using ${SHAREDIR}
Ruslan Ermilov [Mon, 14 Aug 2006 12:21:57 +0000 (12:21 +0000)]
- Include bsd.own.mk early so existsence check using ${SHAREDIR}
  actually works.
- Touch /usr/share/tmac/man.local if it already exists.

MFC after: 3 days

18 years agoTouch `locale' and `se_locale' if they exist to stop people from
Ruslan Ermilov [Mon, 14 Aug 2006 12:10:54 +0000 (12:10 +0000)]
Touch `locale' and `se_locale' if they exist to stop people from
thinking they are obsolete.

Prodded by: kris
Submitted by: des
MFC after: 3 days

18 years agoChange hardcoded and incorrect number with correct define. This change is a
Gleb Smirnoff [Mon, 14 Aug 2006 09:52:35 +0000 (09:52 +0000)]
Change hardcoded and incorrect number with correct define. This change is a
nop, since E1000_FDX_COLLISION_DISTANCE == E1000_HDX_COLLISION_DISTANCE.

PR: kern/101000
Submitted by: Doug Havir

18 years agoThe BUILDNAME variable need not be specified.
Ruslan Ermilov [Mon, 14 Aug 2006 09:34:32 +0000 (09:34 +0000)]
The BUILDNAME variable need not be specified.

18 years agoImprove wording for -f and -F.
Dima Dorfman [Mon, 14 Aug 2006 08:49:08 +0000 (08:49 +0000)]
Improve wording for -f and -F.

18 years agoImprove the wording. Remove the appositive about strcmp, putting the
Dima Dorfman [Mon, 14 Aug 2006 08:21:27 +0000 (08:21 +0000)]
Improve the wording. Remove the appositive about strcmp, putting the
first sentence back to the way it was. Add a second sentence that
explains the case when strcmp is called.

18 years agoPrint packet loss figures with one decimal place. ping6 already does
Dima Dorfman [Mon, 14 Aug 2006 07:54:17 +0000 (07:54 +0000)]
Print packet loss figures with one decimal place. ping6 already does
this, and OpenBSD and NetBSD pings do it too. This is primarily useful
for comparing low levels of packet loss.

18 years agoIt's not entirely obvious that PGEX_I must be zero if no-execute is neither
Alan Cox [Mon, 14 Aug 2006 06:15:16 +0000 (06:15 +0000)]
It's not entirely obvious that PGEX_I must be zero if no-execute is neither
supported nor enabled.  Just to be sure, verify that no-execute is enabled
before passing VM_PROT_EXECUTE to vm_fault().

Suggested by: tegge@

18 years agoFix 2KLOGIN code to specify *ibits* (not *obits*) so that the
Matt Jacob [Mon, 14 Aug 2006 05:42:46 +0000 (05:42 +0000)]
Fix 2KLOGIN code to specify *ibits* (not *obits*) so that the
options field in register 10 will be deterministic, not random.

Correct the number of input bits for EXECUTE_FIRMWARE 0..1 to
0..2- the 2322 and 24XX cards use mailbox register 2 to specify
whether the f/w being executed is freshly loaded or not.

Correct the number of input bits for {READ,WRITE}_RAM_WORD_EXTENDED
so that register 8 gets picked up.

Fix the indexing and offset for the 2322 f/w download so that it
correctly puts the different code segments where they belong.

Move VERIFY_CHECKSUM to be the 'else' clause to 2322 f/w downloads-
the EXECUTE_FIRMWARE command for 2322 and 24XX cards will tell you
if the f/w checksum is incorrect and VERIFY_CHECKSUM only works for
RISC SRAM address < 64K so you can only do a VERIFY_CHECKSUM on the
first of the 3 f/w segments for the 2322.

Shorten the delay for the continuation mailbox commands- 1ms is
ridiculous (100us is more likely).

All of the more or less is really only for the 2322/6322 cards.

18 years agoThe register offset is within 4K, not 256 bytes, for some QLogic cards.
Matt Jacob [Mon, 14 Aug 2006 05:36:26 +0000 (05:36 +0000)]
The register offset is within 4K, not 256 bytes, for some QLogic cards.

18 years agoThe macro IS_23XX should not mistakenly include 24XX cards.
Matt Jacob [Mon, 14 Aug 2006 05:35:41 +0000 (05:35 +0000)]
The macro IS_23XX should not mistakenly include 24XX cards.

18 years agoMake em(4) handle too many fragmented frame with m_defrag(9).
Pyun YongHyeon [Mon, 14 Aug 2006 02:21:26 +0000 (02:21 +0000)]
Make em(4) handle too many fragmented frame with m_defrag(9).
Previously em(4) requeued the failed mbuf chains from
bus_dmamap_load_mbuf_sg(9) failure to resend it later. However,
bus_dmamap_load_mbuf_sg(9) may never complete its request as the
fragmented frames can have more than EM_MAX_SCATTER segments.
To handle the above EFBIG case, defragment the frame with m_defrag(9)
and free the mbuf chain if it can't deframent the chain due to
resource shortage.

Reviewed by glebius (with improvements)

18 years agoOverhaul Rx path to recover from mbuf cluster allocation failure.
Pyun YongHyeon [Mon, 14 Aug 2006 01:50:54 +0000 (01:50 +0000)]
Overhaul Rx path to recover from mbuf cluster allocation failure.
 o Create one more spare DMA map for Rx handler to recover from
   bus_dmamap_load_mbuf_sg(9) failure.
 o Make sure to update status bit in Rx descriptors even if we failed
   to allocate a new buffer. Previously it resulted in stuck condition
   and em_handle_rxtx task took up all available CPU cycles.
 o Don't blindly unload DMA map. Reuse loaded DMA map if received
   packet has errors. This would speed up Rx processing a bit under
   heavy load as it does not need to reload DMA map in case of error.
   (bus_dmamap_load_mbuf_sg(9) is the most expensive call in driver
    context.)
 o Update if_iqdrops counter if it can't allocate a mbuf cluster.
   With this change it's now possible to see queue dropped packets
   with netstat(1).
 o Update mbuf_cluster_failed counter if fixup code failed to
   allocate mbuf header.
 o Return ENOBUFS instead of ENOMEM in case of Rx fixup failure.
 o Make adapter->lmp NULL in case of Rx fixup failure. Strictly
   specking it's not necessary for correct operation but it makes
   the intention clear.
 o Remove now unused dropped_pkts member in softc.

With these changes em(4) should survive mbuf cluster allocation
failure on Rx path.

Reviewed by: pdeuskar, glebius (with improvements)

18 years agoApply alignment fixup only when programmed frame size is greater than
Pyun YongHyeon [Mon, 14 Aug 2006 00:36:53 +0000 (00:36 +0000)]
Apply alignment fixup only when programmed frame size is greater than
MCLBYTES - ETHER_ALIGN. Previously it applied the alignment fixup code
for oversized frames which would result in reduced performance on
strict alignment archs.

18 years agoMinor white space tweaks.
Robert Watson [Sun, 13 Aug 2006 23:16:59 +0000 (23:16 +0000)]
Minor white space tweaks.

18 years agoCorrectly handle the case in calloc(num, size) where
Colin Percival [Sun, 13 Aug 2006 21:54:47 +0000 (21:54 +0000)]
Correctly handle the case in calloc(num, size) where
  (size_t)(num * size) == 0
but both num and size are nonzero.

Reported by: Ilja van Sprundel
Approved by: jasone
Security: Integer overflow; calloc was allocating 1 byte in
response to a request for a multiple of 2^32 (or 2^64)
bytes instead of returning NULL.

18 years agoDon't push a map on a master server which will fail anyway.
Ruslan Ermilov [Sun, 13 Aug 2006 19:57:32 +0000 (19:57 +0000)]
Don't push a map on a master server which will fail anyway.

PR: bin/72881
Submitted by: thomas (slightly coloured by me)

18 years agoConvert to the standard section 4 SYNOPSIS layout.
Christian Brueffer [Sun, 13 Aug 2006 18:44:18 +0000 (18:44 +0000)]
Convert to the standard section 4 SYNOPSIS layout.

MFC after: 3 days

18 years agoRevert previous commit. Pre-Nehemiah C3 CPUs do have 3DNow!; it doesn't
Dag-Erling Smørgrav [Sun, 13 Aug 2006 08:47:41 +0000 (08:47 +0000)]
Revert previous commit.  Pre-Nehemiah C3 CPUs do have 3DNow!; it doesn't
show up in dmesg because identcpu.c only looks for it on Intel and AMD
processors.

18 years agoUndefine __DATE__ in order to avoid placing a build timestamp into
Colin Percival [Sun, 13 Aug 2006 05:32:10 +0000 (05:32 +0000)]
Undefine __DATE__ in order to avoid placing a build timestamp into
/usr/sbin/{named, lwresd}.  Note that POSIX / C99 doesn't technically
allow __DATE__ to be (un|re)defined, but gcc does what we mean anyway.

Approved by: dougb
MFC after: 1 month

18 years agoReimplement the page's NOSYNC flag as an object-synchronized instead of a
Alan Cox [Sun, 13 Aug 2006 00:11:09 +0000 (00:11 +0000)]
Reimplement the page's NOSYNC flag as an object-synchronized instead of a
page queues-synchronized flag.  Reduce the scope of the page queues lock in
vm_fault() accordingly.

Move vm_fault()'s call to vm_object_set_writeable_dirty() outside of the
scope of the page queues lock.  Reviewed by: tegge
Additionally, eliminate an unnecessary dereference in computing the
argument that is passed to vm_object_set_writeable_dirty().

18 years agoAdd an extension to the UINT & ULONG types. The XINT & XLONG types behave
David E. O'Brien [Sat, 12 Aug 2006 23:33:10 +0000 (23:33 +0000)]
Add an extension to the UINT & ULONG types.  The XINT & XLONG types behave
the same, except sysctl(8) will print out the values in hex.

18 years agoAdd the module version to fix the loading with if_bridge.
Andrew Thompson [Sat, 12 Aug 2006 20:30:58 +0000 (20:30 +0000)]
Add the module version to fix the loading with if_bridge.

Reported by: keramida
Tested by: keramida

18 years agoFix bug preventing the proper displaying of the CTLFLAG_WR option.
David E. O'Brien [Sat, 12 Aug 2006 20:09:33 +0000 (20:09 +0000)]
Fix bug preventing the proper displaying of the CTLFLAG_WR option.

18 years agoReduce the scope of the page queues lock in vm_pgmoveco() now that
Alan Cox [Sat, 12 Aug 2006 19:47:49 +0000 (19:47 +0000)]
Reduce the scope of the page queues lock in vm_pgmoveco() now that
vm_page_sleep_if_busy() no longer requires the page queue lock to be held.

Correctly spell "TRUE".

18 years agoFix "pkg_version -Io" coredump, if some packages have no origin at
Kirill Ponomarev [Sat, 12 Aug 2006 18:32:51 +0000 (18:32 +0000)]
Fix "pkg_version -Io" coredump, if some packages have no origin at
all.

PR: bin/101932
Submitted by: novel, sat
MFC after: 5 days

18 years agoOops. Remove accidentally committed change.
Pawel Jakub Dawidek [Sat, 12 Aug 2006 18:29:49 +0000 (18:29 +0000)]
Oops. Remove accidentally committed change.

Noticed by: marck

18 years agoRestore the "plumb" compatibility command, which was lost
Yaroslav Tykhiy [Sat, 12 Aug 2006 18:07:17 +0000 (18:07 +0000)]
Restore the "plumb" compatibility command, which was lost
due to the recent change by sam@ to clone operations in ifconfig(8).

18 years agoFix incorrect .Xr syntax I introduced in the previous commit.
Yaroslav Tykhiy [Sat, 12 Aug 2006 17:11:43 +0000 (17:11 +0000)]
Fix incorrect .Xr syntax I introduced in the previous commit.

Noticed by: ru
X-MFC with: rev. 1.31

18 years agoHandle MSDOS file systems properly. Before the change file systems
Pawel Jakub Dawidek [Sat, 12 Aug 2006 15:34:15 +0000 (15:34 +0000)]
Handle MSDOS file systems properly. Before the change file systems
created on Windows XP (and others maybe) were not detected.
We detected only those created with newfs_msdos(8).

Submitted by: Tobias Reifenberger <treif@mayn.de>
style(9)ified by: pjd

18 years agoVerify if a label doesn't point to the parent directory.
Pawel Jakub Dawidek [Sat, 12 Aug 2006 15:30:24 +0000 (15:30 +0000)]
Verify if a label doesn't point to the parent directory.

18 years agoThe strstr() function is in the libkern now.
Pawel Jakub Dawidek [Sat, 12 Aug 2006 15:29:12 +0000 (15:29 +0000)]
The strstr() function is in the libkern now.

18 years agoAdd strstr() function to the libkern.
Pawel Jakub Dawidek [Sat, 12 Aug 2006 15:28:39 +0000 (15:28 +0000)]
Add strstr() function to the libkern.

18 years agoI don't know where I got the idea that the VIA C3 has 3DNow!; it doesn't.
Dag-Erling Smørgrav [Sat, 12 Aug 2006 09:46:43 +0000 (09:46 +0000)]
I don't know where I got the idea that the VIA C3 has 3DNow!; it doesn't.
It does have MMX (though MMX support is reputed to be incomplete in early
generations), and later generations have SSE.

MFC after: 2 weeks

18 years agoBatch of changes:
Warner Losh [Sat, 12 Aug 2006 09:06:55 +0000 (09:06 +0000)]
Batch of changes:
o when turning off the socket for a 16-bit card, write 0 to INTR register
  rather than just tying to just clear the rest bit.  this seems to fix
  card insert detection after an eject on TI bridges (ricoh bridges work
  either way, apparently).  This is a MFp4.
o Cope better with TOPIC95 bridges on powerup.  According to NetBSD driver,
  these bridges don't set POWER_STATE, so cope accordingly in our power
  code.  They also need a little extra time to settle, so do that as well.
o It appears that we need to turn on/off one of the clocks to the card
  when we power up/down that socket on a TOPIC97, also from NetBSD.
o TOPIC97 bridges need to specifically enable LV card support.  Unconditionally
  do this in the hopes that all laptops that have these chips support LV
  voltages (they should, since they are required for CardBus).
o TOPIC register name regularization.  Registers specific to models of TOPIC
  are now called out as such.

# I need a machine with a TOPIC95 for testing.

18 years agoThe TOPIC97 and TOPIC100 seem to have a special register in the exca
Warner Losh [Sat, 12 Aug 2006 08:53:54 +0000 (08:53 +0000)]
The TOPIC97 and TOPIC100 seem to have a special register in the exca
space that enables low voltage operation (and maybe other stuff).
Enable the bits in this register so low voltage 16-bit cards may work.

Existance noticed in NetBSD driver.

18 years agoDon't reset Tx threshold value whenever xl_init_locked() is called.
Pyun YongHyeon [Sat, 12 Aug 2006 02:05:13 +0000 (02:05 +0000)]
Don't reset Tx threshold value whenever xl_init_locked() is called.
Instead the threshould is initialized in device attach. Later the
threshold could be increased in Tx underrun error and the new
threshold should be used in xl_init_locked().

18 years agoMake sure to check frames in Tx queue are empty before clearing
Pyun YongHyeon [Sat, 12 Aug 2006 01:55:51 +0000 (01:55 +0000)]
Make sure to check frames in Tx queue are empty before clearing
watchdog timer.

18 years agoDue to the poor PHY documentation from RealTek I can't sure but I
Pyun YongHyeon [Sat, 12 Aug 2006 01:38:49 +0000 (01:38 +0000)]
Due to the poor PHY documentation from RealTek I can't sure but I
think the RealTek PHY needs driver to set RGEPHY_BMCR_AUTOEN bit of
RGEPHY_MII_BMCR register and proper ANAR register setting for manual
media type selection.
This fixes long standing manual media type selection bug in rgephy(4).

Reported by: Jelte Jansen <jelte AT NLnetLabs DOT nl>
Tested by: Jelte Jansen <jelte AT NLnetLabs DOT nl>

18 years agoFix invalid reference of mbuf chains.
Pyun YongHyeon [Sat, 12 Aug 2006 01:30:38 +0000 (01:30 +0000)]
Fix invalid reference of mbuf chains.
Use proper pointer dereference to inform modified mbuf chains to
caller.

While I'm here perform checksum offload setup after loading DMA
maps.

In collaboration with:  glebius

18 years agoFix invalid reference of mbuf chains.
Pyun YongHyeon [Sat, 12 Aug 2006 01:24:37 +0000 (01:24 +0000)]
Fix invalid reference of mbuf chains.
Use proper pointer dereference to inform modified mbuf chains to
caller.

In collaboration with: glebius

18 years agoFix invalid reference of mbuf chains.
Pyun YongHyeon [Sat, 12 Aug 2006 01:19:37 +0000 (01:19 +0000)]
Fix invalid reference of mbuf chains.
Use proper pointer dereference to inform modified mbuf chains to
caller.

While I'm here perform checksum offload setup after loading DMA
maps as m_defrag(9) can return new mbuf chains.

In collaboration with: glebius

18 years agoRemove extraneous trailing \0 in string literal.
Thomas Quinot [Fri, 11 Aug 2006 23:03:16 +0000 (23:03 +0000)]
Remove extraneous trailing \0 in string literal.

MFC after: 2 weeks

18 years agoBefore performing a sodealloc() when pru_attach() fails, assert that
Robert Watson [Fri, 11 Aug 2006 23:03:10 +0000 (23:03 +0000)]
Before performing a sodealloc() when pru_attach() fails, assert that
the socket refcount remains 1, and then drop to 0 before freeing the
socket.

PR: 101763
Reported by: Gleb Kozyrev <gkozyrev at ukr dot net>

18 years agoThe groff_mm(7) locale files are *not* obsolete; they are just
Ruslan Ermilov [Fri, 11 Aug 2006 22:02:16 +0000 (22:02 +0000)]
The groff_mm(7) locale files are *not* obsolete; they are just
not touched during the installation if they already exists.

Noticed by: Dmitry Pryanishnikov

18 years ago(sm_mon_1_svc): Fix debugging output: when establising a monitoring
Thomas Quinot [Fri, 11 Aug 2006 21:44:53 +0000 (21:44 +0000)]
(sm_mon_1_svc): Fix debugging output: when establising a monitoring
 request, correctly report the location (usually localhost) to which
 a callback will be made when a notification is received for the
 monitored host. Previsouly, the name of the monitored host was
 reported instead.

MFC after: 2 weeks

18 years agoUnbreak nForce4 SATA support.
Søren Schmidt [Fri, 11 Aug 2006 21:19:29 +0000 (21:19 +0000)]
Unbreak nForce4 SATA support.
Hopefully I dont break something else this time.....

18 years agoFixes an edge case bug in timewait handling where ticks rolling over causing
Mohan Srinivasan [Fri, 11 Aug 2006 21:15:23 +0000 (21:15 +0000)]
Fixes an edge case bug in timewait handling where ticks rolling over causing
the timewait expiry to be exactly 0 corrupts the timewait queues (and that entry).
Reviewed by: silby

18 years agoFirst pass at allowing memory to be mapped using cache modes other than
John Baldwin [Fri, 11 Aug 2006 19:22:57 +0000 (19:22 +0000)]
First pass at allowing memory to be mapped using cache modes other than
WB (write-back) on x86 via control bits in PTEs and PDEs (including making
use of the PAT MSR).  Changes include:
- A new pmap_mapdev_attr() function for amd64 and i386 which takes an
  additional parameter (relative to pmap_mapdev()) specifying the cache
  mode for this mapping.  Note that on amd64 only WB mappings are done with
  the direct map, all other modes result in a private mapping.
- pmap_mapdev() on i386 and amd64 now defaults to using UC (uncached)
  mappings rather than WB.  Previously we relied on the BIOS setting up
  MTRR's to enforce memio regions being treated as UC.  This might make
  hw.cbb_start_memory unnecessary in some cases now for example.
- A new pmap_mapbios()/pmap_unmapbios() API has been added to allow places
  that used pmap_mapdev() to map non-device memory (such as ACPI tables)
  to do so using WB as before.
- A new pmap_change_attr() function for amd64 and i386 that changes the
  caching mode for a range of KVA.

Reviewed by: alc

18 years agoExplicitly set v3 mode only when it is requested. Don't bother otherwise.
Jung-uk Kim [Fri, 11 Aug 2006 19:16:50 +0000 (19:16 +0000)]
Explicitly set v3 mode only when it is requested.  Don't bother otherwise.

18 years agoBefore using byte offset for IV creation, covert it to little endian.
Pawel Jakub Dawidek [Fri, 11 Aug 2006 19:09:12 +0000 (19:09 +0000)]
Before using byte offset for IV creation, covert it to little endian.
This way one will be able to use provider encrypted on eg. i386 on
eg. sparc64. This doesn't really buy us much today, because UFS isn't
endian agnostic.

We retain backward compatibility by setting G_ELI_FLAG_NATIVE_BYTE_ORDER
flag on devices with version number less than 2 and not converting the
offset.

18 years agoForgot to bump version number after G_ELI_FLAG_READONLY flag addition.
Pawel Jakub Dawidek [Fri, 11 Aug 2006 18:39:58 +0000 (18:39 +0000)]
Forgot to bump version number after G_ELI_FLAG_READONLY flag addition.

18 years agoReintroduce CSTD, which allows a Makefile to specify the precise dialect
Dag-Erling Smørgrav [Fri, 11 Aug 2006 17:28:59 +0000 (17:28 +0000)]
Reintroduce CSTD, which allows a Makefile to specify the precise dialect
of C in which the program or library is written.

Note that this is *not* intended to be used across the whole tree.  It
is intended to be used for individual libraries or programs which use
specific language features which the compiler must know about in order
to produce correct warnings at high WARNS levels.

MFC after: 1 month

18 years agoEnsure that the page's new field for object-synchronized flags is always
Alan Cox [Fri, 11 Aug 2006 17:18:58 +0000 (17:18 +0000)]
Ensure that the page's new field for object-synchronized flags is always
initialized to zero.

Call vm_page_sleep_if_busy() instead of duplicating its implementation in
vm_page_grab().

18 years agoCosmetic: fix indentation.
Dag-Erling Smørgrav [Fri, 11 Aug 2006 17:17:14 +0000 (17:17 +0000)]
Cosmetic: fix indentation.

18 years agoRaise the quality of the HPET timer to 2000 so it will be the preferred
Dag-Erling Smørgrav [Fri, 11 Aug 2006 17:12:16 +0000 (17:12 +0000)]
Raise the quality of the HPET timer to 2000 so it will be the preferred
choice on systems which support it.

No objection by: phk

18 years agoOptionally pad outgoing frames to the minimum of 60 bytes (excl. FCS)
Yaroslav Tykhiy [Fri, 11 Aug 2006 17:09:27 +0000 (17:09 +0000)]
Optionally pad outgoing frames to the minimum of 60 bytes (excl. FCS)
before tagging them.  This can help to work around brain-damage in some
switches that fail to pad a frame after untagging it if its length drops
below the minimum.  This option is blessed by IEEE Std 802.1Q (2003 Ed.),
paragraph C.4.4.3.b.  It's controlled by sysctl net.link.vlan.soft_pad.

Idea by: az
MFC after: 1 week

18 years agoAdditional debugging stuff I had in my tree.
Dag-Erling Smørgrav [Fri, 11 Aug 2006 17:03:33 +0000 (17:03 +0000)]
Additional debugging stuff I had in my tree.

18 years agoSpell 'connection options' correctly.
Giorgos Keramidas [Fri, 11 Aug 2006 12:35:22 +0000 (12:35 +0000)]
Spell 'connection options' correctly.

Submitted by:   Leonidas Tsampros <ltsampros@upnet.gr>

18 years ago- em(4) updated to version 6.1.4
Christian Brueffer [Fri, 11 Aug 2006 12:32:43 +0000 (12:32 +0000)]
- em(4) updated to version 6.1.4
- stge(4) merged