]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMerge the big-endian ARM targets together, and the little-endian ARM
andrew [Sun, 5 Oct 2014 11:06:22 +0000 (11:06 +0000)]
Merge the big-endian ARM targets together, and the little-endian ARM
targets. With this we assume any ARM target containing eb is big-endian,
otherwise it is little-endian.

9 years ago1) For %Z format, understand "UTC" name too.
ache [Sun, 5 Oct 2014 07:29:50 +0000 (07:29 +0000)]
1) For %Z format, understand "UTC" name too.
2) Return NULL if timegm() fails, because it means we can convert
what we have in GMT to local time needed.

9 years ago- Refactor defining variables.
nyan [Sun, 5 Oct 2014 07:27:05 +0000 (07:27 +0000)]
- Refactor defining variables.
- Merge common modules both i386 and amd64 into one if-endif.
- Sort.
- There are no functional changes.

9 years agoAvoid unnecessary ppeers_lock acquisition in exit1.
mjg [Sun, 5 Oct 2014 07:21:41 +0000 (07:21 +0000)]
Avoid unnecessary ppeers_lock acquisition in exit1.

MFC after: 1 week

9 years agoEliminate use of M_EXT in IP6_EXTHDR_CHECK() by trimming a redundant
rwatson [Sun, 5 Oct 2014 06:28:53 +0000 (06:28 +0000)]
Eliminate use of M_EXT in IP6_EXTHDR_CHECK() by trimming a redundant
'if'/'else' case: it matches the simple 'else' case that follows.

This reduces awareness of external-storage mechanics outside of the
mbuf allocator.

Reviewed by: bz
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D900

9 years agoFix typo.
ae [Sun, 5 Oct 2014 06:06:48 +0000 (06:06 +0000)]
Fix typo.

9 years agoRework bootparttest to use more code from sys/boot.
ae [Sun, 5 Oct 2014 06:04:47 +0000 (06:04 +0000)]
Rework bootparttest to use more code from sys/boot.
Use disk_open() call to emulate loader behavior.

9 years agoAdd a bit more debug messages.
ae [Sun, 5 Oct 2014 06:00:22 +0000 (06:00 +0000)]
Add a bit more debug messages.

9 years agoipfilter bug #537 NAT rules with sticky have incorrect hostmap IP address.
cy [Sun, 5 Oct 2014 03:58:30 +0000 (03:58 +0000)]
ipfilter bug #537 NAT rules with sticky have incorrect hostmap IP address.
This fixes when an IP address mapping is put in the hostmap table for
sticky NAT rules, it ends up having the wrong byte order.

Obtained from: ipfilter CVS repo (r1.102), NetBSD CVS repo (r1.12)

9 years agoipfilter bug #534 destination list hashing not endian neutral
cy [Sun, 5 Oct 2014 03:52:09 +0000 (03:52 +0000)]
ipfilter bug #534 destination list hashing not endian neutral

Obtained from: ipfilter CVS repo (r1.26), NetBSD CVS repo (r1.8)

9 years agoipfilter bug #538 ipf_p_dns_del should return void
cy [Sun, 5 Oct 2014 03:48:09 +0000 (03:48 +0000)]
ipfilter bug #538 ipf_p_dns_del should return void

Obtained from: ipfilter cvs repo (r1.8)

9 years agoipfilter bug #554 Determining why a ipf rule matches is hard -- replace
cy [Sun, 5 Oct 2014 03:45:19 +0000 (03:45 +0000)]
ipfilter bug #554 Determining why a ipf rule matches is hard -- replace
ipfilter rule compare with new ipf_rule_compare() function.

Obtained from: ipfilter CVS rep (r1.129)

9 years agoipfiler bug #550 filter rule list corrupted with inserted rules
cy [Sun, 5 Oct 2014 03:41:47 +0000 (03:41 +0000)]
ipfiler bug #550 filter rule list corrupted with inserted rules

Obtained from: ipfilter CVS repo (r1.128); NetBSD CVS repo (r1.15)

9 years agoRemove stray uma_mtx lock/unlock in zone_drain_wait()
bryanv [Sun, 5 Oct 2014 03:18:30 +0000 (03:18 +0000)]
Remove stray uma_mtx lock/unlock in zone_drain_wait()

Callers of zone_drain_wait(M_WAITOK) do not need to hold (and were not)
the uma_mtx, but we would attempt to unlock and relock the mutex if we
had to sleep because the zone was already draining. The M_NOWAIT callers
may hold the uma_mtx, but we do not sleep in that case.

Reviewed by: jhb
MFC after: 3 days

9 years agoUse printb() for boolean flags in ro_opts and actor_state for LACP.
hrs [Sun, 5 Oct 2014 02:37:01 +0000 (02:37 +0000)]
Use printb() for boolean flags in ro_opts and actor_state for LACP.

9 years ago- Move L2 addr configuration for the primary port to a taskqueue. This fixes
hrs [Sun, 5 Oct 2014 02:34:21 +0000 (02:34 +0000)]
- Move L2 addr configuration for the primary port to a taskqueue.  This fixes
  LOR of softc rmlock in iflladdr_event handlers.

- Call if_delmulti_ifma() after LACP_UNLOCK().  This fixes another LOR.

- Fix a panic in lacp_transit_expire().

- Fix a panic in lagg_input() upon shutting down a port.

9 years agoGet rid of crshared.
mjg [Sun, 5 Oct 2014 02:16:53 +0000 (02:16 +0000)]
Get rid of crshared.

9 years agoInclude urndis(4) in list of devices for which we generate hardware notes.
gavin [Sat, 4 Oct 2014 23:56:25 +0000 (23:56 +0000)]
Include urndis(4) in list of devices for which we generate hardware notes.

MFC after: 3 days

9 years agoSlightly reword comment. Move code, which is described by the
kib [Sat, 4 Oct 2014 18:51:55 +0000 (18:51 +0000)]
Slightly reword comment.  Move code, which is described by the
comment, after it.

Discussed with: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agovt(4): Don't recalculate buffer size if we don't know screen size
dumbbell [Sat, 4 Oct 2014 18:40:40 +0000 (18:40 +0000)]
vt(4): Don't recalculate buffer size if we don't know screen size

When the screen size is unknown, it's set to 0x0. We can't use that as
the buffer size, otherwise, functions such as vtbuf_fill() will fail.

This fixes a panic on RaspberryPi, where there's no vt(4) backend
configured early in boot.

PR: 193981
Tested by: danilo@
MFC after: 3 days

9 years agoAdd kernel option KSTACK_USAGE_PROF to sample the stack depth on
kib [Sat, 4 Oct 2014 18:38:14 +0000 (18:38 +0000)]
Add kernel option KSTACK_USAGE_PROF to sample the stack depth on
interrupts and report the largest value seen as sysctl
debug.max_kstack_used.  Useful to estimate how close the kernel stack
size is to overflow.

In collaboration with: Larry Baird <lab@gta.com>
Sponsored by: The FreeBSD Foundation (kib)
MFC after: 1 week

9 years agoFixes for i/o during coredumping:
kib [Sat, 4 Oct 2014 18:35:00 +0000 (18:35 +0000)]
Fixes for i/o during coredumping:
- Do not dump into system files.
- Do not acquire write reference to the mount point where img.core is
  written, in the coredump().  The vn_rdwr() calls from ELF imgact
  request the write ref from vn_rdwr().  Recursive acqusition of the
  write ref deadlocks with the unmount.
- Instead, take the range lock for the whole core file.  This prevents
  parallel dumping from two processes executing the same image,
  converting the useless interleaved dump into sequential dumping,
  with second core overwriting the first.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

9 years agoAdd IO_RANGELOCKED flag for vn_rdwr(9), which specifies that vnode is
kib [Sat, 4 Oct 2014 18:28:27 +0000 (18:28 +0000)]
Add IO_RANGELOCKED flag for vn_rdwr(9), which specifies that vnode is
not locked, but range is.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

9 years agoMinor doc format fix.
pfg [Sat, 4 Oct 2014 18:00:15 +0000 (18:00 +0000)]
Minor doc format fix.

Submitted by: Yonghyeon PYUN

9 years agoMake kevent(2) periodic timer events more reliably periodic. The event
ian [Sat, 4 Oct 2014 15:59:15 +0000 (15:59 +0000)]
Make kevent(2) periodic timer events more reliably periodic.  The event
callout is now scheduled using the C_ABSOLUTE flag, and the absolute time
of each event is calculated as the time the previous event was scheduled
for plus the interval.  This ensures that latency in processing a given
event doesn't perturb the arrival time of any subsequent events.

Reviewed by: jhb

9 years agoDon't make nested definition for range_seg_cache.
delphij [Sat, 4 Oct 2014 15:42:52 +0000 (15:42 +0000)]
Don't make nested definition for range_seg_cache.

Reported by: ian
MFC after: 1 week
X-MFC-With: r272506

9 years agoSilence a warning about Tag_Virtualization_use being unknown. We don't
andrew [Sat, 4 Oct 2014 14:30:16 +0000 (14:30 +0000)]
Silence a warning about Tag_Virtualization_use being unknown. We don't
handle merging this tag correctly, however it's unused.

9 years agoPut and #ifdef _KERNEL around the #include for opt_capsicum.h to
bz [Sat, 4 Oct 2014 14:17:30 +0000 (14:17 +0000)]
Put and #ifdef _KERNEL around the #include for opt_capsicum.h to
hopefully allow the build to finish after r272505.

9 years agoAdd movw and movt relocations to the list of relocations against function
andrew [Sat, 4 Oct 2014 13:14:37 +0000 (13:14 +0000)]
Add movw and movt relocations to the list of relocations against function
names that must nnot be adjusted. This fixes a bug where code such as:
movw r2, :lower16:symbol
movt r2, :upper16:symbol

It is common for clang to generate such code when targeting armv7.

9 years agoBump max rule size to 512 opcodes.
melifaro [Sat, 4 Oct 2014 12:46:26 +0000 (12:46 +0000)]
Bump max rule size to 512 opcodes.

9 years agoMake autofs use shared vnode locks.
trasz [Sat, 4 Oct 2014 09:37:40 +0000 (09:37 +0000)]
Make autofs use shared vnode locks.

Reviewed by: kib
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoMFV r272499:
delphij [Sat, 4 Oct 2014 08:55:08 +0000 (08:55 +0000)]
MFV r272499:

Illumos issue:
    5174 add sdt probe for blocked read in dbuf_read()

MFC after: 2 weeks

9 years agoAdd a new sysctl, vfs.zfs.vol.unmap_enabled, which allows the system
delphij [Sat, 4 Oct 2014 08:51:57 +0000 (08:51 +0000)]
Add a new sysctl, vfs.zfs.vol.unmap_enabled, which allows the system
administrator to toggle whether ZFS should ignore UNMAP requests.

Illumos issue:
    5149 zvols need a way to ignore DKIOCFREE

MFC after: 2 weeks

9 years agoDiff reduction with upstream. The code change is not really applicable
delphij [Sat, 4 Oct 2014 08:41:23 +0000 (08:41 +0000)]
Diff reduction with upstream.  The code change is not really applicable
to FreeBSD.

Illumos issue:
    5148 zvol's DKIOCFREE holds zfsdev_state_lock too long

MFC after: 1 month

9 years agoAdd in decode for the AR9300 RX descriptor.
adrian [Sat, 4 Oct 2014 08:32:15 +0000 (08:32 +0000)]
Add in decode for the AR9300 RX descriptor.

9 years agoMFV r272496:
delphij [Sat, 4 Oct 2014 08:29:48 +0000 (08:29 +0000)]
MFV r272496:

Add tunable for number of metaslabs per vdev
(vfs.zfs.vdev.metaslabs_per_vdev).  The default remains
at 200.

Illumos issue:
    5161 add tunable for number of metaslabs per vdev

MFC after: 2 weeks

9 years agoMFV r272495:
delphij [Sat, 4 Oct 2014 08:14:10 +0000 (08:14 +0000)]
MFV r272495:

In arc_kmem_reap_now(), reap range_seg_cache too to reclaim memory in
response of memory pressure.

Illumos issue:
    5163 arc should reap range_seg_cache

MFC after: 1 week

9 years agoPlug capability races.
mjg [Sat, 4 Oct 2014 08:08:56 +0000 (08:08 +0000)]
Plug capability races.

fp and appropriate capability lookups were not atomic, which could result in
improper capabilities being checked.

This could result either in protection bypass or in a spurious ENOTCAPABLE.

Make fp + capability check atomic with the help of sequence counters.

Reviewed by: kib
MFC after: 3 weeks

9 years agoMFV r272494:
delphij [Sat, 4 Oct 2014 08:05:39 +0000 (08:05 +0000)]
MFV r272494:

Make space_map_truncate() always do space_map_reallocate().  Without
this, setting space_map_max_blksz would cause panic for existing pool,
as dmu_objset_set_blocksize would fail if the object have multiple blocks.

Illumos issues:
   5164 space_map_max_blksz causes panic, does not work
   5165 zdb fails assertion when run on pool with recently-enabled
spacemap_histogram feature

MFC after: 2 weeks

9 years agoAdd sequence counters with memory barriers.
mjg [Sat, 4 Oct 2014 08:03:52 +0000 (08:03 +0000)]
Add sequence counters with memory barriers.

Current implementation is somewhat simplistic and hackish,
will be improved later after possible memory barrier overhaul.

Reviewed by: kib
MFC after: 3 weeks

9 years agoMFV r272493:
delphij [Sat, 4 Oct 2014 07:56:50 +0000 (07:56 +0000)]
MFV r272493:

Show individual disk capacity when doing zpool list -v.

Illumos issue:
    5147 zpool list -v should show individual disk capacity

MFC after: 1 week

9 years agoMerge pc98's machdep.c into i386/i386/machdep.c.
nyan [Sat, 4 Oct 2014 06:01:30 +0000 (06:01 +0000)]
Merge pc98's machdep.c into i386/i386/machdep.c.

9 years agoReduce diffs against i386.
nyan [Sat, 4 Oct 2014 05:03:39 +0000 (05:03 +0000)]
Reduce diffs against i386.

9 years ago- MFi386: Add compile-with option for tau32-ddk.c.
nyan [Sat, 4 Oct 2014 05:01:57 +0000 (05:01 +0000)]
- MFi386: Add compile-with option for tau32-ddk.c.
- Whitespace change.
- Remove duplicate line.

9 years agoRemove an incorrect and useless debug print.
markj [Sat, 4 Oct 2014 02:34:30 +0000 (02:34 +0000)]
Remove an incorrect and useless debug print.

X-MFC-With: r272488

9 years agoHook up support for userland CTF support in DTrace. This required some
markj [Fri, 3 Oct 2014 23:20:37 +0000 (23:20 +0000)]
Hook up support for userland CTF support in DTrace. This required some
modifications to libproc to support fetching the CTF info for a given file.

With this change, dtrace(1) is able to resolve type info for function and
USDT probe arguments, and function return values. In particular, the args[n]
syntax should now work for referencing arguments of userland probes,
provided that the requisite CTF info is available.

The uctf tests pass if the test programs are compiled with CTF info. The
current infrastructure around the DTrace test suite doesn't support this
yet.

Differential Revision: https://reviews.freebsd.org/D891
MFC after: 1 month
Relnotes: yes
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd GUID of FreeBSD slice to GPT scheme.
ae [Fri, 3 Oct 2014 21:46:07 +0000 (21:46 +0000)]
Add GUID of FreeBSD slice to GPT scheme.

MFC after: 1 week

9 years agoUpdate baseline files for EBR, MBR and PC98 now that mkimg fills in
marcel [Fri, 3 Oct 2014 20:54:35 +0000 (20:54 +0000)]
Update baseline files for EBR, MBR and PC98 now that mkimg fills in
the CHS fields appropriately when -T and -H are given on the command
line.

9 years agoAdd mkimg_chs() for those schemes that need the LBA broken down into
marcel [Fri, 3 Oct 2014 20:48:11 +0000 (20:48 +0000)]
Add mkimg_chs() for those schemes that need the LBA broken down into
cylinder, head and track numbers. Return ~0U for these values when
mkimg wasn't given both -T and -H (i.e. no geometry) or the cylinder
would be larger than the provided maximum.

Use mkimgs_chs() for the EBR, MBR and PC98 schemes to fill in the
appropriate fields. Make sure to use a "rounded" size so that the
partition is always a multiple of the track size. We reserved the
room for it in the metadata callback so that's a valid thing to
do.

Bump the mkimg version number.
While doing that again: have mkimg.o depend on the Makefile so that
a version change triggers a rebuild as needed.

9 years agoAdd dependencies to various libraries to libzfs and libzpool.
delphij [Fri, 3 Oct 2014 20:36:09 +0000 (20:36 +0000)]
Add dependencies to various libraries to libzfs and libzpool.

Submitted by: sef

9 years agoRefactor ZFS ARC reclaim checks and limits
smh [Fri, 3 Oct 2014 20:34:55 +0000 (20:34 +0000)]
Refactor ZFS ARC reclaim checks and limits

Remove previously added kmem methods in favour of defines which
allow diff minimisation between upstream code base.

Rebalance ARC free target to be vm_pageout_wakeup_thresh by default
which eliminates issue where ARC gets minimised instead of balancing
with VM pageout. The restores the target point prior to r270759.

Bring in missing upstream only changes which move unused code to
further eliminate code differences.

Add additional DTRACE probe to aid monitoring of ARC behaviour.

Enable upstream i386 code paths on platforms which don't define
UMA_MD_SMALL_ALLOC.

Fix mixture of byte an page values in arc_memory_throttle i386 code
path value assignment of available_memory.

PR: 187594
Review: D702
Reviewed by: avg
MFC after: 1 week
X-MFC-With: r270759 & r270861
Sponsored by: Multiplay

9 years agosh: Fix LINENO and prompt after $'\0 and newline.
jilles [Fri, 3 Oct 2014 20:24:56 +0000 (20:24 +0000)]
sh: Fix LINENO and prompt after $'\0 and newline.

9 years agoAdd new fields in the FADT, required by IASL 20140926-64.
grehan [Fri, 3 Oct 2014 17:27:30 +0000 (17:27 +0000)]
Add new fields in the FADT, required by IASL 20140926-64.

The new IASL from the recent acpi-ca import will error out
if it doesn't see these new fields, which were previously
reserved.

Reported by: lme
Reviewed by: neel

9 years agoWhen we fail to get a USB reference we should just return, because
hselasky [Fri, 3 Oct 2014 16:09:46 +0000 (16:09 +0000)]
When we fail to get a USB reference we should just return, because
there are no more references held.

MFC after: 3 days

9 years agoFix XHCI driver for devices which have more than 15 physical root HUB
hselasky [Fri, 3 Oct 2014 15:58:04 +0000 (15:58 +0000)]
Fix XHCI driver for devices which have more than 15 physical root HUB
ports. The current bitmap array was too small to hold more than 16
bits and would at some point toggle the context size, which then would
trigger an enumeration fault and cause a fallback to the EHCI
companion controller, if any.

MFC after: 3 days

9 years agoAllow vld and vst instructions to use the canonical form from ARM ARM when
andrew [Fri, 3 Oct 2014 15:07:43 +0000 (15:07 +0000)]
Allow vld and vst instructions to use the canonical form from ARM ARM when
including an alignment. Previously binutils would only allow instructions
in the form "vld1.64 {d0, d1}, [r0, :128]" where the final comma should
not be there, instead the above instruction should be
"vld1.64 {d0, d1}, [r0:128]".

This change duplicates the alignment code from within the function to
handle this case.

9 years agoBump .Dd
lwhsu [Fri, 3 Oct 2014 15:03:44 +0000 (15:03 +0000)]
Bump .Dd

Approved by: kevlo

9 years agoFix various issues with zvols
smh [Fri, 3 Oct 2014 14:49:48 +0000 (14:49 +0000)]
Fix various issues with zvols

When performing snapshot renames we could deadlock due to the locking
in zvol_rename_minors. In order to avoid this use the same workaround
as zvol_open in zvol_rename_minors.

Add missing zvol_rename_minors to dsl_dataset_promote_sync.

Protect against invalid index into zv_name in zvol_remove_minors.

Replace zvol_remove_minor calls with zvol_remove_minors to ensure
any potential children are also renamed.

Don't fail zvol_create_minors if zvol_create_minor returns EEXIST.

Restore the valid pool check in zfs_ioc_destroy_snaps to ensure we
don't call zvol_remove_minors when zfs_unmount_snap fails.

PR: 193803
MFC after: 1 week
Sponsored by: Multiplay

9 years agoAdd all the dmb/dsb optional limitations, including the alternative values.
andrew [Fri, 3 Oct 2014 12:20:37 +0000 (12:20 +0000)]
Add all the dmb/dsb optional limitations, including the alternative values.
These are needed for some code llvm generates when targeting ARMv7.

9 years agoAllow the optional limitation on dmb instructions as is already the case
andrew [Fri, 3 Oct 2014 12:14:19 +0000 (12:14 +0000)]
Allow the optional limitation on dmb instructions as is already the case
with dsb instructions.

9 years agoFix autofs debug macros.
trasz [Fri, 3 Oct 2014 10:18:22 +0000 (10:18 +0000)]
Fix autofs debug macros.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoMake autofs(4) use shared lock for lookups, instead of exclusive one.
trasz [Fri, 3 Oct 2014 09:58:05 +0000 (09:58 +0000)]
Make autofs(4) use shared lock for lookups, instead of exclusive one.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoUPD and UDPLite require a checksum. So check for it.
tuexen [Fri, 3 Oct 2014 08:46:49 +0000 (08:46 +0000)]
UPD and UDPLite require a checksum. So check for it.

MFC after: 3 days

9 years agoFix a bug in r272297 which prevented dumpdev from setting.
hrs [Fri, 3 Oct 2014 04:13:25 +0000 (04:13 +0000)]
Fix a bug in r272297 which prevented dumpdev from setting.
!u is not equivalent to (u != 0).

9 years agoFix failures and warnings reported by newpynfs20090424 test tool.
araujo [Fri, 3 Oct 2014 02:24:41 +0000 (02:24 +0000)]
Fix failures and warnings reported by newpynfs20090424 test tool.
This fix addresses only issues with the pynfs reports, none of these
issues are know to create problems for extant real clients.

Submitted by: Bart Hsiao <bart.hsiao@gmail.com>
Reworked by: myself
Reviewed by: rmacklem
Approved by: rmacklem
Sponsored by: QNAP Systems Inc.

9 years agobump .Dd
kevlo [Fri, 3 Oct 2014 01:39:33 +0000 (01:39 +0000)]
bump .Dd

Reported by: gjb

9 years agoMention umoscom(4) and uslcom(4).
kevlo [Fri, 3 Oct 2014 01:20:49 +0000 (01:20 +0000)]
Mention umoscom(4) and uslcom(4).

9 years agoImport the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
ngie [Thu, 2 Oct 2014 23:26:49 +0000 (23:26 +0000)]
Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles

Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade

MFC after 2 weeks
Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division

9 years agoRemove whitespace and 2 blank lines.
kargl [Thu, 2 Oct 2014 23:08:36 +0000 (23:08 +0000)]
Remove whitespace and 2 blank lines.

9 years agoHave dtrace(1) handle SIGPIPE by cleaning up and exiting. Additionally,
markj [Thu, 2 Oct 2014 22:33:35 +0000 (22:33 +0000)]
Have dtrace(1) handle SIGPIPE by cleaning up and exiting. Additionally,
install signal handlers when running in list mode (-l), and acknowledge
interrupts by cleaning up and exiting. This ensures that a command like

$ dtrace -l -P 'pid$target' -p <target PID> | less

won't cause the ptrace(2)d target process to be killed if less(1) exits
before all dtrace output is consumed.

Reported by: Anton Yuzhaninov <citrin+bsd@citrin.ru>
Differential Revision: https://reviews.freebsd.org/D880
Reviewed by: rpaulo
MFC after: 1 month
Sponsored by: EMC / Isilon Storage Division

9 years agoAdd HARDWARE section of urnis(4) driver to try to gain more visibility.
gavin [Thu, 2 Oct 2014 22:22:34 +0000 (22:22 +0000)]
Add HARDWARE section of urnis(4) driver to try to gain more visibility.

MFC after: 3 days

9 years agoFixup the setting of the baud rate.
gnn [Thu, 2 Oct 2014 22:05:48 +0000 (22:05 +0000)]
Fixup the setting of the baud rate.

9 years agoadd CAP_EVENT for the libpcap device so we will be able to use
luigi [Thu, 2 Oct 2014 21:34:52 +0000 (21:34 +0000)]
add CAP_EVENT for the libpcap device so we will be able to use
pcap--netmap which does poll() on the file descriptor

MFC after: 2 weeks

9 years agoRequire p_cansched() for changing a process' protection status via
jhb [Thu, 2 Oct 2014 21:18:16 +0000 (21:18 +0000)]
Require p_cansched() for changing a process' protection status via
procctl() rather than p_cansee().

Submitted by: rwatson
MFC after: 3 days

9 years agoRevert r272390.
hrs [Thu, 2 Oct 2014 20:17:16 +0000 (20:17 +0000)]
Revert r272390.

Pointed out by: glebius

9 years agoRemove obsolete Makefile for acpi.ko.
jkim [Thu, 2 Oct 2014 20:13:52 +0000 (20:13 +0000)]
Remove obsolete Makefile for acpi.ko.

9 years agoSeparate option handling from SIOC[SG]LAGG to SIOC[SG]LAGGOPTS for
hrs [Thu, 2 Oct 2014 20:01:13 +0000 (20:01 +0000)]
Separate option handling from SIOC[SG]LAGG to SIOC[SG]LAGGOPTS for
backward compatibility with old ifconfig(8).

9 years ago- Add a test for bug 191427 where pw(8) will go into an infinite loop
brd [Thu, 2 Oct 2014 19:53:37 +0000 (19:53 +0000)]
- Add a test for bug 191427 where pw(8) will go into an infinite loop

Reviewed by: will
MFC after: 1 month

9 years agoMerge ACPICA 20140926.
jkim [Thu, 2 Oct 2014 19:11:18 +0000 (19:11 +0000)]
Merge ACPICA 20140926.

9 years agostrptime(3): Update manpage for %U and %W.
pfg [Thu, 2 Oct 2014 18:52:29 +0000 (18:52 +0000)]
strptime(3): Update manpage for %U and %W.

%U and %W were implemented as part of r272273 so take them
out of the BUGS section and mention them in the SYNOPSIS.

MFC after: 1 month

9 years agoRemove the extra CFLAGS now that the driver has been fixed by jhb.
rpaulo [Thu, 2 Oct 2014 18:45:00 +0000 (18:45 +0000)]
Remove the extra CFLAGS now that the driver has been fixed by jhb.

9 years agostrptime: %s format fix.
pfg [Thu, 2 Oct 2014 18:33:58 +0000 (18:33 +0000)]
strptime: %s format fix.

Almost never needed in real life because %s is tends to be
only one format spec.
1) Return code of gmtime_r() is checked.
2) All flags are set.

Submitted by: ache
MFC after: 3 weeks

9 years agoMake sure we always set the maximum number of valid contexts.
hselasky [Thu, 2 Oct 2014 16:56:00 +0000 (16:56 +0000)]
Make sure we always set the maximum number of valid contexts.

MFC after: 3 days

9 years agovt(4): Save/restore keyboard mode & LED states when switching window
dumbbell [Thu, 2 Oct 2014 16:36:37 +0000 (16:36 +0000)]
vt(4): Save/restore keyboard mode & LED states when switching window

Add new functions to manipulate these mode & state, instead of calling
kbdd_ioctl() everyhere.

This fixes at least two bugs:

    1. The state of the Scroll Lock LED and the state of scroll mode
       could be out-of-sync. For instance, if one enables scroll mode on
       window #1 and switches to window #2, the LED would remain on, but
       the window wouldn't be in scroll mode.

       Similarily, when switching between a console and an X.Org
       session, the LED states could be inconsistent with the real
       state.

    2. When exiting from an X.Org session, the user could be unable to
       type anything. The workaround was to switch to another console
       window and come back.

Differential Revision: https://reviews.freebsd.org/D821
Reviewed by: ray@
Approved by: ray@
Tested by: kwm@
MFC after: 3 days

9 years agoMerge the following revisions from ^/projects/release-vmimage:
gjb [Thu, 2 Oct 2014 16:13:12 +0000 (16:13 +0000)]
Merge the following revisions from ^/projects/release-vmimage:

r272234, r272236, r272262, r272264, r272269, r272271, r272272,
r272277, r272279, r272376, r272380, r272381, r272392, r272234,
r272412:

r272234:
  Initial commit to include virtual machine images as part
  of the FreeBSD release builds.

  This adds a make(1) environment variable requirement,
  WITH_VMIMAGES, which triggers the virtual machine image
  targets when not defined to an empty value.

  Relevant user-driven variables include:

   o VMFORMATS: The virtual machine image formats to create.
     Valid formats are provided by running 'mkimg --formats'

   o VMSIZE: The size of the resulting virtual machine
     image.  Typical compression is roughly 140Mb, regardless
     of the target size (10GB, 15GB, 20GB, 40GB sizes have been
     tested with the same result).

   o VMBASE: The prefix of the virtual machine disk images.
     The VMBASE make(1) environment variable is suffixed with
     each format in VMFORMATS for each individual disk image, as
     well as '.img' for the source UFS filesystem passed to
     mkimg(1).

  This also includes a new script, mk-vmimage.sh, based on how
  the VM images for 10.0-RELEASE, 9.3-RELEASE, and 10.1-RELEASE
  were created (mk-vmimage.sh in ^/user/gjb/thermite/).

  With the order in which the stages need to occur, as well as
  sanity-checking error cases, it makes much more sense to
  execute a shell script called from make(1), using env(1) to
  set specific parameters for the target image than it does to
  do this in make(1) directly.

r272236:
  Use VMBASE in place of a hard-coded filename in the CLEANFILES
  list.

r272262:
  Remove a 'set -x' that snuck in during testing.

r272264:
  release/Makefile:
    Connect the virtual machine image build to the release
    target if WITH_VMIMAGES is set to a non-empty value.

  release/release.sh:
    Add WITH_VMIMAGES to RELEASE_RMAKEFLAGS.

  release/release.conf.sample:
    Add commented entries for tuning the release build if the
    WITH_VMIMAGES make(1) environment variable is set to
    a non-empty value.

r272269:
  release/Makefile:
    Include .OBJDIR in DESTDIR in the vm-base target.

  release/release.sh:
    Provide the full path to mddev.

r272271:
  Fix UFS label for the root filesystem.

r272272:
  Remove comments left in accidentally while testing, so the
  VM /etc/fstab is actually created.

r272277:
  Remove the UFS label from the root filesystem since it is added
  by mkimg(1) as a gpt label, consistent with the fstab(5) entry.

r272279:
  Comment cleanup in panic() message when mkimg(1) does not support
  the requested disk image format.

r272376:
  Separate release/scripts/mk-vmimage.sh to machine-specific
  scripts, making it possible to mimic the functionality for
  non-x86 targets.

  Move echo output if MAKEFLAGS is empty outside of usage().

  Remove TARGET/TARGET_ARCH evaluation.

r272380:
  Avoid using env(1) to set values passed to mk-vmimage.sh,
  and instead pass the values as arguments to the script,
  making it easier to run this by hand, without 'make release'.

  Add usage_vm_base() and usage_vm_image() usage helpers.

r272381:
  After evaluating WITH_VMIMAGES is non-empty, ensure
  the mk-vmimage.sh script exists before running it.

r272392:
  Add WITH_COMPRESSED_VMIMAGES variable, which when set enables
  xz(1) compression of the virtual machine images.

  This is intentionally separate to allow more fine-grained
  tuning over which images are compressed, especially in cases
  where compressing 20GB sparse images can take hours.

r272412:
  Document the new 'vm-image' target, and associated release.conf
  variables.

r272413:
  Remove two stray comments added during the initial iterations
  of testing, no longer needed.

MFC after: 5 days
X-MFC-10.1: yes
Tested on: r272269, r272272, r272279, r272380, r272392
Sponsored by: The FreeBSD Foundation

9 years agoProperly handle a case that should never happen (the bus_dma
gnn [Thu, 2 Oct 2014 15:03:51 +0000 (15:03 +0000)]
Properly handle a case that should never happen (the bus_dma
callback being called with error set to non-zero).

9 years agoAdd new USB ID.
hselasky [Thu, 2 Oct 2014 12:27:41 +0000 (12:27 +0000)]
Add new USB ID.

PR: 194091
MFC after: 3 days

9 years agoUse REPORT LUNS command for SPC-2 devices with LUN 0 disconnected.
mav [Thu, 2 Oct 2014 10:58:52 +0000 (10:58 +0000)]
Use REPORT LUNS command for SPC-2 devices with LUN 0 disconnected.

SPC-2 tells REPORT LUNS shall be supported by devices supporting LUNs other
then LUN 0.  If we see LUN 0 disconnected, guess there may be others, and
so REPORT LUNS shall be supported.

MFC after: 1 month

9 years agoCheck for UDP/IPv6 packets that the length in the UDP header is at least
tuexen [Thu, 2 Oct 2014 10:49:01 +0000 (10:49 +0000)]
Check for UDP/IPv6 packets that the length in the UDP header is at least
the minimum. Make the check similar to the one for UDPLite/IPv6.

MFC after: 3 days

9 years agoMake disconnected LUN 0 don't remain in half-configured state if there are
mav [Thu, 2 Oct 2014 10:39:07 +0000 (10:39 +0000)]
Make disconnected LUN 0 don't remain in half-configured state if there are
no LUNs on SPC-3 target after we tried REPORT LUNS.

9 years agoCall uma_zfree() outside of lock, and improve comment.
trasz [Thu, 2 Oct 2014 10:37:56 +0000 (10:37 +0000)]
Call uma_zfree() outside of lock, and improve comment.

Sponsored by: The FreeBSD Foundation

9 years agoFix the checksum computation for UDPLite/IPv6. This requires the
tuexen [Thu, 2 Oct 2014 10:32:24 +0000 (10:32 +0000)]
Fix the checksum computation for UDPLite/IPv6. This requires the
usage of a function computing the checksum only over a part of the function.
Therefore introduce in6_cksum_partial() and implement in6_cksum() based
on that.
While there, ensure that the UDPLite packet contains at least enough bytes
to contain the header.

Reviewed by: kevlo
MFC after: 3 days

9 years agoMake autofs timeout handling use timeout task instead of callout;
trasz [Thu, 2 Oct 2014 10:31:32 +0000 (10:31 +0000)]
Make autofs timeout handling use timeout task instead of callout;
that's because the handler can sleep on sx lock.

Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoRestore CAM_QUIRK_NOLUNS check, lost in previous commit.
mav [Thu, 2 Oct 2014 10:02:38 +0000 (10:02 +0000)]
Restore CAM_QUIRK_NOLUNS check, lost in previous commit.

MFC after: 1 month

9 years agoRework the logic of sequential SCSI LUN scanner.
mav [Thu, 2 Oct 2014 09:42:11 +0000 (09:42 +0000)]
Rework the logic of sequential SCSI LUN scanner.

Previous logic was not differentiating disconnected LUNs and absent targets.
That made it to stop scan if LUN 0 was not found for any reason.  That made
problematic, for example, using iSCSI targets declaring SPC-2 compliance and
having no LUN 0 configured.

The new logic continues sequential LUN scan if:
 -- we have more configured LUNs that need recheck;
 -- this LUN is connected and its SCSI version allows more LUNs;
 -- this LUN is disconnected, its SCSI version allows more LUNs and we
    guess they may be connected (we haven't scanned first 8 LUNs yet or
    kern.cam.cam_srch_hi sysctl is set to scan more).

Reported by: trasz
MFC after: 1 month

9 years agoAdd uart driver for Qualcomm MSM 7000/8000 series chips.
ganbold [Thu, 2 Oct 2014 08:12:42 +0000 (08:12 +0000)]
Add uart driver for Qualcomm MSM 7000/8000 series chips.
It is working on IFC6410 board which has Qualcomm Snapdragon SoC.

Approved by:    stas (mentor)

9 years agoMake sure to not skip any argument when converting from deprecated
bapt [Thu, 2 Oct 2014 06:29:49 +0000 (06:29 +0000)]
Make sure to not skip any argument when converting from deprecated
+POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n
as it is expected

PR: 193994
Submitted by: rodrigo
MFC after: 3 days

9 years agoAllow timer0 to run at full 24MHz not at 24MHz/16 by setting prescale to 1.
ganbold [Thu, 2 Oct 2014 06:00:55 +0000 (06:00 +0000)]
Allow timer0 to run at full 24MHz not at 24MHz/16 by setting prescale to 1.

Approved by:    stas (mentor)

9 years agoVirtualize net.link.vlan.soft_pad.
hrs [Thu, 2 Oct 2014 05:56:17 +0000 (05:56 +0000)]
Virtualize net.link.vlan.soft_pad.

9 years agoGet rid of code that dealt with the hardware not being able to save/restore
neel [Thu, 2 Oct 2014 05:32:29 +0000 (05:32 +0000)]
Get rid of code that dealt with the hardware not being able to save/restore
the PAT MSR on guest exit/entry. This workaround was done for a beta release
of VMware Fusion 5 but is no longer needed in later versions.

All Intel CPUs since Nehalem have supported saving and restoring MSR_PAT
in the VM exit and entry controls.

Discussed with: grehan