]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoRename tcp4 to tcp in preparation for IPv6 support.
Pawel Jakub Dawidek [Fri, 20 May 2011 11:09:02 +0000 (11:09 +0000)]
Rename tcp4 to tcp in preparation for IPv6 support.

MFC after: 3 weeks

13 years agoRename proto_tcp4.c to proto_tcp.c in preparation for IPv6 support.
Pawel Jakub Dawidek [Fri, 20 May 2011 11:06:17 +0000 (11:06 +0000)]
Rename proto_tcp4.c to proto_tcp.c in preparation for IPv6 support.

MFC after: 2 weeks

13 years agoIn preparation for IPv6 support allow to specify multiple addresses to
Pawel Jakub Dawidek [Thu, 19 May 2011 23:18:42 +0000 (23:18 +0000)]
In preparation for IPv6 support allow to specify multiple addresses to
listen on.

MFC after: 3 weeks

13 years agoFix typo.
Pyun YongHyeon [Thu, 19 May 2011 23:13:08 +0000 (23:13 +0000)]
Fix typo.

Submitted by: brad at OpenBSD

13 years agoFix typos in comments, no functional changes.
Benedict Reuschling [Thu, 19 May 2011 20:35:40 +0000 (20:35 +0000)]
Fix typos in comments, no functional changes.

Found by:       codespell
Reviewed by:    alfred
MFC after:      1 week

13 years agoSimplify t4_os_find_pci_capability.
Navdeep Parhar [Thu, 19 May 2011 19:37:41 +0000 (19:37 +0000)]
Simplify t4_os_find_pci_capability.

MFC after: 3 days

13 years agoStyle fixes:
John Baldwin [Thu, 19 May 2011 17:22:48 +0000 (17:22 +0000)]
Style fixes:
- Sort forward declarations of structures.
- Prefer uint64_t to u_int64_t.

13 years agoFix clang warnings.
Ben Laurie [Thu, 19 May 2011 15:18:35 +0000 (15:18 +0000)]
Fix clang warnings.

Approved by: philip (mentor)

13 years agoWhen adding examples to man-pages, try to make them at least
Poul-Henning Kamp [Thu, 19 May 2011 13:42:19 +0000 (13:42 +0000)]
When adding examples to man-pages, try to make them at least
look like they might work.

Prodded by: Vadim Goncharov

13 years agoPut AN back after finding out that tzsetup(1) will complain that
Edwin Groothuis [Thu, 19 May 2011 13:09:39 +0000 (13:09 +0000)]
Put AN back after finding out that tzsetup(1) will complain that
it doesn't exist. It will be removed again once the tzdata distribution
files have been updated with the replacements for AN.

13 years agoAdd support for the SIIG Cyber 2S PCIe adapter. It is based on an
John Baldwin [Thu, 19 May 2011 11:41:12 +0000 (11:41 +0000)]
Add support for the SIIG Cyber 2S PCIe adapter.  It is based on an
Oxford Semiconductor OX16PCI954 but uses only two ports with a non-default
clock rate.

PR: kern/152034
Tested by: Hans Fiedler  hans of hermes louisville edu
MFC after: 1 week

13 years agoImplement WITH{,OUT}_{GCC,BINUTILS} to provide finer-grained control
Warner Losh [Thu, 19 May 2011 05:13:25 +0000 (05:13 +0000)]
Implement WITH{,OUT}_{GCC,BINUTILS} to provide finer-grained control
over building gcc and binutils.  They default to true, unless
MK_TOOLCHAIN is no.

Reviewed by: ru@

13 years ago- Add support for AF_INET6 sockets for %S format character.
Pawel Jakub Dawidek [Wed, 18 May 2011 22:43:56 +0000 (22:43 +0000)]
- Add support for AF_INET6 sockets for %S format character.
- Use inet_ntop(3) instead of reimplementing it.
- Use %hhu for unsigned char instead of casting it to unsigned int and
  using %u.

MFC after: 1 week

13 years agoThe CDP_ACTIVE flag is cleared at the beginning of destroy_devl(),
Konstantin Belousov [Wed, 18 May 2011 22:36:58 +0000 (22:36 +0000)]
The CDP_ACTIVE flag is cleared at the beginning of destroy_devl(),
and destroy_devl() drops dev_mtx. The protection against the race
with dev_rel(), introduced in r163328, should be extended to cover
destroy_devl() calls for the children of the destroyed dev.

Reported and tested by: joerg
MFC after: 1 week

13 years ago- Enable per-channel congestion notification.
Navdeep Parhar [Wed, 18 May 2011 22:09:04 +0000 (22:09 +0000)]
- Enable per-channel congestion notification.
- Enable PCIe relaxed ordering for all egress queues and rx data buffers.

MFC after: 3 days

13 years agoFix clang warnings.
Ben Laurie [Wed, 18 May 2011 21:06:20 +0000 (21:06 +0000)]
Fix clang warnings.

Approved by: philip (mentor)

13 years agoFix clang warnings.
Ben Laurie [Wed, 18 May 2011 21:04:29 +0000 (21:04 +0000)]
Fix clang warnings.

Note: possible minor security issues fixed (untrusted string used as
printf format string).

Approved by: philip (mentor)

13 years agoFix clang warnings.
Ben Laurie [Wed, 18 May 2011 21:00:27 +0000 (21:00 +0000)]
Fix clang warnings.

Approved by: philip (mentor)

13 years agoFix clang warning (why is there nowhere yyparse() is declared?).
Ben Laurie [Wed, 18 May 2011 20:57:23 +0000 (20:57 +0000)]
Fix clang warning (why is there nowhere yyparse() is declared?).

Approved by: philip (mentor)

13 years agoFix clang warnings.
Ben Laurie [Wed, 18 May 2011 20:52:52 +0000 (20:52 +0000)]
Fix clang warnings.

Note: these were actually bugs (printf with no format string).

Approved by: philip (mentor)

13 years agoWipeout the end of disks, home to things like gmirror metadata, backup GPT tables,
Josh Paetzel [Wed, 18 May 2011 20:38:28 +0000 (20:38 +0000)]
Wipeout the end of disks, home to things like gmirror metadata, backup GPT tables,
and other potential evil.

Submitted by: Kris Moore <kris@pcbsd.org>
Approved by: kib (mentor)
Sponsored by: iXsystems

13 years agoExtracting optional components requires mounting devfs
Josh Paetzel [Wed, 18 May 2011 20:29:07 +0000 (20:29 +0000)]
Extracting optional components requires mounting devfs

Submitted by: Kris Moore <kris@pcbsd.org>
Approved by: kib (mentor)
Sponsored by: iXsystems

13 years agoUnbreak INET-less build.
Michael Tuexen [Wed, 18 May 2011 19:49:39 +0000 (19:49 +0000)]
Unbreak INET-less build.
Reported by bz@
MFC after: 1 week

13 years agoAdd a sanity check for the existence of an "addr" option
Rick Macklem [Wed, 18 May 2011 18:36:40 +0000 (18:36 +0000)]
Add a sanity check for the existence of an "addr" option
to both NFS clients. This avoids the crash reported by
Sergey Kandaurov (pluknet@gmail.com) to the freebsd-fs@
list with subject "[old nfsclient] different nmount()
args passed from mount vs mount_nfs" dated May 17, 2011.

Tested by: pluknet at gmail.com (old nfs client)
MFC after: 2 weeks

13 years agoAs requested by many people, with final prodding from Jason Hall, fix this
Nathan Whitehorn [Wed, 18 May 2011 17:39:28 +0000 (17:39 +0000)]
As requested by many people, with final prodding from Jason Hall, fix this
so that running make release causes make obj to be run before doing
anything. This fixes a bug wherein, when run for the first time, and
without -DNOSRC, make release would attempt to recursively tar up the src
directory including its own output and enter an infinite loop.

While here, make the cross-building stuff work a little more the way it
should if only one of TARGET/TARGET_ARCH is specified.

13 years agoClean up a loose end from the conversion from gnu ar/ranlib to the BSD
Warner Losh [Wed, 18 May 2011 17:06:11 +0000 (17:06 +0000)]
Clean up a loose end from the conversion from gnu ar/ranlib to the BSD
one.  Without this, we don't have ar or randlib in the tool path,
leading to much pain for some users.  This pain is exposed by the
external toolchain enhancements that I'm working on.

Submitted by: John Hein (ages ago, and dropped on the floor by me: sorry)

13 years agoRevert r222069,222068 as they were intended to be committed to the
Attilio Rao [Wed, 18 May 2011 16:50:13 +0000 (16:50 +0000)]
Revert r222069,222068 as they were intended to be committed to the
largeSMP branch.

Reported by: pluknet

13 years agoFix warning spit out.
Attilio Rao [Wed, 18 May 2011 16:42:01 +0000 (16:42 +0000)]
Fix warning spit out.

Reported by: sbruno

13 years agoFix newly introduced code.
Attilio Rao [Wed, 18 May 2011 16:41:38 +0000 (16:41 +0000)]
Fix newly introduced code.

Reported by: sbruno

13 years agoMerge part of r221322 from largeSMP project:
Attilio Rao [Wed, 18 May 2011 16:07:30 +0000 (16:07 +0000)]
Merge part of r221322 from largeSMP project:
Sync XEN support with i386 about the usage of ipi_send_cpu()

Tested by: pluknet
MFC after: 2 weeks

13 years agousb: fix a missed use of use_generic in r222051
Andriy Gapon [Wed, 18 May 2011 11:38:36 +0000 (11:38 +0000)]
usb: fix a missed use of use_generic in r222051

Submitted by: gcooper
Pointyhat to: avg
MFC after: 1 month
X-MFC with: r222051

13 years agoThis isn't needed any longer, it's defined in ah_internal.h.
Adrian Chadd [Wed, 18 May 2011 11:28:23 +0000 (11:28 +0000)]
This isn't needed any longer, it's defined in ah_internal.h.

13 years agoRelease allocated memory in procstat_close().
Sergey Kandaurov [Wed, 18 May 2011 10:04:54 +0000 (10:04 +0000)]
Release allocated memory in procstat_close().

Reviewed by: stass

13 years agousb: change to one-pass probing of device drivers
Andriy Gapon [Wed, 18 May 2011 07:40:12 +0000 (07:40 +0000)]
usb: change to one-pass probing of device drivers

This brings USB bus more in line with how newbus is supposed to be used.
Also, because of the two-pass probing the following message was produced
by devd in default configuration when almost any USB device was
connected:
Unknown USB device: vendor <> product <> bus <>
This should be fixed now.

Note that many USB device drivers pass some information from probe
method to attach method via ivars.  For this to continue working we rely
on the fact that the subr_bus code calls probe method of a winning driver
again before calling its attach method in the case where multiple
drivers claim to support a device.  This is done because device
description is set in successful probe methods and we want to get a correct
device description from a winning driver.  So now this logic is re-used
for setting ivars too.

Reviewed by: hselasky
MFC after: 1 month

13 years agoRestore old (v15) behaviour for a recursive snapshot destroy.
Martin Matuska [Wed, 18 May 2011 07:37:02 +0000 (07:37 +0000)]
Restore old (v15) behaviour for a recursive snapshot destroy.
(zfs destroy -r pool/dataset@snapshot)

To destroy all descendent snapshots with the same name the top level
snapshot was not required to exist. So if the top level snapshot does
not exist, check permissions of the parent dataset instead.

Filed as Illumos Bug #1043

Reviewed by: delphij
Approved by: pjd
MFC after: together with v28

13 years agoModify the sample rate control algorithm to only select/sample HT
Adrian Chadd [Wed, 18 May 2011 07:20:30 +0000 (07:20 +0000)]
Modify the sample rate control algorithm to only select/sample HT
rates for HT nodes.

13 years agoUpdate CPUID bits to reflect AMD Bulldozer and Intel Sandy Bridge features.
Jung-uk Kim [Tue, 17 May 2011 22:36:16 +0000 (22:36 +0000)]
Update CPUID bits to reflect AMD Bulldozer and Intel Sandy Bridge features.
Note AMD dropped SSE5 extensions in order to avoid ISA overlap with Intel
AVX instructions.  The SSE5 bit was recycled as XOP extended instruction
bit, CVT16 was deprecated in favor of F16C (half-precision float conversion
instructions for AVX), and the remaining FMA4 (4-operand FMA instructions)
gained a separate CPUID bit.  Replace non-existent references with today's
CPUID specifications.

13 years agoRemove an unused typedef.
Attilio Rao [Tue, 17 May 2011 22:15:53 +0000 (22:15 +0000)]
Remove an unused typedef.

Tested by: sbruno, pluknet

13 years agoMerge r221285 from largeSMP project:
Attilio Rao [Tue, 17 May 2011 22:14:00 +0000 (22:14 +0000)]
Merge r221285 from largeSMP project:
- Remove the following sysctl:
  kern.sched.ipiwakeup.onecpu
  kern.sched.ipiwakeup.htt2

  Because they are absolutely obsolete.  Probabilly the whole wakeup
  forward mechanism should be revisited for a better fitting in modern
  hw, in the future.
- As map2 variable is no longer used rename map3 to map2
- Fix a string by making more informative the msg and removing the
  arguments passing.

Reviewed by: julian
Tested by: several

13 years agoAdd support for "LED" enclosure management messages, defined by the AHCI.
Alexander Motin [Tue, 17 May 2011 22:07:45 +0000 (22:07 +0000)]
Add support for "LED" enclosure management messages, defined by the AHCI.

When supported by hardware, this allows to control per-port activity, locate
and fault LEDs via the led(4) API for localization and status reporting
purposes. Supporting AHCI controllers may transmit that information to the
backplane controllers via SGPIO interface. Backplane controllers interpret
received statuses in some way (IBPI standard) to report them using present
indicators.

13 years agomq_setattr(2): Add missing const to man page.
Jilles Tjoelker [Tue, 17 May 2011 21:03:34 +0000 (21:03 +0000)]
mq_setattr(2): Add missing const to man page.

The declaration in the header file is correct.

MFC after: 1 week

13 years agoOk, so we use different comment conventions in Symbol.map and Version.def
Poul-Henning Kamp [Tue, 17 May 2011 19:20:32 +0000 (19:20 +0000)]
Ok, so we use different comment conventions in Symbol.map and Version.def
"#notimpressed" as my twittering friends would say.

13 years agoBackout libinstall.a -> libpkg commit.
Florent Thoumie [Tue, 17 May 2011 19:11:47 +0000 (19:11 +0000)]
Backout libinstall.a -> libpkg commit.

Discussed with: erwin, brooks, bapt

13 years agoTry to explain what sbufs do and add an example to show it.
Poul-Henning Kamp [Tue, 17 May 2011 18:24:59 +0000 (18:24 +0000)]
Try to explain what sbufs do and add an example to show it.

Clarify return values.

13 years agoBump shlib version
Poul-Henning Kamp [Tue, 17 May 2011 17:37:58 +0000 (17:37 +0000)]
Bump shlib version
Instigate symbol versioning
Pray that I don't break the build.

13 years agoFix a race in the SMP rendezvous code. Specifically, the write by the
John Baldwin [Tue, 17 May 2011 16:39:08 +0000 (16:39 +0000)]
Fix a race in the SMP rendezvous code.  Specifically, the write by the
last CPU to to finish the rendezvous action may become visible to
different CPUs at different times.  As a result, the CPU that initiated
the rendezvous may exit the rendezvous and drop the lock allowing another
rendezvous to be initiated on the same CPU or a different CPU.  In that
case the exit sentinel may be cleared before all CPUs have noticed causing
those CPUs to hang forever.

Workaround this by using a generation count to notice when this race
occurs and to exit the rendezvous in that case.

The problem was independently diagnosted by mlaier@ and avg@ as well.

Submitted by: neel
Reviewed by: avg, mlaier
Obtained from: NetApp
MFC after: 1 week

13 years agoFix the debugging code path to correctly support HAL_DEBUG_UNMASKABLE.
Adrian Chadd [Tue, 17 May 2011 16:30:34 +0000 (16:30 +0000)]
Fix the debugging code path to correctly support HAL_DEBUG_UNMASKABLE.

13 years agoCopy out the mtu when calling getsockopt() with SCTP_GET_PEER_ADDR_INFO.
Michael Tuexen [Tue, 17 May 2011 15:57:31 +0000 (15:57 +0000)]
Copy out the mtu when calling getsockopt() with SCTP_GET_PEER_ADDR_INFO.

MFC after: 1 week.

13 years agoFix whitespacing.
Michael Tuexen [Tue, 17 May 2011 15:46:28 +0000 (15:46 +0000)]
Fix whitespacing.
Reported by scf@

MFC after: 1 week.

13 years agoFix case, introduced in my previous commit.
Adrian Chadd [Tue, 17 May 2011 15:03:39 +0000 (15:03 +0000)]
Fix case, introduced in my previous commit.

Pointy hat goes to: adrian, for having multiple build screens
open and checking the wrong one.

13 years agoFix manual section number for netstat(1).
Sergey Kandaurov [Tue, 17 May 2011 14:46:28 +0000 (14:46 +0000)]
Fix manual section number for netstat(1).

MFC after: 5 days

13 years agomdoc:
Sergey Kandaurov [Tue, 17 May 2011 12:58:19 +0000 (12:58 +0000)]
mdoc:
- use a proper macro for interface name ipfw0.
- add missing section number for bpf cross reference.

13 years agoUse the halMcastKeySrchSupport capability bit to selectively enable/disable
Adrian Chadd [Tue, 17 May 2011 11:56:50 +0000 (11:56 +0000)]
Use the halMcastKeySrchSupport capability bit to selectively enable/disable
the multicast key search support for AR5212, AR5416 and later.

The general HAL routine ath_hal_getcapability() implement checking this
but it's overridden by a check in ar5212_misc:ar5212GetCapability().
This restores the later functionality in case it's found to be broken
in any of the 11n chipsets.

13 years agoSet this HAL capabilities flag correctly even though it isn't currently
Adrian Chadd [Tue, 17 May 2011 11:52:53 +0000 (11:52 +0000)]
Set this HAL capabilities flag correctly even though it isn't currently
being used.

13 years agoDocument the supported hardware, somewhat.
Ruslan Ermilov [Tue, 17 May 2011 11:26:59 +0000 (11:26 +0000)]
Document the supported hardware, somewhat.

Reviewed by: hselasky
MFC after: 3 days

13 years agoRenamed PCI_INTERFACE_XHCI to PCIP_SERIALBUS_USB_XHCI and moved it
Ruslan Ermilov [Tue, 17 May 2011 11:23:43 +0000 (11:23 +0000)]
Renamed PCI_INTERFACE_XHCI to PCIP_SERIALBUS_USB_XHCI and moved it
to <dev/pci/pcireg.h>.

Reviewed by: hselasky
MFC after: 3 days

13 years agoRegen for WITH_OFED.
Ruslan Ermilov [Tue, 17 May 2011 11:08:15 +0000 (11:08 +0000)]
Regen for WITH_OFED.

13 years agoAdded description for WITH_OFED.
Ruslan Ermilov [Tue, 17 May 2011 11:06:41 +0000 (11:06 +0000)]
Added description for WITH_OFED.

13 years agoUse memset() instead of bzero() and memcpy() instead of bcopy(), there
Poul-Henning Kamp [Tue, 17 May 2011 11:04:50 +0000 (11:04 +0000)]
Use memset() instead of bzero() and memcpy() instead of bcopy(), there
is no relevant difference for sbufs, and it increases portability of
the source code.

Split the actual initialization of the sbuf into a separate local
function, so that certain static code checkers can understand
what sbuf_new() does, thus eliminating on silly annoyance of
MISRA compliance testing.

Contributed by: An anonymous company in the last business I
expected sbufs to invade.

13 years agoRevert change to "MF" I made in r189767. I bet that at the time of r189767
Ruslan Ermilov [Tue, 17 May 2011 10:44:11 +0000 (10:44 +0000)]
Revert change to "MF" I made in r189767.  I bet that at the time of r189767
I checked with http://www.iso.org/iso/country_codes/iso_3166_code_lists.htm
and "MF" was officially spelled in English as "Saint Martin" there, but now
that "SX" exists (for "Sint Maarten (Dutch part)") (nice official "English"
spelling!) they seem to have added a "(French part)" suffix to "MF".  Since
this is also in line with Newsletter VI-1 (2007-09-21), catch up.

13 years agoAdd missing section number for .Xr jail.
Sergey Kandaurov [Tue, 17 May 2011 10:38:44 +0000 (10:38 +0000)]
Add missing section number for .Xr jail.

MFC after: 3 days

13 years agoMore thorough mdoc and language fixes.
Ulrich Spörlein [Tue, 17 May 2011 09:51:02 +0000 (09:51 +0000)]
More thorough mdoc and language fixes.

Submitted by: ru

13 years agoISO3166: Update for newsletters VI-7 and VI-8 from 2010
Ulrich Spörlein [Tue, 17 May 2011 08:13:27 +0000 (08:13 +0000)]
ISO3166: Update for newsletters VI-7 and VI-8 from 2010

- Name change for SH
- BQ, CW, and SX replace AN

Reviewed by: ru

13 years agoWhitespace and typo fixes.
Ulrich Spörlein [Tue, 17 May 2011 08:13:18 +0000 (08:13 +0000)]
Whitespace and typo fixes.

Found by: codespell
Reviewed by: ru

13 years agoTypo fix.
Ulrich Spörlein [Tue, 17 May 2011 08:13:10 +0000 (08:13 +0000)]
Typo fix.

13 years agoTypos, wording and mdoc fixes.
Ulrich Spörlein [Tue, 17 May 2011 08:12:59 +0000 (08:12 +0000)]
Typos, wording and mdoc fixes.

13 years agoRemove redundant keywords.
Hiroki Sato [Tue, 17 May 2011 07:40:13 +0000 (07:40 +0000)]
Remove redundant keywords.

Submitted by: wxs

13 years agoDon't expect PAGE_SIZE to exist on all platforms (It is a pretty arbitrary
Poul-Henning Kamp [Tue, 17 May 2011 06:36:32 +0000 (06:36 +0000)]
Don't expect PAGE_SIZE to exist on all platforms (It is a pretty arbitrary
choice of default size in the first place)

Reverse the order of arguments to the internal static sbuf_put_byte()
function to match everything else in this file.

Move sbuf_putc_func() inside the kernel version of sbuf_vprintf
where it belongs.

sbuf_putc() incorrectly used sbuf_putc_func() which supress NUL
characters, it should use sbuf_put_byte().

Make sbuf_finish() return -1 on error.

Minor stylistic nits fixed.

13 years agoAdd missing header. The test for VLAN_CAPABILITIES later in the file
Navdeep Parhar [Tue, 17 May 2011 00:40:11 +0000 (00:40 +0000)]
Add missing header.  The test for VLAN_CAPABILITIES later in the file
doesn't make sense without it.

MFC after: 3 days

13 years agoMerge r221279,221280 from largeSMP project:
Attilio Rao [Mon, 16 May 2011 23:35:14 +0000 (23:35 +0000)]
Merge r221279,221280 from largeSMP project:
pmc_mask doesn't need to use memory barriers.

Reviewed by: fabient
Tested by: several
MFC after: 1 week

13 years agoMerge r221278 from largeSMP project:
Attilio Rao [Mon, 16 May 2011 23:20:12 +0000 (23:20 +0000)]
Merge r221278 from largeSMP project:
idle_cpus_mask is just used in sched_4bsd, thus make it private for it.

Tested by: several

13 years agoChange the length quantities of sbufs to be ssize_t rather than int.
Poul-Henning Kamp [Mon, 16 May 2011 16:18:40 +0000 (16:18 +0000)]
Change the length quantities of sbufs to be ssize_t rather than int.

Constify a couple of arguments.

13 years agoMake diagnostic messages more specific. With bootverbose print out
Andrey V. Elsukov [Mon, 16 May 2011 15:59:50 +0000 (15:59 +0000)]
Make diagnostic messages more specific. With bootverbose print out
all inconsistencies of integrity in the partition table, not first
found only.

Requested by: kib

13 years agoRevert accidentally committed local change in r221990
Andriy Gapon [Mon, 16 May 2011 15:36:11 +0000 (15:36 +0000)]
Revert accidentally committed local change in r221990

Pointyhat to: avg

13 years agobetter integrate cyclic module with clocksource/eventtimer subsystem
Andriy Gapon [Mon, 16 May 2011 15:29:59 +0000 (15:29 +0000)]
better integrate cyclic module with clocksource/eventtimer subsystem

Now in the case when one-shot timers are used cyclic events should fire
closer to theier scheduled times.  As the cyclic is currently used only
to drive DTrace profile provider, this is the area where the change
makes a difference.

Reviewed by: mav (earlier version, a while ago)
X-MFC after: clocksource/eventtimer subsystem

13 years agoFix a </<= mixup. This could result in suboptimal performance on the last
Nathan Whitehorn [Mon, 16 May 2011 15:20:54 +0000 (15:20 +0000)]
Fix a </<= mixup. This could result in suboptimal performance on the last
page of physical memory.

13 years agoFix a comment that got missed by r221973 which changed
Rick Macklem [Mon, 16 May 2011 13:12:09 +0000 (13:12 +0000)]
Fix a comment that got missed by r221973 which changed
the sysctl naming for the old NFS client to vfs.oldnfs.

13 years agoAdd diagnostic messages for integrity checks.
Andrey V. Elsukov [Mon, 16 May 2011 12:00:32 +0000 (12:00 +0000)]
Add diagnostic messages for integrity checks.

13 years agoRemove a useless check that served only to make 64-bit PPC systems
Nathan Whitehorn [Mon, 16 May 2011 03:32:40 +0000 (03:32 +0000)]
Remove a useless check that served only to make 64-bit PPC systems
unbootable after r221855.

Submitted by: andreast
MFC after: 1 week

13 years agoFix the nfsv4 man page to reflect the changes related to
Rick Macklem [Sun, 15 May 2011 22:46:45 +0000 (22:46 +0000)]
Fix the nfsv4 man page to reflect the changes related to
making the new NFS client and server the default.
This is a content change.

13 years agosh: Minor optimization to output from ulimit/export/readonly.
Jilles Tjoelker [Sun, 15 May 2011 22:09:27 +0000 (22:09 +0000)]
sh: Minor optimization to output from ulimit/export/readonly.

No functional change is intended.

13 years agoCorrectly disable jumbo frame support for BCM5719 A0.
Pyun YongHyeon [Sun, 15 May 2011 21:44:51 +0000 (21:44 +0000)]
Correctly disable jumbo frame support for BCM5719 A0.

13 years agoChange the sysctl naming for the old and new NFS clients
Rick Macklem [Sun, 15 May 2011 20:52:43 +0000 (20:52 +0000)]
Change the sysctl naming for the old and new NFS clients
to vfs.oldnfs.xxx and vfs.nfs.xxx respectively. This makes
the default nfs client use vfs.nfs.xxx after r221124.

13 years agoAdd a sysctl kern.geom.part.check_integrity for those who has corrupt
Andrey V. Elsukov [Sun, 15 May 2011 20:03:54 +0000 (20:03 +0000)]
Add a sysctl kern.geom.part.check_integrity for those who has corrupt
partition tables and lost an ability to boot after r221788.
Also unhide an error message from bootverbose, this would help to
easier determine the problem.

13 years agoFix breakage on pc98 by redefining DEBUG().
Henrik Brix Andersen [Sun, 15 May 2011 19:04:08 +0000 (19:04 +0000)]
Fix breakage on pc98 by redefining DEBUG().

Pointy hat to: brix

13 years agosh: Avoid close(-1) when evaluating a multi-command pipeline.
Jilles Tjoelker [Sun, 15 May 2011 17:00:43 +0000 (17:00 +0000)]
sh: Avoid close(-1) when evaluating a multi-command pipeline.

Valgrind complains about this.

13 years agoSome partitioning schemes want to have partitions that are aligned
Andrey V. Elsukov [Sun, 15 May 2011 16:16:48 +0000 (16:16 +0000)]
Some partitioning schemes want to have partitions that are aligned
with geometry. And they do recalculation of user specified parameters.
MBR, PC98, VTOC8, EBR schemes are doing that. For these schemes an
auto alignment feature (ie. gpart add -a alignment) would not work.
But it can work for GPT and BSD schemes. BSD scheme usualy is created
inside MBR, so we can use knowledge about offset of MBR partition to
calculate aligned values for BSD partitions.

Use "offset" attribute of the parent provider for better alignment.

MFC after: 2 weeks

13 years ago* Add some more TX descriptor error counters; this'll be helpful when
Adrian Chadd [Sun, 15 May 2011 15:54:34 +0000 (15:54 +0000)]
* Add some more TX descriptor error counters; this'll be helpful when
  implementing TX aggregation
* Whilst I'm there, comment some RX error counters

13 years agoAdd I2C bus driver for the AMD Geode LX series CS5536 Companion
Henrik Brix Andersen [Sun, 15 May 2011 14:01:23 +0000 (14:01 +0000)]
Add I2C bus driver for the AMD Geode LX series CS5536 Companion
Device.

Reviewed by:    jhb (newbus bits only), adrian

13 years agoRecognize the SAB 82532 found in Fujitsu PRIMEPOWER650 and 900.
Marius Strobl [Sun, 15 May 2011 13:27:38 +0000 (13:27 +0000)]
Recognize the SAB 82532 found in Fujitsu PRIMEPOWER650 and 900.

13 years agoRecognize the eeprom device found in Fujitsu PRIMEPOWER650 and 900.
Marius Strobl [Sun, 15 May 2011 13:25:26 +0000 (13:25 +0000)]
Recognize the eeprom device found in Fujitsu PRIMEPOWER650 and 900.

13 years agoAdd support for MK48T37.
Marius Strobl [Sun, 15 May 2011 13:17:08 +0000 (13:17 +0000)]
Add support for MK48T37.

13 years ago- Add 10baseT as an alias for 10baseT/UTP.
Marius Strobl [Sun, 15 May 2011 12:58:29 +0000 (12:58 +0000)]
- Add 10baseT as an alias for 10baseT/UTP.
- Add shorthand aliases for common media+option combinations as announced
  by miibus(4) so that one can actually supply the media strings found in
  the dmesg output to ifconfig(8).

Obtained from: NetBSD (in principle)
MFC after: 2 weeks

13 years agoWhen setting media always and not just in case of switching to IFM_AUTO
Marius Strobl [Sun, 15 May 2011 12:51:00 +0000 (12:51 +0000)]
When setting media always and not just in case of switching to IFM_AUTO
clear the options of the current media, i.e. only inherit the instance,
which matches what NetBSD does. Without this it's really non-intuitive
that the following sequence:
ifconfig bge0 media 1000baseT mediaopt full-duplex
ifconfig bge0 media 100baseTX
results in 100baseTX full-duplex to be set or that:
ifconfig bge0 media autoselect mediaopt flowcontrol
ifconfig bge0 media 1000baseT mediaopt full-duplex
tries to set 1000baseT full-duplex with flowcontrol, which isn't suported
und thus fails while the following:
ifconfig re0 media 1000baseT mediaopt flowcontrol,full-duplex
ifconfig re0 media autoselect
just switches to autoselection without flowcontrol.

MFC after: 2 weeks

13 years agoFix a memory leak possible in g_eli_key_allocate() if the key with the
Mikolaj Golub [Sun, 15 May 2011 12:39:30 +0000 (12:39 +0000)]
Fix a memory leak possible in g_eli_key_allocate() if the key with the
same keyno is added while we aren't holding the lock.

Approved by: pjd (mentor)
MFC after: 1 week

13 years agoSimplify the code a bit. For own providers GEOM_PART always provides
Andrey V. Elsukov [Sun, 15 May 2011 11:45:13 +0000 (11:45 +0000)]
Simplify the code a bit. For own providers GEOM_PART always provides
"start" and "end" config attributes.

MFC after: 1 week

13 years agoOnly update the scheduler's byte count table for aggregation queues.
Bernhard Schmidt [Sun, 15 May 2011 08:09:36 +0000 (08:09 +0000)]
Only update the scheduler's byte count table for aggregation queues.
The other queues, especially the command queue, uses the FIFO mode
which doesn't require the byte count table because queued entries are
processed in order.

Pointed out by: Lucius Windschuh <lwindschuh at googlemail dot com>

13 years agoFix NF calibration breakage introduced by me in a past commit.
Adrian Chadd [Sun, 15 May 2011 07:59:33 +0000 (07:59 +0000)]
Fix NF calibration breakage introduced by me in a past commit.

Since the returned NF will be -ve, checking for <= 0 is not good
enough. For now, check whether it equals 0 or -1; a future commit
will tidy this mess up and have it return HAL_BOOL instead.

13 years agoFix few typos.
Alexander Motin [Sun, 15 May 2011 01:01:53 +0000 (01:01 +0000)]
Fix few typos.

Submitted by: uqs
MFC after: 1 week

13 years ago- Whitespace fix.
Stanislav Sedov [Sun, 15 May 2011 00:46:25 +0000 (00:46 +0000)]
- Whitespace fix.