]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoThe r184588 changed the layout of struct export_args, causing an ABI
kib [Sun, 10 Oct 2010 07:05:47 +0000 (07:05 +0000)]
The r184588 changed the layout of struct export_args, causing an ABI
breakage for old mount(2) syscall, since most struct <filesystem>_args
embed export_args. The mount(2) is supposed to provide ABI
compatibility for pre-nmount mount(8) binaries, so restore ABI to
pre-r184588.

Requested and reviewed by: bde
MFC after:    2 weeks

13 years agoReplace strlen(_PATH_DEV) with sizeof(_PATH_DEV) - 1.
ae [Sat, 9 Oct 2010 20:20:27 +0000 (20:20 +0000)]
Replace strlen(_PATH_DEV) with sizeof(_PATH_DEV) - 1.

Suggested by: kib
Approved by: kib (mentor)
MFC after: 5 days

13 years agomdoc: drop redundant .Pp calls, kill EOL whitespace
uqs [Sat, 9 Oct 2010 11:43:00 +0000 (11:43 +0000)]
mdoc: drop redundant .Pp calls, kill EOL whitespace

13 years agoadd kmem_map_free sysctl: query largest contiguous free range in kmem_map
avg [Sat, 9 Oct 2010 09:03:17 +0000 (09:03 +0000)]
add kmem_map_free sysctl: query largest contiguous free range in kmem_map

Suggested by: alc
Reviewed by: alc
MFC after: 1 week

13 years agoInitial patches to install images...
imp [Sat, 9 Oct 2010 08:52:09 +0000 (08:52 +0000)]
Initial patches to install images...

PR: 150921

13 years agoFix typo: thanks Kris for pointing this out.
imp [Sat, 9 Oct 2010 08:39:14 +0000 (08:39 +0000)]
Fix typo: thanks Kris for pointing this out.

13 years agopanic_cpu variable should be volatile
avg [Sat, 9 Oct 2010 08:07:49 +0000 (08:07 +0000)]
panic_cpu variable should be volatile

This is to prevent caching of its value in a register when it is checked
and modified by multiple CPUs in parallel.
Also, move the variable  into the scope of the only function that uses it.

Reviewed by: jhb
Hint from: mdf
MFC after: 1 week

13 years agoEnable softupdate + journals support.
imp [Sat, 9 Oct 2010 07:45:24 +0000 (07:45 +0000)]
Enable softupdate + journals support.

PR: 150862
Submitted by: Kris Moore

13 years agoAllow the kernel to generate more spacy things and still have devd
imp [Sat, 9 Oct 2010 07:29:13 +0000 (07:29 +0000)]
Allow the kernel to generate more spacy things and still have devd
cope.  Skip multiple spaces in a few contexts.

PR: 96854
Submitted by: Shin'ya Kumabuchi
MFC after: 1 week

13 years agoRemove the manpath.config entry now that it's no longer installed.
gordon [Sat, 9 Oct 2010 05:57:23 +0000 (05:57 +0000)]
Remove the manpath.config entry now that it's no longer installed.

Submitted by: b. f.
Approved by: wes (mentor implicit)

13 years agoAdd entries to remove manpath.config from etc and the examples directory.
gordon [Sat, 9 Oct 2010 05:50:04 +0000 (05:50 +0000)]
Add entries to remove manpath.config from etc and the examples directory.

Approved by: wes (mentor implicit)

13 years agoAdd -D (deterministic) option to ar.
kientzle [Sat, 9 Oct 2010 05:31:08 +0000 (05:31 +0000)]
Add -D (deterministic) option to ar.
When set, it forces all timestamps and owners to zero and
modes to 0644.  Useful for producing libraries that are
bitwise identical across multiple build runs.

Submitted by: Erik Cederstrand
Reviewed by: Kai Wang

13 years agoCreate a global thread hash table to speed up thread lookup, use
davidxu [Sat, 9 Oct 2010 02:50:23 +0000 (02:50 +0000)]
Create a global thread hash table to speed up thread lookup, use
rwlock to protect the table. In old code, thread lookup is done with
process lock held, to find a thread, kernel has to iterate through
process and thread list, this is quite inefficient.
With this change, test shows in extreme case performance is
dramatically improved.

Earlier patch was reviewed by: jhb, julian

13 years agoChange FAPPEND to IO_APPEND as this is a ioflag and not a fflag.
mm [Fri, 8 Oct 2010 23:01:38 +0000 (23:01 +0000)]
Change FAPPEND to IO_APPEND as this is a ioflag and not a fflag.
This corrects writing to append-only files on ZFS.

PR: kern/149495 [1], kern/151082 [2]
Submitted by: Daniel Zhelev <daniel@zhelev.biz> [1], Michael Naef <cal@linu.gs> [2]
Approved by: delphij (mentor)
MFC after: 1 week

13 years agoDocument net.link.lagg.failover_rx_all.
delphij [Fri, 8 Oct 2010 21:29:48 +0000 (21:29 +0000)]
Document net.link.lagg.failover_rx_all.

MFC after: 1 week

13 years agoRemove superfluous cast in usr.bin/netstat/sctp.c.
dim [Fri, 8 Oct 2010 20:40:05 +0000 (20:40 +0000)]
Remove superfluous cast in usr.bin/netstat/sctp.c.

Found by: clang
Submitted by: Norberto Lopes, nlopes dot ml at gmail dot com
Approved by: rpaulo (mentor)

13 years agoDon't let the "available"/"not available" logs flap quite so badly. In the
markm [Fri, 8 Oct 2010 20:17:17 +0000 (20:17 +0000)]
Don't let the "available"/"not available" logs flap quite so badly. In the
case of a multi-interfaced host, sub-second flapping can fill up the logs
too quickly. This fixes that.

13 years agoExtend the "example" section a bit, for other mailers.
markm [Fri, 8 Oct 2010 20:13:12 +0000 (20:13 +0000)]
Extend the "example" section a bit, for other mailers.

13 years agoDo not blindly UP the interface when interface's MTU is changed. If
yongari [Fri, 8 Oct 2010 17:58:07 +0000 (17:58 +0000)]
Do not blindly UP the interface when interface's MTU is changed. If
driver is not running there is no need to up the interface. While
I'm here hold driver lock before modifying MTU as it is referenced
in RX handler.

13 years agoDon't blow away /bin/rmail symlink if we are keeping mailwrapper.
markm [Fri, 8 Oct 2010 17:42:09 +0000 (17:42 +0000)]
Don't blow away /bin/rmail symlink if we are keeping mailwrapper.
Mailwrapper can provide a perfectly good rmail with other
mailers.

13 years agorm(1): clarify that -P works only when blocks are updated in-place
uqs [Fri, 8 Oct 2010 15:20:20 +0000 (15:20 +0000)]
rm(1): clarify that -P works only when blocks are updated in-place

Suggested by: pjd, ivoras, arundel

13 years agoWe can't zero out ggio request, as we have some fields in there we initialize
pjd [Fri, 8 Oct 2010 15:05:39 +0000 (15:05 +0000)]
We can't zero out ggio request, as we have some fields in there we initialize
once during start-up.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 3 days

13 years agoWe close the event socketpair early in the mainloop to prevent spaming with
pjd [Fri, 8 Oct 2010 15:02:15 +0000 (15:02 +0000)]
We close the event socketpair early in the mainloop to prevent spaming with
error messages, so when we clean up after child process, we have to check if
the event socketpair is still there.

Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 3 days

13 years agoIn the replacement text of the __bswapN_const() macros cast the argument
marius [Fri, 8 Oct 2010 14:59:45 +0000 (14:59 +0000)]
In the replacement text of the __bswapN_const() macros cast the argument
to the expected type so they work like the corresponding __bswapN_var()
functions and the compiler doesn't complain when arguments of different
width are passed.

13 years agoJust use the sparc64 version of this header rather than duplicating it.
marius [Fri, 8 Oct 2010 14:50:58 +0000 (14:50 +0000)]
Just use the sparc64 version of this header rather than duplicating it.

13 years agoClean up tools in tools/tools/netrate.
pluknet [Fri, 8 Oct 2010 14:31:49 +0000 (14:31 +0000)]
Clean up tools in tools/tools/netrate.

- tcpconnect incorrectly uses err() in usage() with errx() semantics [1]
  That produces dirty error message:
  tcpconnect: usage: tcpconnect [ip]: Unknown error: 0
- 64-bit aware fixes in printf() usage [2]
o   netrate/juggle: time_t has arch-dependent size
o   netrate/tcpconnect: don't assume %ll has always 64bit.

PR: 146088 [1], 146086 [2] (modified)
Approved by: kib (mentor)
MFC after: 1 week

13 years agomdoc: drop redundant .Pp and .LP calls
uqs [Fri, 8 Oct 2010 12:40:16 +0000 (12:40 +0000)]
mdoc: drop redundant .Pp and .LP calls

They have no effect when coming in pairs, or before .Bl/.Bd

13 years agomdoc: fix manlint warnings by unbreaking mdoc syntax
uqs [Fri, 8 Oct 2010 12:39:49 +0000 (12:39 +0000)]
mdoc: fix manlint warnings by unbreaking mdoc syntax

13 years agoEnsure that a make from sys/boot does not pick up include files from
pho [Fri, 8 Oct 2010 10:27:52 +0000 (10:27 +0000)]
Ensure that a make from sys/boot does not pick up include files from
/usr/include.

Discussed with:  kib

13 years agoImport ee 1.5.2 into HEAD.
ed [Fri, 8 Oct 2010 09:43:06 +0000 (09:43 +0000)]
Import ee 1.5.2 into HEAD.

PR: bin/145921
MFC after: 2 weeks

13 years agoRegen.
kib [Fri, 8 Oct 2010 07:19:05 +0000 (07:19 +0000)]
Regen.

13 years agoFix typo.
kib [Fri, 8 Oct 2010 07:18:44 +0000 (07:18 +0000)]
Fix typo.

Submitted by: arundel
MFC after: 3 days

13 years agoAdd a comment describing the reason for calling cache_purge(fvp).
kib [Fri, 8 Oct 2010 07:17:22 +0000 (07:17 +0000)]
Add a comment describing the reason for calling cache_purge(fvp).

Requested by: danfe
MFC after: 6 days

13 years agoOops, don't remove -fexceptions flag.
davidxu [Fri, 8 Oct 2010 01:53:33 +0000 (01:53 +0000)]
Oops, don't remove -fexceptions flag.

13 years agounwind.h was imported, gcc directory is no longer needed.
davidxu [Fri, 8 Oct 2010 01:47:14 +0000 (01:47 +0000)]
unwind.h was imported, gcc directory is no longer needed.

13 years agoIn r207768 I silenced a console warning from rum(4). There was legitimate
emaste [Fri, 8 Oct 2010 01:03:30 +0000 (01:03 +0000)]
In r207768 I silenced a console warning from rum(4).  There was legitimate
opposition to the change, since really we need to implement missing
functionality in drivers or the 802.3 layer.

For now, restore a reminder message for a missing rum_update_mcast, but
print it only once.

13 years agoMake a thread's address available via the kern proc sysctl, just like the
emaste [Fri, 8 Oct 2010 00:44:53 +0000 (00:44 +0000)]
Make a thread's address available via the kern proc sysctl, just like the
process address.

Add "tdaddr" keyword to ps(1) to display this thread address.

Distilled from Sandvine's patch set by Mark Johnston.

13 years agoTurn on serialization of task management commands going down to the
ken [Thu, 7 Oct 2010 21:56:10 +0000 (21:56 +0000)]
Turn on serialization of task management commands going down to the
controller, but make it optional.

After a problem report from Andrew Boyer, it looks like the LSI
chip may have issues (the watchdog timer fired) if too many aborts
are sent down to the chip at the same time.  We know that task
management commands are serialized, and although the manual doesn't
say it, it may be a good idea to just send one at a time.

But, since I'm not certain that this is necessary, add a tunable
and sysctl variable (hw.mps.%d.allow_multiple_tm_cmds) to control
the driver's behavior.

mps.c: Add support for the sysctl and tunable, and add a
comment about the possible return values to
mps_map_command().

mps_sas.c: Run all task management commands through two new
routines, mpssas_issue_tm_request() and
mpssas_complete_tm_request().

This allows us to optionally serialize task
management commands.  Also, change things so that
the response to a task management command always
comes back through the callback.  (Before it could
come via the callback or the return value.)

mpsvar.h: Add softc variables for the list of active task
management commands, the number of active commands,
and whether we should allow multiple active task
management commands.  Add an active command flag.

mps.4: Describe the new sysctl/loader tunable variable.

Sponsored by: Spectra Logic Corporation

13 years agoUpgrade Clang and LLVM to the 2.8 release. See here for release notes:
dim [Thu, 7 Oct 2010 20:31:07 +0000 (20:31 +0000)]
Upgrade Clang and LLVM to the 2.8 release.  See here for release notes:
http://llvm.org/releases/2.8/docs/ReleaseNotes.html

Approved by: rpaulo (mentor)

13 years agoClear ggate structures before using them. We don't initialize all the field
pjd [Thu, 7 Oct 2010 18:23:28 +0000 (18:23 +0000)]
Clear ggate structures before using them. We don't initialize all the field
and there can be some garbage from the stack.

MFC after: 1 week

13 years agoAdd myself (jonathan@) to committers-src.dot
jonathan [Thu, 7 Oct 2010 18:20:51 +0000 (18:20 +0000)]
Add myself (jonathan@) to committers-src.dot

Reviewed by: rwatson

13 years agoLog error message when we fail to destroy ggate provider.
pjd [Thu, 7 Oct 2010 18:20:16 +0000 (18:20 +0000)]
Log error message when we fail to destroy ggate provider.

MFC after: 3 days

13 years agoStart the guard thread first, so we can handle signals from the very begining.
pjd [Thu, 7 Oct 2010 18:19:02 +0000 (18:19 +0000)]
Start the guard thread first, so we can handle signals from the very begining.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 1 week

13 years agoDon't close local component on exit as we can hang waiting on g_waitidle.
pjd [Thu, 7 Oct 2010 18:16:22 +0000 (18:16 +0000)]
Don't close local component on exit as we can hang waiting on g_waitidle.
I'm unable to reproduce the race described in comment anymore and also the
comment is incorrect - localfd represents local component from configuration
file, eg. /dev/da0 and not HAST provider.

Reported by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 1 week

13 years agoopensolaris_kmem kmem_size(): report lesser of vm_kmem_size and available
avg [Thu, 7 Oct 2010 18:16:14 +0000 (18:16 +0000)]
opensolaris_kmem kmem_size(): report lesser of vm_kmem_size and available
physical memory

This is needed to correctly autotune ZFS ARC size when vm_kmem_size is
set to value larger than available physical memory.

MFC after: 2 weeks

13 years agovm.kmem_map_size: a sysctl to query current kmem_map->size
avg [Thu, 7 Oct 2010 18:11:33 +0000 (18:11 +0000)]
vm.kmem_map_size: a sysctl to query current kmem_map->size

Based on a patch from Sandvine Incorporated via emaste.

Reviewed by: emaste
MFC after: 1 week

13 years agoCheck the device name validity on device registration.
jh [Thu, 7 Oct 2010 18:00:55 +0000 (18:00 +0000)]
Check the device name validity on device registration.

A new function prep_devname() sanitizes a device name by removing
leading and redundant sequential slashes. The function returns an error
for names which already exist or are considered invalid.

A new flag MAKEDEV_CHECKNAME for make_dev_p(9) and make_dev_credf(9)
indicates that the caller is prepared to handle an error related to the
device name. An invalid name triggers a panic if the flag is not
specified.

Document the MAKEDEV_CHECKNAME flag in the make_dev(9) manual page.

Idea from: kib
Reviewed by: kib

13 years agoAdd a note on the removal of copyright strings from login(1) and sshd(8).
emaste [Thu, 7 Oct 2010 17:26:22 +0000 (17:26 +0000)]
Add a note on the removal of copyright strings from login(1) and sshd(8).

13 years agoFix a long standing bug which regarded some revisions of controller
yongari [Thu, 7 Oct 2010 17:14:50 +0000 (17:14 +0000)]
Fix a long standing bug which regarded some revisions of controller
as 5788. This caused BGE_MISC_LOCAL_CTL register is used to
generate link state change interrupt for non-5788 controllers. The
interrupt handler may or may not detect link state attention as
status block wouldn't be updated when an interrupt was generated
with BGE_MISC_LOCAL_CTL register. All controllers except 5700 and
5788 should use host coalescing mode register to trigger an
interrupt.

13 years agoCosmetic change:
pluknet [Thu, 7 Oct 2010 12:58:09 +0000 (12:58 +0000)]
Cosmetic change:
Wrap lines for SiS and Promise entries to 80 columns.
This doesn't change appearance in page rendered with troff or man.cgi.

PR: docs/146195
Approved by: kib (mentor)
MFC after: 1 week

13 years agoAdd options I missed in the additionnal AT91 support commits.
cognet [Thu, 7 Oct 2010 09:30:35 +0000 (09:30 +0000)]
Add options I missed in the additionnal AT91 support commits.

Submitted by: Greg Ansley

13 years agoAdd ID for Vodafone (ZTE) Mobile Broadband K3565-Z modem.
mav [Thu, 7 Oct 2010 09:07:48 +0000 (09:07 +0000)]
Add ID for Vodafone (ZTE) Mobile Broadband K3565-Z modem.

Reviewed by: hselasky

13 years agoThe msdosfs lookup is case insensitive. Several aliases may be inserted for
kib [Thu, 7 Oct 2010 08:36:02 +0000 (08:36 +0000)]
The msdosfs lookup is case insensitive. Several aliases may be inserted for
a single directory entry. As a consequnce, name cache purge done by lookup
for fvp when DELETE op for namei is specified, might be not enough to
expunge all namecache entries that were installed for this direntry.

Explicitely call cache_purge(fvp) when msdosfs_rename() succeeded.

PR: kern/93634
MFC after: 1 week

13 years agoAdd the ability to display specific manual pages if passed on the
gordon [Thu, 7 Oct 2010 06:34:47 +0000 (06:34 +0000)]
Add the ability to display specific manual pages if passed on the
commandline. This mirrors the old (undocumented) GNU man functionality.
Also document this feature in the implementation notes section of
the manpage.

Submitted by: arundel
Approved by: wes (mentor implicit)

13 years agoAdd the QILA9G20 config files.
cognet [Wed, 6 Oct 2010 22:41:32 +0000 (22:41 +0000)]
Add the QILA9G20 config files.

Submitted by: Greg Ansley

13 years agoAdd support for the AT91SAM9260
cognet [Wed, 6 Oct 2010 22:40:27 +0000 (22:40 +0000)]
Add support for the AT91SAM9260

Submitted by: Greg Ansley

13 years agoAdd the AT91SAM9G20EK config files.
cognet [Wed, 6 Oct 2010 22:32:31 +0000 (22:32 +0000)]
Add the AT91SAM9G20EK config files.

Submitted by: Greg Ansley

13 years agoif_ate.c:
cognet [Wed, 6 Oct 2010 22:25:21 +0000 (22:25 +0000)]
if_ate.c:

    * Support for sam9 "EMAC" controller.
    * Support for rmii interface to phy.

at91.c & at91sam9.c:

    * Eliminate separate at91sam9.c file.
    * Add new devices to at91sam9_devs table.

at91_machdep.c & at at91sam9_machdep.c:

    * Automatic chip type determination.
    * Remove compile time chip dependencies.
    * Eliminate separate at91sam9_machdep.c file.

at91_pmc.c:

    * Corrected support for all of the sam926? and sam9g20 chips.
    * Remove compile time chip dependencies.

My apologies to Greg for taking so long to take care of it.

13 years agoAdd more comments to rings supported by the controller. Different
yongari [Wed, 6 Oct 2010 21:23:57 +0000 (21:23 +0000)]
Add more comments to rings supported by the controller. Different
versions of controller support different number of ring control
blocks such that adjust code a bit to access known number of
send/receive ring control blocks. Previously bge(4) blindly
accessed 16 send/receive RCBs. Also move initializing standard
receive producer ring producer index, jumbo receive producer ring
producer index and mini receive producer ring producer index to
the end of each receive producer ring initialization.

Do not assume mini receive producer ring is available only when
controller has jumbo frame capability, instead explicitly check
ASIC version BCM5700 to disable mini receive producer ring.

Additionally always enable send ring 0 regardless of controller
versions. Previously bge(4) didn't enable send ring 0 if controller
is BGE_IS_5705_PLUS. Becase bge(4) need 1 send ring to send frames
at least, I have no idea how it would have worked so far.

Submitted by: davidch

13 years agoRemove hack needed by 6.x machines and older machines to run newer
imp [Wed, 6 Oct 2010 20:54:17 +0000 (20:54 +0000)]
Remove hack needed by 6.x machines and older machines to run newer
makes on FreeBSD/pc98.  The need for this hack has passed.  If you are
one of the rare people that may need this, then you should setenv
MACHINE=pc98 as a workaround.

13 years agoUse more portable errx instead of errc. The latter doesn't buy us
imp [Wed, 6 Oct 2010 20:49:45 +0000 (20:49 +0000)]
Use more portable errx instead of errc.  The latter doesn't buy us
anyting anyway, since the error EAGAIN's error message doesn't add
anything to the error strings that are there now.

13 years agoApply r207674 from the clangbsd project branch:
dim [Wed, 6 Oct 2010 20:35:07 +0000 (20:35 +0000)]
Apply r207674 from the clangbsd project branch:

Make "clang -print-multi-os-directory" return "." on amd64, matching
gcc's behaviour.  This is needed because some ports use the option to
determine the installation directory for their libraries.

Requested by: kwm
Approved by: rpaulo (mentor)

13 years agoSimplify timeout check in futex_wait() using itimerfix() and return error
jkim [Wed, 6 Oct 2010 18:51:22 +0000 (18:51 +0000)]
Simplify timeout check in futex_wait() using itimerfix() and return error
if the given timeout is invalid.  Consistently use int type for timeout and
correct a format string in futex_sleep().

13 years agoAdd the capability to read the complete contents of the NVRAM via sysctl
ambrisko [Wed, 6 Oct 2010 18:36:50 +0000 (18:36 +0000)]
Add the capability to read the complete contents of the NVRAM via sysctl
dev.bce.<unit>.nvram_dump
Add the capability to write the complete contents of the NVRAM via sysctl
dev.bce.<unit>.nvram_write
These are only available if the kernel option BCE_DEBUG is enabled.
The nvram_write sysctl also requires the kernel option
BCE_NVRAM_WRITE_SUPPORT to be enabled.  These are to be used at your
own caution.  Since the MAC addresses are stored in the NVRAM, if you
dump one NIC and restore it on another NIC the destination NIC's
MAC addresses will not be preserved.  A tool can be made using these
sysctl's to manage the on-chip firmware.

Reviewed by: davidch, yongari

13 years agoUse a defined FreeBSD version.
delphij [Wed, 6 Oct 2010 18:20:39 +0000 (18:20 +0000)]
Use a defined FreeBSD version.

MFC after: 3 days

13 years agoAdd definition for FreeBSD 7.4, which will be used in a manual page change.
delphij [Wed, 6 Oct 2010 18:20:07 +0000 (18:20 +0000)]
Add definition for FreeBSD 7.4, which will be used in a manual page change.

Reviewed by: ru
MFC after: 3 days

13 years agoRemove bge_tx_buf_ratio, unused member of softc.
yongari [Wed, 6 Oct 2010 17:47:13 +0000 (17:47 +0000)]
Remove bge_tx_buf_ratio, unused member of softc.

13 years agoOverhaul MII register access routine and remove unnecessary
yongari [Wed, 6 Oct 2010 17:35:27 +0000 (17:35 +0000)]
Overhaul MII register access routine and remove unnecessary
BGE_MI_MODE register accesses. Previously bge(4) used to read
BGE_MI_MODE register to detect whether it needs to disable
autopolling feature or not. Because we don't touch autopolling in
other part of driver there is no reason to read BGE_MI_MODE
register given that we know default value in advance. In order to
achieve the goal, check whether the controller has CPMU(Central
Power Mangement Unit) capability. If controller has CPMU feature,
use 500KHz MII management interface(mdio/mdc) frequency regardless
core clock frequency. Otherwise use default MII clock. While I'm
here, add CPMU register definition.

In bge_miibus_readreg(), rearrange code a bit and remove goto
statement. In bge_miibus_writereg(), make sure to restore
autopolling even if MII write failed. The delay time inserted after
accessing BGE_MI_MODE register increased from 40us to 80us.

The default PHY address is now stored in softc. All PHYs supported
by bge(4) currently uses PHY address 1 but it will be changed when
we add newer controllers. This change will make it easier to change
default PHY address depending on PHY models.

Submitted by: davidch

13 years agoPCI fix for XLR C revision chips, limit DMA address to the first 2GB
jchandra [Wed, 6 Oct 2010 15:37:55 +0000 (15:37 +0000)]
PCI fix for XLR C revision chips, limit DMA address to the first 2GB
physical address.  Adds a dma tag to the XLR/XLS pci bus with the
lowaddr if the CPU happens to be a XLR C rev.

Submitted by: Sreekanth M. S. (kanthms at netlogicmicro dot com))

13 years agoFix wrong slashes in a previous commit.
pluknet [Wed, 6 Oct 2010 15:01:37 +0000 (15:01 +0000)]
Fix wrong slashes in a previous commit.

Approved by: avg (mentor)

13 years agoAdd myself to calendar.freebsd and committers-src.dot.
pluknet [Wed, 6 Oct 2010 14:43:37 +0000 (14:43 +0000)]
Add myself to calendar.freebsd and committers-src.dot.

Approved by: avg (mentor)

13 years agoRemove extra assignment.
glebius [Wed, 6 Oct 2010 14:29:50 +0000 (14:29 +0000)]
Remove extra assignment.

13 years agoAdd support to Alcatel/TCTMobile X080S USB 3G modem. The device needs
glebius [Wed, 6 Oct 2010 14:29:00 +0000 (14:29 +0000)]
Add support to Alcatel/TCTMobile X080S USB 3G modem. The device needs
special eject command to reappear as modem. It also requires DIR_IN flag
in the command message, so we supply some dummy data along with the command.

Feedback from X080S owners appreciated. I have not a pure Alcatel/TCTMobile
device, but another one under "Svyaznoy" (Связной) brand, and I didn't yet
managed to get it working. It is successfully recognized, it responds to
AT commands, but it shuts up right after successfull CONNECT response.

Reviewed by: hps

13 years agoFix regex for some socket- and acl-related syscall values.
netchild [Wed, 6 Oct 2010 12:41:42 +0000 (12:41 +0000)]
Fix regex for some socket- and acl-related syscall values.

Submitted by: Mikhail <hidden.node@gmail.com>
PR: 149295
MFC-after: 2 weeks

13 years agoMissed space.
kib [Wed, 6 Oct 2010 09:24:33 +0000 (09:24 +0000)]
Missed space.

Submitted by: brueffer
MFC after: 1 week

13 years agoAdd cross-references to lrand48(3) and arc4random(3) from rand(3)
kib [Wed, 6 Oct 2010 09:05:47 +0000 (09:05 +0000)]
Add cross-references to lrand48(3) and arc4random(3) from rand(3)
and random(3).

Submitted by: Valentin Nechayev <netch netch kiev ua>
MFC after: 1 week

13 years agoXLR/XLS network driver (nlge) updates:
jchandra [Wed, 6 Oct 2010 08:15:28 +0000 (08:15 +0000)]
XLR/XLS network driver (nlge) updates:

- nlge_ioctl handles IFF_UP and IFF_PROMISC flags
- Translate table code, to enable flow based CPU assignment added
  disabled by default (can be enabled by a tunable).
- Changed signature of nlge_port_disable to make it consistent with nlge_port_enable
- Removed TXCSUM and VLAN_HW_TAGGING from i/f capabilities.

Submitted by: Sriram Gorti (srgorti at netlogicmicro dot com)

13 years agoFix n64 compile.
jchandra [Wed, 6 Oct 2010 08:09:39 +0000 (08:09 +0000)]
Fix n64 compile.

13 years agoAdd some missing files to optionally delete.
netchild [Wed, 6 Oct 2010 07:49:28 +0000 (07:49 +0000)]
Add some missing files to optionally delete.

Submitted by: Paul B Mahol <onemda@gmail.com>

13 years agoFix a comparision of an uninitialised pointer.
netchild [Wed, 6 Oct 2010 07:34:41 +0000 (07:34 +0000)]
Fix a comparision of an uninitialised pointer.

Submitted by: arundel
Found by: clang analysis (automatic service by uqs@)
Reviewed by: rdivacky

13 years agoIf LANG/LC_CTYPE/LC_ALL is set and the localized man page contains a page
gordon [Wed, 6 Oct 2010 07:22:56 +0000 (07:22 +0000)]
If LANG/LC_CTYPE/LC_ALL is set and the localized man page contains a page
also in the base set, the man utility when invoked with -a would display
pages for each locale in the same tree:

$ LANG=en_GB.ISO8859-15 man -wa man
/usr/share/man/en.ISO8859-15/man1/man.1.gz
/usr/share/man/man1/man.1.gz
/usr/share/man/en.ISO8859-15/man7/man.7.gz
/usr/share/man/man7/man.7.gz

Use continue to break out of the loop for the current locale. This results
in behavior more closely matching the old GNU man implementation:

$ LANG=en_GB.ISO8859-15 man -wa man
/usr/share/man/en.ISO8859-15/man1/man.1.gz
/usr/share/man/en.ISO8859-15/man7/man.7.gz

This will still search for a copy of the file in other manual path
locations. If there was a /usr/local/man/man1/man.1.gz file, it would still
be displayed. This is also consistent with the GNU man implementation.

Submitted by: arundel
Approved by: wes (mentor implicit)

13 years agoRecognize both ! and ^ as markers for negated character classes.
kientzle [Wed, 6 Oct 2010 04:30:40 +0000 (04:30 +0000)]
Recognize both ! and ^ as markers for negated character classes.

Submitted by: Mykola Dzham

13 years agoFix bge(4) build breakage when BGE_REGISTER_DEBUG is defined.
yongari [Wed, 6 Oct 2010 01:23:40 +0000 (01:23 +0000)]
Fix bge(4) build breakage when BGE_REGISTER_DEBUG is defined.

13 years agoRearrange code a bit to correctly set PHY flags. This change make
yongari [Tue, 5 Oct 2010 23:24:58 +0000 (23:24 +0000)]
Rearrange code a bit to correctly set PHY flags. This change make
it easy to add more newer ASICs.

Obtained from: OpenBSD

13 years agoSeparate common flags into controller specific and PHY related
yongari [Tue, 5 Oct 2010 23:03:48 +0000 (23:03 +0000)]
Separate common flags into controller specific and PHY related
flags. There should be no functional changes. This change will make
it easy to add more quirk/flags in future.

Reviewed by: davidch

13 years ago- Add WITH_GPIO entry to src.conf(5) man page
gonzo [Tue, 5 Oct 2010 22:26:01 +0000 (22:26 +0000)]
- Add WITH_GPIO entry to src.conf(5) man page

13 years ago- Introduce WITH_GPIO knob and disable building gpioctl
gonzo [Tue, 5 Oct 2010 21:19:20 +0000 (21:19 +0000)]
- Introduce WITH_GPIO knob and disable building gpioctl
    by default. Most systems do not need it.

13 years agoUse the printf-like capability from kproc_create().
thompsa [Tue, 5 Oct 2010 20:56:08 +0000 (20:56 +0000)]
Use the printf-like capability from kproc_create().

Submitted by: Paul B Mahol

13 years agoSEE ALSO should sorted by manpage section first.
brueffer [Tue, 5 Oct 2010 20:39:36 +0000 (20:39 +0000)]
SEE ALSO should sorted by manpage section first.

13 years agoRevert the unrelated patch crept in the previous commit.
jkim [Tue, 5 Oct 2010 18:47:51 +0000 (18:47 +0000)]
Revert the unrelated patch crept in the previous commit.

13 years agoPrefer pmap_unmapbios() over pmap_unmapdev(). The binary does not change
jkim [Tue, 5 Oct 2010 18:38:23 +0000 (18:38 +0000)]
Prefer pmap_unmapbios() over pmap_unmapdev().  The binary does not change
after this because pmap_unmapbios() is a macro for pmap_unmapdev() on amd64.

13 years agoHandle vector assist traps without a kernel panic, by setting denormalized
nwhitehorn [Tue, 5 Oct 2010 18:08:07 +0000 (18:08 +0000)]
Handle vector assist traps without a kernel panic, by setting denormalized
values to zero. A correct solution would involve emulating vector
operations on denormalized values, but this has little effect on accuracy
and is much less complicated for now.

MFC after: 2 weeks

13 years agoInitialize KPTmap in locore so that vm86.c can call vtophys() (or really
alc [Tue, 5 Oct 2010 17:06:51 +0000 (17:06 +0000)]
Initialize KPTmap in locore so that vm86.c can call vtophys() (or really
pmap_kextract()) before pmap_bootstrap() is called.

Document the set of pmap functions that may be called before
pmap_bootstrap() is called.

Tested by: bde@
Reviewed by: kib@
Discussed with: jhb@
MFC after: 6 weeks

13 years agoAdd reference to intro(1) in SEE ALSO section.
gordon [Tue, 5 Oct 2010 16:14:08 +0000 (16:14 +0000)]
Add reference to intro(1) in SEE ALSO section.

PR: docs/151216
Approved by: wes (mentor, implicit)

13 years agoWhen no protocol entry is found, getproto*_r(3) should
ume [Tue, 5 Oct 2010 15:40:59 +0000 (15:40 +0000)]
When no protocol entry is found, getproto*_r(3) should
return zero.

Spotted by: Kostik Belousov <kostikbel__at__gmail.com>
MFC after: 2 weeks

13 years agoDisplay PCID capability of CPU and add CPUID define for it.
kib [Tue, 5 Oct 2010 15:31:56 +0000 (15:31 +0000)]
Display PCID capability of CPU and add CPUID define for it.

MFC after: 1 week

13 years agoHandle null return from XML_ParserCreate and fix a few memory leaks on
emaste [Tue, 5 Oct 2010 15:27:44 +0000 (15:27 +0000)]
Handle null return from XML_ParserCreate and fix a few memory leaks on
error conditions.

Submitted by: Mark Johnston <mjohnston at sandvine dot com>
MFC after: 2 weeks

13 years agoNetwork driver support for more XLR/XLS chip versions.
jchandra [Tue, 5 Oct 2010 07:41:59 +0000 (07:41 +0000)]
Network driver support for more XLR/XLS chip versions.

Obtained from: Sriram Gorti (srgorti at netlogicmicro dot com)

13 years agoClear any pending interrupts after disabling FMN interrupts. Add debugging
jchandra [Tue, 5 Oct 2010 06:44:47 +0000 (06:44 +0000)]
Clear any pending interrupts after disabling FMN interrupts. Add debugging
sysctl and counters for message ring threads (intial version). Update
watermark values, and and decrease the maximum threads to 3 (this will leave
a few CPUs for other processes)

Minor comment fix in nlge.

13 years agoRevise markup, mainly.
ru [Tue, 5 Oct 2010 06:31:11 +0000 (06:31 +0000)]
Revise markup, mainly.