]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoTo be able to use printf extensions we need to turn off gcc format checking.
Pawel Jakub Dawidek [Mon, 7 Mar 2011 09:28:21 +0000 (09:28 +0000)]
To be able to use printf extensions we need to turn off gcc format checking.
Following the convention of NO_WERROR and NO_WCAST_ALIGN add NO_WFORMAT,
which, when defined in Makefile, turns off compile-time format checking
(by adding -Wno-format), but still allows to use high WARNS level.

MFC after: 2 weeks

13 years agoAdd cexp() to the complex(3) manpage. Thanks to bde for pointing out
David Schultz [Mon, 7 Mar 2011 08:54:20 +0000 (08:54 +0000)]
Add cexp() to the complex(3) manpage.  Thanks to bde for pointing out
that I missed this.

13 years agoRemove part of an uncommitted change that snuck into the last commit.
David Schultz [Mon, 7 Mar 2011 08:46:14 +0000 (08:46 +0000)]
Remove part of an uncommitted change that snuck into the last commit.

13 years agoRemove dead code.
Dmitry Chagin [Mon, 7 Mar 2011 08:12:07 +0000 (08:12 +0000)]
Remove dead code.

MFC after: 1 Week

13 years agoRemove unnecessary cast.
Stefan Farfeleder [Mon, 7 Mar 2011 07:31:15 +0000 (07:31 +0000)]
Remove unnecessary cast.

Reviewed by: jilles

13 years agoAdd some tests for cexp() and cexpf(). (I need to clean up all of
David Schultz [Mon, 7 Mar 2011 03:15:49 +0000 (03:15 +0000)]
Add some tests for cexp() and cexpf().  (I need to clean up all of
these tests some day, but in the mean time, they're a useful sanity
check for future changes.)

13 years agoConvert log10f() to use __kernel_log(), which is more accurate and simpler.
David Schultz [Mon, 7 Mar 2011 03:12:08 +0000 (03:12 +0000)]
Convert log10f() to use __kernel_log(), which is more accurate and simpler.

13 years agoConvert log10() to use __kernel_log(), which is more accurate and simpler.
David Schultz [Mon, 7 Mar 2011 03:11:27 +0000 (03:11 +0000)]
Convert log10() to use __kernel_log(), which is more accurate and simpler.

13 years agoAdd cexp() and cexpf().
David Schultz [Mon, 7 Mar 2011 03:09:24 +0000 (03:09 +0000)]
Add cexp() and cexpf().

Reviewed by: bde (earlier version)

13 years agoAdd support for printing out the open-loop TX power control EEPROM fields.
Adrian Chadd [Sun, 6 Mar 2011 23:15:24 +0000 (23:15 +0000)]
Add support for printing out the open-loop TX power control EEPROM fields.

13 years agoAllow to compress on-the-wire data using two algorithms:
Pawel Jakub Dawidek [Sun, 6 Mar 2011 23:09:33 +0000 (23:09 +0000)]
Allow to compress on-the-wire data using two algorithms:
- HOLE - it simply turns all-zero blocks into few bytes header;
it is extremely fast, so it is turned on by default;
it is mostly intended to speed up initial synchronization
where we expect many zeros;
- LZF - very fast algorithm by Marc Alexander Lehmann, which shows
very decent compression ratio and has BSD license.

MFC after: 2 weeks

13 years agombone is no longer a physical category
Doug Barton [Sun, 6 Mar 2011 23:01:02 +0000 (23:01 +0000)]
mbone is no longer a physical category

Submitted by: pav

13 years agoThe execution of the shebang script requires putting interpreter path,
Konstantin Belousov [Sun, 6 Mar 2011 22:59:30 +0000 (22:59 +0000)]
The execution of the shebang script requires putting interpreter path,
possible option and script path in the place of argv[0] supplied to
execve(2).  It is possible and valid for the substitution to be shorter
then the argv[0].

Avoid signed underflow in this case.

Submitted by: Devon H. O'Dell <devon.odell gmail com>
PR: kern/155321
MFC after: 1 week

13 years agoAllow to checksum on-the-wire data using either CRC32 or SHA256.
Pawel Jakub Dawidek [Sun, 6 Mar 2011 22:56:14 +0000 (22:56 +0000)]
Allow to checksum on-the-wire data using either CRC32 or SHA256.

MFC after: 2 weeks

13 years agosh(1): Reduce excessive semicolon-separated sentences.
Jilles Tjoelker [Sun, 6 Mar 2011 21:20:53 +0000 (21:20 +0000)]
sh(1): Reduce excessive semicolon-separated sentences.

Reported by: Benjamin Kaduk

13 years agoMake this makefile a little more make-like (e.g. build only things that
Nathan Whitehorn [Sun, 6 Mar 2011 21:19:33 +0000 (21:19 +0000)]
Make this makefile a little more make-like (e.g. build only things that
need to be rebuilt) and add an FTP-area target. Next will be docs and
memstick builds.

13 years agoTemporarily revert r219272; it breaks acl_is_trivial_np(3).
Edward Tomasz Napierala [Sun, 6 Mar 2011 20:12:09 +0000 (20:12 +0000)]
Temporarily revert r219272; it breaks acl_is_trivial_np(3).

13 years agoSimplify various code that allowed for sys_signame being lower case.
Jilles Tjoelker [Sun, 6 Mar 2011 19:50:47 +0000 (19:50 +0000)]
Simplify various code that allowed for sys_signame being lower case.

This was changed in r218285.

13 years agoBecause we call __printf_out() with a on-stack buffer, also call
Pawel Jakub Dawidek [Sun, 6 Mar 2011 19:47:46 +0000 (19:47 +0000)]
Because we call __printf_out() with a on-stack buffer, also call
__printf_flush() so we are sure it won't be referenced after we return.

MFC after: 2 weeks

13 years agoexpand_number() needs uint64_t, declare it here if not already declared.
Pawel Jakub Dawidek [Sun, 6 Mar 2011 17:46:06 +0000 (17:46 +0000)]
expand_number() needs uint64_t, declare it here if not already declared.

MFC after: 3 days

13 years agoInclude stdio.h, so we can include printf.h in any order, as it needs FILE.
Pawel Jakub Dawidek [Sun, 6 Mar 2011 17:45:37 +0000 (17:45 +0000)]
Include stdio.h, so we can include printf.h in any order, as it needs FILE.

MFC after: 2 weeks

13 years agoFix various issues in how %#T is handled:
Pawel Jakub Dawidek [Sun, 6 Mar 2011 17:43:32 +0000 (17:43 +0000)]
Fix various issues in how %#T is handled:
- If precision is 0, don't print period followed by no digits.
- If precision is 0 stop printing units as soon as possible
  (eg. if we have three years and five days and precision is 0
   print only 3y5d).
- If precision is not 0, print all units (eg. 3y0d0h0m0s.00).

MFC after: 2 weeks

13 years agoAdd some more IDs of HighPoint RocketRAID 64x.
Alexander Motin [Sun, 6 Mar 2011 16:10:39 +0000 (16:10 +0000)]
Add some more IDs of HighPoint RocketRAID 64x.

13 years ago- With the addition of TLS support binutils started to make the addend
Marius Strobl [Sun, 6 Mar 2011 15:20:11 +0000 (15:20 +0000)]
- With the addition of TLS support binutils started to make the addend
  values for resolved symbols relative to relocbase instead of sections
  so detect this case and handle as appropriate, which allows using
  kernel modules linked with affected versions of binutils. Actually I
  think this is a bug in binutils but given that apparently nobody
  complained for nearly six years and powerpc has basically the same
  workaround I decided to put it in for the sparc64 kernel, too.
- Fix R_SPARC_HIX22 relocations. Apparently these are hardly ever used.

13 years ago- Consistently abbreviate the names of the relocations.
Marius Strobl [Sun, 6 Mar 2011 13:25:46 +0000 (13:25 +0000)]
- Consistently abbreviate the names of the relocations.
- End sentences with dots.
- Fix whitespace.

13 years agoAdd missing bus_dmamap_sync() calls for the work DMA map.
Marius Strobl [Sun, 6 Mar 2011 13:08:25 +0000 (13:08 +0000)]
Add missing bus_dmamap_sync() calls for the work DMA map.

MFC after: 2 weeks

13 years agoAdd missing bus_dmamap_sync() calls for the work DMA map.
Marius Strobl [Sun, 6 Mar 2011 13:06:41 +0000 (13:06 +0000)]
Add missing bus_dmamap_sync() calls for the work DMA map.

MFC after: 2 weeks

13 years ago- Allocate the DMA memory used for the work area as coherent as at least
Marius Strobl [Sun, 6 Mar 2011 12:54:00 +0000 (12:54 +0000)]
- Allocate the DMA memory used for the work area as coherent as at least
  the ataahci(4) and atamarvell(4) drivers share it between the host and
  the controller.
- Spell some zeros as BUS_DMA_WAITOK when used as bus_dmamem_alloc() flags.

MFC after: 2 weeks

13 years ago- Allocate the DMA memory shared between the host and the controller as
Marius Strobl [Sun, 6 Mar 2011 12:48:15 +0000 (12:48 +0000)]
- Allocate the DMA memory shared between the host and the controller as
  coherent.
- Add some missing bus_dmamap_sync() calls. This includes putting such
  calls before calling reply handlers instead of calling bus_dmamap_sync()
  for the request queue from individual reply handlers as these handlers
  generally read back updates by the controller.

Tested on amd64 and sparc64.

MFC after: 2 weeks

13 years agoMention setloginclass(2) in login_class(3).
Edward Tomasz Napierala [Sun, 6 Mar 2011 08:56:44 +0000 (08:56 +0000)]
Mention setloginclass(2) in login_class(3).

13 years agoMove getloginclass(2) and setloginclass(2) to FBSD_1.2, where they should've
Edward Tomasz Napierala [Sun, 6 Mar 2011 08:55:36 +0000 (08:55 +0000)]
Move getloginclass(2) and setloginclass(2) to FBSD_1.2, where they should've
been added in the first place.

13 years agoAdd FBSD_1.2; syscalls added in 9-CURRENT are supposed to go there.
Edward Tomasz Napierala [Sun, 6 Mar 2011 08:52:59 +0000 (08:52 +0000)]
Add FBSD_1.2; syscalls added in 9-CURRENT are supposed to go there.

Suggested by: kib

13 years agoAdd manual page for getloginclass(2) and setloginclass(2).
Edward Tomasz Napierala [Sun, 6 Mar 2011 08:35:50 +0000 (08:35 +0000)]
Add manual page for getloginclass(2) and setloginclass(2).

13 years agoFix libzpool build.
Pawel Jakub Dawidek [Sun, 6 Mar 2011 01:22:14 +0000 (01:22 +0000)]
Fix libzpool build.

MFC after: 1 month

13 years agoObligatory first commit to the include myself in the list of
Steve Kargl [Sun, 6 Mar 2011 00:57:08 +0000 (00:57 +0000)]
Obligatory first commit to the include myself in the list of
committers list.

Approved by: das

13 years agoAdd an EEPROM op that extracts out the power table offset.
Adrian Chadd [Sun, 6 Mar 2011 00:30:43 +0000 (00:30 +0000)]
Add an EEPROM op that extracts out the power table offset.
It defaults to -5 dBm for eeproms earlier than v21.

This apparently only applies to Merlin (AR9280) or later,
earlier 11n chipsets have a power table offset of 0.
All the code in ath9k which checks the power table offset
and takes it into account first ensures the chip is
Merlin or later.

13 years agoMake renaming of a ZVOL, ZVOL's parent directory and ZVOL snapshot work.
Pawel Jakub Dawidek [Sat, 5 Mar 2011 22:31:03 +0000 (22:31 +0000)]
Make renaming of a ZVOL, ZVOL's parent directory and ZVOL snapshot work.

Reported by: avg
MFC after: 1 month

13 years agoSimplify zvol_remove_minors() a bit.
Pawel Jakub Dawidek [Sat, 5 Mar 2011 22:24:31 +0000 (22:24 +0000)]
Simplify zvol_remove_minors() a bit.

MFC after: 1 month

13 years agoChange HALDEBUG() to be a macro that conditionally calls the debug output routine.
Adrian Chadd [Sat, 5 Mar 2011 21:20:18 +0000 (21:20 +0000)]
Change HALDEBUG() to be a macro that conditionally calls the debug output routine.

The earlier way of doing debugging would evaluate the function parameters
before calling the HALDEBUG. In the case of detailed register debugging
would mean a -lot- of unneeded register IO and other stuff was going on.

This method evaluates the ath_hal_debug variable before the function
parameters are evaluated, drastically reducing the amount of overhead
enabling HAL debugging during compilation.

13 years agoStyle(9) fix.
Dmitry Chagin [Sat, 5 Mar 2011 20:54:17 +0000 (20:54 +0000)]
Style(9) fix.
Fix indentation in comment, double ';' in variable declaration.

MFC after: 1 Week

13 years agoPartially reworked r219042.
Dmitry Chagin [Sat, 5 Mar 2011 20:36:42 +0000 (20:36 +0000)]
Partially reworked r219042.
The reason for this is a bug at ktrops() where process dereferenced
without having a lock. This might cause a panic if ktrace was runned
with -p flag and the specified process exited between the dropping
a lock and writing sv_flags.

Since it is impossible to acquire sx lock while holding mtx switch
to use asynchronous enqueuerequest() instead of writerequest().

Rename ktr_getrequest_ne() to more understandable name [1].

Requested by: jhb [1]

MFC after: 1 Week

13 years agoAdd two missing vertical bars.
Gavin Atkinson [Sat, 5 Mar 2011 15:18:11 +0000 (15:18 +0000)]
Add two missing vertical bars.

13 years agoExport login class information via kinfo and make it possible to view
Edward Tomasz Napierala [Sat, 5 Mar 2011 14:41:49 +0000 (14:41 +0000)]
Export login class information via kinfo and make it possible to view
it using "ps -o class".

13 years agosh: Fix some warnings in code for arithmetic expressions.
Jilles Tjoelker [Sat, 5 Mar 2011 13:27:13 +0000 (13:27 +0000)]
sh: Fix some warnings in code for arithmetic expressions.

Submitted by: eadler

13 years agoRegenerate.
Edward Tomasz Napierala [Sat, 5 Mar 2011 12:46:24 +0000 (12:46 +0000)]
Regenerate.

13 years agoAdd two new system calls, setloginclass(2) and getloginclass(2). This makes
Edward Tomasz Napierala [Sat, 5 Mar 2011 12:40:35 +0000 (12:40 +0000)]
Add two new system calls, setloginclass(2) and getloginclass(2).  This makes
it possible for the kernel to track login class the process is assigned to,
which is required for RCTL.  This change also make setusercontext(3) call
setloginclass(2) and makes it possible to retrieve current login class using
id(1).

Reviewed by: kib (as part of a larger patch)

13 years agoBe sure to stay within the bounds of the mod_str array when displaying
Navdeep Parhar [Sat, 5 Mar 2011 04:19:38 +0000 (04:19 +0000)]
Be sure to stay within the bounds of the mod_str array when displaying
the transceiver type.

13 years agoThere is no need to hold an ingress queue's lock while processing its
Navdeep Parhar [Sat, 5 Mar 2011 04:04:23 +0000 (04:04 +0000)]
There is no need to hold an ingress queue's lock while processing its
descriptors.

MFC after: 1 week

13 years agoCalculate how many descriptors can be reclaimed before calling
Navdeep Parhar [Sat, 5 Mar 2011 03:54:37 +0000 (03:54 +0000)]
Calculate how many descriptors can be reclaimed before calling
reclaim_tx_descs

13 years agoTweaks for rx:
Navdeep Parhar [Sat, 5 Mar 2011 03:42:03 +0000 (03:42 +0000)]
Tweaks for rx:

- everything related to LRO should be in #ifdef INET blocks
- reorder sge_iq's fields so that the most frequently used are all together
- pull all rx code into t4_intr_data directly
- let go of the ingress queue lock when passing up data
- refill the freelist only if it is short of at least 32 buffers

13 years agoStore the ifnet rather than the port_info in each txq and rxq struct.
Navdeep Parhar [Sat, 5 Mar 2011 03:27:14 +0000 (03:27 +0000)]
Store the ifnet rather than the port_info in each txq and rxq struct.

MFC after: 1 week

13 years agoA txpkts work request should have a valid FID.
Navdeep Parhar [Sat, 5 Mar 2011 03:18:56 +0000 (03:18 +0000)]
A txpkts work request should have a valid FID.

MFC after: 1 week

13 years agoUpgrade the firmware on the card automatically if a better version is
Navdeep Parhar [Sat, 5 Mar 2011 03:12:50 +0000 (03:12 +0000)]
Upgrade the firmware on the card automatically if a better version is
available.  Downgrade only for a major version mismatch.

MFC after: 1 week

13 years agoResume tx immediately in response to an SGE egress update from the hardware.
Navdeep Parhar [Sat, 5 Mar 2011 03:06:38 +0000 (03:06 +0000)]
Resume tx immediately in response to an SGE egress update from the hardware.

MFC after: 1 week

13 years agoFix incorrect assertion.
Navdeep Parhar [Sat, 5 Mar 2011 03:01:14 +0000 (03:01 +0000)]
Fix incorrect assertion.

MFC after: 3 days

13 years agoFlush both reads *and* writes to registers.
Matt Jacob [Sat, 5 Mar 2011 00:59:34 +0000 (00:59 +0000)]
Flush both reads *and* writes to registers.

Obtained from: Miod Vallat in OpenBSD
MFC after: 1 week

13 years agoUse ffs() to locate free bits in the inode bitmap rather than a loop with
John Baldwin [Fri, 4 Mar 2011 22:26:41 +0000 (22:26 +0000)]
Use ffs() to locate free bits in the inode bitmap rather than a loop with
bit shifts.

Reviewed by: mckusick
MFC after: 1 month

13 years agoFix a panic that can happen when trying to destroy a lagg(4) with scheduler set to...
Ermal Luçi [Fri, 4 Mar 2011 20:37:38 +0000 (20:37 +0000)]
Fix a panic that can happen when trying to destroy a lagg(4) with scheduler set to none.

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

13 years agoMake UFS use PSARC/2010/029 NFSv4 ACL semantics by default, just like
Edward Tomasz Napierala [Fri, 4 Mar 2011 19:53:07 +0000 (19:53 +0000)]
Make UFS use PSARC/2010/029 NFSv4 ACL semantics by default, just like
ZFSv28 does.

MFC after: 2 months

13 years agoPOSIX.1-2008 moved some constants from the XSI option to the Base.
Jilles Tjoelker [Fri, 4 Mar 2011 19:28:27 +0000 (19:28 +0000)]
POSIX.1-2008 moved some constants from the XSI option to the Base.

MFC after: 2 weeks

13 years agoOne more fix. Now all ACL tests pass again.
Edward Tomasz Napierala [Fri, 4 Mar 2011 18:46:19 +0000 (18:46 +0000)]
One more fix.  Now all ACL tests pass again.

13 years agoAdapt tools-crossfs.test to the new semantics.
Edward Tomasz Napierala [Fri, 4 Mar 2011 18:37:26 +0000 (18:37 +0000)]
Adapt tools-crossfs.test to the new semantics.

13 years agoMake acl_strip_np(3) use new trivial ACL format for NFSv4 ACls (three
Edward Tomasz Napierala [Fri, 4 Mar 2011 17:23:10 +0000 (17:23 +0000)]
Make acl_strip_np(3) use new trivial ACL format for NFSv4 ACls (three
entries instead of six).  This makes "setfacl -b" do the right thing
for ACLs on ZFS.  UFS recognizes both kinds of trivial ACLs; no change
there.

MFC after: 2 months

13 years agoAdapt NFSv4 ACL regression test to the fact that the new ZFS uses
Edward Tomasz Napierala [Fri, 4 Mar 2011 17:10:39 +0000 (17:10 +0000)]
Adapt NFSv4 ACL regression test to the fact that the new ZFS uses
new semantics.

13 years agoMake ACL tests slightly easier to run.
Edward Tomasz Napierala [Fri, 4 Mar 2011 17:07:02 +0000 (17:07 +0000)]
Make ACL tests slightly easier to run.

13 years ago- Add a FEATURE for capsicum (security_capabilities).
Alexander Leidinger [Fri, 4 Mar 2011 09:03:54 +0000 (09:03 +0000)]
- Add a FEATURE for capsicum (security_capabilities).
- Rename mac FEATURE to security_mac.

Discussed with: rwatson

13 years agoAdd the Buffalo (Melco Inc.) WLI-UC-G301N
Daichi GOTO [Fri, 4 Mar 2011 07:01:45 +0000 (07:01 +0000)]
Add the Buffalo (Melco Inc.) WLI-UC-G301N

PR: usb/155229
Submitted by: Yoshiaki UCHIKAWA
MFC after: 1 week

13 years agoFix some _POSIX minimum/maximum values in limits.h:
Jilles Tjoelker [Thu, 3 Mar 2011 22:34:13 +0000 (22:34 +0000)]
Fix some _POSIX minimum/maximum values in limits.h:
* Some values changed in POSIX.1-2001; provide the former value if a program
  requests compliance to an earlier version of POSIX. [1]
* Add missing _POSIX_CLOCKRES_MIN constant. This is a maximum value but
  otherwise works the same as the minimum values.

PR: standards/104743
Submitted by: bde [1] (not exact #ifdefs, but the values)
MFC after: 2 weeks

13 years agoThe sample rate module currently does the slightly wrong thing when
Adrian Chadd [Thu, 3 Mar 2011 20:41:59 +0000 (20:41 +0000)]
The sample rate module currently does the slightly wrong thing when
determining whether to use MRR or not.

It uses the 11g protection mode when calculating 11n related stuff, rather
than checking the 11n protection mode.

Furthermore, the 11n chipsets can quite happily handle multi-rate retry w/
protection; the TX path and rate control modules need to be taught about
that.

13 years agoPrint out shared flag for debug purpose.
Dmitry Chagin [Thu, 3 Mar 2011 18:29:55 +0000 (18:29 +0000)]
Print out shared flag for debug purpose.

MFC after: 1 Week

13 years agoDon't automatically send a START UNIT to sequential access devices-
Matt Jacob [Thu, 3 Mar 2011 18:28:21 +0000 (18:28 +0000)]
Don't automatically send a START UNIT to sequential access devices-
this might cause them to load the tape unintentionally.

Reviewed by: gibbs
MFC after: 1 month

13 years agoSwitch PROCESS_SHARE to AUTO_SHARE (as umtx do). Even for SHARED,
Dmitry Chagin [Thu, 3 Mar 2011 18:19:10 +0000 (18:19 +0000)]
Switch PROCESS_SHARE to AUTO_SHARE (as umtx do). Even for SHARED,
if page mapped MAP_ANON linux uses private algorithm too.

Disscussed with: jhb

MFC after: 3 Days

13 years agoMake "struct pts_softc" point to ucred instead of uidinfo. This is no-op,
Edward Tomasz Napierala [Thu, 3 Mar 2011 17:33:22 +0000 (17:33 +0000)]
Make "struct pts_softc" point to ucred instead of uidinfo.  This is no-op,
required for resource containers.

Reviewed by: kib (as part of a larger patch), ed

13 years agoUnbreak the build for no options INET6.
Bjoern A. Zeeb [Thu, 3 Mar 2011 16:16:49 +0000 (16:16 +0000)]
Unbreak the build for no options INET6.

PR: kern/155227
Submitted by: Dmitry Afanasiev (KOT MATPOCKuH.Ru)

13 years agoMFi386: revision 219186
Yoshihiro Takahashi [Thu, 3 Mar 2011 11:45:54 +0000 (11:45 +0000)]
MFi386: revision 219186

  This patch shrinks boot2 a little.

  o    It switches kname to be just a pointer instead of an array.
  o    It changes ioctl to unsigned from uint8_t.
  o    It changes the second keyhit limit to 3 seconds from 5.
  o    It removes bi_basemem/bi_extmem/bi_memsizes_valid setting.

13 years agoMake cap_new(2) and cap_getmode(2) symbols from libc public so applications
Robert Watson [Thu, 3 Mar 2011 11:31:08 +0000 (11:31 +0000)]
Make cap_new(2) and cap_getmode(2) symbols from libc public so applications
can link against them.  Add man pages for the new system calls, with one
errant forward reference to changes not yet present in FreeBSD, but soon
will be.

Reviewed by: anderson
Obtained from: Capsicum Project
Sponsored by: Google, Inc.
Discussed with: benl, kris, pjd
MFC after: 3 months

13 years agoAdd description of ECAPMODE to errno(2) man page.
Robert Watson [Thu, 3 Mar 2011 11:29:48 +0000 (11:29 +0000)]
Add description of ECAPMODE to errno(2) man page.

Discussed with: anderson
Obtained from:  Capsicum Project
Sponsored by:   Google, Inc.
MFC after:      3 months

13 years agoAdd text string for ECAPMODE to libc.
Robert Watson [Thu, 3 Mar 2011 11:28:57 +0000 (11:28 +0000)]
Add text string for ECAPMODE to libc.

Discussed with: anderson
Obtained from: Capsicum Project
Sponsored by: Google, Inc.
MFC after: 3 months

13 years ago- Remove dependency to ucom from ulpt.
Hans Petter Selasky [Thu, 3 Mar 2011 10:25:41 +0000 (10:25 +0000)]
- Remove dependency to ucom from ulpt.

MFC after: 14 days
Approved by: thompsa (mentor)

13 years agoPort over ar5416OverrideIni() from ath9k ar5008_hw_override_ini().
Adrian Chadd [Thu, 3 Mar 2011 08:38:31 +0000 (08:38 +0000)]
Port over ar5416OverrideIni() from ath9k ar5008_hw_override_ini().

* change the BB gating logic to explicitly define which chips are covered;
  the ath9k method isn't as clear.
* don't disable the BB gating for now, the ar5416 initvals have it, and the
  ar9160 initval sets it to 0x0. Figure out why before re-enabling this.
* migrate the Merlin (ar9280) applicable WAR from the Kite (ar9285) code
  (which won't get called for Merlin!) and stuff it in here.

13 years ago* fix the ar5416 check macros to be slightly more correct;
Adrian Chadd [Thu, 3 Mar 2011 08:30:28 +0000 (08:30 +0000)]
* fix the ar5416 check macros to be slightly more correct;
* add some stubs for chipsets that we haven't yet obtained support for.

13 years agoModify the sample rate module output to be (slightly) easier to understand.
Adrian Chadd [Thu, 3 Mar 2011 08:09:49 +0000 (08:09 +0000)]
Modify the sample rate module output to be (slightly) easier to understand.

* add dot11rate_label() which returns Mb or MCS based on legacy or HT
* use it everywhere dot11rate() is used
* in the "current selection" part at the top of the debugging output,
  otuput what the rate itself is rather than the rix. The rate index
  (rix) has very little meaning to normal humans who don't know how
  to find the PHY settings for each of the chipsets; pointing out the
  rix rate and type is likely more useful.

13 years agoDisable trying to do HT/40 and short-GI TX.
Adrian Chadd [Thu, 3 Mar 2011 03:02:06 +0000 (03:02 +0000)]
Disable trying to do HT/40 and short-GI TX.

These flags are just plain wrong - they're the node flags from negotiation,
not the configured flags. I'll jump in later on and figure out exactly
what should be done to properly set these two flags when in both STA mode
(ie, what the AP says is possible and what's configured) and AP mode
(ie, where the AP has a configuration, but then negotiates what's possible
with each node, so per-node configuration can and will differ.)

This allows the 11n 2.4ghz/ht20 mode to associate (but perform poorly still)
and exchange MCS rates with atheros reference APs and a Cisco/Linksys
E3000 AP.

13 years agoFix some duplicate-word typos in manpages.
Ulrich Spörlein [Wed, 2 Mar 2011 21:59:53 +0000 (21:59 +0000)]
Fix some duplicate-word typos in manpages.

Submitted by: arundel
MFC after: 1 week

13 years agoUnbreak .Aq for non-ASCII output like -Tps or -Tutf8.
Ulrich Spörlein [Wed, 2 Mar 2011 21:59:42 +0000 (21:59 +0000)]
Unbreak .Aq for non-ASCII output like -Tps or -Tutf8.

groff will try to produce fancy angle brackets like
Foo ⟨foo@FreeBSD.org⟩
This is nice and well, but no email client will understand them. For
ease of copy&paste keep the one-true pair of brackets 0x3c/0x3e.

See: RFC 822, RFC 2822
PR: gnu/154822
Submitted by: Dominic Fandrey <kamikaze@bsdforen.de>
MFC after: 2 weeks

13 years agoHide the outer IP addresses of a tunnel interfaces (gif(4), gre(4))
Bjoern A. Zeeb [Wed, 2 Mar 2011 21:39:08 +0000 (21:39 +0000)]
Hide the outer IP addresses of a tunnel interfaces (gif(4), gre(4))
from processes inside jails if the addresses do not belong to the jail.

Originally reported by: Pieter de Boer via remko
PR: kern/151119
Tested by: Piotr KUCHARSKI (nospam 42.pl) [gif]
MFC after: 1 week

13 years agoThis patch shrinks boot2 a little.
Roman Divacky [Wed, 2 Mar 2011 18:53:12 +0000 (18:53 +0000)]
This patch shrinks boot2 a little.

o    It switches kname to be just a pointer instead of an array
     thus avoiding a couple of memcpy()s.

o    It changes ioctl to unsigned from uint8_t.

o    It changes the second keyhit limit to 3 seconds from 5
     so that constant propagation can take place.

o    It changes the ticks overflow computation as suggested by bde@.

o    It removes bi_basemem/bi_extmem/bi_memsizes_valid setting from
     bootinfo as it is unused.

Reviewed by: jhb

13 years agoBreak the keycache management functions out into if_ath_keycache.c .
Adrian Chadd [Wed, 2 Mar 2011 17:19:54 +0000 (17:19 +0000)]
Break the keycache management functions out into if_ath_keycache.c .

13 years agoPrevent crashes from a race when (cloned) interfaces go away.
Bjoern A. Zeeb [Wed, 2 Mar 2011 17:13:07 +0000 (17:13 +0000)]
Prevent crashes from a race when (cloned) interfaces go away.

PR: bin/152143
Submitted by: Przemyslaw Frasunek (przemyslaw frasunek.com)
Tested by: Przemyslaw Frasunek (przemyslaw frasunek.com)
MFC after: 1 week

13 years agoUpdate manual: node now supports NetFlow v9.
Gleb Smirnoff [Wed, 2 Mar 2011 16:16:09 +0000 (16:16 +0000)]
Update manual: node now supports NetFlow v9.

Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>

13 years agoAdd support for NetFlow version 9 into ng_netflow(4) node.
Gleb Smirnoff [Wed, 2 Mar 2011 16:15:11 +0000 (16:15 +0000)]
Add support for NetFlow version 9 into ng_netflow(4) node.

Submitted by: Alexander V. Chernikov <melifaro ipfw.ru>

13 years agoAdd additional release makefile for bsdinstall-based media, along with
Nathan Whitehorn [Wed, 2 Mar 2011 16:06:57 +0000 (16:06 +0000)]
Add additional release makefile for bsdinstall-based media, along with
support files. This does not change the default behavior of anything.

To make bsdinstall-based media, pre-build world and GENERIC, then run
the release target in Makefile.bsdinstall.

13 years agoMigrate the sysctl related routines (statistics, debugging, etc) out of
Adrian Chadd [Wed, 2 Mar 2011 16:03:19 +0000 (16:03 +0000)]
Migrate the sysctl related routines (statistics, debugging, etc) out of
if_ath.c and into if_ath_sysctl.c .

13 years agoMake installations work when no optional components are selected.
Nathan Whitehorn [Wed, 2 Mar 2011 15:41:00 +0000 (15:41 +0000)]
Make installations work when no optional components are selected.

13 years agoFix a bug in the result of manual assembly.
Konstantin Belousov [Wed, 2 Mar 2011 14:56:58 +0000 (14:56 +0000)]
Fix a bug in the result of manual assembly.

Reported by: Stefan Grundmann <sg2342 googlemail com>
PR: kern/155118
MFC after: 3 days

13 years agoImprove the distributeworld target in Makefile.inc1 and update the release
Nathan Whitehorn [Wed, 2 Mar 2011 14:39:26 +0000 (14:39 +0000)]
Improve the distributeworld target in Makefile.inc1 and update the release
infrastructure to use it. make distributeworld can now be used without
preparing its environment first and installs games into its distribution
using the regular make distribute logic instead of post-processing with
a script.

Also add two new targets, packageworld and packagekernel, that tar up the
results of distributeworld and distributekernel (also new), respectively.

13 years agoExpand the name of Palm Sunday holiday with more canonical Entry of the
Sergey A. Osokin [Wed, 2 Mar 2011 11:09:34 +0000 (11:09 +0000)]
Expand the name of Palm Sunday holiday with more canonical Entry of the
Lord into Jerusalem.
Merge the Pentecost and Trinity Sunday holidays, they are synonyms.
Remove Body of Christ day, nonexistent holiday for Orthodox Church.
Fix typo in the name of Ioann The Baptist, introduced in previous commit.

13 years agoFix beginning day of the Carnival. it starts
Sergey A. Osokin [Wed, 2 Mar 2011 11:04:50 +0000 (11:04 +0000)]
Fix beginning day of the Carnival. it starts

13 years agoCorrect a typo.
Xin LI [Wed, 2 Mar 2011 00:29:14 +0000 (00:29 +0000)]
Correct a typo.

PR: bin/155175
Submitted by: Peter J. Philipp <pjp centroid.eu>
MFC after: 3 days

13 years agoMake a change to the implementation of the direct map to improve performance
Alan Cox [Wed, 2 Mar 2011 00:24:07 +0000 (00:24 +0000)]
Make a change to the implementation of the direct map to improve performance
on processors that support 1 GB pages.  Specifically, if the end of physical
memory is not aligned to a 1 GB page boundary, then map the residual
physical memory with multiple 2 MB page mappings rather than a single 1 GB
page mapping.  When a 1 GB page mapping is used for this residual memory,
access to the memory is slower than when multiple 2 MB page mappings are
used.  (I suspect that the reason for this slowdown is that the TLB is
actually being loaded with 4 KB page mappings for the residual memory.)

X-MFC after: r214425