]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agolower warning level to fix build with gcc
bapt [Thu, 31 Jul 2014 05:56:15 +0000 (05:56 +0000)]
lower warning level to fix build with gcc

9 years agoReplace the whole license block with the standard one.
kevlo [Thu, 31 Jul 2014 05:12:21 +0000 (05:12 +0000)]
Replace the whole license block with the standard one.

Suggested by: emaste

9 years agoSwitch to using counter(9) for the new 64-bit stats kept by armv6 busdma.
ian [Thu, 31 Jul 2014 03:59:00 +0000 (03:59 +0000)]
Switch to using counter(9) for the new 64-bit stats kept by armv6 busdma.

9 years agoRemove an unsed variable.
kevlo [Thu, 31 Jul 2014 03:36:03 +0000 (03:36 +0000)]
Remove an unsed variable.

9 years agoIn copyright statement correct that the author is me, not Bill Paul.
kevlo [Thu, 31 Jul 2014 03:34:25 +0000 (03:34 +0000)]
In copyright statement correct that the author is me, not Bill Paul.

9 years agoReplace 'GNATS' with 'Bugzilla' in the base subversion commit template.
gjb [Thu, 31 Jul 2014 02:07:48 +0000 (02:07 +0000)]
Replace 'GNATS' with 'Bugzilla' in the base subversion commit template.

Approved by: peter
Sponsored by: The FreeBSD Foundation

9 years agoCommands which encounter a fatal error shouldn't be marked as completed.
tychon [Wed, 30 Jul 2014 18:47:31 +0000 (18:47 +0000)]
Commands which encounter a fatal error shouldn't be marked as completed.
Furthermore, provide an indication of the current command so it can be
determined which one actually failed.

Reviewed by: grehan

9 years agoBring in LSI's phase19 changes
smh [Wed, 30 Jul 2014 18:21:06 +0000 (18:21 +0000)]
Bring in LSI's phase19 changes
* Removed unused mpssas_discovery_timeout function.
* Don't alter mapping boundaries if not raid firmware.
* Check free_busaddr instead of post_busaddr (diff minimisation really)

MFC after: 2 weeks

9 years agoBring in LSI's phase16 - phase18 changes
smh [Wed, 30 Jul 2014 17:58:17 +0000 (17:58 +0000)]
Bring in LSI's phase16 - phase18 changes
* Implements Start Stop Unit for SATA direct-attach devices in IR mode to avoid
  data corruption.
* Use CAM_DEV_NOT_THERE instead of CAM_SEL_TIMEOUT and CAM_TID_INVALID

Obtained from: LSI
MFC after: 2 weeks

9 years agoFollow up r269179 and remove the libsbuf.so.7 library.
delphij [Wed, 30 Jul 2014 17:19:11 +0000 (17:19 +0000)]
Follow up r269179 and remove the libsbuf.so.7 library.

9 years agoProvide a means for loaders to control which file system to use. This
marcel [Wed, 30 Jul 2014 16:08:16 +0000 (16:08 +0000)]
Provide a means for loaders to control which file system to use. This
to counteract the default behaviour of always trying each and every
file system until one succeeds, or the open fails. The problem with the
loader is that we've implemented features based on this behavior. The
handling of compressed files is a good example of this. However, it is
in general highly undesirable to not have a one-time probe (or taste
in the geom lingo), followed by something similar to a mount whenever
we (first) read from a device. Everytime we go to the same device, we
can reasonably assume it (still) has the same file system. For file
systems that need to do far more that a trivial read of a super block,
not having something similar to a mount operation is disastrous from
a performance (and thus usability) perspective.

But, again, since we've implemented features based on this stateless
approach, things can get complicated quickly if and when we want to
change this. And yet, we sometimes do need stateful behaviour.

For this reason, this change simply introduces exclusive_file_system.
When set to the fsops of the file system to use, the open call will
only try this file system. Setting it to NULL restores the default
behaviour. It's a low-cost (low-brow?) approach to provide enough
control without re-implementing the guts of the loader.

A good example of when this is useful is when we're trying to load
files out of a container (say, a software packaga) that itself lives
on a file system or is fetched over the network. While opening the
container can be done in the normal stateless manner, once it is
opened, subsequent opens should only consider the container.

Obtained from: Juniper Networks, Inc.

9 years agofiles.mips: the kbd driver is used by vt(4) too
emaste [Wed, 30 Jul 2014 15:43:17 +0000 (15:43 +0000)]
files.mips: the kbd driver is used by vt(4) too

Sponsored by: DARPA, AFRL

9 years agoAdd new rule to source address selection algorithm. It prefers address
ae [Wed, 30 Jul 2014 15:08:12 +0000 (15:08 +0000)]
Add new rule to source address selection algorithm. It prefers address
with better virtual status. Use ifa_preferred() to choose better address.

PR: 187341
Tested by: des
MFC after: 1 week

9 years agoWhen restoring a UFS dump onto a ZFS filesystem, an assertion in
mckusick [Wed, 30 Jul 2014 14:52:04 +0000 (14:52 +0000)]
When restoring a UFS dump onto a ZFS filesystem, an assertion in
restore was failing because ZFS was reporting a blocksize that was
not a multiple of 1024.  Replace restore's failed assertion with
code that writes restored files in a blocksize that works for
restore (a multiple of 1024) despite being non-optimal for ZFS.

Submitted by: Dmitry Morozovsky
Tested by:    Dmitry Morozovsky
MFC after:    1 week

9 years agoFix relative numerical addressing (addr,+N).
jlh [Wed, 30 Jul 2014 14:46:39 +0000 (14:46 +0000)]
Fix relative numerical addressing (addr,+N).

As a bonus the patch untangles a bit the logic and makes the code
easier to grasp.

PR: 192108
MFC after: 1 week

9 years agoRemove trailing comma from ending Xref
gjb [Wed, 30 Jul 2014 04:48:56 +0000 (04:48 +0000)]
Remove trailing comma from ending Xref

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove trailing comma from ending Xref
gjb [Wed, 30 Jul 2014 04:48:20 +0000 (04:48 +0000)]
Remove trailing comma from ending Xref

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove trailing comma from ending Xref.
gjb [Wed, 30 Jul 2014 04:47:39 +0000 (04:47 +0000)]
Remove trailing comma from ending Xref.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove trailing comma from standalone Xref.
gjb [Wed, 30 Jul 2014 04:46:53 +0000 (04:46 +0000)]
Remove trailing comma from standalone Xref.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoRemove trailing '.' from See Also section.
gjb [Wed, 30 Jul 2014 04:40:50 +0000 (04:40 +0000)]
Remove trailing '.' from See Also section.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoCorrect typo in comment
emaste [Wed, 30 Jul 2014 00:28:29 +0000 (00:28 +0000)]
Correct typo in comment

PR: 192231
Submitted by: Ron Dahlgren
MFC after: 1 week

9 years ago- Output a summary of optional VT-x features in dmesg similar to CPU
jhb [Wed, 30 Jul 2014 00:00:12 +0000 (00:00 +0000)]
- Output a summary of optional VT-x features in dmesg similar to CPU
  features.  If bootverbose is enabled, a detailed list is provided;
  otherwise, a single-line summary is displayed.
- Add read-only sysctls for optional VT-x capabilities used by bhyve
  under a new hw.vmm.vmx.cap node. Move a few exiting sysctls that
  indicate the presence of optional capabilities under this node.

CR: https://phabric.freebsd.org/D498
Reviewed by: grehan, neel
MFC after: 1 week

9 years agoAdd a comment and while there, fix trailing whitespace.
hiren [Tue, 29 Jul 2014 23:42:51 +0000 (23:42 +0000)]
Add a comment and while there, fix trailing whitespace.

9 years agoMake mmap() of the console device when using ofwfb work like other supported
nwhitehorn [Tue, 29 Jul 2014 23:11:05 +0000 (23:11 +0000)]
Make mmap() of the console device when using ofwfb work like other supported
framebuffer drivers. This lets ofwfb work with xf86-video-scfb and makes
the driver much more generic and less PCI-centric. This changes some
user-visible behavior and will require updates to the xorg-server port
on PowerPC when using ATI graphics cards.

9 years agomdoc: kill EOL whitespace.
joel [Tue, 29 Jul 2014 19:49:27 +0000 (19:49 +0000)]
mdoc: kill EOL whitespace.

9 years agomdoc: fix date.
joel [Tue, 29 Jul 2014 19:46:13 +0000 (19:46 +0000)]
mdoc: fix date.

9 years agomdoc: remove superfluous paragraph macro.
joel [Tue, 29 Jul 2014 19:43:00 +0000 (19:43 +0000)]
mdoc: remove superfluous paragraph macro.

9 years agoSilence mandoc lint.
joel [Tue, 29 Jul 2014 19:41:00 +0000 (19:41 +0000)]
Silence mandoc lint.

9 years agomdoc: sort sections.
joel [Tue, 29 Jul 2014 19:38:17 +0000 (19:38 +0000)]
mdoc: sort sections.

9 years agoRemove one-time use macros which check for the vnode lifecycle. More,
kib [Tue, 29 Jul 2014 16:42:34 +0000 (16:42 +0000)]
Remove one-time use macros which check for the vnode lifecycle.  More,
some parts of the checks are in fact redundand in the surrounding
code, and it is more clear what the conditions are by direct testing
of the flags.  Two of the three macros were only used in assertions.

In vnlru_free(), all relevant parts of vholdl() were already inlined,
except the increment of v_holdcnt itself.  Do not call vholdl() to do
the increment as well, this allows to make assertions in
vholdl()/vhold() more strict.

In v_incr_usecount(), call vholdl() before incrementing other ref
counters.  The change is no-op, but it makes less surprising to see
the vnode state in debugger if interrupted inside v_incr_usecount().

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoGarbage collect couple of unused fields from struct ifaddr:
glebius [Tue, 29 Jul 2014 15:01:29 +0000 (15:01 +0000)]
Garbage collect couple of unused fields from struct ifaddr:
- ifa_claim_addr() unused since removal of NetAtalk
- ifa_metric seems to be never utilized, always a copy of if_metric

9 years agoFix yet another comment typo in r269052.
marius [Tue, 29 Jul 2014 14:54:23 +0000 (14:54 +0000)]
Fix yet another comment typo in r269052.

9 years agoCorrect typo in comment
emaste [Tue, 29 Jul 2014 14:41:28 +0000 (14:41 +0000)]
Correct typo in comment

9 years agoAdd VOP_GETVOBJECT.9 to obsolete files, un-xref.
pluknet [Tue, 29 Jul 2014 13:40:33 +0000 (13:40 +0000)]
Add VOP_GETVOBJECT.9 to obsolete files, un-xref.

X-MFC with: r269160

9 years agoFix comment typo in r269052.
marius [Tue, 29 Jul 2014 13:26:24 +0000 (13:26 +0000)]
Fix comment typo in r269052.

Submitted by: Daniel O'Connor

9 years agoRemove unused option.
br [Tue, 29 Jul 2014 12:44:19 +0000 (12:44 +0000)]
Remove unused option.

9 years agoRemove SC_DFLT_FONT option. vt(4) don't use it.
ray [Tue, 29 Jul 2014 12:04:11 +0000 (12:04 +0000)]
Remove SC_DFLT_FONT option. vt(4) don't use it.

Suggested by: emaste
Sponsored by: The FreeBSD Foundation

9 years agoFix build with gcc
bapt [Tue, 29 Jul 2014 09:46:08 +0000 (09:46 +0000)]
Fix build with gcc

9 years agoMFV r269224:
delphij [Tue, 29 Jul 2014 09:36:48 +0000 (09:36 +0000)]
MFV r269224:

Increase default ARC buf_hash_table size.  When typical block size is small,
the hash table could be too small, which would lead to long hash chains and
limit performance for cached reads.

A new loader tunable, vfs.zfs.arc_average_blocksize, have been added which
allows users to override the default assumption of average (typical) block
size.  Old default was 65536 (64 KiB) and new default is 8192 (8 KiB).

Illumos issue:
    5034 ARC's buf_hash_table is too small

MFC after: 2 weeks

9 years agoMFV r269223:
delphij [Tue, 29 Jul 2014 08:42:22 +0000 (08:42 +0000)]
MFV r269223:

Change dn->dn_dbufs from linked list to AVL tree.

Illumos issues:
  4873 zvol unmap calls can take a very long time for larger datasets

MFC after: 2 weeks

9 years agoAdd support for SOUND_MIXER_INFO IOCTL, used by gstreamer.
mav [Tue, 29 Jul 2014 08:31:10 +0000 (08:31 +0000)]
Add support for SOUND_MIXER_INFO IOCTL, used by gstreamer.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 2 weeks

9 years agoReschedule the 'deadman' callout after handling, this makes our
delphij [Tue, 29 Jul 2014 06:57:13 +0000 (06:57 +0000)]
Reschedule the 'deadman' callout after handling, this makes our
code behave more like it is on Solaris.

Reported by: avg
Reviewed by: avg, mav (but bugs are mine)

Differential Revision: https://phabric.freebsd.org/D457

9 years agoExport some new busdma stats via sysctl for armv6. Added:
ian [Tue, 29 Jul 2014 02:38:02 +0000 (02:38 +0000)]
Export some new busdma stats via sysctl for armv6.  Added:

 hw.busdma.tags_total: 46
 hw.busdma.maps_total: 1302
 hw.busdma.maps_dmamem: 851
 hw.busdma.maps_coherent: 849
 hw.busdma.maploads_total: 1568812
 hw.busdma.maploads_bounced: 16750
 hw.busdma.maploads_coherent: 920
 hw.busdma.maploads_dmamem: 920
 hw.busdma.maploads_mbuf: 1542766
 hw.busdma.maploads_physmem: 0

9 years agoA while back, the array of segments used for a load/mapping operation was
ian [Tue, 29 Jul 2014 02:37:48 +0000 (02:37 +0000)]
A while back, the array of segments used for a load/mapping operation was
moved from the stack into the tag structure.  In retrospect that was a bad
idea, because nothing protects that array from concurrent access by
multiple threads.

This change moves the array to the map structure (actually it's allocated
following the structure, but all in a single malloc() call).

This also establishes a "sane" limit of 4096 segments per map.  This is
mostly to prevent trying to allocate all of memory if someone accidentally
uses a tag with nsegments set to BUS_SPACE_UNRESTRICTED.  If there's ever
a genuine need for more than 4096, don't hesitate to increase this (or
maybe make it tunable).

Reviewed by: cognet

9 years agoWe never need bounce pages for memory we allocate. We cleverly allocate
ian [Tue, 29 Jul 2014 02:37:31 +0000 (02:37 +0000)]
We never need bounce pages for memory we allocate.  We cleverly allocate
memory the matches all the constraints of the dma tag so that bouncing
will never be required.

Reviewed by: cognet

9 years agoReplace a bunch of double-indirection with a local pointer var (that is,
ian [Tue, 29 Jul 2014 02:37:24 +0000 (02:37 +0000)]
Replace a bunch of double-indirection with a local pointer var (that is,
(*mapp)->something becomes map->something).  No functional changes.

Reviewed by: cognet

9 years agoDon't clear the DMAMAP_DMAMEM_ALLOC flag set a few lines earlier. Doh!
ian [Tue, 29 Jul 2014 02:36:50 +0000 (02:36 +0000)]
Don't clear the DMAMAP_DMAMEM_ALLOC flag set a few lines earlier.  Doh!

Reviewed by: cognet

9 years agoMemory belonging to an mbuf, or allocated by bus_dmamem_alloc(), never
ian [Tue, 29 Jul 2014 02:36:41 +0000 (02:36 +0000)]
Memory belonging to an mbuf, or allocated by bus_dmamem_alloc(), never
triggers a need to bounce due to cacheline alignment.  These buffers
are always aligned to cacheline boundaries, and even when the DMA operation
starts at an offset within the buffer or doesn't extend to the end of the
buffer, it's safe to flush the complete cachelines that were only partially
involved in the DMA.  This is because there's a very strict rule on these
types of buffers that there will not be concurrent access by the CPU and
one or more DMA transfers within the buffer.

Reviewed by: cognet

9 years agoThe run_filter() function doesn't just run dma tag exclusion filter
ian [Tue, 29 Jul 2014 02:36:27 +0000 (02:36 +0000)]
The run_filter() function doesn't just run dma tag exclusion filter
functions, it has evolved to make a variety of decisions about whether
the DMA needs to bounce, so rename it to must_bounce().  Rewrite it to
perform checks outside of the ancestor loop if they're based on information
that's wholly contained within the original tag.  Now the loop only checks
exclusion zones in ancestor tags.

Also, add a new function, might_bounce() which does a fast inline check
of flags within the tag and map to quickly eliminate the need to call
the more expensive must_bounce() for each page in the DMA operation.

Within the mapping loops, use map->pagesneeded != 0 as a proxy for all
the various checks on whether bouncing might be required.  If no pages
were reserved for bouncing during the checks before the mapping loop,
then there's no need to re-check any of the conditions that can lead
to bouncing -- all those checks already decided there would be no bouncing.

Reviewed by: cognet

9 years agoPropagate any alignment restriction from the parent tag to a new tag,
ian [Tue, 29 Jul 2014 02:36:09 +0000 (02:36 +0000)]
Propagate any alignment restriction from the parent tag to a new tag,
keeping the more restrictive of the two values.

Reviewed by: cognet

9 years agoReformat some continuation lines. No functional changes.
ian [Tue, 29 Jul 2014 02:36:02 +0000 (02:36 +0000)]
Reformat some continuation lines.  No functional changes.

Reviewed by: cognet

9 years agoCorrect the comparison logic when looking for intersections between
ian [Tue, 29 Jul 2014 02:35:44 +0000 (02:35 +0000)]
Correct the comparison logic when looking for intersections between
exclusion zones and phsyical memory.  The phys_avail[i] entries are the
address of the first byte of ram in the region, and phys_avail[i+1]
entries are the address of the first byte of ram in the next region
(i.e., they're not included in the region that starts at phys_avail[i]).

Reviewed by: cognet

9 years agoThe exclusion_bounce() routine compares unchanging values in the tag with
ian [Tue, 29 Jul 2014 02:34:32 +0000 (02:34 +0000)]
The exclusion_bounce() routine compares unchanging values in the tag with
unchanging values in the phys_avail array, so do the comparisons just once
at tag creation time and set a flag to remember the result.

Reviewed by: cognet

9 years agoRename _bus_dma_can_bounce(), add new inline routines.
ian [Tue, 29 Jul 2014 02:31:29 +0000 (02:31 +0000)]
Rename _bus_dma_can_bounce(), add new inline routines.

DMA on arm can bounce for several reasons, and _bus_dma_can_bounce() only
checks for the lowaddr/highaddr exclusion ranges in the dma tag, so now
it's named exclusion_bounce().  The other reasons for bouncing are checked
by the new functions alignment_bounce() and cacheline_bounce().

Reviewed by: cognet

9 years agoSimplify the expression, by removing redundand calculation.
kib [Tue, 29 Jul 2014 01:46:31 +0000 (01:46 +0000)]
Simplify the expression, by removing redundand calculation.

Noted by: "O'Connor, Daniel" <Daniel.O'Connor@emc.com>
MFC after: 3 days

9 years agoIf telldir() is called immediately after a call to seekdir(), POSIX
jhb [Tue, 29 Jul 2014 00:16:33 +0000 (00:16 +0000)]
If telldir() is called immediately after a call to seekdir(), POSIX
requires the return value of telldir() to equal the value passed to
seekdir().  The current seekdir code with SINGLEUSE enabled breaks
this case as each call to telldir() allocates a new cookie.  Instead,
remove the SINGLEUSE code and change telldir() to look for an existing
cookie for the directory's current location rather than always creating
a new cookie.

CR: https://phabric.freebsd.org/D490
PR: 121656
Reviewed by: jilles
MFC after: 1 week

9 years agoWe do not ever want _srcconf_included_ as MAIN target.
sjg [Mon, 28 Jul 2014 23:36:21 +0000 (23:36 +0000)]
We do not ever want _srcconf_included_ as MAIN target.

9 years agoAdd new README to the driver...
jfv [Mon, 28 Jul 2014 22:23:49 +0000 (22:23 +0000)]
Add new README to the driver...

9 years agoUpdate the new 40G XL710 driver to Release version 1.0.0
jfv [Mon, 28 Jul 2014 21:57:09 +0000 (21:57 +0000)]
Update the new 40G XL710 driver to Release version 1.0.0

9 years agoFix potential double free that could happen after connection error.
trasz [Mon, 28 Jul 2014 21:14:41 +0000 (21:14 +0000)]
Fix potential double free that could happen after connection error.

MFC after: 3 days

9 years agoRevise font initialization handling.
ray [Mon, 28 Jul 2014 14:41:22 +0000 (14:41 +0000)]
Revise font initialization handling.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoUpdate comments.
ray [Mon, 28 Jul 2014 14:37:59 +0000 (14:37 +0000)]
Update comments.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoRemove special handling of console window size. It's done in vt_upgrade() for
ray [Mon, 28 Jul 2014 14:35:21 +0000 (14:35 +0000)]
Remove special handling of console window size. It's done in vt_upgrade() for
all windows.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoFix r269183 build woth GCC.
mav [Mon, 28 Jul 2014 14:32:20 +0000 (14:32 +0000)]
Fix r269183 build woth GCC.

MFC after: 2 weeks

9 years agoFor md(4), posix shm(3) and tmpfs(5), free swap space used by paged in
kib [Mon, 28 Jul 2014 14:27:05 +0000 (14:27 +0000)]
For md(4), posix shm(3) and tmpfs(5), free swap space used by paged in
dirty page, which is written by the process.

Reviewed by: alc
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoInitialize zfs vnode v_hash when the vnode is allocated, instead of
kib [Mon, 28 Jul 2014 14:24:18 +0000 (14:24 +0000)]
Initialize zfs vnode v_hash when the vnode is allocated, instead of
postponing it to zfs_vget().  zfs_root() returned vnode with the
default value of v_hash, which caused inconsistent v_hash value when
root vnode was obtained from zfs_vget().

Nullfs allocated two upper vnodes for the root zfs vnode due to
different hashes, causing consistency problems.

Reported and tested by: Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoAvoid embedding buffers into static virtual terminal window.
ray [Mon, 28 Jul 2014 14:22:34 +0000 (14:22 +0000)]
Avoid embedding buffers into static virtual terminal window.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoAssert that nullfs vnode has VV_ROOT set whenever lower vnode has.
kib [Mon, 28 Jul 2014 14:20:31 +0000 (14:20 +0000)]
Assert that nullfs vnode has VV_ROOT set whenever lower vnode has.
Assert that dotdot lookup on the root vnode is not performed.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoo Remove useless debug string.
ray [Mon, 28 Jul 2014 14:15:41 +0000 (14:15 +0000)]
o Remove useless debug string.
o Fix indent.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoRemove unused macro VT_CONSDEV_DECLARE. Join console device now declared in one
ray [Mon, 28 Jul 2014 14:14:33 +0000 (14:14 +0000)]
Remove unused macro VT_CONSDEV_DECLARE. Join console device now declared in one
place.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

9 years agoAdd missing newline to output dmesg properly.
akiyama [Mon, 28 Jul 2014 13:47:02 +0000 (13:47 +0000)]
Add missing newline to output dmesg properly.

9 years agoAdd netmasks support to initiator-portal option.
mav [Mon, 28 Jul 2014 12:47:09 +0000 (12:47 +0000)]
Add netmasks support to initiator-portal option.

MFC after: 2 weeks

9 years agoUpdate the list of cross references to include the more modern set of
gnn [Mon, 28 Jul 2014 10:17:41 +0000 (10:17 +0000)]
Update the list of cross references to include the more modern set of
processors that we now support.

9 years agolibsbuf.so.6 is no longer obsolete
antoine [Mon, 28 Jul 2014 10:01:23 +0000 (10:01 +0000)]
libsbuf.so.6 is no longer obsolete

9 years agoWhen interval is set to very small value with limited amount of packets,
delphij [Mon, 28 Jul 2014 08:22:08 +0000 (08:22 +0000)]
When interval is set to very small value with limited amount of packets,
ping6(8) would quit before the remote side gets a chance to respond.

Solve this by resetting the itimer when we have reached the maximum packet
number have reached, but let the other handling to continue.

PR: bin/151023
Submitted by: tjmao at tjmao.net
MFC after: 2 weeks

9 years agoUnbreak the ABI by reverting r268494 until the compat shims are provided
gahr [Mon, 28 Jul 2014 07:20:22 +0000 (07:20 +0000)]
Unbreak the ABI by reverting r268494 until the compat shims are provided

9 years agoAdd the rest of combined interrupt groups.
br [Mon, 28 Jul 2014 05:37:10 +0000 (05:37 +0000)]
Add the rest of combined interrupt groups.

9 years agoRemove ohash_int.h forgotten in previous commit
bapt [Sun, 27 Jul 2014 22:56:46 +0000 (22:56 +0000)]
Remove ohash_int.h forgotten in previous commit

9 years agoSync with OpenBSD
bapt [Sun, 27 Jul 2014 22:54:13 +0000 (22:54 +0000)]
Sync with OpenBSD
This brings:
- check for integer overflows in custom allocs
- fix potential integer overflows in memory allocation
- annotate regexp error messages with source string
- better error handling in mkstemp/unlink/fdopen logic

9 years agoExplicitely mention that inactivated or reclaimed vnode is locked
kib [Sun, 27 Jul 2014 20:55:47 +0000 (20:55 +0000)]
Explicitely mention that inactivated or reclaimed vnode is locked
exclusively.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

9 years agoRemove man page for non-existent VOPs.
kib [Sun, 27 Jul 2014 20:48:56 +0000 (20:48 +0000)]
Remove man page for non-existent VOPs.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

9 years agoCorrect the locking statement.
kib [Sun, 27 Jul 2014 20:47:06 +0000 (20:47 +0000)]
Correct the locking statement.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

9 years agoUpdate from mav@ - don't break the input switching.
adrian [Sun, 27 Jul 2014 20:14:22 +0000 (20:14 +0000)]
Update from mav@ - don't break the input switching.

9 years agoForced commit - testing commit mail etc pipelines.
peter [Sun, 27 Jul 2014 17:34:49 +0000 (17:34 +0000)]
Forced commit - testing commit mail etc pipelines.

9 years ago1. Suppress output for the TFTP-based PXE loader, but leave it in
marcel [Sun, 27 Jul 2014 16:29:57 +0000 (16:29 +0000)]
1.  Suppress output for the TFTP-based PXE loader, but leave it in
    place for the NFS-based PXE loader. Information like rootpath
    or rootip aren't that useful for TFTP and the gateway IP is
    typically already printed by the firmware.
2.  Only set boot.nfsroot.* environment variables for NFS. This
    makes it possible for the OS to work either way by checking
    for the presence or absence of environment variables.
3.  Set boot.netif.server when using TFTP so that the OS can fetch
    files as well. A typical use case for this is network-based
    installations with the installation process implemented on
    top of FreeBSD.
4.  The pxelinux loader has a set of alternative names it tries
    for configuration files. Make it easier to do something
    similar in Forth by providing the IP address as a 32-bit hex
    number in the pxeboot.ip variable and the MAC address with
    dashes in the pxeboot.hwaddr environment variable.

Obtained from: Juniper Networks, Inc.

9 years agoGive loaders more control over the Forth initialization process. In
marcel [Sun, 27 Jul 2014 16:12:51 +0000 (16:12 +0000)]
Give loaders more control over the Forth initialization process. In
particular, allow loaders to define the name of the RC script the
interpreter needs to use. Use this new-found control to have the
PXE loader (when compiled with TFTP support and not NFS support)
read from ${bootfile}.4th, where ${bootfile} is the name of the
file fetched by the PXE firmware.

The normal startup process involves reading the following files:
1.  /boot/boot.4th
2.  /boot/loader.rc or alternatively /boot/boot.conf

When these come from a FreeBSD-defined file system, this is all
good. But when we boot over the network, subdirectories and fixed
file names are often painful to administrators and there's really
no way for them to change the behaviour of the loader.

Obtained from: Juniper Networks, Inc.

9 years agoAdd support for my Lenovo T400.
adrian [Sun, 27 Jul 2014 08:44:15 +0000 (08:44 +0000)]
Add support for my Lenovo T400.

Tested:

* Lenovo T400, model w/ P8700 Intel CPU on-board

9 years agoFix several cases of NULL dereference when INQUIRY sent to absent LUN.
mav [Sun, 27 Jul 2014 06:49:55 +0000 (06:49 +0000)]
Fix several cases of NULL dereference when INQUIRY sent to absent LUN.

MFC after: 3 days

9 years agoCommit some sins in the name of "oh god oh god I don't really want to
adrian [Sun, 27 Jul 2014 05:44:42 +0000 (05:44 +0000)]
Commit some sins in the name of "oh god oh god I don't really want to
be able to claim I know how the UART code works."

* Just return 115200 as the current baud rate. I should cache it in the
  device struct and return that but I'm lazy right now.
* don't error out on other ioctl settings for now, just silently ignore them.
* remove some code that was copied from the 8250 driver that isn't needed
  any longer.

Tested:

* AR9331, Carambola-2 board.

9 years agoAdd another revision of the AR8327.
adrian [Sat, 26 Jul 2014 21:33:17 +0000 (21:33 +0000)]
Add another revision of the AR8327.

9 years agostore the AR9300 interrupts away when doing interrupt debugging.
adrian [Sat, 26 Jul 2014 21:32:03 +0000 (21:32 +0000)]
store the AR9300 interrupts away when doing interrupt debugging.

9 years agoUpdate the header printing to match the rest of the output.
gnn [Sat, 26 Jul 2014 20:42:54 +0000 (20:42 +0000)]
Update the header printing to match the rest of the output.

Pointed out by: mdf

9 years agoSince we cannot yet display the name print the file descriptor so that
gnn [Sat, 26 Jul 2014 20:11:36 +0000 (20:11 +0000)]
Since we cannot yet display the name print the file descriptor so that
it can be looked up manually using procstat(1).

9 years agoFurther improvements on elfdump, to follow up r269092:
andreast [Sat, 26 Jul 2014 19:44:45 +0000 (19:44 +0000)]
Further improvements on elfdump, to follow up r269092:

- Add ARM specific section header types.
- Add SHT_GNU_HASH section header type.
- Improve reporting of undefined tags in d_tags.
- Add DT_GNU_HASH tag.

Reviewed by: emaste

9 years agoThe accept filter code is not specific to the FreeBSD IPv4 network stack,
marcel [Sat, 26 Jul 2014 19:27:34 +0000 (19:27 +0000)]
The accept filter code is not specific to the FreeBSD IPv4 network stack,
so it really should not be under "optional inet". The fact that uipc_accf.c
lives under kern/ lends some weight to making it a "standard" file.

Moving kern/uipc_accf.c from "optional inet" to "standard" eliminates the
need for #ifdef INET in kern/uipc_socket.c.

Also, this meant the net.inet.accf.unloadable sysctl needed to move, as
net.inet does not exist without networking compiled in (as it lives in
netinet/in_proto.c.) The new sysctl has been named net.accf.unloadable.

In order to support existing accept filter sysctls, the net.inet.accf node
has been added netinet/in_proto.c.

Submitted by: Steve Kiernan <stevek@juniper.net>
Obtained from: Juniper Networks, Inc.

9 years agoRemove debugging options from the rwsnoop script.
gnn [Sat, 26 Jul 2014 19:25:52 +0000 (19:25 +0000)]
Remove debugging options from the rwsnoop script.

9 years agoPort the rwsnoop DTrace Toolkit script to FreeBSD.
gnn [Sat, 26 Jul 2014 19:21:53 +0000 (19:21 +0000)]
Port the rwsnoop DTrace Toolkit script to FreeBSD.
Remove dependency on the Korn Shell.
Remove Zones in favor of Jails.
Remove support (for now) for filename printing.

9 years agoSplit the XHCI TRB allocations into smaller parts, so that we don't
hselasky [Sat, 26 Jul 2014 19:08:52 +0000 (19:08 +0000)]
Split the XHCI TRB allocations into smaller parts, so that we don't
end up allocating contiguous busdma buffers above PAGE_SIZE bytes.

MFC after: 1 week
Tested by: Ruslan Bukin <br@bsdpad.com>

9 years agoAdd two sysctls for newly added tunables.
delphij [Sat, 26 Jul 2014 19:07:08 +0000 (19:07 +0000)]
Add two sysctls for newly added tunables.

MFC after: 2 weeks

9 years agoAdd missing definition of ELF_MACHINE_OK, now used by gcore(1).
marcel [Sat, 26 Jul 2014 18:52:23 +0000 (18:52 +0000)]
Add missing definition of ELF_MACHINE_OK, now used by gcore(1).