]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoMFV: less v453.
delphij [Sun, 4 Nov 2012 20:52:26 +0000 (20:52 +0000)]
MFV: less v453.

11 years agoAdd support for a few more devices:
eadler [Sun, 4 Nov 2012 20:50:23 +0000 (20:50 +0000)]
Add support for a few more devices:

PNP0510 and FUJ02E5 for a  "Wacom Tablet at FuS Lifebook T"
PNP0502 and PNP0511 for some other generic devices.

PR: kern/173357
Submitted by: Andrey Zakharchenko <avz@jscc.ru>
Approved by: cperciva (implicit)
MFC after: 1 week

11 years agoMake OK_TO_WRITE_TO_DISK an envrionment variable instead
eadler [Sun, 4 Nov 2012 15:15:47 +0000 (15:15 +0000)]
Make OK_TO_WRITE_TO_DISK an envrionment variable instead
of a compile time option.

While here, don't differ based on the existence of LOCK_EX
which doesn't seem to have ever made a difference on FreeBSD.

Approved by: cperciva (from discussion)
MFC after: 3 days

11 years agoPrefer the use of stdbool to custom defines.
eadler [Sun, 4 Nov 2012 15:15:43 +0000 (15:15 +0000)]
Prefer the use of stdbool to custom defines.

Approved by: cperciva (from discussion)
MFC after: 3 days

11 years agozfs_dirlook: bailout early if directory is unlinked
avg [Sun, 4 Nov 2012 14:50:08 +0000 (14:50 +0000)]
zfs_dirlook: bailout early if directory is unlinked

Otherwise we could fail with an incorrect error if e.g. parent
object id is removed too or we can even return a wrong vnode if
parent object has been already re-used.

Discussed with: pjd
Also see: http://article.gmane.org/gmane.os.freebsd.devel.file-systems/13863
MFC after: 26 days

11 years agozfsctl_snapdir_lookup: obtain a snapname in the remount case
avg [Sun, 4 Nov 2012 14:43:15 +0000 (14:43 +0000)]
zfsctl_snapdir_lookup: obtain a snapname in the remount case

... which is triggered if somebody did regular umount on a snapshot mount.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
MFC after: 20 days

11 years agozfs: set MNTK_EXTENDED_SHARED flag
avg [Sun, 4 Nov 2012 14:36:11 +0000 (14:36 +0000)]
zfs: set MNTK_EXTENDED_SHARED flag

Discussed with: kib
MFC after: 20 days

11 years agoopensolaris compat: clear VI_MOUNT before returning if mount_snapshot fails
avg [Sun, 4 Nov 2012 14:27:31 +0000 (14:27 +0000)]
opensolaris compat: clear VI_MOUNT before returning if mount_snapshot fails

To do: investigate if it would be possible to use normal vfs_domount here.

Reviewed by: kib
MFC after: 19 days

11 years agozfs_vnode_forget: dispose of larvae vnode using public vfs api (mostly)
avg [Sun, 4 Nov 2012 14:24:00 +0000 (14:24 +0000)]
zfs_vnode_forget: dispose of larvae vnode using public vfs api (mostly)

Reviewed by: kib
MFC after: 19 days

11 years agozfs_umount: no need to set MNTK_UNMOUNTF here, dounmount handles that
avg [Sun, 4 Nov 2012 14:22:25 +0000 (14:22 +0000)]
zfs_umount: no need to set MNTK_UNMOUNTF here, dounmount handles that

Reviewed by: kib
MFC after: 19 days

11 years agoopensolaris_lookup: use vfs_busy in traverse before calling VFS_ROOT
avg [Sun, 4 Nov 2012 14:16:18 +0000 (14:16 +0000)]
opensolaris_lookup: use vfs_busy in traverse before calling VFS_ROOT

... to ensure that we have a valid mountpoint during the call.

Reviewed by: kib
MFC after: 19 days

11 years agozfs_vnode_lock: no need to double-guess caller's intentions here
avg [Sun, 4 Nov 2012 14:15:13 +0000 (14:15 +0000)]
zfs_vnode_lock: no need to double-guess caller's intentions here

vn_lock should do the right thing with respect to given vnode lock
flags.  If a caller doesn't mind a doomed vnode, then zfs should deliver.

Reviewed by: kib
MFC after: 19 days

11 years agozfs_mount: drop vfs.zfs.rootpool.prefer_cached_config tunable
avg [Sun, 4 Nov 2012 13:50:08 +0000 (13:50 +0000)]
zfs_mount: drop vfs.zfs.rootpool.prefer_cached_config tunable

It turned out to be not that useful, because its default value may lead
to a problem when a root pool is present in zpool.cache, but its
on-disk status is 'exported'.  This may happen if the pool was imported
in a different environment with -f flag and then exported.

MFC after: 12 days

11 years agozfs_freebsd_close: call zfs_close with count=1 instead of count=0
avg [Sun, 4 Nov 2012 13:48:48 +0000 (13:48 +0000)]
zfs_freebsd_close: call zfs_close with count=1 instead of count=0

Otherwise we may be leaking z_sync_cnt, which may lead to unnecessary
ZIL sync-ing.

MFC after: 12 days

11 years agocpuctl_do_cpuid: explicitly use ecx=0 for cpuid call
avg [Sun, 4 Nov 2012 13:46:28 +0000 (13:46 +0000)]
cpuctl_do_cpuid: explicitly use ecx=0 for cpuid call

... instead of whatever random value may happen to be in the register.
ecx is important to some cpuid leaves.

To do: extend cpuctl interface to provide for ecx value parameter.

MFC after: 5 days

11 years agoAdd decoding of the missed MNT_KERN_ flags to ddb "show mount" command.
kib [Sun, 4 Nov 2012 13:33:13 +0000 (13:33 +0000)]
Add decoding of the missed MNT_KERN_ flags to ddb "show mount" command.

MFC after: 3 weeks

11 years agoAdd decoding of the missed VI_ and VV_ flags to ddb "show vnode" command.
kib [Sun, 4 Nov 2012 13:32:45 +0000 (13:32 +0000)]
Add decoding of the missed VI_ and VV_ flags to ddb "show vnode" command.

MFC after: 3 days

11 years agoOrder the enumeration of the MNT_ flags to be the same as the order of
kib [Sun, 4 Nov 2012 13:31:41 +0000 (13:31 +0000)]
Order the enumeration of the MNT_ flags to be the same as the order of
their definitions.

MFC after: 3 days

11 years agoNew sentence, new line.
joel [Sun, 4 Nov 2012 09:27:01 +0000 (09:27 +0000)]
New sentence, new line.

Submitted by: brueffer

11 years agoAdd a few basic examples.
joel [Sun, 4 Nov 2012 09:08:17 +0000 (09:08 +0000)]
Add a few basic examples.

11 years ago- Add my mentor relationships to committers-ports.dot
gblach [Sun, 4 Nov 2012 08:47:41 +0000 (08:47 +0000)]
- Add my mentor relationships to committers-ports.dot
- Add myself to calendar.freebsd

Approved by: tabthorpe (mentor)

11 years agoAdd an example showing the use of gnop(8) to skip over header data.
wblock [Sun, 4 Nov 2012 03:19:07 +0000 (03:19 +0000)]
Add an example showing the use of gnop(8) to skip over header data.

PR: kern/145999
Reviewed by: mjg
MFC after: 1 week

11 years agoChange default prompt to show ~ again for the home directory
bapt [Sun, 4 Nov 2012 01:00:35 +0000 (01:00 +0000)]
Change default prompt to show ~ again for the home directory

Submitted by: flo
Approved by: eadler

11 years agoOops - conditionalise that.
adrian [Sun, 4 Nov 2012 00:46:01 +0000 (00:46 +0000)]
Oops - conditionalise that.

11 years agoFix a bug where operations was carried on even if not implemented,
attilio [Sat, 3 Nov 2012 23:32:32 +0000 (23:32 +0000)]
Fix a bug where operations was carried on even if not implemented,
leading to handling of an invalid fdip object.

Reported and tested by: flo
MFC after: 2 months
X-MFC: 241519

11 years agoReplace all uses of the page queues lock by a R/W lock that is private
alc [Sat, 3 Nov 2012 23:22:49 +0000 (23:22 +0000)]
Replace all uses of the page queues lock by a R/W lock that is private
to this pmap.

Eliminate two redundant #include's.

Tested by: marcel

11 years agoRework the known rwlock to benefit about staying on their own
attilio [Sat, 3 Nov 2012 23:03:14 +0000 (23:03 +0000)]
Rework the known rwlock to benefit about staying on their own
cache line in order to avoid manual frobbing but using
struct rwlock_padalign.

Reviewed by: alc, jimharris

11 years agoEDMA TX tweaks:
adrian [Sat, 3 Nov 2012 22:54:42 +0000 (22:54 +0000)]
EDMA TX tweaks:

* don't poke ath_hal_txstart() if nothing was pushed into the FIFO during
  the refill process;

* shuffle around the TX debugging output a little so it's logged at
  TX hardware enqueue;

* Add logging of the TX status processing.

11 years agoMerge the FDT versions of initarm.
andrew [Sat, 3 Nov 2012 22:39:07 +0000 (22:39 +0000)]
Merge the FDT versions of initarm.

The copies of initarm used on platforms with FDT support were almost
identical. The differences were pulled out into separate functions that
were called by initarm.

This change merges the, now identical, copies of initarm and a few of it's
support functions. This is a step towards a common kernel on ARMv6.

11 years agosh: Use C99 flexible array instead of accessing array beyond bounds.
jilles [Sat, 3 Nov 2012 22:23:08 +0000 (22:23 +0000)]
sh: Use C99 flexible array instead of accessing array beyond bounds.

Although sufficient memory is available for a longer string in cmdname,
this is undefined behaviour anyway.

Side effect: for alignment reasons, an additional byte of memory is
allocated per hashed command.

11 years agoAdd tty_set_winsize().
ed [Sat, 3 Nov 2012 22:21:37 +0000 (22:21 +0000)]
Add tty_set_winsize().

This removes some of the signalling magic from the Syscons driver and
puts it in the TTY layer, where it belongs.

11 years agoFor AR9380 NICs - the non-enterprise versions don't support RTS protection
adrian [Sat, 3 Nov 2012 22:13:42 +0000 (22:13 +0000)]
For AR9380 NICs - the non-enterprise versions don't support RTS protection
of small (< 256 byte) aggregate frames.

This needs to be done or 11n aggregation TX just simply doesn't work
on these NICs.

Whilst here, extend some debug printing; I was using this whilst
debugging the TX power setup in the TX descriptor(s) on the AR9380.

11 years agoAdd a new HAL call to extract out the HAL enterprise bits from the
adrian [Sat, 3 Nov 2012 22:12:35 +0000 (22:12 +0000)]
Add a new HAL call to extract out the HAL enterprise bits from the
AR9300 HAL.

11 years ago1. Have the APs initialize the TLB1 entries from what has been
marcel [Sat, 3 Nov 2012 22:02:12 +0000 (22:02 +0000)]
1.  Have the APs initialize the TLB1 entries from what has been
    programmed on the BSP during (early) boot. This makes sure
    that the APs get configured the same as the BSP, irrspective
    of how FreeBSD was loaded.
2.  Make sure to flush the dcache after writing the TLB1 entries
    to the boot page. The APs aren't part of the coherency domain
    just yet.
3.  Set pmap_bootstrapped after calling pmap_bootstrap(). The
    FDT code now maps the devices (like OF), and this resulted
    in a panic.
4.  Since we pre-wire the CCSR, make sure not to map chunks of
    it in pmap_mapdev().

11 years agoAdd a MD_ROOT_FSTYPE kernel option. The option specifies the
marcel [Sat, 3 Nov 2012 21:20:55 +0000 (21:20 +0000)]
Add a MD_ROOT_FSTYPE kernel option. The option specifies the
file system part for the MD_ROOT mount string. Hardcoding the
the file system type as "ufs" is too restrictive.

11 years agoAdd the bus attachment for the embedded EHCI HC.
marcel [Sat, 3 Nov 2012 21:08:27 +0000 (21:08 +0000)]
Add the bus attachment for the embedded EHCI HC.

11 years agoAllow using the embedded EHCI host controller in Freescale SoCs
marcel [Sat, 3 Nov 2012 21:05:32 +0000 (21:05 +0000)]
Allow using the embedded EHCI host controller in Freescale SoCs
by adding the missing bits. See ehci_fsl.c for their use.

11 years agoAdd the buildLINT convenience target, handy for build automation.
marcel [Sat, 3 Nov 2012 20:43:12 +0000 (20:43 +0000)]
Add the buildLINT convenience target, handy for build automation.
The automation can set TARGET_ARCH and TARGET and then make various
top-level targets, including buildLINT and buildkernel (with
KERNCONF=LINT). Previously there was no way to generate the LINT
kernel configuration without having to do something exceptionally
painful.

11 years agoo DragonFly 2.3.1 added.
maxim [Sat, 3 Nov 2012 19:26:08 +0000 (19:26 +0000)]
o DragonFly 2.3.1 added.

11 years agoWhen a file is first being written, the dynamic block reallocation
mckusick [Sat, 3 Nov 2012 18:55:55 +0000 (18:55 +0000)]
When a file is first being written, the dynamic block reallocation
(implemented by ffs_reallocblks_ufs[12]) relocates the file's blocks
so as to cluster them together into a contiguous set of blocks on
the disk.

When the cluster crosses the boundary into the first indirect block,
the first indirect block is initially allocated in a position
immediately following the last direct block.  Block reallocation
would usually destroy locality by moving the indirect block out of
the way to keep the data blocks contiguous.  This change compensates
for this problem by noting that the first indirect block should be
left immediately following the last direct block.  It then tries
to start a new cluster of contiguous blocks (referenced by the
indirect block) immediately following the indirect block.

We should also do this for other indirect block boundaries, but it
is only important for the first one.

Suggested by: Bruce Evans
MFC:          2 weeks

11 years agoReplace log(3) with flsll(3) for watchdogd(8) and drop libm dependency.
delphij [Sat, 3 Nov 2012 18:38:28 +0000 (18:38 +0000)]
Replace log(3) with flsll(3) for watchdogd(8) and drop libm dependency.

MFC after: 2 weeks

11 years agoMerge r242395,242483 from mutex implementation:
attilio [Sat, 3 Nov 2012 15:57:37 +0000 (15:57 +0000)]
Merge r242395,242483 from mutex implementation:
give rwlock(9) the ability to crunch different type of structures, with
the only constraint that they have a lock cookie named rw_lock.
This name, then, becames reserved from the struct that wants to use
the rwlock(9) KPI and other locking primitives cannot reuse it for
their members.

Namely such structs are the current struct rwlock and the new struct
rwlock_padalign. The new structure will define an object which has the
same layout of a struct rwlock but will be allocated in areas aligned
to the cache line size and will be as big as a cache line.

For further details check comments on above mentioned revisions.

Reviewed by: jimharris, jeff

11 years agoRevert the change that makes less default.
eadler [Sat, 3 Nov 2012 14:46:15 +0000 (14:46 +0000)]
Revert the change that makes less default.

Since I've committed this I've receieved roughly an equal
amount of email thanking me for making this change
and asking me to revert it.

I've resisted making this change because
new users tend to prefer less over more
and these users are the least likely to know
how to change the PAGER on their own.

Requested by: many
Objected to: just as many
Decision made by: core
Approved by: cperciva
MFC after: 3 days

11 years agoFix errno in a couple of error cases.
tuexen [Sat, 3 Nov 2012 13:22:25 +0000 (13:22 +0000)]
Fix errno in a couple of error cases.

MFC after: 3 days

11 years agoPrint a newline after the error message.
jh [Sat, 3 Nov 2012 09:18:37 +0000 (09:18 +0000)]
Print a newline after the error message.

PR: bin/168447
Submitted by: Boris Kochergin

11 years agoHAL API updates, from the previous couple of HAL commits.
adrian [Sat, 3 Nov 2012 04:56:08 +0000 (04:56 +0000)]
HAL API updates, from the previous couple of HAL commits.

11 years agoHAL API changes!
adrian [Sat, 3 Nov 2012 04:55:43 +0000 (04:55 +0000)]
HAL API changes!

* introduce a new HAL API method to pull out the TX status descriptor
  contents.

* Add num_delims to the 11n first aggr method.  This isn't used by the
  driver at the moment so it won't affect anything.

11 years agoAdd a debug method to dump the EDMA TX status descriptor contents out.
adrian [Sat, 3 Nov 2012 04:53:44 +0000 (04:53 +0000)]
Add a debug method to dump the EDMA TX status descriptor contents out.

This requires some HAL API changes to be useful, as there's no way
right now to pull out the TX status descriptor contents.

11 years agoSync strlcpy with userland version.
delphij [Sat, 3 Nov 2012 04:29:24 +0000 (04:29 +0000)]
Sync strlcpy with userland version.

MFC after: 1 month

11 years agoSync strlen with userland implementation.
delphij [Sat, 3 Nov 2012 04:28:53 +0000 (04:28 +0000)]
Sync strlen with userland implementation.

MFC after: 1 month

11 years agoFix typo
bapt [Sat, 3 Nov 2012 00:30:22 +0000 (00:30 +0000)]
Fix typo

11 years agoIf no contents keyword is specified, the default for files is
sjg [Sat, 3 Nov 2012 00:10:30 +0000 (00:10 +0000)]
If no contents keyword is specified, the default for files is
the named file.

Approved by: marcel (mentor)

11 years agoAdd a couple of examples.
joel [Fri, 2 Nov 2012 22:32:47 +0000 (22:32 +0000)]
Add a couple of examples.

Obtained from: OpenBSD

11 years agoCopy code from scsi_read_write() as mfi_build_syspd_cdb() to build SCSI
delphij [Fri, 2 Nov 2012 22:07:45 +0000 (22:07 +0000)]
Copy code from scsi_read_write() as mfi_build_syspd_cdb() to build SCSI
command properly.  Without this change, mfi(4) always sends 10 byte READ
and WRITE commands, which will cause data corruption when device is
larger than 2^32 sectors.

PR: kern/173291
Submitted by: Steven Hartland <steven.hartland multiplay.co.uk>
Reviewed by: mav
MFC after: 2 weeks

11 years agoUpdate nsamples and nbuffers defaults to match reality.
jimharris [Fri, 2 Nov 2012 22:03:39 +0000 (22:03 +0000)]
Update nsamples and nbuffers defaults to match reality.

11 years agoA few minor adjustments after r242424:
joel [Fri, 2 Nov 2012 21:47:21 +0000 (21:47 +0000)]
A few minor adjustments after r242424:

- Sort entries in SYNOPSIS.
- Start sentence on a new line.
- Remove redundant textdump dump description.

Submitted by: bde

11 years ago - In cancel_mkdir_dotdot don't panic if the inodedep is not available. If
jeff [Fri, 2 Nov 2012 21:04:06 +0000 (21:04 +0000)]
 - In cancel_mkdir_dotdot don't panic if the inodedep is not available.  If
   the previous diradd had already finished it could have been reclaimed
   already.  This would only happen under heavy dependency pressure.

Reported by: Andrey Zonov <zont@FreeBSD.org>
Discussed with: mckusick
MFC after: 1 week

11 years agoMerge 242488, better use of strlcpy.
alfred [Fri, 2 Nov 2012 18:57:38 +0000 (18:57 +0000)]
Merge 242488, better use of strlcpy.

Submitted by: Eric van Gyzen <eric@vangyzen.net>

11 years agoDocument that you can use -v along with -l.
alfred [Fri, 2 Nov 2012 17:30:08 +0000 (17:30 +0000)]
Document that you can use -v along with -l.

Noticed by: pjd

11 years agoTweak comment to make more clear why it will fail.
attilio [Fri, 2 Nov 2012 16:31:01 +0000 (16:31 +0000)]
Tweak comment to make more clear why it will fail.

Submitted by: jimharris

11 years agokdump: Also decode fcntl commands containing underscores and digits.
jilles [Fri, 2 Nov 2012 16:07:21 +0000 (16:07 +0000)]
kdump: Also decode fcntl commands containing underscores and digits.

The commands F_SETLK_REMOTE, F_DUPFD_CLOEXEC and F_DUP2FD_CLOEXEC were not
decoded.

11 years agoAdd more obsolete files.
antoine [Fri, 2 Nov 2012 15:06:01 +0000 (15:06 +0000)]
Add more obsolete files.

11 years agoDon't allow for more than one segment for the control space since
mjacob [Fri, 2 Nov 2012 14:38:57 +0000 (14:38 +0000)]
Don't allow for more than one segment for the control space since
we're not set up to deal with that.

X-MFC: 242479
MFC after: 1 week

11 years agoDon't allow for more than one segment for the control space since
mjacob [Fri, 2 Nov 2012 14:37:21 +0000 (14:37 +0000)]
Don't allow for more than one segment for the control space since
we're not set up to deal with that.

MFC after: 1 week

11 years agoThe r241025 fixed the case when a binary, executed from nullfs mount,
kib [Fri, 2 Nov 2012 13:56:36 +0000 (13:56 +0000)]
The r241025 fixed the case when a binary, executed from nullfs mount,
was still possible to open for write from the lower filesystem.  There
is a symmetric situation where the binary could already has file
descriptors opened for write, but it can be executed from the nullfs
overlay.

Handle the issue by passing one v_writecount reference to the lower
vnode if nullfs vnode has non-zero v_writecount.  Note that only one
write reference can be donated, since nullfs only keeps one use
reference on the lower vnode.  Always use the lower vnode v_writecount
for the checks.

Introduce the VOP_GET_WRITECOUNT to read v_writecount, which is
currently always bypassed to the lower vnode, and VOP_ADD_WRITECOUNT
to manipulate the v_writecount value, which manages a single bypass
reference to the lower vnode.  Caling the VOPs instead of directly
accessing v_writecount provide the fix described in the previous
paragraph.

Tested by: pho
MFC after: 3 weeks

11 years ago- Fix struct and struct fields names.
glebius [Fri, 2 Nov 2012 13:54:06 +0000 (13:54 +0000)]
- Fix struct and struct fields names.
- Remove NGM_ATM_CARRIER_CHANGE, which was removed in r118175.

Submitted by: Mamontov Roman <mr.xanto gmail.com>

11 years ago Remove separate paragraph on ASCII messages and instead
glebius [Fri, 2 Nov 2012 13:51:47 +0000 (13:51 +0000)]
 Remove separate paragraph on ASCII messages and instead
provide this information along with messages documentation,
like this done in manual pages for other netgraph nodes.

Submitted by: Mamontov Roman <mr.xanto gmail.com>

11 years agoFix broken macro checking in the libc++ Makefile, introduced in r241909.
dim [Fri, 2 Nov 2012 12:18:38 +0000 (12:18 +0000)]
Fix broken macro checking in the libc++ Makefile, introduced in r241909.
This caused -std=c++0x not to be passed to the build by default.

Pointy hat to: dim
MFC after: 3 days

11 years agoMFV pciids-20121024, r242469
philip [Fri, 2 Nov 2012 11:13:44 +0000 (11:13 +0000)]
MFV pciids-20121024, r242469

Update to use the latest version of the PCI IDs Repository.

MFC after: 1 week

11 years agoo OpenBSD 5.2 added.
maxim [Fri, 2 Nov 2012 07:36:16 +0000 (07:36 +0000)]
o OpenBSD 5.2 added.

11 years ago- If DRM_DEBUG_DEFAULT_ON is defined, then initialize drm_debug_flagi to
glebius [Fri, 2 Nov 2012 05:26:33 +0000 (05:26 +0000)]
- If DRM_DEBUG_DEFAULT_ON is defined, then initialize drm_debug_flagi to
  all supported debugging bits.
- If DRM_DEBUG_DEFAULT_ON isn't defined, then initialize drm_debug_flag
  to zero.

DRM_DEBUG_DEFAULT_ON is defined when module is build with -DDEBUG_DRM
or if kernel config has 'options DEBUG_DRM'.

Reviewed by: kib

11 years agoDrop this from 500 to 128, to save a little space on memory constrained
adrian [Fri, 2 Nov 2012 05:23:05 +0000 (05:23 +0000)]
Drop this from 500 to 128, to save a little space on memory constrained
platforms.

11 years agoFree the dma map -after- it's checked, not before. Or you'll be
adrian [Fri, 2 Nov 2012 05:22:32 +0000 (05:22 +0000)]
Free the dma map -after- it's checked, not before. Or you'll be
potentially referencing already-freed memory.

11 years agoRemove the recently added sysctl variable net.pfil.forward.
ae [Fri, 2 Nov 2012 01:20:55 +0000 (01:20 +0000)]
Remove the recently added sysctl variable net.pfil.forward.
Instead, add protocol specific mbuf flags M_IP_NEXTHOP and
M_IP6_NEXTHOP. Use them to indicate that the mbuf's chain
contains the PACKET_TAG_IPFORWARD tag. And do a tag lookup
only when this flag is set.

Suggested by: andre

11 years ago10 years too late add support for "2.88MB 3.5in Extra High Density"
eadler [Fri, 2 Nov 2012 00:17:30 +0000 (00:17 +0000)]
10 years too late add support for "2.88MB 3.5in Extra High Density"
floppies.

Its unlikely that anyone actually uses these or cares about these
anymore, since we support other floppy types and this change doesn't
hurt - just add it.

PR: conf/40777
Submitted by: Antti Kantee <pooka@cubical.fi>
Arrival-Date: Fri Jul 19 08:50:02 PDT 2002
Approved by: cperciva (implicit)
MFC after: 1 week

11 years agofopen(3): Mention that the "x" mode option is from C11.
jilles [Thu, 1 Nov 2012 22:47:42 +0000 (22:47 +0000)]
fopen(3): Mention that the "x" mode option is from C11.

MFC after: 1 week

11 years agoAdd descriptions for callout_reset_on and callout_schedule_on and
jimharris [Thu, 1 Nov 2012 21:00:13 +0000 (21:00 +0000)]
Add descriptions for callout_reset_on and callout_schedule_on and
their curcpu variants.

Discussed with: mav, davide
MFC after: 1 week

11 years agoCorrect buffer size printout.
hselasky [Thu, 1 Nov 2012 20:58:55 +0000 (20:58 +0000)]
Correct buffer size printout.

MFC after: 1 week

11 years agoIncrease default volume for FastTracker playback channels.
hselasky [Thu, 1 Nov 2012 20:43:23 +0000 (20:43 +0000)]
Increase default volume for FastTracker playback channels.

MFC after: 1 week

11 years agoDon't disable PCIe just because the host is not a PCI host; the latter flag
jmallett [Thu, 1 Nov 2012 20:39:39 +0000 (20:39 +0000)]
Don't disable PCIe just because the host is not a PCI host; the latter flag
only applies to non-PCIe systems.  If PCIe is in target mode, it will simply
and gracefully fail to attach of its own accord.

11 years agoFix sysctl free bug in last commit, which eventually leads to a panic.
hselasky [Thu, 1 Nov 2012 20:09:48 +0000 (20:09 +0000)]
Fix sysctl free bug in last commit, which eventually leads to a panic.
Add software mixer table for FastTrack Ultra.
Only set volume controls which are valid at startup for standard
USB audio devices, so that settings like treble and bass use
the reset defaults.

MFC after: 1 week

11 years agoThe test fails with "exit 1" if /usr/games/fortune doesn't actually
eadler [Thu, 1 Nov 2012 19:38:03 +0000 (19:38 +0000)]
The test fails with "exit 1" if /usr/games/fortune doesn't actually
exist.  Fix that.

PR: conf/71994
Submitted by: Mikael Eklund <rma@ludd.ltu.se>
Reviewed by: crees
Reviewed by: jilles
Approved by: cperciva (implicit)
MFC after: 3 days

11 years agoAdd an option to display the current dump device via dumpon -l.
alfred [Thu, 1 Nov 2012 18:59:19 +0000 (18:59 +0000)]
Add an option to display the current dump device via dumpon -l.

MFC after: 2 weeks

11 years agoSort textdump options list.
joel [Thu, 1 Nov 2012 17:17:05 +0000 (17:17 +0000)]
Sort textdump options list.

Submitted by: bde

11 years agoAdd whitespace between mandatory and optional kernel
alfred [Thu, 1 Nov 2012 17:13:04 +0000 (17:13 +0000)]
Add whitespace between mandatory and optional kernel
config options.

Approved by: joel

11 years agoProvide a device name in the sysctl tree for programs to query the
alfred [Thu, 1 Nov 2012 17:01:05 +0000 (17:01 +0000)]
Provide a device name in the sysctl tree for programs to query the
state of crashdump target devices.

This will be used to add a "-l" (ell) flag to dumpon(8) to list the
currently configured dumpdev.

Reviewed by: phk

11 years agoExport all mixer nodes into dev.pcm.X.mixer.Y sysctl nodes, hence the
hselasky [Thu, 1 Nov 2012 16:54:26 +0000 (16:54 +0000)]
Export all mixer nodes into dev.pcm.X.mixer.Y sysctl nodes, hence the
PCM API doesn't support showing all the knobs. Make sure all the USB audio
mixer nodes are freed at detach. Before this patch USB audio would leak
some memory at detach. Print out buffer sizes in number of samples at attach.
Fix setting of volume controls when the number of channels is greater than two.

MFC after: 1 week

11 years agoAdd missing inclusion guard.
hselasky [Thu, 1 Nov 2012 16:39:01 +0000 (16:39 +0000)]
Add missing inclusion guard.

11 years agoIn general, we call pmap_remove_all() before calling vm_page_cache(). So,
alc [Thu, 1 Nov 2012 16:20:02 +0000 (16:20 +0000)]
In general, we call pmap_remove_all() before calling vm_page_cache().  So,
the call to pmap_remove_all() within vm_page_cache() is usually redundant.
This change eliminates that call to pmap_remove_all() and introduces a
call to pmap_remove_all() before vm_page_cache() in the one place where
it didn't already exist.

When iterating over a paging queue, if the object containing the current
page has a zero reference count, then the page can't have any managed
mappings.  So, a call to pmap_remove_all() is pointless.

Change a panic() call in vm_page_cache() to a KASSERT().

MFC after: 6 weeks

11 years agoEnable the new instructions for reading and writing bases for %fs,
kib [Thu, 1 Nov 2012 15:17:43 +0000 (15:17 +0000)]
Enable the new instructions for reading and writing bases for %fs,
%gs, when supported.  Note that WRFSBASE and WRGSBASE are not very
useful on FreeBSD right now, because a return from the kernel mode to
userspace reloads the bases specified by the sysarch(2) syscall, most
likely.

Enable the Supervisor Mode Execution Prevention (SMEP) when
supported. Since the loader(8) performs hand-off to the kernel with
the page tables which contradict the SMEP, postpone enabling the SMEP
on BSP until pmap switched for the proper kernel tables.

Debugged with the help from: avg
Tested by: avg, Michael Moll <kvedulv@kvedulv.de>
MFC after: 1 month

11 years agoProvide the reading and display of the Standard Extended Features,
kib [Thu, 1 Nov 2012 15:14:37 +0000 (15:14 +0000)]
Provide the reading and display of the Standard Extended Features,
introduced with the IvyBridge CPUs.  Provide the definitions for new
bits in CR3 and CR4 registers.

Tested by: avg, Michael Moll <kvedulv@kvedulv.de>
MFC after: 2 weeks

11 years agoFix build for SMP.
cognet [Thu, 1 Nov 2012 12:26:31 +0000 (12:26 +0000)]
Fix build for SMP.

Submitted by: Giovanni Trematerra <gianni at freebsd DOT org>

11 years ago- Portability changes for ARM
gabor [Thu, 1 Nov 2012 11:38:34 +0000 (11:38 +0000)]
- Portability changes for ARM
- Allow larger sort memory on 64-bit platforms

Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>

11 years agofcntl(2): Fix typos in name of constant "F_DUP2FD_CLOEXEC".
jilles [Thu, 1 Nov 2012 09:38:28 +0000 (09:38 +0000)]
fcntl(2): Fix typos in name of constant "F_DUP2FD_CLOEXEC".

MFC after: 1 week

11 years agoNuke whitespace.
joel [Thu, 1 Nov 2012 07:53:21 +0000 (07:53 +0000)]
Nuke whitespace.

11 years agoMinor mdoc fix.
joel [Thu, 1 Nov 2012 07:51:50 +0000 (07:51 +0000)]
Minor mdoc fix.

11 years agoTCP/UDP checksum offloading feature for IP fragmented datagram was
yongari [Thu, 1 Nov 2012 06:02:27 +0000 (06:02 +0000)]
TCP/UDP checksum offloading feature for IP fragmented datagram was
removed in r99417.  bge(4) controllers can do TCP checksum offload
for IP fragmented datagrams but unlike ti(4), it lacks UDP checksum
offloading for IP fragmented datagrams. The problem was bge(4)
blindly requested TCP/UDP checksum for IP fragmented datagrams such
that it resulted in corrupted UDP datagrams before r99417.
Remove remaining code for TCP checksum offloading for IP fragmented
datagrams which should have been removed in r99417.

11 years agoRemove TCP/UDP checksum offloading feature for IP fragmented
yongari [Thu, 1 Nov 2012 05:39:21 +0000 (05:39 +0000)]
Remove TCP/UDP checksum offloading feature for IP fragmented
datagrams.  Traditionally upper stack fragmented packets without
computing TCP/UDP checksum and these datagrams were passed to
driver.  But there are chances that other packets slip into the
interface queue in SMP world. If this happens firmware running on
MIPS 4000 processor in the controller would see mixed packets and
it shall send out corrupted packets.
While I'm here simplify checksum offloading setup.

MFC After: 1 week

11 years agoSmall textdump enhancements.
alfred [Thu, 1 Nov 2012 04:07:08 +0000 (04:07 +0000)]
Small textdump enhancements.

Allow textdumps to be called explicitly from DDB.

If "dump" is called in DDB and textdumps are enabled then abort the
dump and tell the user to turn off textdumps.

Add options TEXTDUMP_PREFERRED to turn textdumps on by default.
Add options TEXTDUMP_VERBOSE to be a bit more verbose while textdumping.

Reviewed by: rwatson

MFC after: 2 weeks

11 years agoHandle the management port on the EBT5600 and disable loopback. The XAUI
jmallett [Thu, 1 Nov 2012 03:45:33 +0000 (03:45 +0000)]
Handle the management port on the EBT5600 and disable loopback.  The XAUI
port connected to the Broadcom switch does not seem operable, but it's unclear
if that's simply due to a lack of configuration information for the switch.
The switch does not seem to present any identifying information via MDIO,
and is a BCM56512.