]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAdd the '-b' flag to 'camcontrol devlist'. This prints only the existing
scottl [Sun, 29 Dec 2013 20:48:47 +0000 (20:48 +0000)]
Add the '-b' flag to 'camcontrol devlist'.  This prints only the existing
buses and their parent sims, useful for creating a sim->bus->device map.

Obtained from: Netflix
MFC after: 3 days

10 years ago- Remove a redundant variable in mpt_pci_attach().
marius [Sun, 29 Dec 2013 20:41:32 +0000 (20:41 +0000)]
- Remove a redundant variable in mpt_pci_attach().
- #if 0 the currently unused paired port linking and unlinking of dual
  adapters.
- Simplify MSI/MSI-X allocation and release. For a single one, we don't need
  to fiddle with the MSI/MSI-X count and pci_release_msi(9) is smart enough
  to just do nothing in case of INTx.
- Canonicalize actions taken on attach failure and detach.
- Remove the remainder of incomplete support for older FreeBSD versions.

MFC after: 1 week

10 years agoIn sys/dev/scc, remove unused static function scc_setmreg(). While
dim [Sun, 29 Dec 2013 20:23:08 +0000 (20:23 +0000)]
In sys/dev/scc, remove unused static function scc_setmreg().  While
here, invoke scc_getmreg() in two more places where it can be used.

Reviewed by: marcel
MFC after: 3 days

10 years agoIn sys/dev/vxge/vxgehal/vxgehal-ring.c, #if 0 an unused static function.
dim [Sun, 29 Dec 2013 20:16:12 +0000 (20:16 +0000)]
In sys/dev/vxge/vxgehal/vxgehal-ring.c, #if 0 an unused static function.

MFC after: 3 days

10 years agoIn sys/dev/usb/wlan/if_urtw.c, #if 0 a static const variable, which has
dim [Sun, 29 Dec 2013 20:05:48 +0000 (20:05 +0000)]
In sys/dev/usb/wlan/if_urtw.c, #if 0 a static const variable, which has
been unused since r198194.

MFC after: 3 days

10 years agoIn sys/dev/tpm/tpm.c, #if 0 an unused static function.
dim [Sun, 29 Dec 2013 19:55:06 +0000 (19:55 +0000)]
In sys/dev/tpm/tpm.c, #if 0 an unused static function.

MFC after: 3 days

10 years ago- There's no need to keep track of resource IDs.
marius [Sun, 29 Dec 2013 19:32:27 +0000 (19:32 +0000)]
- There's no need to keep track of resource IDs.
- Simplify MSI allocation and release. For a single one, we don't need to
  fiddle with the MSI count and pci_release_msi(9) is smart enough to just
  do nothing in case of INTx.
- Don't allocate MSI as RF_SHAREABLE.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

MFC after: 1 week

10 years agoClaim copyright since I've almost rewritten this file in r256512.
glebius [Sun, 29 Dec 2013 19:31:49 +0000 (19:31 +0000)]
Claim copyright since I've almost rewritten this file in r256512.

10 years agoWhen clearing relocations to __dtrace* symbols, handle both SHT_REL and
markj [Sun, 29 Dec 2013 19:27:32 +0000 (19:27 +0000)]
When clearing relocations to __dtrace* symbols, handle both SHT_REL and
SHT_RELA sections properly instead of assuming that the relocation section
is of type SHT_REL.

Submitted by: Prashanth Kumar <pra_udupi@yahoo.co.in> (original version)
MFC after: 1 month

10 years ago- Switch to using the common MII bitbang'ing code instead of duplicating it.
marius [Sun, 29 Dec 2013 19:21:59 +0000 (19:21 +0000)]
- Switch to using the common MII bitbang'ing code instead of duplicating it.
- Based on lessons learnt with dc(4) (see r185750), add bus space barriers to
  the MII bitbang read and write functions as well as to instances of page
  switching.
- Add missing locking to ed_ifmedia_{upd,sts}().
- Canonicalize some messages.
- Based on actual functionality, ED_TC5299J_MII_DIROUT should be rather named
  ED_TC5299J_MII_DIRIN.
- Remove unused headers.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.

MFC after: 1 week

10 years agoAdd mibs for hastd(1) queue stats.
trociny [Sun, 29 Dec 2013 19:02:33 +0000 (19:02 +0000)]
Add mibs for hastd(1) queue stats.

MFC after: 1 week

10 years agoIn sys/netgraph/netflow, use __FBSDID() instead of old-style rcs_id[].
dim [Sun, 29 Dec 2013 18:53:45 +0000 (18:53 +0000)]
In sys/netgraph/netflow, use __FBSDID() instead of old-style rcs_id[].

MFC after: 3 days

10 years agoClean up license text
emaste [Sun, 29 Dec 2013 18:44:12 +0000 (18:44 +0000)]
Clean up license text

- Renumber Regents clauses
- Remove clause 3 and 4 from TNF license, following upstream change

10 years agoFix the parse type for NGM_LISTTYPES.
glebius [Sun, 29 Dec 2013 18:34:29 +0000 (18:34 +0000)]
Fix the parse type for NGM_LISTTYPES.

Actually, text versions of generic commands are not used, since ngctl(8)
uses binary messages for them. And to request a text command one needs
a working ngctl(8). That's why the bug was never discovered. I'm pondering
on removing the text support for generic commands.

Found by: dim with clang 3.4

10 years ago- Simplify MSI allocation and release. For a single one, we don't need to
marius [Sun, 29 Dec 2013 17:43:37 +0000 (17:43 +0000)]
- Simplify MSI allocation and release. For a single one, we don't need to
  fiddle with the MSI count and pci_release_msi(9) is smart enough to just
  do nothing in case of INTx.
- Don't allocate MSI as RF_SHAREABLE.

MFC after: 1 week

10 years agoFree the MSI again on detach if allocated. Arguably, this code would be
marius [Sun, 29 Dec 2013 17:37:32 +0000 (17:37 +0000)]
Free the MSI again on detach if allocated. Arguably, this code would be
better off living in aac_pci.c, but it doesn't seem worth creating a
aac_pci_detach() and it's also not the first PCI-specific bit in aac.c

MFC after: 3 days

10 years agoThe arguments to sched:::off-cpu are the thread and associated process of
markj [Sun, 29 Dec 2013 17:08:30 +0000 (17:08 +0000)]
The arguments to sched:::off-cpu are the thread and associated process of
the thread selected to run, not the currently running thread. This fix has
already been made for ULE in r252070.

PR: 177706
MFC after: 1 week

10 years agoRemove superfluous old-style rcsid[] from if_my.c. There is already an
dim [Sun, 29 Dec 2013 17:03:45 +0000 (17:03 +0000)]
Remove superfluous old-style rcsid[] from if_my.c.  There is already an
__FBSDID() at the top of the file.

MFC after: 3 days

10 years agoRecord the IEEE P1282 Rock Ridge version 1.12 POSIX File Serial Number,
marius [Sun, 29 Dec 2013 16:43:35 +0000 (16:43 +0000)]
Record the IEEE P1282 Rock Ridge version 1.12 POSIX File Serial Number,
i. e. the POSIX:5.6.1 st_ino field, which can be used to detect hard links
in the file system. This is also the default in mkisofs(8) and according to
its man page, no system only being able to cope with Rock Ridge version 1.10
is known to exist.

PR: 185138
Submitted by: Kurt Lidl
MFC after: 1 week

10 years agoIn sys/dev/mcd/mcd.c, mark the static const COPYRIGHT string as __used,
dim [Sun, 29 Dec 2013 16:28:37 +0000 (16:28 +0000)]
In sys/dev/mcd/mcd.c, mark the static const COPYRIGHT string as __used,
so it ends up in the object file, and no warnings are emitted about it
being actually unused.

MFC after: 3 days

10 years agoTurn off warnings about unused variables for a bunch of files under
dim [Sun, 29 Dec 2013 14:21:55 +0000 (14:21 +0000)]
Turn off warnings about unused variables for a bunch of files under
contrib/ipfilter.

MFC after: 3 days

10 years agoIn sys/dev/en/midway.c, #if 0 an unused static function.
dim [Sun, 29 Dec 2013 14:19:15 +0000 (14:19 +0000)]
In sys/dev/en/midway.c, #if 0 an unused static function.

MFC after: 3 days

10 years agoIntroduce xprt_inactive_self() -- variant for use when sure that port
mav [Sun, 29 Dec 2013 11:19:09 +0000 (11:19 +0000)]
Introduce xprt_inactive_self()  -- variant for use when sure that port
is assigned to thread.  For example, withing receive handlers.  In that
case the function reduces to single assignment and can avoid locking.

10 years agoAdd "popmap" assertions: The page being freed isn't already free, and the
alc [Sun, 29 Dec 2013 04:54:52 +0000 (04:54 +0000)]
Add "popmap" assertions: The page being freed isn't already free, and the
page being allocated isn't already allocated.

Sponsored by: EMC / Isilon Storage Division

10 years agoIn addition to r259632 completely block receive upcalls if we have more
mav [Sun, 29 Dec 2013 03:43:25 +0000 (03:43 +0000)]
In addition to r259632 completely block receive upcalls if we have more
data than we need.  This reduces lock pressure from xprt_active() side.

10 years agoRevert part of r260022: LIB32 builds were broken by it.
marcel [Sun, 29 Dec 2013 03:15:15 +0000 (03:15 +0000)]
Revert part of r260022: LIB32 builds were broken by it.

10 years agoAdd support for virtual cores (aka minidumps). To that end, refactor this
marcel [Sun, 29 Dec 2013 02:31:40 +0000 (02:31 +0000)]
Add support for virtual cores (aka minidumps). To that end, refactor this
file as follows:
1.  Common ia64-specific support functions have the ia64_ prefix.
2.  Functions that work on physical cores have the phys_ prefix.
3.  Functions that work on virtual cores have the virt_ prefix.

With that:
1.  _kvm_kvatop() has been renamed to phys_kvatop() as it handles
    physical cores only.
2.  The new _kvm_kvatop() is nothing but a wrapper that calls either
    phys_kvatop() or virt_kvatop() by virtue of the kvatop function
    pointer in the vmstate structure.
3.  virt_kvatop() is nothing but a wrapper around virt_addr2off().
4.  virt_addr2off() iterates over the Phdrs to find the segment in
    which the address falls and return the file offset for it.

Now it's up to the kernel to populate the core file appropriately.

10 years agoWhen building a cross kgdb, link against the appropriate cross libkvm.
marcel [Sat, 28 Dec 2013 23:31:22 +0000 (23:31 +0000)]
When building a cross kgdb, link against the appropriate cross libkvm.
Provide an implementation of ps_pglobal_lookup() for use by the cross
libkvm.

10 years agoDisable warning about unused functions for ieee80211_crypto.c and
dim [Sat, 28 Dec 2013 23:17:24 +0000 (23:17 +0000)]
Disable warning about unused functions for ieee80211_crypto.c and
ieee80211_mesh.c for now.

MFC after: 3 days

10 years agoDisable warning about unused functions for ar9300_reset.c for now.
dim [Sat, 28 Dec 2013 23:12:32 +0000 (23:12 +0000)]
Disable warning about unused functions for ar9300_reset.c for now.

MFC after: 3 days

10 years agoAllow building a cross libkvm for ia64.
marcel [Sat, 28 Dec 2013 23:02:48 +0000 (23:02 +0000)]
Allow building a cross libkvm for ia64.

10 years agoAllow building a cross libkvm by setting TARGET_ARCH. The library so
marcel [Sat, 28 Dec 2013 23:01:57 +0000 (23:01 +0000)]
Allow building a cross libkvm by setting TARGET_ARCH. The library so
produced will be called libkvm-${ARCH} instead of libkvm. This allows
installing it alongside the native version.
For symbol lookups, use ps_pglobal_lookup() instead of __fdnlist()
when building a cross libkvm. It is assumed that the cross tool that
uses the cross libkvm also provides an implementation for this
proc_services function.

Note that this commit does not change any of the architecture-specific
code for cross-compilation.

10 years agoFix cross-compilation of ia64 target code with clang.
marcel [Sat, 28 Dec 2013 22:52:46 +0000 (22:52 +0000)]
Fix cross-compilation of ia64 target code with clang.

10 years agoFor sys/dev/drm2/radeon, only use -fms-extensions with gcc. This flag
dim [Sat, 28 Dec 2013 22:44:02 +0000 (22:44 +0000)]
For sys/dev/drm2/radeon, only use -fms-extensions with gcc.  This flag
is only to stop gcc complaining about anonymous unions, which clang does
not do.  For clang 3.4 however, -fms-extensions enables the Microsoft
__wchar_t type, which clashes with our own types.h.

MFC after: 3 days

10 years agoFor some files under sys/dev/drm2/i915, turn off warnings about unused
dim [Sat, 28 Dec 2013 22:35:16 +0000 (22:35 +0000)]
For some files under sys/dev/drm2/i915, turn off warnings about unused
functions and variables, since they are contributed code.

MFC after: 3 days

10 years agoMark unused static inline functions defined by the PCTRIE_DEFINE() macro
dim [Sat, 28 Dec 2013 21:31:58 +0000 (21:31 +0000)]
Mark unused static inline functions defined by the PCTRIE_DEFINE() macro
as __unused, so warnings about them are avoided.

MFC after: 3 days

10 years agoRemove superfluous old-style rcsid[] from if_sk.c. There is already an
dim [Sat, 28 Dec 2013 21:04:17 +0000 (21:04 +0000)]
Remove superfluous old-style rcsid[] from if_sk.c.  There is already an
__FBSDID() at the top of the file.

MFC after: 3 days

10 years agoIn libc++'s type_traits header, avoid warnings (activated by our use of
dim [Sat, 28 Dec 2013 20:54:08 +0000 (20:54 +0000)]
In libc++'s type_traits header, avoid warnings (activated by our use of
-Wsystem-headers) about potential keyword compatibility problems, by
adding a __libcpp prefix to the applicable identifiers.

Upstream is still debating about this, but we need it now, to be able to
import clang 3.4.

MFC after: 3 days

10 years agogcc: Add support for label attributes and "unavailable" attribute.
pfg [Sat, 28 Dec 2013 20:30:31 +0000 (20:30 +0000)]
gcc: Add support for label attributes and "unavailable" attribute.

Apple GCC has extensions to support for both label attributes and
an "unavailable" attribute. These are critical for objc but are
also useful in regular C/C++.

Apparently at least the label attributes might have found their way to
upstream GCC but the code doesn't seem available on the GPLv2 tree so
we are taking the code directly from Apple. To make this clearer we
are preserving the annoying "APPLE LOCAL" tags and the ChangeLogs
when they are available.

Obtained from: Apple GCC 4.2 - 5531
MFC after: 3 weeks

10 years agoBump __FreeBSD_version for r259951 - Don't coalesce entries in
peter [Sat, 28 Dec 2013 20:00:34 +0000 (20:00 +0000)]
Bump __FreeBSD_version for r259951 - Don't coalesce entries in
vm_map_stack().

10 years agoAdd a virt_foreach() that does the same as what phys_foreach() does and
marcel [Sat, 28 Dec 2013 19:54:19 +0000 (19:54 +0000)]
Add a virt_foreach() that does the same as what phys_foreach() does and
change virt_size(), virt_dumphdrs() and virt_dumpdata() into its callback
functions.
In virt_foreach() we iterate over all the virtual memory regions that we
want in the minidump. For now, just start with the PBVM (= kernel text
and data plus preloaded modules). The core file this produces can already
be used to work out the libkvm changes that need to be made to support it.
In parallel, we can flesh out the in-kernel bits to dump more of what we
need in a minidump without changing the core file structure.

10 years agoIn libiconv_modules, surround unused static _citrus_XXX_pack_state() and
dim [Sat, 28 Dec 2013 13:49:48 +0000 (13:49 +0000)]
In libiconv_modules, surround unused static _citrus_XXX_pack_state() and
_citrus_XXX_unpack_state() functions with #if 0, for now.

MFC after: 3 days

10 years agoFix the Intel 6150 support.
adrian [Sat, 28 Dec 2013 05:50:53 +0000 (05:50 +0000)]
Fix the Intel 6150 support.

This chip doesn't require the temperature sensor offset, either v1 or
v2.  Doing so causes the initial calibration test to fail.

Tested:

* Intel Centrino 6150

10 years agoMFp4 alc_popmap
alc [Sat, 28 Dec 2013 04:28:35 +0000 (04:28 +0000)]
MFp4 alc_popmap
  Change the way that reservations keep track of which pages are in use.
  Instead of using the page's PG_CACHED and PG_FREE flags, maintain a bit
  vector within the reservation.  This approach has a couple benefits.
  First, it makes breaking reservations much cheaper because there are
  fewer cache misses to identify the unused pages.  Second, it is a pre-
  requisite for supporting two or more reservation sizes.

10 years agoExtend the ACPI power management support to wire a virtual power button up
jhb [Sat, 28 Dec 2013 04:01:05 +0000 (04:01 +0000)]
Extend the ACPI power management support to wire a virtual power button up
to SIGTERM when ACPI is enabled.  Sending SIGTERM to the hypervisor when an
ACPI-aware OS is running will now trigger a soft-off allowing for a graceful
shutdown of the guest.
- Move constants for ACPI-related registers to acpi.h.
- Implement an SMI_CMD register with commands to enable and disable ACPI.
  Currently the only change when ACPI is enabled is to enable the virtual
  power button via SIGTERM.
- Implement a fixed-feature power button when ACPI is enabled by asserting
  PWRBTN_STS in PM1_EVT when SIGTERM is received.
- Add support for EVFILT_SIGNAL events to mevent.
- Implement support for the ACPI system command interrupt (SCI) and assert
  it when needed based on the values in PM1_EVT.  Mark the SCI as active-low
  and level triggered in the MADT and MP Table.
- Mark PCI interrupts in the MP Table as active-low in addition to level
  triggered.

Reviewed by: neel

10 years agoUse pthread_once() to replace a static integer initted flag.
jhb [Sat, 28 Dec 2013 03:21:15 +0000 (03:21 +0000)]
Use pthread_once() to replace a static integer initted flag.

Reviewed by: neel

10 years agoCorrect the description of the V state, which indicates that the process'
markj [Sat, 28 Dec 2013 03:04:05 +0000 (03:04 +0000)]
Correct the description of the V state, which indicates that the process'
parent is suspended, not the process itself.

MFC after: 3 days

10 years agoModify handling of writes to the vlapic LVT registers.
neel [Sat, 28 Dec 2013 00:20:55 +0000 (00:20 +0000)]
Modify handling of writes to the vlapic LVT registers.

The handler is now called after the register value is updated in the virtual
APIC page. This will make it easier to handle APIC-write VM-exits with APIC
register virtualization turned on.

This also implies that we need to keep a snapshot of the last value written
to a LVT register. We can no longer rely on the LVT registers in the APIC
page to be "clean" because the guest can write anything to it before the
hypervisor has had a chance to sanitize it.

10 years agoTighten default restrictions for ntpd(8) server and provide a link
delphij [Fri, 27 Dec 2013 23:06:15 +0000 (23:06 +0000)]
Tighten default restrictions for ntpd(8) server and provide a link
to NTP access restriction documentation.

The new default restrictions would allow only time queries from a
remote system and will KoD all other requests, but still allow
localhost to do make all requests.

These restrictions are also recommended for all Internet-facing
public NTP servers.

This changeset is intended for an instant MFC to stable/10 and
releng/10.0.

10 years agoModify handling of writes to the vlapic ICR_TIMER, DCR_TIMER, ICRLO and ESR
neel [Fri, 27 Dec 2013 20:18:19 +0000 (20:18 +0000)]
Modify handling of writes to the vlapic ICR_TIMER, DCR_TIMER, ICRLO and ESR
registers.

The handler is now called after the register value is updated in the virtual
APIC page. This will make it easier to handle APIC-write VM-exits with APIC
register virtualization turned on.

We can no longer rely on the value of 'icr_timer' on the APIC page
in the callout handler. With APIC register virtualization the value of
'icr_timer' will be updated by the processor in guest-context before an
APIC-write VM-exit.

Clear the 'delivery status' bit in the ICRLO register in the write handler.
With APIC register virtualization the write happens in guest-context and
we cannot prevent a (buggy) guest from setting this bit.

10 years agoAdd the scaffolding for minidumps. They're just like physical dumps,
marcel [Fri, 27 Dec 2013 19:51:17 +0000 (19:51 +0000)]
Add the scaffolding for minidumps. They're just like physical dumps,
except the chunks aren't physical memory regions but virtual memory
regions. In both cases, the core file is an ELF file and flags in
the header allow libkvm to distinguish one from the other.

10 years agoMove build_doc_ports() to the if...fi block from which it is called.
gjb [Fri, 27 Dec 2013 17:36:43 +0000 (17:36 +0000)]
Move build_doc_ports() to the if...fi block from which it is called.

Sponsored by: The FreeBSD Foundation

10 years agoFix accounting for the negative cache entries when reusing v_cache_dd.
kib [Fri, 27 Dec 2013 17:09:59 +0000 (17:09 +0000)]
Fix accounting for the negative cache entries when reusing v_cache_dd.
Having ncneg diverge with the actual length of the ncneg tailq causes
NULL dereference.

Add assertion that an entry taken from ncneg queue is indeed negative.

Reported by and discussed with: avg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoRevert r259200. There are geoms/drivers which do not update
kib [Fri, 27 Dec 2013 17:04:51 +0000 (17:04 +0000)]
Revert r259200.  There are geoms/drivers which do not update
bio_completed, only manage bio_resid, e.g. sa(4).

Reported and tested by: Manfred Antar <null@pozo.com>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoDo not coalesce stack entry, vm_map_stack() asserts that the requested
kib [Fri, 27 Dec 2013 16:59:47 +0000 (16:59 +0000)]
Do not coalesce stack entry, vm_map_stack() asserts that the requested
region is claimed by a new entry.

Pass MAP_STACK_GROWS_DOWN and MAP_STACK_GROWS_UP flags to
vm_map_insert() from vm_map_stack(), to really turn off coalescing
code and call to vm_map_simplify_entry() [1].

Reported by: avg, peter, many
Tested by: avg, peter
Noted by: avg [1]
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years ago- Fix EBADF description, in following the future POSIX tc and what FreeBSD
pluknet [Fri, 27 Dec 2013 16:57:38 +0000 (16:57 +0000)]
- Fix EBADF description, in following the future POSIX tc and what FreeBSD
  actually implements.
- Improve grammar: use more preferred "can", not "could".

Submitted by: jilles

10 years agoImprove wording slightly.
joel [Fri, 27 Dec 2013 16:48:37 +0000 (16:48 +0000)]
Improve wording slightly.

10 years agosh: Don't check input for non-whitespace if history is disabled.
jilles [Fri, 27 Dec 2013 15:52:18 +0000 (15:52 +0000)]
sh: Don't check input for non-whitespace if history is disabled.

preadbuffer() maintained a flag whether there was any non-whitespace
character. This flag is only useful when history is enabled (in that case,
lines containing only whitespace are not added to history). Instead, check
using strspn() when history is enabled.

There is an approximate 2% speedup when running
  sh -c '. /etc/rc.subr; . /etc/defaults/rc.conf; source_rc_confs'
with hot cache.

10 years agogcc: merge small upstream change.
pfg [Fri, 27 Dec 2013 15:15:49 +0000 (15:15 +0000)]
gcc: merge small upstream change.

Backport from mainline:
2007-04-24  Hui-May Chang <hm.chang@apple.com>

* reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.

Obtained from: gcc 4.3 (rev. r124115: GPLv2)
MFC after: 1 week

10 years agoAddress some warnings which showed up on the userland version.
tuexen [Fri, 27 Dec 2013 13:07:00 +0000 (13:07 +0000)]
Address some warnings which showed up on the userland version.

MFC after: 1 week

10 years agoIn sys/amd64/vmm/intel/vmx.c, silence a (incorrect) gcc warning about
dim [Fri, 27 Dec 2013 12:15:53 +0000 (12:15 +0000)]
In sys/amd64/vmm/intel/vmx.c, silence a (incorrect) gcc warning about
regval possibly being used uninitialized.

Reviewed by: neel

10 years agoRegen.
kevlo [Fri, 27 Dec 2013 08:06:23 +0000 (08:06 +0000)]
Regen.

10 years agoAdd D-Link DWA-140 rev D1, another RT5372/run(4).
kevlo [Fri, 27 Dec 2013 08:03:53 +0000 (08:03 +0000)]
Add D-Link DWA-140 rev D1, another RT5372/run(4).
From Anton Mazunin.

10 years agoFixing build bustage.
avatar [Fri, 27 Dec 2013 07:02:07 +0000 (07:02 +0000)]
Fixing build bustage.

10 years agoModify handling of write to the vlapic SVR register.
neel [Fri, 27 Dec 2013 07:01:42 +0000 (07:01 +0000)]
Modify handling of write to the vlapic SVR register.

The handler is now called after the register value is updated in the virtual
APIC page. This will make it easier to handle APIC-write VM-exits with APIC
register virtualization turned on.

Additionally, mask all the LVT entries when the vlapic is software-disabled.

10 years agoRevert r252694 - which attempted to fix bit emulation for armv6/armv7.
adrian [Fri, 27 Dec 2013 05:01:13 +0000 (05:01 +0000)]
Revert r252694 - which attempted to fix bit emulation for armv6/armv7.

This seems to cause issues with jemalloc + {dhclient, sshd}.

Thus, revert this for now until the root cause can be found and
fixed.

This should quieten some runtime problems with the Raspberry Pi.

PR: kern/185046
MFC after: 3 days

10 years agoAdd an ability to stop gmirror and clear its metadata in one command.
ae [Fri, 27 Dec 2013 02:43:53 +0000 (02:43 +0000)]
Add an ability to stop gmirror and clear its metadata in one command.
This fixes the problem, when gmirror starts again just after stop.

The problem occurs when gmirror's component has geom label with equal size.
E.g. gpt and gptid have the same size as partition, diskid has the same
size as entire disk. When gmirror's geom has been destroyed, glabel
creates its providers and this initiate retaste.

Now "gmirror destroy" command is available. It destroys geom and also
erases gmirror's metadata.

MFC after: 2 weeks

10 years agoIn sys/dev/bxe/bxe.c, remove static function bxe_has_tx_work_unload(),
dim [Thu, 26 Dec 2013 22:42:11 +0000 (22:42 +0000)]
In sys/dev/bxe/bxe.c, remove static function bxe_has_tx_work_unload(),
which has never been used.

Reviewed by: edavis
MFC after: 3 days

10 years agoFix pc98 build, by also forcing COMPILER_TYPE in sys/boot/pc98/boot2's
dim [Thu, 26 Dec 2013 22:31:47 +0000 (22:31 +0000)]
Fix pc98 build, by also forcing COMPILER_TYPE in sys/boot/pc98/boot2's
Makefile.

Pointy hat to: dim
MFC after: 3 days
X-MFC-With: r259730

10 years agoIn sys/sys/gpt.h, add a missing backslash at the end of the
dim [Thu, 26 Dec 2013 22:28:15 +0000 (22:28 +0000)]
In sys/sys/gpt.h, add a missing backslash at the end of the
GPT_ENT_TYPE_VSANHDR define.

Pointy hat to: marck
MFC after: 2 weeks
X-MFC-With: r259925

10 years agoAdd GPT UUID for VMware vSAN meta-data partition.
marck [Thu, 26 Dec 2013 21:06:12 +0000 (21:06 +0000)]
Add GPT UUID for VMware vSAN meta-data partition.

Approved by: ae
MFC after: 2 weeks

10 years agoModify handling of writes to the vlapic ID, LDR and DFR registers.
neel [Thu, 26 Dec 2013 19:58:30 +0000 (19:58 +0000)]
Modify handling of writes to the vlapic ID, LDR and DFR registers.

The handlers are now called after the register value is updated in the virtual
APIC page. This will make it easier to handle APIC-write VM-exits with APIC
register virtualization turned on.

Additionally, we need to ensure that the value of these registers is always
correctly reflected in the virtual APIC page, because there is no VM exit
when the guest reads these registers with APIC register virtualization.

10 years agoFix an apparent typo.
pluknet [Thu, 26 Dec 2013 19:18:43 +0000 (19:18 +0000)]
Fix an apparent typo.

MFC after: 3 days

10 years agoProvide the manual page for aio_fsync(2).
pluknet [Thu, 26 Dec 2013 19:16:30 +0000 (19:16 +0000)]
Provide the manual page for aio_fsync(2).

Reviewed by: davidxu
MFC after: 1 week

10 years agogcc: Implement -Wmost for compatibility with clang.
pfg [Thu, 26 Dec 2013 18:09:16 +0000 (18:09 +0000)]
gcc: Implement -Wmost for compatibility with clang.

This is equivalent to -Wall -Wno-parentheses.

Obtained from: Apple GCC 4.2 - 5531
MFC after: 1 week

10 years agoUse feature_present(3) to determine whether to open an INET or an
bz [Thu, 26 Dec 2013 15:51:14 +0000 (15:51 +0000)]
Use feature_present(3) to determine whether to open an INET or an
INET6 socket when needed to allow pfctl to work on noinet and noinet6
kernels (and try to provide a fallback using AF_LINK as best effort).
Adjust the Makefile to also respect relevant src.conf(5) options
for compile time decisions on INET and INET6 support.

Reviewed by: glebius (no objections)
MFC after: 1 week

10 years agoFix AltGr, we should not only skip RAlt key release if enable_altgr is set, but
ray [Thu, 26 Dec 2013 14:25:37 +0000 (14:25 +0000)]
Fix AltGr, we should not only skip RAlt key release if enable_altgr is set, but
also process RAlt key press same way.

Sponsored by: The FreeBSD Foundation

10 years agoGenerate client sample code which compiles without warnings.
dfr [Thu, 26 Dec 2013 11:38:33 +0000 (11:38 +0000)]
Generate client sample code which compiles without warnings.
For 'rpcgen -a', generate a makefile where 'make clean all' works.

10 years agoFor libstand and sys/boot, split off gcc-only flags into CFLAGS.gcc.
dim [Thu, 26 Dec 2013 11:32:39 +0000 (11:32 +0000)]
For libstand and sys/boot, split off gcc-only flags into CFLAGS.gcc.

MFC after: 3 days
X-MFC-With: r259730

10 years agoFix "kptdir is itself virtual" error, caused by having the kptdir in PBVM.
marcel [Thu, 26 Dec 2013 07:10:54 +0000 (07:10 +0000)]
Fix "kptdir is itself virtual" error, caused by having the kptdir in PBVM.
While here improve errors by having them include addresses (either virtual
or physical).

10 years agoFor ia64, use pmap_remove_pages() and not pmap_remove(). The problem is
marcel [Thu, 26 Dec 2013 05:46:10 +0000 (05:46 +0000)]
For ia64, use pmap_remove_pages() and not pmap_remove(). The problem is
that we don't have a good way (yet) to iterate over the mapped pages by
virtual address and simply try each page within the range. Given that we
call pmap_remove() over the entire 2^63 bytes of address space, it takes
a while for pmap_remove to have tried all 2^50 pages.
By using pmap_remove_pages() we use the PV list to find all mappings.

Change derived from a patch by: alc

10 years agouse the correct netmap <-> nic slot mapping on the transmit ring for 'lem'.
luigi [Thu, 26 Dec 2013 05:22:38 +0000 (05:22 +0000)]
use the correct netmap <-> nic slot mapping on the transmit ring for 'lem'.
This bug would manifest only in netmap mode and on packets transmitted after
a NIC reset while netmap mode is active.

MFC after: 3 days

10 years agoDraft-ietf-tcpm-initcwnd-05 became RFC6928.
pluknet [Thu, 26 Dec 2013 04:24:08 +0000 (04:24 +0000)]
Draft-ietf-tcpm-initcwnd-05 became RFC6928.

MFC after: 1 week

10 years agoRemove some unneeded declarations which should have been removed in r257037.
markj [Thu, 26 Dec 2013 03:19:08 +0000 (03:19 +0000)]
Remove some unneeded declarations which should have been removed in r257037.

10 years agoIn sys/dev/drm/mach64_dma.c, remove static function mach64_set_dma_eol(),
dim [Thu, 26 Dec 2013 00:11:19 +0000 (00:11 +0000)]
In sys/dev/drm/mach64_dma.c, remove static function mach64_set_dma_eol(),
which has never been used, even by upstream, since its initial upstream
commit (see http://cgit.freedesktop.org/mesa/drm/commit/?id=873e1c4d )

MFC after: 3 days

10 years agoIn sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c, remove static functions
dim [Wed, 25 Dec 2013 22:49:54 +0000 (22:49 +0000)]
In sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c, remove static functions
mk_cpl_barrier_ulp(), mk_get_tcb_ulp() and mk_set_tcb_field_ulp(), which
are all unused since r237263.

MFC after: 3 days

10 years agoIn sys/dev/cxgb/common/cxgb_mc5.c, remove static function
dim [Wed, 25 Dec 2013 22:45:33 +0000 (22:45 +0000)]
In sys/dev/cxgb/common/cxgb_mc5.c, remove static function
dbgi_wr_addr3(), which is unused since r167514.

MFC after: 3 days

10 years agoIn sys/vm/vm_pageout.c, since vm_pageout_worker() takes a void * as
dim [Wed, 25 Dec 2013 22:32:34 +0000 (22:32 +0000)]
In sys/vm/vm_pageout.c, since vm_pageout_worker() takes a void * as
argument, cast the incoming 0 argument to void *, to silence a warning
from clang 3.4 ("expression which evaluates to zero treated as a null
pointer constant of type 'void *' [-Wnon-literal-null-conversion]").

MFC after: 3 days

10 years agoIn sys/kern/vfs_mountroot.c, remove static function parse_isspace(),
dim [Wed, 25 Dec 2013 22:14:42 +0000 (22:14 +0000)]
In sys/kern/vfs_mountroot.c, remove static function parse_isspace(),
which is unused since r214006.

MFC after: 3 days

10 years agoPull in r183971 from upstream llvm trunk:
dim [Wed, 25 Dec 2013 20:58:02 +0000 (20:58 +0000)]
Pull in r183971 from upstream llvm trunk:

  X86: cvtpi2ps is just an SSE instruction with MMX operands. It has no AVX
  equivalent.

  Give it the right register format so we can also emit it when AVX is enabled.

This should fix a "Cannot select: intrinsic %llvm.x86.sse.cvtpi2ps" fatal error
in clang while building the gnuradio port for amd64.

Reported by: db
MFC after: 3 days

10 years agoAdd more (IPv6) related Internet Protocols:
bz [Wed, 25 Dec 2013 20:26:49 +0000 (20:26 +0000)]
Add more (IPv6) related Internet Protocols:
- Host Identity Protocol (RFC5201)
- Shim6 Protocol (RFC5533)
- 2x experimentation and testing (RFC3692, RFC4727)

This does not indicate interest to implement/support these protocols,
but they are part of the "IPv6 Extension Header Types" [1] based on RFC7045
and might thus be needed by filtering and next header parsing
implementations.

References: [1] http://www.iana.org/assignments/ipv6-parameters
Obtained from: http://www.iana.org/assignments/protocol-numbers
MFC after: 1 week

10 years agoBite the bullet and start removing the first compile time warnings
bz [Wed, 25 Dec 2013 20:15:48 +0000 (20:15 +0000)]
Bite the bullet and start removing the first compile time warnings
by removing unsued file local functions and then unused callees.
A lot more warnings to resolve but someone had to break the ice.

MFC after: 10 days
X-Comment: I am not the new maintainer; chime in, it's ours.

10 years agoAs constantly reported during kernel compilation, m_buflen is unsigned so
bz [Wed, 25 Dec 2013 20:10:17 +0000 (20:10 +0000)]
As constantly reported during kernel compilation, m_buflen is unsigned so
can never be < 0.  Remove the expression, which can never be true.

MFC after: 1 week

10 years agoCorrect warnings comparing unsigned variables < 0 constantly reported
bz [Wed, 25 Dec 2013 20:08:44 +0000 (20:08 +0000)]
Correct warnings comparing unsigned variables < 0 constantly reported
while building kernels.  All instances removed are indeed unsigned so
the expressions could not be true.

MFC after: 1 week

10 years agoFix a typo.
pluknet [Wed, 25 Dec 2013 19:38:16 +0000 (19:38 +0000)]
Fix a typo.

10 years agoUse statndard (syscons) way to disable bell.
ray [Wed, 25 Dec 2013 19:07:14 +0000 (19:07 +0000)]
Use statndard (syscons) way to disable bell.

Testesd by: markj

Sponsored by: The FreeBSD Foundation

10 years agoPut the release objdir inside the chroot.
jmmv [Wed, 25 Dec 2013 18:25:58 +0000 (18:25 +0000)]
Put the release objdir inside the chroot.

When building the system from outside the chroot as part of the release
process, ensure the objdir is within the chroot so that the whole output
of the release.sh script is self-contained in a single directory.

Use CHROOTDIR/tmp/obj instead of CHROOTDIR/usr/obj to minimize possible
interferences with the output of the build itself.

Reviewed by: gjb
Approved by: rpaulo (mentor)

10 years agoIn sys/dev/sym/sym_hipd.c, remove static functions sym_que_first(),
dim [Wed, 25 Dec 2013 17:28:18 +0000 (17:28 +0000)]
In sys/dev/sym/sym_hipd.c, remove static functions sym_que_first(),
sym_que_last() and sym_remque_tail(), which are all unused since r53790.

MFC after: 3 days

10 years agoClean up manual pages after BIND removal.
pluknet [Wed, 25 Dec 2013 17:28:08 +0000 (17:28 +0000)]
Clean up manual pages after BIND removal.

MFC after: 1 week

10 years agoFor vmcore, calculate time relative to device creation upon time_uptime.
pluknet [Wed, 25 Dec 2013 17:11:49 +0000 (17:11 +0000)]
For vmcore, calculate time relative to device creation upon time_uptime.
Previously it used a clock from live kernel.

MFC after: 2 weeks