]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoRise priority of the informational messages from LOG_INFO to LOG_NOTICE,
mav [Mon, 5 Nov 2012 23:20:48 +0000 (23:20 +0000)]
Rise priority of the informational messages from LOG_INFO to LOG_NOTICE,
same as used for OK status. Otherwise it looks strange when OK status is
reported, while informational is not.

11 years agoAllow CC to be gcc46 or similar by matching gcc*.
brooks [Mon, 5 Nov 2012 23:05:14 +0000 (23:05 +0000)]
Allow CC to be gcc46 or similar by matching gcc*.

Don't test the value of the :M matches, either the string matches or does
not.

11 years agoAdd assertion to enforce 'nat global' locking requierements changed by r241908.
melifaro [Mon, 5 Nov 2012 22:54:00 +0000 (22:54 +0000)]
Add assertion to enforce 'nat global' locking requierements changed by r241908.

Suggested by: adrian, glebius
MFC after: 3 days

11 years agoUse unified print_dyn_rule_flags() function for debugging messages
melifaro [Mon, 5 Nov 2012 22:30:56 +0000 (22:30 +0000)]
Use unified print_dyn_rule_flags() function for debugging messages
instead of hand-made printfs in every place.

MFC after: 1 week

11 years agoNow that WITH_CLANG_IS_CC is the default on x86 systems, document
brooks [Mon, 5 Nov 2012 21:55:22 +0000 (21:55 +0000)]
Now that WITH_CLANG_IS_CC is the default on x86 systems, document
WITHOUT_CLANG_IS_CC.

11 years agoAdd a description of WITHOUT_CLANG_IS_CC.
brooks [Mon, 5 Nov 2012 21:53:23 +0000 (21:53 +0000)]
Add a description of WITHOUT_CLANG_IS_CC.

11 years agoAdd the UQ_MSC_NO_PREVENT_ALLOW quirk to handle devices that do not support
marcel [Mon, 5 Nov 2012 21:03:38 +0000 (21:03 +0000)]
Add the UQ_MSC_NO_PREVENT_ALLOW quirk to handle devices that do not support
the 'PREVENT/ALLOW MEDIUM REMOVAL' SCSI command. An example of such a
device is the STmicro ST72682. We send the SCSI command for every open and
close, which can result in a significant amount of spam on the console
during boot.

Reviewed by: hps@

11 years agoMove from early SSN assignment to late SSN assignment.
tuexen [Mon, 5 Nov 2012 20:55:17 +0000 (20:55 +0000)]
Move from early SSN assignment to late SSN assignment.
This doesn't change functionality, but makes upcoming change
much easier.
Developed with rrs@ at the IETF 85.

MFC after: 1 week

11 years agoFix a minor error in the clang update note.
brooks [Mon, 5 Nov 2012 19:20:18 +0000 (19:20 +0000)]
Fix a minor error in the clang update note.

Reported by: emaste

11 years agoRemove duplicate const specifiers in many drivers (I hope I got all of
dim [Mon, 5 Nov 2012 19:16:27 +0000 (19:16 +0000)]
Remove duplicate const specifiers in many drivers (I hope I got all of
them, please let me know if not).  Most of these are of the form:

static const struct bzzt_type {
[...list of members...]
} const bzzt_devs[] = {
[...list of initializers...]
};

The second const is unnecessary, as arrays cannot be modified anyway,
and if the elements are const, the whole thing is const automatically
(e.g. it is placed in .rodata).

I have verified this does not change the binary output of a full kernel
build (except for build timestamps embedded in the object files).

Reviewed by: yongari, marius
MFC after: 1 week

11 years agoAfter years of hard work by many FreeBSD and LLVM developers, make
brooks [Mon, 5 Nov 2012 19:08:18 +0000 (19:08 +0000)]
After years of hard work by many FreeBSD and LLVM developers, make
clang the default compiler on i386 and amd64 systems.

Special thanks to: dim, ed, rdivacky

11 years agoIn sys/contrib/ngatm/netnatm/msg/uni_ie.c, fix a few warnings from newer
dim [Mon, 5 Nov 2012 19:00:25 +0000 (19:00 +0000)]
In sys/contrib/ngatm/netnatm/msg/uni_ie.c, fix a few warnings from newer
versions of clang 3.2, about comparing enum uni_cause values against
integer constants which fall outside the enum range.  No functional
change.

MFC after: 3 days

11 years agoFix a few warnings from newer clang 3.2 in libpmc, about comparing enum
dim [Mon, 5 Nov 2012 18:49:21 +0000 (18:49 +0000)]
Fix a few warnings from newer clang 3.2 in libpmc, about comparing enum
pmc_event values against integer constants which fall outside the enum
range.

Reviewed by: fabient, sbruno
MFC after: 3 days

11 years agoFix a minor typo.
mav [Mon, 5 Nov 2012 18:18:03 +0000 (18:18 +0000)]
Fix a minor typo.

11 years agosh: Change cmdtype in tblentry from short to signed char.
jilles [Mon, 5 Nov 2012 17:52:18 +0000 (17:52 +0000)]
sh: Change cmdtype in tblentry from short to signed char.

If this is a smaller type than int anyway, we can make it the smallest
possible.

11 years agoAdd a jitter buffer in the common USB serial driver code which
hselasky [Mon, 5 Nov 2012 17:50:40 +0000 (17:50 +0000)]
Add a jitter buffer in the common USB serial driver code which
temporarily stores characters if the TTY buffer is full when
used a as a console. This can happen when a console is suspended.
Also properly do the flow stop signalling when this happens and
flow start when the condition changes back to normal again.

Bump __FreeBSD_version to force external kernel modules
to be recompiled. No kernel API changes.

MFC after: 1 week
Suggested by: ed @

11 years agoFix build with clang: properly terminate comment even in #if 0 blocks.
delphij [Mon, 5 Nov 2012 17:42:50 +0000 (17:42 +0000)]
Fix build with clang: properly terminate comment even in #if 0 blocks.

Submitted by: dim

11 years agoA clarification to the behaviour of the active vnode list management
kib [Mon, 5 Nov 2012 16:40:42 +0000 (16:40 +0000)]
A clarification to the behaviour of the active vnode list management
regarding the vnode page cleaning.

In collaboration with: pho
MFC after: 1 week

11 years agofuse_io* must be able to crunch also VDIR vnodes.
attilio [Mon, 5 Nov 2012 15:23:54 +0000 (15:23 +0000)]
fuse_io* must be able to crunch also VDIR vnodes.
Update assert appropriately.

Reported and Tested by: flo
MFC after: 2 months
X-MFC: 241519,242536

11 years agoSync with domain and protosw data structures.
kevlo [Mon, 5 Nov 2012 09:45:37 +0000 (09:45 +0000)]
Sync with domain and protosw data structures.

Reviewed by: glebius

11 years agoClear IFF_DRV_OACTIVE if any slots were completed.
adrian [Mon, 5 Nov 2012 09:27:47 +0000 (09:27 +0000)]
Clear IFF_DRV_OACTIVE if any slots were completed.

This unblocks TX EDMA under high load.

11 years agoBack out r242262. The simplified window change/update logic wasn't
andre [Mon, 5 Nov 2012 09:13:06 +0000 (09:13 +0000)]
Back out r242262.  The simplified window change/update logic wasn't
complete and ready for production use.

PR: kern/173309

11 years agoTX EDMA debugging fixes:
adrian [Mon, 5 Nov 2012 07:08:45 +0000 (07:08 +0000)]
TX EDMA debugging fixes:

* Do the calculation for each ath_buf, rather than just the first
* Correct the calculation in the first place.

11 years agoRevert previous commit.
kevlo [Mon, 5 Nov 2012 02:34:52 +0000 (02:34 +0000)]
Revert previous commit.

11 years agoCatch up with r242520. s/maxusers/maxbikesheds
kevlo [Mon, 5 Nov 2012 01:42:57 +0000 (01:42 +0000)]
Catch up with r242520. s/maxusers/maxbikesheds

11 years agoRevert r228695. We use __func__ here as a format to distinguish between
pjd [Mon, 5 Nov 2012 00:38:14 +0000 (00:38 +0000)]
Revert r228695. We use __func__ here as a format to distinguish between
abort and assert. It would be cleaner to use NULL or "" here, but gcc
complains in both cases.

11 years agortld: Fix fd leak with parallel dlopen and fork/exec.
jilles [Sun, 4 Nov 2012 21:42:24 +0000 (21:42 +0000)]
rtld: Fix fd leak with parallel dlopen and fork/exec.

Rtld did not set FD_CLOEXEC on its internal file descriptors; therefore,
such a file descriptor may be passed to a process created by another thread
running in parallel to dlopen() or fdlopen().

No other threads are expected to be running during parsing of the hints
and libmap files but the file descriptors need not be passed to child
processes so add O_CLOEXEC there as well.

This change will break fdlopen() (as used by OpenPAM) on kernels without
F_DUPFD_CLOEXEC (added in July). Note that running new userland on old
kernels is not supported.

Reviewed by: kib

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.