]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoMake these files compile with clang.
Rui Paulo [Thu, 22 Jul 2010 18:52:29 +0000 (18:52 +0000)]
Make these files compile with clang.

Submitted by: Dimitry Andric <dimitry at andric.com>

13 years agoDisable building libobjc with clang as it's not yet supported.
Rui Paulo [Thu, 22 Jul 2010 18:49:27 +0000 (18:49 +0000)]
Disable building libobjc with clang as it's not yet supported.

Submitted by: Dimitry Andric <dimitry at andric.com>

13 years agoHandle a few corner cases for clang like we did with icc. These should
Rui Paulo [Thu, 22 Jul 2010 18:47:41 +0000 (18:47 +0000)]
Handle a few corner cases for clang like we did with icc. These should
reduce the number of warnings seen while building the kernel.

Submitted by: Dimitry Andric <dimitry at andric.com>

13 years agoFix an obvious typo from r1.1. We were acquiring an exclusive writer lock
Jung-uk Kim [Thu, 22 Jul 2010 18:44:40 +0000 (18:44 +0000)]
Fix an obvious typo from r1.1.  We were acquiring an exclusive writer lock
regardless of the given flags.

MFC after: 3 days

13 years agoNote that foreground fsck should be run after a filesystem related panic.
Kirk McKusick [Thu, 22 Jul 2010 18:33:10 +0000 (18:33 +0000)]
Note that foreground fsck should be run after a filesystem related panic.

Suggested by: Mikhail Teterin (mi@)
MFC after: 1 week

13 years agoIf a size suffix isn't entered, just use the value entered. This fixes
Rebecca Cran [Thu, 22 Jul 2010 17:35:36 +0000 (17:35 +0000)]
If a size suffix isn't entered, just use the value entered. This fixes
a bug caused by r209235 where entering a number of blocks after
previously entering a size in MB/GB would result in the size of the
previous partition being used.

PR: bin/148266
Submitted by: jpaetzel
Approved by: rrs (mentor)

13 years agoRemove unused variable that snuck in during development.
Matthew D Fleming [Thu, 22 Jul 2010 17:23:43 +0000 (17:23 +0000)]
Remove unused variable that snuck in during development.

Approved by:    zml (mentor)

13 years agoFix taskqueue_drain(9) to not have false negatives. For threaded
Matthew D Fleming [Thu, 22 Jul 2010 16:41:09 +0000 (16:41 +0000)]
Fix taskqueue_drain(9) to not have false negatives.  For threaded
taskqueues, more than one task can be running simultaneously.

Also make taskqueue_run(9) static to the file, since there are no
consumers in the base kernel and the function signature needs to change
with this fix.

Remove mention of taskqueue_run(9) and taskqueue_run_fast(9) from the
taskqueue(9) man page.

Reviewed by:    jhb
Approved by:    zml (mentor)

13 years agoHook newsyslog regression tests to the Makefile 'build'.
Simon L. B. Nielsen [Thu, 22 Jul 2010 11:38:48 +0000 (11:38 +0000)]
Hook newsyslog regression tests to the Makefile 'build'.

MFC after: 3 weeks

13 years agoAdd regression tests for newsyslog. These are far from a complete
Simon L. B. Nielsen [Thu, 22 Jul 2010 11:37:54 +0000 (11:37 +0000)]
Add regression tests for newsyslog.  These are far from a complete
test of newsyslog, as they were mainly made to test 'newsyslog -t',
but they do test the basic functionality.

The test 'framework' was based on dds@'s code in
src/tools/regression/bin/mv/.

Note that currently these tests are not fully correct for the
non-timestamp based rotation case, as it seems like newsyslog actually
by default keeps a file too much around.

MFC after: 3 weeks

13 years agoAdd support for creating the archived log filenames using a time-stamp
Simon L. B. Nielsen [Thu, 22 Jul 2010 11:23:18 +0000 (11:23 +0000)]
Add support for creating the archived log filenames using a time-stamp
instead of the traditional simple counter.

Using the time-stamp based file-names, once a log file is archived, it
will not change name until it is deleted.  This means that many backup
systems will only perform one backup of the archived log file, instead
for performing a new backup of the logfile upon each logfile rotation.

This implementation is separate from the patches in the mentioned PR,
as I wasn't aware of the existence of the PR until after I had
implemented the same functionality as the patches in the PR provide.
Unlike the PR, this new code does honor the 'log count' in
newsyslog.conf so old logfiles are deleted.  This new code does not
currently support never deleting the archived logfiles.

PR: bin/29363
MFC after: 3 weeks

13 years agoConvert md(4) to use alloc_unr(9) and alloc_unr_specific(9) for unit
Jaakko Heinonen [Thu, 22 Jul 2010 10:24:28 +0000 (10:24 +0000)]
Convert md(4) to use alloc_unr(9) and alloc_unr_specific(9) for unit
number allocation. The old approach had some problems such as it allowed
an overflow to occur in the unit number calculation.

PR: kern/122288

13 years agoVerify return value of the sigset manipulation functions
Konstantin Belousov [Thu, 22 Jul 2010 09:14:18 +0000 (09:14 +0000)]
Verify return value of the sigset manipulation functions
to catch invalid signal numbers [1]. Use consistent style of
not assigning the return value to a local variable.

Reported by: Garrett Cooper <yanegomi gmail com> [1]
MFC after: 1 week

13 years agoWhen compat32 binary asks for the value of hw.machine_arch, report the
Konstantin Belousov [Thu, 22 Jul 2010 09:13:49 +0000 (09:13 +0000)]
When compat32 binary asks for the value of hw.machine_arch, report the
name of 32bit sibling architecture instead of the host one. Do the
same for hw.machine on amd64.

Add a safety belt debug.adaptive_machine_arch sysctl, to turn the
substitution off.

Reviewed by: jhb, nwhitehorn
MFC after: 2 weeks

13 years agoActually, only the fullsync mode is implemented, not memsync mode.
Pawel Jakub Dawidek [Thu, 22 Jul 2010 08:30:14 +0000 (08:30 +0000)]
Actually, only the fullsync mode is implemented, not memsync mode.
Correct manual page.

MFC after: 3 days

13 years agoRemove spurious '/*-' marks and fix some other style problems.
Edward Tomasz Napierala [Thu, 22 Jul 2010 05:42:29 +0000 (05:42 +0000)]
Remove spurious '/*-' marks and fix some other style problems.

Submitted by: bde@

13 years ago- Add myself to committers-src.dot
Andrew Turner [Wed, 21 Jul 2010 21:23:23 +0000 (21:23 +0000)]
- Add myself to committers-src.dot

Approved by: imp (mentor)

13 years agoApply vendor version 1.20.00.17.
Xin LI [Wed, 21 Jul 2010 18:50:24 +0000 (18:50 +0000)]
Apply vendor version 1.20.00.17.

This version adds support for ARC1880; additionally this version fixed
an issue where all devices on a SAS port gets offlined when any device
failed on the port [1].

Many thanks to Areca for continuing to support FreeBSD.

PR: kern/148502 [1]
Submitted by: Ching-Lung Huang <ching2048 areca com tw>
Obtained from: Areca
Tested by: Rich Ercolani <rercola acm jhu edu> [1]
MFC after: 2 weeks

13 years agoMFamd64:
Rui Paulo [Wed, 21 Jul 2010 18:47:52 +0000 (18:47 +0000)]
MFamd64:
  Add USD_GETBASE(), USD_SETBASE(), USD_GETLIMIT() and USD_SETLIMIT().

13 years ago* Remove a superfluous error description.
Kai Wang [Wed, 21 Jul 2010 13:29:00 +0000 (13:29 +0000)]
* Remove a superfluous error description.
* Document an additional error that may be returned: `ELF_E_ARCHIVE`.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoAdd a cross-reference to `elf_rawfile(3)`.
Kai Wang [Wed, 21 Jul 2010 13:23:07 +0000 (13:23 +0000)]
Add a cross-reference to `elf_rawfile(3)`.

Obtained from: elftoolchain
MFC after: 1 month

13 years ago* Note that ar(1) archives may also be opened using `elf_memory(3)`.
Kai Wang [Wed, 21 Jul 2010 13:18:57 +0000 (13:18 +0000)]
* Note that ar(1) archives may also be opened using `elf_memory(3)`.
* Ignore the passed in value of the `fd` argument for ar(1) archives
  opened with elf_memory(3).

Obtained from: elftoolchain
MFC after: 1 month

13 years agoSince r186119 IP6 input counters for octets and packets were not
Bjoern A. Zeeb [Wed, 21 Jul 2010 13:01:21 +0000 (13:01 +0000)]
Since r186119 IP6 input counters for octets and packets were not
working anymore.  In addition more checks and operations were missing.

In case lla_lookup results in a match, get the ifaddr to update the
statistics counters, and check that the address is neither tentative,
duplicate or otherwise invalid before accepting the packet.  If ok,
record the address information in the mbuf.  [ as is done in case
lla_lookup does not return a result and we go through the FIB ].

Reported by: remko
Tested by: remko
MFC after: 2 weeks

13 years agoRemove a redundant word.
Kai Wang [Wed, 21 Jul 2010 13:00:01 +0000 (13:00 +0000)]
Remove a redundant word.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoMove helper functions `_libelf_ar_get_{name,number,string}()` and
Kai Wang [Wed, 21 Jul 2010 12:54:34 +0000 (12:54 +0000)]
Move helper functions `_libelf_ar_get_{name,number,string}()` and
`_libelf_ar_open()` to a new compilation unit "libelf_ar_util.c"
to break the circular dependency between "elf_memory.o" and
"libelf_ar.o".

Obtained from: elftoolchain
MFC after: 1 month

13 years agoFix a memory leak.
Kai Wang [Wed, 21 Jul 2010 12:30:58 +0000 (12:30 +0000)]
Fix a memory leak.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoUse proper sysctl type (quad) for et_frequency. It fixes output on sparc64.
Alexander Motin [Wed, 21 Jul 2010 12:23:49 +0000 (12:23 +0000)]
Use proper sysctl type (quad) for et_frequency. It fixes output on sparc64.

13 years ago* Deprecate `elf_getshnum()`, `elf_getphnum()` and `elf_getshstrndx()` in
Kai Wang [Wed, 21 Jul 2010 12:14:50 +0000 (12:14 +0000)]
* Deprecate `elf_getshnum()`, `elf_getphnum()` and `elf_getshstrndx()` in
  favour of `elf_getshdrnum()`, `elf_getphdrnum()` and `elf_getshdrstrndx()`
  respectively.
* Add new manual pages for `elf_getshdrstrndx()`, `elf_getphdrnum()` and
  `elf_getshdrnum()`.
* Add a deprecation warning for `elf_getshstrndx()`, `elf_getphnum()` and
  `elf_getshnum()`.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoAvoid switching between "unsigned char" and "char" in the C code
Kai Wang [Wed, 21 Jul 2010 11:26:18 +0000 (11:26 +0000)]
Avoid switching between "unsigned char" and "char" in the C code
generated from "libelf_convert.m4".

Obtained from: elftoolchain
MFC after: 1 month

13 years agoAdd support for translating sections of type ELF_T_GNUHASH.
Kai Wang [Wed, 21 Jul 2010 10:57:22 +0000 (10:57 +0000)]
Add support for translating sections of type ELF_T_GNUHASH.

Obtained from: elftoolchain
MFC after: 1 month

13 years ago- Document that the *fsize() functions return a size of 1 for Elf
Kai Wang [Wed, 21 Jul 2010 10:39:29 +0000 (10:39 +0000)]
- Document that the *fsize() functions return a size of 1 for Elf
  types that don't have a fixed size.
- The *fsize() functions should return a size of 1, for variable length
  types.
- Redefine symbol ELF_T_LAST to match the current end of the list.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoPerform additional checks when translating between file and memory
Kai Wang [Wed, 21 Jul 2010 10:25:02 +0000 (10:25 +0000)]
Perform additional checks when translating between file and memory
representations of ELF types.

The ELF(3) API allows applications to request a conversion that is
`in-place', i.e., with source and destinations data buffers being
the same.  However, the file and memory sizes of ELF sections that
have additional internal structure, such as those of type `Elf_Note',
or `Elf_GNU_Hash_Header', can be determined only known after the
type-specific headers that comprise the first few words in these
sections are read and translated.

Pass in the size of destination buffer to type translation routines
in "libelf_convert.m4" and have these routines return an error code
if the translated data would not fit inside the destination buffer.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoProbabilly defaulting to KTR_GEN is not the right decision when KTR_MASK
Attilio Rao [Wed, 21 Jul 2010 10:14:04 +0000 (10:14 +0000)]
Probabilly defaulting to KTR_GEN is not the right decision when KTR_MASK
is not defined at all because KTR_GEN is still a valid class and some
traces may fit in. Default to 0, instead, and block any tracing.

As long as this is a POLA violation (some thirdy-part code, even if
that may be a questionable choice, could be rely on that feature) a
MFC possibility might be carefully evaluated.

Sponsored by: Sandvine Incorporated

13 years agoReduce verbosity.
Kai Wang [Wed, 21 Jul 2010 10:11:46 +0000 (10:11 +0000)]
Reduce verbosity.

Obtained from: elftoolchain
MFC after: 1 month

13 years ago- Return zero for file sizes of ELF types that have a variable size.
Kai Wang [Wed, 21 Jul 2010 10:08:25 +0000 (10:08 +0000)]
- Return zero for file sizes of ELF types that have a variable size.
- Neaten a few comments.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoKTR_CTx are long time aliased by existing classes so they can't serve
Attilio Rao [Wed, 21 Jul 2010 10:05:07 +0000 (10:05 +0000)]
KTR_CTx are long time aliased by existing classes so they can't serve
their purpose anymore. Axe them out.

Sponsored by: Sandvine Incorporated
Discussed with: jhb, emaste
Possible MFC: TBD

13 years agoNote that the *_fsize() functions are only defined for ELF types that
Kai Wang [Wed, 21 Jul 2010 10:02:59 +0000 (10:02 +0000)]
Note that the *_fsize() functions are only defined for ELF types that
have a fixed size.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoChanges for supporting GNU Hash sections.
Kai Wang [Wed, 21 Jul 2010 09:56:42 +0000 (09:56 +0000)]
Changes for supporting GNU Hash sections.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoAdd a new ELF type denoting GNU style hash tables.
Kai Wang [Wed, 21 Jul 2010 09:51:24 +0000 (09:51 +0000)]
Add a new ELF type denoting GNU style hash tables.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoAllow an application that updates only the ELF Ehdr to work.
Kai Wang [Wed, 21 Jul 2010 09:47:14 +0000 (09:47 +0000)]
Allow an application that updates only the ELF Ehdr to work.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoUse <unistd.h> to declare the prototype for ftruncate().
Kai Wang [Wed, 21 Jul 2010 09:33:45 +0000 (09:33 +0000)]
Use <unistd.h> to declare the prototype for ftruncate().

Obtained from: elftoolchain
MFC after: 1 month

13 years agoBug fix: permit the creation of zero-sized sections.
Kai Wang [Wed, 21 Jul 2010 09:27:16 +0000 (09:27 +0000)]
Bug fix: permit the creation of zero-sized sections.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoRedo the page table page allocation on MIPS, as suggested by
Jayachandran C. [Wed, 21 Jul 2010 09:27:00 +0000 (09:27 +0000)]
Redo the page table page allocation on MIPS, as suggested by
alc@.

The UMA zone based allocation is replaced by a scheme that creates
a new free page list for the KSEG0 region, and a new function
in sys/vm that allocates pages from a specific free page list.

This also fixes a race condition introduced by the UMA based page table
page allocation code. Dropping the page queue and pmap locks before
the call to uma_zfree, and re-acquiring them afterwards  will introduce
a race condtion(noted by alc@).

The changes are :
- Revert the earlier changes in MIPS pmap.c that added UMA zone for
page table pages.
- Add a new freelist VM_FREELIST_HIGHMEM to MIPS vmparam.h for memory that
is not directly mapped (in 32bit kernel). Normal page allocations will first
try the HIGHMEM freelist and then the default(direct mapped) freelist.
- Add a new function 'vm_page_t vm_page_alloc_freelist(int flind, int
order, int req)' to vm/vm_page.c to allocate a page from a specified
freelist. The MIPS page table pages will be allocated using this function
from the freelist containing direct mapped pages.
- Move the page initialization code from vm_phys_alloc_contig() to a
new function vm_page_alloc_init(), and use this function to initialize
pages in vm_page_alloc_freelist() too.
- Split the  function vm_phys_alloc_pages(int pool, int order) to create
vm_phys_alloc_freelist_pages(int flind, int pool, int order), and use
this function from both vm_page_alloc_freelist() and vm_phys_alloc_pages().

Reviewed by: alc

13 years agoImprove compatibility with other implementations of the ELF(3) API:
Kai Wang [Wed, 21 Jul 2010 09:20:40 +0000 (09:20 +0000)]
Improve compatibility with other implementations of the ELF(3) API:
when an output file has no program headers, set the 'e_phentsize'
field of the ELF executable header to zero.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoBug fix: when updating headers using the gelf_update_*() functions,
Kai Wang [Wed, 21 Jul 2010 08:58:52 +0000 (08:58 +0000)]
Bug fix: when updating headers using the gelf_update_*() functions,
the appropriate `dirty' bit needs to be set for both the Elf32 and
Elf64 case.

Obtained from: elftoolchain
MFC after: 1 month

13 years ago- Correctly handle sections of type SHT_NOBITS. For these sections:
Kai Wang [Wed, 21 Jul 2010 08:54:46 +0000 (08:54 +0000)]
- Correctly handle sections of type SHT_NOBITS.  For these sections:
  - elf_getdata() and elf_rawdata() should return an "Elf_Data" structure
    that has its "d_buf" member set to NULL and "d_size" member set to
    the nominal 'size' of the section.  [1]
  - Update the manual page for these functions.
- Fix a memory leak in an error handling path inside elf_getdata().
- Use _libelf_allocate_data() in elf_newdata() for consistency.

Obtained from: elftoolchain
MFC after: 1 month

13 years agoAlso link getutxent.3 to utmpx.3.
Ed Schouten [Wed, 21 Jul 2010 08:51:38 +0000 (08:51 +0000)]
Also link getutxent.3 to utmpx.3.

If you run `man utmpx', you expect to get some info on it.

13 years agoRemove a superfluous comment.
Kai Wang [Wed, 21 Jul 2010 08:43:48 +0000 (08:43 +0000)]
Remove a superfluous comment.

Obtained from:      elftoolchain
MFC after:      1 month

13 years agoChase LLVM version bump to 2.8.
Ed Schouten [Wed, 21 Jul 2010 08:27:56 +0000 (08:27 +0000)]
Chase LLVM version bump to 2.8.

14 years agoRemove unused file. Replaced by tlb.c.
Juli Mallett [Tue, 20 Jul 2010 21:17:33 +0000 (21:17 +0000)]
Remove unused file.  Replaced by tlb.c.

14 years agoo) Add the "octusb" controller which supports the first port of the Octeon
Juli Mallett [Tue, 20 Jul 2010 19:32:25 +0000 (19:32 +0000)]
o) Add the "octusb" controller which supports the first port of the Octeon
   on-board USB controller.  It is not currently enabled because there are
   known problems with device communication and until those are fixed I am not
   certain that it won't destabilize the system. [1]
o) Add the "cryptocteon" opencrypto device based on the OCF device written by
   David McCullough.  It is not currently enabled because until support for
   saving/restoring coprocessor 2 state on context switch is available, it runs
   with interrupts disabled, which tends to pessimize performance over using a
   software crypto facility.  Tests using this driver which are not negatively
   affected by it running with interrupts disabled show it to be substantially
   faster than software for large blocks.

Submitted by: hps [1]

14 years agoUpdate the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive
Juli Mallett [Tue, 20 Jul 2010 19:25:11 +0000 (19:25 +0000)]
Update the port of FreeBSD to Cavium Octeon to use the Cavium Simple Executive
library:
o) Increase inline unit / large function growth limits for MIPS to accommodate
   the needs of the Simple Executive, which uses a shocking amount of inlining.
o) Remove TARGET_OCTEON and use CPU_CNMIPS to do things required by cnMIPS and
   the Octeon SoC.
o) Add OCTEON_VENDOR_LANNER to use Lanner's allocation of vendor-specific
   board numbers, specifically to support the MR320.
o) Add OCTEON_BOARD_CAPK_0100ND to hard-wire configuration for the CAPK-0100nd,
   which improperly uses an evaluation board's board number and breaks board
   detection at runtime.  This board is sold by Portwell as the CAM-0100.
o) Add support for the RTC available on some Octeon boards.
o) Add support for the Octeon PCI bus.  Note that rman_[sg]et_virtual for IO
   ports can not work unless building for n64.
o) Clean up the CompactFlash driver to use Simple Executive macros and
   structures where possible (it would be advisable to use the Simple Executive
   API to set the PIO mode, too, but that is not done presently.)  Also use
   structures from FreeBSD's ATA layer rather than structures copied from
   Linux.
o) Print available Octeon SoC features on boot.
o) Add support for the Octeon timecounter.
o) Use the Simple Executive's routines rather than local copies for doing reads
   and writes to 64-bit addresses and use its macros for various device
   addresses rather than using local copies.
o) Rename octeon_board_real to octeon_is_simulation to reduce differences with
   Cavium-provided code originally written for Linux.  Also make it use the
   same simplified test that the Simple Executive and Linux both use rather
   than our complex one.
o) Add support for the Octeon CIU, which is the main interrupt unit, as a bus
   to use normal interrupt allocation and setup routines.
o) Use the Simple Executive's bootmem facility to allocate physical memory for
   the kernel, rather than assuming we know which addresses we can steal.
   NB: This may reduce the amount of RAM the kernel reports you as having if
       you are leaving large temporary allocations made by U-Boot allocated
       when starting FreeBSD.
o) Add a port of the Cavium-provided Ethernet driver for Linux.  This changes
   Ethernet interface naming from rgmxN to octeN.  The new driver has vast
   improvements over the old one, both in performance and functionality, but
   does still have some features which have not been ported entirely and there
   may be unimplemented code that can be hit in everyday use.  I will make
   every effort to correct those as they are reported.
o) Support loading the kernel on non-contiguous cores.
o) Add very conservative support for harvesting randomness from the Octeon
   random number device.
o) Turn SMP on by default.
o) Clean up the style of the Octeon kernel configurations a little and make
   them compile with -march=octeon.
o) Add support for the Lanner MR320 and the CAPK-0100nd to the Simple
   Executive.
o) Modify the Simple Executive to build on FreeBSD and to build without
   executive-config.h or cvmx-config.h.  In the future we may want to
   revert part of these changes and supply executive-config.h and
   cvmx-config.h and access to the options contained in those files via
   kernel configuration files.
o) Modify the Simple Executive USB routines to support getting and setting
   of the USB PID.

14 years agoStaticify local variables.
Xin LI [Tue, 20 Jul 2010 17:42:13 +0000 (17:42 +0000)]
Staticify local variables.

While I'm there also add a 'static' keyword for a function to make it
consistent with prototype.

Reviewed by: phk
MFC after: 3 months

14 years agoUpgrade our Clang in base to r108428.
Ed Schouten [Tue, 20 Jul 2010 17:16:57 +0000 (17:16 +0000)]
Upgrade our Clang in base to r108428.

This commit merges the latest LLVM sources from the vendor space. It
also updates the build glue to match the new sources. Clang's version
number is changed to match LLVM's, which means /usr/include/clang/2.0
has been renamed to /usr/include/clang/2.8.

Obtained from: projects/clangbsd

14 years agoFix several un-/signedness bugs of r210290 and r210293. Add one more check.
Alexander Motin [Tue, 20 Jul 2010 15:48:29 +0000 (15:48 +0000)]
Fix several un-/signedness bugs of r210290 and r210293. Add one more check.

14 years agoWeek days are all lowercase in French.
Ollivier Robert [Tue, 20 Jul 2010 14:27:09 +0000 (14:27 +0000)]
Week days are all lowercase in French.
cf. http://www.academie-francaise.fr/langue/questions.html#jourdelasemaine (FR)

PR: misc/148792
Submitted by: Mathieu <freebsd@breatheless.net>
MFC after: 1 weeks

14 years agoFix expression style.
Ivan Voras [Tue, 20 Jul 2010 13:59:51 +0000 (13:59 +0000)]
Fix expression style.

Prodded by: jhb

14 years agoStore fsbase and gsbase in the right fields of the mcontext. They were
Tijl Coosemans [Tue, 20 Jul 2010 12:36:36 +0000 (12:36 +0000)]
Store fsbase and gsbase in the right fields of the mcontext. They were
switched.

PR: i386/148344
Approved by: kib (mentor)
MFC after: 1 week

14 years agoRefactor Marvell ARM SoC timer driver to the new timer infrastructure.
Alexander Motin [Tue, 20 Jul 2010 11:46:45 +0000 (11:46 +0000)]
Refactor Marvell ARM SoC timer driver to the new timer infrastructure.

14 years agoFix typo in comment.
Rui Paulo [Tue, 20 Jul 2010 11:20:45 +0000 (11:20 +0000)]
Fix typo in comment.

14 years agoExtend timer driver API to report also minimal and maximal supported period
Alexander Motin [Tue, 20 Jul 2010 10:58:56 +0000 (10:58 +0000)]
Extend timer driver API to report also minimal and maximal supported period
lengths. Make MI wrapper code to validate periods in request. Make kernel
clock management code to honor these hardware limitations while choosing hz,
stathz and profhz values.

14 years agoUpdate manpage to reflect changes regarding the 6050's firmware.
Bernhard Schmidt [Tue, 20 Jul 2010 10:45:05 +0000 (10:45 +0000)]
Update manpage to reflect changes regarding the 6050's firmware.

MFC after: 3 days

14 years agoBuild some powerpc-specific utilities on powerpc64 as well.
Nathan Whitehorn [Tue, 20 Jul 2010 07:27:36 +0000 (07:27 +0000)]
Build some powerpc-specific utilities on powerpc64 as well.

Submitted by: Andreas Tobler

14 years agoImport the Cavium Simple Executive from the Cavium Octeon SDK. The Simple
Juli Mallett [Tue, 20 Jul 2010 07:19:43 +0000 (07:19 +0000)]
Import the Cavium Simple Executive from the Cavium Octeon SDK.  The Simple
Executive is a library that can be used by standalone applications and kernels
to abstract access to Octeon SoC and board-specific hardware and facilities.
The FreeBSD port to Octeon will be updated to use this where possible.

14 years agoInitial import of Cavium Networks Octeon Simple Executive, SDK version 1.9.0.
Juli Mallett [Tue, 20 Jul 2010 07:11:19 +0000 (07:11 +0000)]
Initial import of Cavium Networks Octeon Simple Executive, SDK version 1.9.0.

14 years agoAdd reference to uhsoctl(1).
Edward Tomasz Napierala [Tue, 20 Jul 2010 06:38:57 +0000 (06:38 +0000)]
Add reference to uhsoctl(1).

14 years agoTo improve latency, lower default vfs.zfs.vdev.max_pending from 35 to 10
Martin Matuska [Tue, 20 Jul 2010 05:22:14 +0000 (05:22 +0000)]
To improve latency, lower default vfs.zfs.vdev.max_pending from 35 to 10

OpenSolaris onnv changeset (partial): 10801:e0bf032e8673

Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6891731)
MFC after: 1 week

14 years ago- Fixed automatic detection of the control serial port.
Andrew Thompson [Tue, 20 Jul 2010 03:11:26 +0000 (03:11 +0000)]
- Fixed automatic detection of the control serial port.
- Fixed segmentation fault when an invalid network interface was given.
- More helpful message in case of wrong PIN number.

Submitted by: Fredrik Lindberg

14 years ago- Support for Globetrotter iCON 452.
Andrew Thompson [Tue, 20 Jul 2010 03:10:22 +0000 (03:10 +0000)]
- Support for Globetrotter iCON 452.
- Fixed the interface probe routine to only attach to USB interfaces the driver
  actually supports.  This allows other drivers to attach to things like
  MicroSD slots etc.
- Fixed network interface enumeration to be globally sequential instead of
  relying on the USB interface numbers.  This make sure the first network
  interface always is at uhso0 and the second at usho1 and so on.
- Added a radio kill switch; exposed through sysctl.
- Updated the manual page to be verbose about the number of serial ports and
  include iCON 452 in the set of tested hardware.

Submitted by: Fredrik Lindberg

14 years agoFix function name in error messages.
David Xu [Tue, 20 Jul 2010 02:23:12 +0000 (02:23 +0000)]
Fix function name in error messages.

14 years agoFix handling of the "-l" argument for nfsdumpstate(8).
Rick Macklem [Tue, 20 Jul 2010 00:32:11 +0000 (00:32 +0000)]
Fix handling of the "-l" argument for nfsdumpstate(8).

Submitted by: zack.kirsch at isilon.com
MFC after: 2 weeks

14 years agoSpecify BCE_RX_BUF_ALIGN alignment for RX buffers. All bce(4)
Pyun YongHyeon [Mon, 19 Jul 2010 23:48:03 +0000 (23:48 +0000)]
Specify BCE_RX_BUF_ALIGN alignment for RX buffers. All bce(4)
controllers require RX buffers aligned on BCE_RX_BUF_ALIGN bytes.

Reviewed by: davidch

14 years agoSpecify BUS_DMA_ZERO flag to bus_dmamem_alloc(9) and remove bzero()
Pyun YongHyeon [Mon, 19 Jul 2010 23:41:45 +0000 (23:41 +0000)]
Specify BUS_DMA_ZERO flag to bus_dmamem_alloc(9) and remove bzero()
calls. Also add BUS_DMA_COHERENT flag to bus_dmamem_alloc(9) to
take advantage of efficient synchronization for architectures that
support that feature.

Reviewed by: davidch

14 years agoUse bus_get_dma_tag() to get parent tag. Also use
Pyun YongHyeon [Mon, 19 Jul 2010 23:35:43 +0000 (23:35 +0000)]
Use bus_get_dma_tag() to get parent tag. Also use
BUS_SPACE_MAXSIZE_32BIT to specify sum of all segment lengths.
Previously it used MAXBSIZE which was wrong.

Reviewed by: davidch

14 years agoFor the experimental NFSv4 server's dumplocks operation, add the
Rick Macklem [Mon, 19 Jul 2010 23:33:42 +0000 (23:33 +0000)]
For the experimental NFSv4 server's dumplocks operation, add the
MPSAFE flag to cn_flags so that it doesn't panic. The panics weren't
seen since nfsdumpstate(8) is broken for the "-l" case, so this
was never done. I'll do a separate commit to fix nfsdumpstate(8).

Submitted by: zack.kirsch at isilon.com
MFC after: 2 weeks

14 years agoAdd KASSERT to check number of returned DMA segments.
Pyun YongHyeon [Mon, 19 Jul 2010 23:25:19 +0000 (23:25 +0000)]
Add KASSERT to check number of returned DMA segments.

Reviewed by: davidch

14 years agoFix naming to be consistent.
Adrian Chadd [Mon, 19 Jul 2010 21:50:43 +0000 (21:50 +0000)]
Fix naming to be consistent.

14 years agoExtend the mx25l erase function to support different erase commands.
Adrian Chadd [Mon, 19 Jul 2010 21:46:40 +0000 (21:46 +0000)]
Extend the mx25l erase function to support different erase commands.

14 years agoDo not report current link state if interface is not UP.
Pyun YongHyeon [Mon, 19 Jul 2010 21:41:54 +0000 (21:41 +0000)]
Do not report current link state if interface is not UP.

Reviewed by: davidch

14 years agoExtend the mx25l flash device support to include a set of per-device
Adrian Chadd [Mon, 19 Jul 2010 21:38:15 +0000 (21:38 +0000)]
Extend the mx25l flash device support to include a set of per-device
flags.

Some of these parts will support 4K/32K block erases rather than
a sector erase. This includes (at least) the MX25L128.

14 years agoCorrectly check the result of media selection. Previously it always
Pyun YongHyeon [Mon, 19 Jul 2010 21:38:07 +0000 (21:38 +0000)]
Correctly check the result of media selection. Previously it always
returned success.

Reviewed by: davidch

14 years agoDon't change current media in bce_stop(). There is no need to do
Pyun YongHyeon [Mon, 19 Jul 2010 21:32:47 +0000 (21:32 +0000)]
Don't change current media in bce_stop(). There is no need to do
this here.

Reviewed by: davidch

14 years agoHave bce_init_ctx() return error code and make caller check the
Pyun YongHyeon [Mon, 19 Jul 2010 21:25:05 +0000 (21:25 +0000)]
Have bce_init_ctx() return error code and make caller check the
return code. If context was not setup correctly give up
initialization. While I'm here move variable declarations to the
beginning of the function.

Reviewed by: davidch

14 years agoWhen we didn't find a matching flash device, do not touch flash
Pyun YongHyeon [Mon, 19 Jul 2010 21:13:07 +0000 (21:13 +0000)]
When we didn't find a matching flash device, do not touch flash
config data. While I'm here, use return code of bce_init_nvram()
to set error instead of directly setting ENODEV.

Reviewed by: davidch

14 years agoImprove style slightly.
Jung-uk Kim [Mon, 19 Jul 2010 20:31:04 +0000 (20:31 +0000)]
Improve style slightly.

14 years ago- Add Latinamerican keymaps to sysinstall's Makefile so that it can
Gabor Kovesdan [Mon, 19 Jul 2010 20:22:21 +0000 (20:22 +0000)]
- Add Latinamerican keymaps to sysinstall's Makefile so that it can
  find them [1]
- While here, also add a missing Spanish entry

PR: bin/67365 [1]
Submitted by: Pedro F. Giffuni <giffunip@asme.org> [1]
Approved by: delphij (mentor)

14 years ago- Add a periodic script, which can be used to find installed ports' files with
Gabor Kovesdan [Mon, 19 Jul 2010 20:19:14 +0000 (20:19 +0000)]
- Add a periodic script, which can be used to find installed ports' files with
  mismatched checksum

PR: conf/124641
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
Approved by: delphij (mentor)

14 years agoNow that we are fully FDT-driven on MRVL platforms, remove PHYSMEM_SIZE option.
Rafal Jaworowski [Mon, 19 Jul 2010 19:19:33 +0000 (19:19 +0000)]
Now that we are fully FDT-driven on MRVL platforms, remove PHYSMEM_SIZE option.

14 years agoFix two long-standing line wrapping bugs in VGA renderer for pixel mode.
Jung-uk Kim [Mon, 19 Jul 2010 18:56:18 +0000 (18:56 +0000)]
Fix two long-standing line wrapping bugs in VGA renderer for pixel mode.
Font size may be smaller than 16 and logical scan line may be larger than
the displayed scan line.

MFC after: 3 days

14 years agoEliminate FDT_IMMR_VA define.
Rafal Jaworowski [Mon, 19 Jul 2010 18:47:18 +0000 (18:47 +0000)]
Eliminate FDT_IMMR_VA define.

This removes platform dependencies from <machine>/fdt.h for the benfit of
portability.

14 years agoMove MRVL FDT fixups and PIC decode routine to a platform specific area.
Rafal Jaworowski [Mon, 19 Jul 2010 18:41:50 +0000 (18:41 +0000)]
Move MRVL FDT fixups and PIC decode routine to a platform specific area.

This allows for better encapsulation (and eliminates generic fdt_arm.c, at
least for now).

14 years agobinutils/ld: fix incorrect placement of __start_SECNAME in some cases
Andriy Gapon [Mon, 19 Jul 2010 18:20:44 +0000 (18:20 +0000)]
binutils/ld: fix incorrect placement of __start_SECNAME in some cases

__start_SECNAME and __stop_SECNAME symbols are automatically generated
by ld for orphan sections, i.e. those not explicitely referenced by a
linker script.  The symbols are supposed to be placed correspondingly
at the start and the end of the section in output file.  In some cases
__start_SECNAME may be placed at the address after the end of the
previous section (if any) and before the start the section.  This
happens when following conditions are met:
1. the orphan section is found in more than one input file
2. the orphan section has different alignment requirements across input
files
3. the first instance of the section encountered doesn't have the
greatest alignment requirement
In these conditions resulting output section will be placed at address
after the end of the previous section aligned to the greatest alignment
requirement in the inputs, but __start_SECNAME will be placed at address
after the end of the previous section aligned to the alignment
requirement of the first input in which the section is encountered.

See commit message of r196118 for a concrete example of problems caused
by this bug.

The fix is to place __start_SECNAME inside the section and use ABSOLUTE
directive, rather than placing __start_SECNAME outside the section and
trying to guess address alignment.

This fix is in line with upstream binutils change/fix made between
versions 2.19 and 2.20 in revision of 1.307 ldlang.c.

MFC after: 3 weeks

14 years agoImplement WOL. WOL is supported on RTL8139B or newer controllers.
Pyun YongHyeon [Mon, 19 Jul 2010 18:01:06 +0000 (18:01 +0000)]
Implement WOL. WOL is supported on RTL8139B or newer controllers.

PR: kern/148013

14 years agoFix support for chrooted installs.
Norikatsu Shigemura [Mon, 19 Jul 2010 16:38:45 +0000 (16:38 +0000)]
Fix support for chrooted installs.

Approved by: imp (mentor)

14 years agoInclude 4k/32k erase commands.
Adrian Chadd [Mon, 19 Jul 2010 15:05:35 +0000 (15:05 +0000)]
Include 4k/32k erase commands.

These were sourced from the MX25L128 datasheet and match up
with what is used in Linux mtd/devices/m25p80.c .

Add a FreeBSD keyword whilst I'm here.

14 years agoMFV:
Rui Paulo [Mon, 19 Jul 2010 14:59:23 +0000 (14:59 +0000)]
MFV:
  OpenSolaris' plockstat utility.

Sponsored by: The FreeBSD Foundation

14 years agoImport plockstat from OpenSolaris r12768.
Rui Paulo [Mon, 19 Jul 2010 14:57:01 +0000 (14:57 +0000)]
Import plockstat from OpenSolaris r12768.

14 years agoPartially revert r209312, restoring ability to fit "stray irqX" names into
Alexander Motin [Mon, 19 Jul 2010 02:26:59 +0000 (02:26 +0000)]
Partially revert r209312, restoring ability to fit "stray irqX" names into
into available 10 characters by dropping "irq" in the middle of string.

14 years agoAdd a call to nfscl_mustflush() in nfs_close() of the experimental
Rick Macklem [Sun, 18 Jul 2010 22:35:46 +0000 (22:35 +0000)]
Add a call to nfscl_mustflush() in nfs_close() of the experimental
NFSv4 client, so that attributes are not acquired from the server
when a delegation for the file is held. This can reduce the number
of Getattr Ops significantly.

MFC after: 2 weeks

14 years agoRevert r210225 - turns out I was wrong; the "/*-" is not license-only
Edward Tomasz Napierala [Sun, 18 Jul 2010 20:57:53 +0000 (20:57 +0000)]
Revert r210225 - turns out I was wrong; the "/*-" is not license-only
thing; it's also used to indicate that the comment should not be automatically
rewrapped.

Explained by: cperciva@