]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoNew version of libproc. Changes are:
rpaulo [Sat, 31 Jul 2010 16:10:20 +0000 (16:10 +0000)]
New version of libproc. Changes are:
* breakpoint setup support
* register query
* symbol to address mapping and vice-versa
* more misc utility functions based on their Solaris counterpart

Also, I've written some test cases.

Sponsored by: The FreeBSD Foundation

13 years agoMFp4 @181628:
bz [Sat, 31 Jul 2010 15:31:23 +0000 (15:31 +0000)]
MFp4 @181628:

Free the rtentry after we diconnected it from the FIB and are counting
it as rttrash.  There might still be a chance we leak it from a different
code path but there is nothing we can do about this here.

Sponsored by: ISPsystem (in February)
Reviewed by: julian (in February)
MFC after: 2 weeks

13 years agoAdd libproc.
rpaulo [Sat, 31 Jul 2010 14:57:33 +0000 (14:57 +0000)]
Add libproc.

Sponsored by: The FreeBSD Foundation

13 years agoSimplify the Makefile. The i386 and amd64 sections are equal.
rpaulo [Sat, 31 Jul 2010 14:53:43 +0000 (14:53 +0000)]
Simplify the Makefile. The i386 and amd64 sections are equal.

Sponsored by: The FreeBSD Foundation

13 years agolibproc is going to be i386/amd64 only with the next update.
rpaulo [Sat, 31 Jul 2010 14:52:29 +0000 (14:52 +0000)]
libproc is going to be i386/amd64 only with the next update.

Sponsored by: The FreeBSD Foundation

13 years agoAdd librtld_db.
rpaulo [Sat, 31 Jul 2010 14:36:34 +0000 (14:36 +0000)]
Add librtld_db.

Sponsored by: The FreeBSD Foundation

13 years agoAdd LIBRTLD_DB.
rpaulo [Sat, 31 Jul 2010 14:32:54 +0000 (14:32 +0000)]
Add LIBRTLD_DB.

Sponsored by: The FreeBSD Foundation

13 years agoReport the time left for the sleep on SIGINFO.
kib [Sat, 31 Jul 2010 14:30:11 +0000 (14:30 +0000)]
Report the time left for the sleep on SIGINFO.
Be stricter in the checking of interval specification.

PR: bin/139345
MFC after: 3 weeks

13 years agoImport the librtld_db library. This is needed by userland DTrace.
rpaulo [Sat, 31 Jul 2010 14:26:10 +0000 (14:26 +0000)]
Import the librtld_db library. This is needed by userland DTrace.
This is not yet enabled in the build because I also need to import a new
version of libproc.

Sponsored by: The FreeBSD Foundation

13 years agoAdd support for the IBM Full-System Simulator (Mambo). This code has been
nwhitehorn [Sat, 31 Jul 2010 13:22:34 +0000 (13:22 +0000)]
Add support for the IBM Full-System Simulator (Mambo). This code has been
developed against the 970 and Cell simulators.

13 years agoFix a bunch of typos and spelling mistakes.
joel [Sat, 31 Jul 2010 12:14:28 +0000 (12:14 +0000)]
Fix a bunch of typos and spelling mistakes.

13 years agoSpelling fixes.
joel [Sat, 31 Jul 2010 10:01:15 +0000 (10:01 +0000)]
Spelling fixes.

13 years agopci_if.h is required to build atacore.
rpaulo [Sat, 31 Jul 2010 00:08:18 +0000 (00:08 +0000)]
pci_if.h is required to build atacore.

13 years agoFix a bug in syncache where the initial CWND for new incoming connections
andre [Fri, 30 Jul 2010 21:45:53 +0000 (21:45 +0000)]
Fix a bug in syncache where the initial CWND for new incoming connections
was limited to one segment under the faulty assumption of a retransmit.
Due to this the opportunity to initialize the increased congestion window
according to RFC3390 was missed.

Support for RFC3465 introduced in r187289 uncovered the bug as the ACK
to SYN/ACK no longer caused snd_cwnd increase by MSS (actually, this
increase shouldn't happen as it's explicitly forbidden by RFC3390, but
it's another issue).  Snd_cwnd remains really small (1*MSS + 1) and this
causes really bad interaction with delayed acks on other side.

The variable name sc_rxmits is a bit misleading as it counts all transmits,
not just retransmits.

Submitted by: Maxim Dounin <mdounin-at-mdounin-dot-ru>
MFC after: 10 days

13 years agoIn rdmsr_safe, use zero extend (by doing a 32-bit movl over
delphij [Fri, 30 Jul 2010 21:39:28 +0000 (21:39 +0000)]
In rdmsr_safe, use zero extend (by doing a 32-bit movl over
eax to itself) instead of a sign extend.

Discussed with: stas
MFC after: 1 month

13 years agoAdd MALLOC_DEBUG_MAXZONES=8 to powerpc64 GENERIC configuration file.
mdf [Fri, 30 Jul 2010 20:25:04 +0000 (20:25 +0000)]
Add MALLOC_DEBUG_MAXZONES=8 to powerpc64 GENERIC configuration file.

Requested by:    nwhitehorn
Approved by:     zml (mentor)

13 years agoFix indention of attribution line for some recent additions.
uqs [Fri, 30 Jul 2010 20:20:14 +0000 (20:20 +0000)]
Fix indention of attribution line for some recent additions.

MFC after: 3 days

13 years agoChange copyright holder to author. We prefer using a real legal
delphij [Fri, 30 Jul 2010 17:51:22 +0000 (17:51 +0000)]
Change copyright holder to author.  We prefer using a real legal
entity for copyright holders.

Approved by: sephe
MFC after: 3 days

13 years agoAdd missing escape characthers.
rpaulo [Fri, 30 Jul 2010 15:25:57 +0000 (15:25 +0000)]
Add missing escape characthers.

Pointed out by: b.f.

13 years agoFix spelling.
joel [Fri, 30 Jul 2010 14:05:20 +0000 (14:05 +0000)]
Fix spelling.

13 years agoA simple test harness to help debug problems with the ZFS boot code.
dfr [Fri, 30 Jul 2010 13:54:15 +0000 (13:54 +0000)]
A simple test harness to help debug problems with the ZFS boot code.

13 years agogsched(8) was first released with FreeBSD 8.1
uqs [Fri, 30 Jul 2010 12:56:34 +0000 (12:56 +0000)]
gsched(8) was first released with FreeBSD 8.1

MFC after: 3 days

13 years agon64 support - enable UX bit in STATUS for kernel and userspace.
jchandra [Fri, 30 Jul 2010 12:45:00 +0000 (12:45 +0000)]
n64 support - enable UX bit in STATUS for kernel and userspace.

- enable UX in kernel start, and kernel entry
- keep UX flag in cpu_fork and cpu_set_upcall
- enable UX for userspace

13 years agoFix a couple of typos.
uqs [Fri, 30 Jul 2010 11:58:18 +0000 (11:58 +0000)]
Fix a couple of typos.

PR: docs/148891
Submitted by: olgeni
MFC after: 1 week

13 years ago- Add Ukranian catalog
gabor [Fri, 30 Jul 2010 11:07:24 +0000 (11:07 +0000)]
- Add Ukranian catalog

Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>

13 years agoMIPS n64 support - support kstack in XKSEG.
jchandra [Fri, 30 Jul 2010 09:38:47 +0000 (09:38 +0000)]
MIPS n64 support - support kstack in XKSEG.
- enable KX on entry from user-space, we need KX set to save to XKSEG
  addresses.
- add MIPS_XKSEG_START to genassym.c
- Add n64 case for swth.S

13 years agoFix typo in pom(6) manpage
uqs [Fri, 30 Jul 2010 09:34:40 +0000 (09:34 +0000)]
Fix typo in pom(6) manpage

PR: docs/148825
Submitted by: Anatoly Borodin
MFC after: 1 week

13 years agoFix previous commit: I forgot to include parenthesis.
rpaulo [Fri, 30 Jul 2010 08:52:19 +0000 (08:52 +0000)]
Fix previous commit: I forgot to include parenthesis.

Submitted by: anonymous

13 years agoConsistently check header type after reading PCIR_HDRTYPE register.
yongari [Thu, 29 Jul 2010 20:42:38 +0000 (20:42 +0000)]
Consistently check header type after reading PCIR_HDRTYPE register.
While I'm here use defined macro instead of using magic numbers for
header type.

Reviewed by: jhb

13 years agoAdd compat32 shims for opencrypto(4).
kib [Thu, 29 Jul 2010 20:42:20 +0000 (20:42 +0000)]
Add compat32 shims for opencrypto(4).

Reviewed by: bz
MFC after: 3 weeks

13 years agoUpdate rge driver for 64 bit kernel.
jchandra [Thu, 29 Jul 2010 20:41:40 +0000 (20:41 +0000)]
Update rge driver for 64 bit kernel.
- stored virtual addresses should be 64bit
- physical memory can be directly accessed using XKPHYS pointers in 64 bit.
- no need to enable KX

13 years ago64 bit support for MIPS rtld.
jchandra [Thu, 29 Jul 2010 20:18:52 +0000 (20:18 +0000)]
64 bit support for MIPS rtld.

- Handle the case where pltgot[1] is 64 bit.
- use 'ifdef __mips_n64' instead of 'ELFSIZE == 64' to detect 64 bit compile.

13 years agoFix typo.
pjd [Thu, 29 Jul 2010 20:16:12 +0000 (20:16 +0000)]
Fix typo.

PR: docs/149033
Submitted by: Kolar <hsn@sendmail.cz>
MFC after: 3 days

13 years agoPrepare for 3 level page tables for MIPS.
jchandra [Thu, 29 Jul 2010 20:02:56 +0000 (20:02 +0000)]
Prepare for 3 level page tables for MIPS.

- Move page table second level shift and mask to param.h
- rename SEGOFSET to SEGMASK
- fix values for 64 bit maximum kernel and user addresses.

13 years agoAdd fuiword() in n64 for completeness.
jchandra [Thu, 29 Jul 2010 19:47:15 +0000 (19:47 +0000)]
Add fuiword() in n64 for completeness.

13 years agoMIPS 64 bit support. Define fuword64() for n64 compilation, fuword() should
jchandra [Thu, 29 Jul 2010 19:14:06 +0000 (19:14 +0000)]
MIPS 64 bit support. Define fuword64() for n64 compilation, fuword() should
be fuword64() in 64 bit.

13 years agoImprove cputemp(4) driver wrt newer Intel processors, especially
delphij [Thu, 29 Jul 2010 19:08:22 +0000 (19:08 +0000)]
Improve cputemp(4) driver wrt newer Intel processors, especially
Xeon 5500/5600 series:

 - Utilize IA32_TEMPERATURE_TARGET, a.k.a. Tj(target) in place
   of Tj(max) when a sane value is available, as documented
   in Intel whitepaper "CPU Monitoring With DTS/PECI"; (By sane
   value we mean 70C - 100C for now);
 - Print the probe results when booting verbose;
 - Replace cpu_mask with cpu_stepping;
 - Use CPUID_* macros instead of rolling our own.

Approved by: rpaulo
MFC after: 1 month

13 years agoMark the __curthread() functions as __pure2 and remove the volatile keyword
jhb [Thu, 29 Jul 2010 18:44:10 +0000 (18:44 +0000)]
Mark the __curthread() functions as __pure2 and remove the volatile keyword
from the inline assembly.  This allows the compiler to cache invocations of
curthread since it's value does not change within a thread context.

Submitted by: zec (i386)
MFC after: 1 week

13 years ago- Some minor changes to the messages to increase usefulness of error msgs
gabor [Thu, 29 Jul 2010 18:02:57 +0000 (18:02 +0000)]
- Some minor changes to the messages to increase usefulness of error msgs

Reviewed by: hrs (Japanese catalogs),
pluknet <pluknet at gmail dot com> (Russian catalog)
Approved by: delphij (mentor)

13 years agoMake sure that we clear the correct bits when we turn off
gnn [Thu, 29 Jul 2010 17:52:23 +0000 (17:52 +0000)]
Make sure that we clear the correct bits when we turn off
a PMC.  It was possible that we could have turned a bit on but
never cleared it.

Extend the calls to rdmsr() to all necessary functions, not
just those which previously caused a panic.

Pointed out by: jhb@
MFC after: 1 week

13 years agoWhen performing a sanity check on the SRAT table to ensure that each
jhb [Thu, 29 Jul 2010 17:37:35 +0000 (17:37 +0000)]
When performing a sanity check on the SRAT table to ensure that each
memory domain has an assigned CPU, ignore disabled CPUs.  Previously
disabled CPUs were counted as being in domain 0.

Reported by: mdf

13 years agoMFamd64: r210615
jkim [Thu, 29 Jul 2010 17:00:41 +0000 (17:00 +0000)]
MFamd64: r210615

Fix another fallout from r208833.  savectx() is used to save CPU context
for crash dump (dumppcb) and kdb (stoppcbs).  For both cases, we cannot
have a valid pointer in pcb_save.  This should restore the previous
behaviour.

13 years agoFix another fallout from r208833. savectx() is used to save CPU context
jkim [Thu, 29 Jul 2010 16:49:20 +0000 (16:49 +0000)]
Fix another fallout from r208833.  savectx() is used to save CPU context
for crash dump (dumppcb) and kdb (stoppcbs).  For both cases, there cannot
have a valid pointer in pcb_save.  This should restore the previous
behaviour.

13 years agoRename PCB_USER_FPU to PCB_USERFPU not to clash with a macro from fpu.h.
jkim [Thu, 29 Jul 2010 16:41:21 +0000 (16:41 +0000)]
Rename PCB_USER_FPU to PCB_USERFPU not to clash with a macro from fpu.h.

13 years agokill: Stop processing if a syntactically invalid pid is encountered.
jilles [Thu, 29 Jul 2010 16:40:45 +0000 (16:40 +0000)]
kill: Stop processing if a syntactically invalid pid is encountered.

So a command like
  kill _HUP 1
now fails without sending SIGTERM to init.

The behaviour when kill(2) fails remains unchanged: processing continues.
This matches other implementations and POSIX and is useful for killing
multiple processes at once when some of them may already be gone.

PR: bin/40282

13 years agoWhen building WITH_CTF=1, print the ctf executable that's going to be
rpaulo [Thu, 29 Jul 2010 16:30:27 +0000 (16:30 +0000)]
When building WITH_CTF=1, print the ctf executable that's going to be
run. This makes the 'ctfconvert' and 'ctfmerge' programs show up during
a build when compiling a kernel, a library or a program.

Sponsored by: The FreeBSD Foundation

13 years agoBump the witness pendlist to 768 to accomodate the increased number of
rpaulo [Thu, 29 Jul 2010 16:13:26 +0000 (16:13 +0000)]
Bump the witness pendlist to 768 to accomodate the increased number of
spinlocks.

13 years ago- Avoid calling the copy constructor when it is not necessary.
lulf [Thu, 29 Jul 2010 16:06:40 +0000 (16:06 +0000)]
- Avoid calling the copy constructor when it is not necessary.

13 years ago- Remove unused instance of string.
lulf [Thu, 29 Jul 2010 16:01:10 +0000 (16:01 +0000)]
- Remove unused instance of string.

13 years agoUpdate MIPS _stdint.h for 64 bit. Initial 64 bit changes for profile.h.
jchandra [Thu, 29 Jul 2010 14:04:29 +0000 (14:04 +0000)]
Update MIPS _stdint.h for 64 bit. Initial 64 bit changes for profile.h.

13 years agoFix RQB_FFS for 64 bit, we need to use ffsl() for 64bit.
jchandra [Thu, 29 Jul 2010 13:52:46 +0000 (13:52 +0000)]
Fix RQB_FFS for 64 bit, we need to use ffsl() for 64bit.

Use 'ifdef __mips_n64' instead of 'if defined' to be consistant with other
usage.

13 years agoFix test for double-nul characters that terminate the string table at
jhb [Thu, 29 Jul 2010 13:46:37 +0000 (13:46 +0000)]
Fix test for double-nul characters that terminate the string table at
the end of each SMBIOS/DMI structure.

Submitted by: Dmitrij Tejblum @ yandex.ru
MFC after: 3 days

13 years agoAdapt sparc64 and sun4v timer code for the new event timers infrastructure.
mav [Thu, 29 Jul 2010 12:08:46 +0000 (12:08 +0000)]
Adapt sparc64 and sun4v timer code for the new event timers infrastructure.

Reviewed by: marius@

13 years agoFix the comment block that has the nice
rrs [Thu, 29 Jul 2010 12:01:59 +0000 (12:01 +0000)]
Fix the comment block that has the nice
table to really have the nice table :-)

MFC after: 1 month

13 years agoPR SCTP Bugs. Basically a full sized frame of
rrs [Thu, 29 Jul 2010 11:37:04 +0000 (11:37 +0000)]
PR SCTP Bugs. Basically a full sized frame of
PR SCTP FWD-TSN's would not be sent and thus
cause a stalled connection. Also the rwnd
Calculation was also off on the receiver side for
PR-SCTP.
MFC after: 1 month

13 years agoFix 'pciconf -a' by providing an implementation of PCIOCATTACHED.
neel [Thu, 29 Jul 2010 06:27:41 +0000 (06:27 +0000)]
Fix 'pciconf -a' by providing an implementation of PCIOCATTACHED.

Reviewed by: imp
MFC after: 1 week
Pointed out by: Heymian Wong (heymian at mit.alum.edu)
Sponsored by: NetApp

13 years agoFix build for o32 kernels.
neel [Thu, 29 Jul 2010 05:14:59 +0000 (05:14 +0000)]
Fix build for o32 kernels.

The emulation of 'ld' and 'sd' instructions only works for ABIs that support
64-bit registers and the instructions 'ldl' and 'ldr' that operate on those
registers.

Reviewed by: jmallett

13 years agoo) Subtract 64K from the default userland stack pointer. GCC generate code
jmallett [Thu, 29 Jul 2010 02:32:21 +0000 (02:32 +0000)]
o) Subtract 64K from the default userland stack pointer.  GCC generate code
   that with a 32-bit ABI on a system with 64-bit registers can attempt to
   access an invalid (well, kernel) memory address rather than the intended
   user address for stack-relative loads and stores.  Lowering the stack
   pointer works around this. [1]
o) Make TRAP_DEBUG code conditional on the trap_debug variable.  Make
   trap_debug default to 0 instead of 1 now but make it possible to change it
   at runtime using sysctl.
o) Kill programs that attempt an unaligned access of a kernel address.  Note
   that with some ABIs, calling useracc() is not sufficient since the register
   may be 64-bit but vm_offset_t is 32-bit so a kernel address could be
   truncated to what looks like a valid user address, allowing the user to
   crash the kernel.
o) Clean up unaligned access emulation to support unaligned 16-bit and 64-bit
   accesses.  (For 16-bit accesses it was checking for user access to too much
   memory (4 bytes) and there was no 64-bit support.)  This still lacks support
   for unaligned load-linked and store-conditional.

Reviewed by: [1] gonzo

13 years ago- Add Japanese NLS catalogs
gabor [Thu, 29 Jul 2010 01:15:26 +0000 (01:15 +0000)]
- Add Japanese NLS catalogs

Submitted by: hrs
Approved by: delphij (mentor)

13 years ago- Use the traditional behaviour for filename and directory name inclusion
gabor [Thu, 29 Jul 2010 00:11:14 +0000 (00:11 +0000)]
- Use the traditional behaviour for filename and directory name inclusion
  and exclusion patterns [1]
- Some improvements on the exiting code, like replacing memcpy with
  strlcpy/strcpy

Approved by: delphij (mentor)
Pointed out by: bf [1], des [1]

13 years agoThe corrected error count field is dependent on CMCI, not TES.
jhb [Wed, 28 Jul 2010 21:52:09 +0000 (21:52 +0000)]
The corrected error count field is dependent on CMCI, not TES.

MFC after: 1 week

13 years agoAdd quirk for Apacer HT202 USB 2.0 Flash Drive.
tijl [Wed, 28 Jul 2010 18:56:01 +0000 (18:56 +0000)]
Add quirk for Apacer HT202 USB 2.0 Flash Drive.

PR: usb/107243
Approved by: kib (mentor)
MFC after: 1 week

13 years agoProvide descriptions for three vendors and four devices in usbdevs. Use
gavin [Wed, 28 Jul 2010 17:38:43 +0000 (17:38 +0000)]
Provide descriptions for three vendors and four devices in usbdevs.  Use
the official vendor listed for 0x076b, rather than Omnikey, as in the PR.

PR: usb/123351
Submitted by: Marcin Cieslak <saper SYSTEM.PL>
MFC after: 1 week

13 years agoAdd myself as a ports committer
bapt [Wed, 28 Jul 2010 16:38:37 +0000 (16:38 +0000)]
Add myself as a ports committer

Approved by: tabthorpe@ (co-mentor)

13 years agoAdd support for the Corega CG-USBRS232R to uplcom(4)
gavin [Wed, 28 Jul 2010 16:29:10 +0000 (16:29 +0000)]
Add support for the Corega CG-USBRS232R to uplcom(4)

PR: usb/129173
Submitted by: SHIMAOKA Shunsuke <shimaoka.shunsuke gmail.com>
MFC after: 1 week

13 years agoFix clang warning on empty statement.
mdf [Wed, 28 Jul 2010 16:24:11 +0000 (16:24 +0000)]
Fix clang warning on empty statement.

Reviewed by:    rdivacky, zml
Approved by:    zml (mentor)

13 years agoFix clang warning on empty statement.
mdf [Wed, 28 Jul 2010 16:24:06 +0000 (16:24 +0000)]
Fix clang warning on empty statement.

Reviewed by:    rdivacky, zml
Approved by:    zml (mentor)

13 years agoRedo fetch_read() using non-blocking sockets. This is necessary to
des [Wed, 28 Jul 2010 16:11:22 +0000 (16:11 +0000)]
Redo fetch_read() using non-blocking sockets.  This is necessary to
avoid a hang in the SSL case if the server sends a close notification
before we are done reading.  In the non-SSL case, it can provide a
minor (but probably not noticeable) performance improvement for small
transfers.

MFC after: 3 weeks

13 years agoBump __FreeBSD_version for multizone malloc(9).
mdf [Wed, 28 Jul 2010 15:47:32 +0000 (15:47 +0000)]
Bump __FreeBSD_version for multizone malloc(9).

Approved by:    zml (mentor)

13 years agoAdd MALLOC_DEBUG_MAXZONES debug malloc(9) option to use multiple uma
mdf [Wed, 28 Jul 2010 15:36:12 +0000 (15:36 +0000)]
Add MALLOC_DEBUG_MAXZONES debug malloc(9) option to use multiple uma
zones for each malloc bucket size.  The purpose is to isolate
different malloc types into hash classes, so that any buffer overruns
or use-after-free will usually only affect memory from malloc types in
that hash class.  This is purely a debugging tool; by varying the hash
function and tracking which hash class was corrupted, the intersection
of the hash classes from each instance will point to a single malloc
type that is being misused.  At this point inspection or memguard(9)
can be used to catch the offending code.

Add MALLOC_DEBUG_MAXZONES=8 to -current GENERIC configuration files.
The suggestion to have this on by default came from Kostik Belousov on
-arch.

This code is based on work by Ron Steinke at Isilon Systems.

Reviewed by:    -arch (mostly silence)
Reviewed by:    zml
Approved by:    zml (mentor)

13 years agoFix a couple of embarrassing mistakes in the previous commit.
des [Wed, 28 Jul 2010 15:29:18 +0000 (15:29 +0000)]
Fix a couple of embarrassing mistakes in the previous commit.

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

13 years agoProtect GNUHASH translation functions with #ifdef; unbreak cross
kaiw [Wed, 28 Jul 2010 11:01:07 +0000 (11:01 +0000)]
Protect GNUHASH translation functions with #ifdef; unbreak cross
toolchain build.

Reported by: jchandra
MFC after: 1 month

13 years agoSupport the Pyramid KBS USB LCD under uftdi(4)
gavin [Wed, 28 Jul 2010 08:48:35 +0000 (08:48 +0000)]
Support the Pyramid KBS USB LCD under uftdi(4)

PR: usb/129758
Submitted by: joao lima <jlima visionware.pt>
MFC after: 1 week

13 years agoThe interpreter name should no longer be treated as a buffer that can be
alc [Wed, 28 Jul 2010 04:47:40 +0000 (04:47 +0000)]
The interpreter name should no longer be treated as a buffer that can be
overwritten.  (This change should have been included in r210545.)

Submitted by: kib

13 years agoFix the entry for the Option ICON452 where an underscore was used instead of
thompsa [Tue, 27 Jul 2010 22:55:24 +0000 (22:55 +0000)]
Fix the entry for the Option ICON452 where an underscore was used instead of
whitespace.

Submitted by: Lucius Windschuh

13 years agoAdd a parser for the ACPI SRAT table for amd64 and i386. It sets
jhb [Tue, 27 Jul 2010 20:40:46 +0000 (20:40 +0000)]
Add a parser for the ACPI SRAT table for amd64 and i386.  It sets
PCPU(domain) for each CPU and populates a mem_affinity array suitable
for the NUMA support in the physical memory allocator.

Reviewed by: alc

13 years agoUpdate mlockall(2) to mention that it's superuser-only syscall, just
trasz [Tue, 27 Jul 2010 20:34:37 +0000 (20:34 +0000)]
Update mlockall(2) to mention that it's superuser-only syscall, just
like the mlock(2) manual page says.  Update mlock(2) to say that hitting
RLIMIT_MEMLOCK results in ENOMEM, not EAGAIN.

MFC after: 1 month

13 years agoVery rough first cut at NUMA support for the physical page allocator. For
jhb [Tue, 27 Jul 2010 20:33:50 +0000 (20:33 +0000)]
Very rough first cut at NUMA support for the physical page allocator.  For
now it uses a very dumb first-touch allocation policy.  This will change in
the future.
- Each architecture indicates the maximum number of supported memory domains
  via a new VM_NDOMAIN parameter in <machine/vmparam.h>.
- Each cpu now has a PCPU_GET(domain) member to indicate the memory domain
  a CPU belongs to.  Domain values are dense and numbered from 0.
- When a platform supports multiple domains, the default freelist
  (VM_FREELIST_DEFAULT) is split up into N freelists, one for each domain.
  The MD code is required to populate an array of mem_affinity structures.
  Each entry in the array defines a range of memory (start and end) and a
  domain for the range.  Multiple entries may be present for a single
  domain.  The list is terminated by an entry where all fields are zero.
  This array of structures is used to split up phys_avail[] regions that
  fall in VM_FREELIST_DEFAULT into per-domain freelists.
- Each memory domain has a separate lookup-array of freelists that is
  used when fulfulling a physical memory allocation.  Right now the
  per-domain freelists are listed in a round-robin order for each domain.
  In the future a table such as the ACPI SLIT table may be used to order
  the per-domain lookup lists based on the penalty for each memory domain
  relative to a specific domain.  The lookup lists may be examined via a
  new vm.phys.lookup_lists sysctl.
- The first-touch policy is implemented by using PCPU_GET(domain) to
  pick a lookup list when allocating memory.

Reviewed by: alc

13 years agomips/rmi/bus_space_rmi_pci.c is needed even when PCI is disabled. This
jchandra [Tue, 27 Jul 2010 19:31:10 +0000 (19:31 +0000)]
mips/rmi/bus_space_rmi_pci.c is needed even when PCI is disabled. This
file really provides a bus that does byteswapping, and can be used by
non-PCI components too.

13 years agoFix commented out resource limit check in mlockall(2). It's still racy,
trasz [Tue, 27 Jul 2010 19:26:18 +0000 (19:26 +0000)]
Fix commented out resource limit check in mlockall(2).  It's still racy,
but at least less misleading.

13 years agoThe changes in r210542 moved setting counter_upper and counter_lower_last
jchandra [Tue, 27 Jul 2010 17:33:51 +0000 (17:33 +0000)]
The changes in r210542 moved setting counter_upper and counter_lower_last
outside the critical section - fix that.

Reported by: mav

13 years agoTypo fix: s/ommited/omitted
bcr [Tue, 27 Jul 2010 17:33:02 +0000 (17:33 +0000)]
Typo fix: s/ommited/omitted

MFC after: 4 days

13 years agoIntroduce exec_alloc_args(). The objective being to encapsulate the
alc [Tue, 27 Jul 2010 17:31:03 +0000 (17:31 +0000)]
Introduce exec_alloc_args().  The objective being to encapsulate the
details of the string buffer allocation in one place.

Eliminate the portion of the string buffer that was dedicated to storing
the interpreter name.  The pointer to the interpreter name can simply be
made to point to the appropriate argument string.

Reviewed by: kib

13 years agoSmall typo fix: s/ommited/omitted
bcr [Tue, 27 Jul 2010 17:23:40 +0000 (17:23 +0000)]
Small typo fix: s/ommited/omitted

PR:             docs/148977
Submitted by:   Warren Block (wblock at wonkity dot com)
MFC after:      4 days

13 years agoPrevent uhid(4) from attaching to the Liebert PowerSure Personal XT UPS.
gavin [Tue, 27 Jul 2010 17:07:16 +0000 (17:07 +0000)]
Prevent uhid(4) from attaching to the Liebert PowerSure Personal XT UPS.

PR: usb/129251
Submitted by: Andrew D Wiles <adw+gnats avatastic.co.uk>
MFC after: 1 week

13 years agoThe count/compare values have to be tracked per CPU.
jchandra [Tue, 27 Jul 2010 15:10:05 +0000 (15:10 +0000)]
The count/compare values have to be tracked per CPU.

Reviewed by: mav

13 years agoDocument that the "ngtee" action no longer accepts packet, and
glebius [Tue, 27 Jul 2010 14:31:39 +0000 (14:31 +0000)]
Document that the "ngtee" action no longer accepts packet, and
thus don't depend on one_pass flag anymore.

This is a POLA violation, but it is quite difficult to restore
the old behavior with new code. Also, the new behavior matches
behavior of the older "tee" action, and this is more intuitive.

13 years agoAdd an entry to remove the acpi_boost(4) man page.
rpaulo [Tue, 27 Jul 2010 14:26:38 +0000 (14:26 +0000)]
Add an entry to remove the acpi_boost(4) man page.

Submitted by: pluknet <pluknet at gmail.com>

13 years agoFix operation of "netgraph" action in conjunction with the
glebius [Tue, 27 Jul 2010 14:26:34 +0000 (14:26 +0000)]
Fix operation of "netgraph" action in conjunction with the
net.inet.ip.fw.one_pass sysctl.

The "ngtee" action is still broken.

PR: kern/148885
Submitted by: Nickolay Dudorov <nnd mail.nsk.ru>

13 years agoAdd support for the Longcheer WM66 USB HSDPA Modem to u3g(4)
gavin [Tue, 27 Jul 2010 12:29:45 +0000 (12:29 +0000)]
Add support for the Longcheer WM66 USB HSDPA Modem to u3g(4)

This patch is different to that provided in the PR, due to the changes in
this driver since 7.x.

PR: usb/129945
Submitted by: Antonio Hilario <avahilario gmail.com>
MFC after: 1 week

13 years agoDon't check malloc(M_WAITOK) result.
glebius [Tue, 27 Jul 2010 11:56:49 +0000 (11:56 +0000)]
Don't check malloc(M_WAITOK) result.

13 years agoReturn NULL rather than 0 for a pointer.
bz [Tue, 27 Jul 2010 11:54:01 +0000 (11:54 +0000)]
Return NULL rather than 0 for a pointer.

MFC after: 3 days

13 years agoWhen installing a new ARP entry via 'arp -S', lla_lookup() will
glebius [Tue, 27 Jul 2010 10:05:27 +0000 (10:05 +0000)]
When installing a new ARP entry via 'arp -S', lla_lookup() will
either find an existing entry, or allocate a new one. In the latter
case an entry would have flags, that were supplied as argument to
lla_lookup(). In case of an existing entry, flags aren't modified.

This lead to losing LLE_PUB and/or LLE_PROXY flags.

We should apply these flags either in lla_rt_output() or in the
in.c:in_lltable_lookup(). It seems to me that lla_rt_output() is
a more correct choice.

PR: kern/148784, kern/146539
Silence from: qingli, 5 days

13 years agoFixup mips/rmi for the new mips timer code(r210403). This will get XLR
jchandra [Tue, 27 Jul 2010 09:22:41 +0000 (09:22 +0000)]
Fixup mips/rmi for the new mips timer code(r210403). This will get XLR
booting again.

The code is a copy of the mips/mips/tick.c with minor modifications for
XLR interrupt handling. Disable mips/rmi/clock.c for now, the PIC based
timer code will be added later.

13 years agoMissing IFCAP_* macro descriptions in ifnet(9).
simon [Tue, 27 Jul 2010 08:45:29 +0000 (08:45 +0000)]
Missing IFCAP_* macro descriptions in ifnet(9).

PR: docs/148952
Submitted by: Lars Hartmann <lars@chaotika.org>
MFC after: 2 weeks

13 years ago- Support two devices made by West Mountain Radio in uslcom(4) [1]
gavin [Tue, 27 Jul 2010 07:57:35 +0000 (07:57 +0000)]
- Support two devices made by West Mountain Radio in uslcom(4) [1]

- Bring in several other devices from OpenBSD while here.  Use the
  official manufacturer name over the OpenBSD name in the case of
  GEMALTO.  Reorder list slightly to aid future syncing.

- Remove duplicate SILABS CP2102 define from usbdevs

PR: usb/131912 [1]
Submitted by: Jack Twilley <mathuin gmail.com> [1]
MFC after: 1 week

13 years agoFix an apparent typo.
jkim [Mon, 26 Jul 2010 23:24:42 +0000 (23:24 +0000)]
Fix an apparent typo.

Found by: clang
Reviewed by: davidch, yongari

13 years agoSimplify fldcw() macro. There is no reason to use pointer here. No object
jkim [Mon, 26 Jul 2010 23:20:55 +0000 (23:20 +0000)]
Simplify fldcw() macro.  There is no reason to use pointer here.  No object
file change after this commit (verified with md5).

13 years agoAdd missing ldmxcsr() prototype for lint case.
jkim [Mon, 26 Jul 2010 23:02:18 +0000 (23:02 +0000)]
Add missing ldmxcsr() prototype for lint case.

13 years agoRemove an unused macro since r189418.
jkim [Mon, 26 Jul 2010 22:55:14 +0000 (22:55 +0000)]
Remove an unused macro since r189418.