]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMFV r258373:
Xin LI [Tue, 24 Dec 2013 06:56:17 +0000 (06:56 +0000)]
MFV r258373:

4168 ztest assertion failure in dbuf_undirty

4169 verbatim import causes zdb to segfa
4170 zhack leaves pool in ACTIVE state

illumos/illumos-gate@7fdd916c474ea52896c671bbe7b56ba34a1ca132

MFC after: 2 weeks

10 years agoAdd pointer to wiki for Hyper-V information.
Craig Rodrigues [Tue, 24 Dec 2013 05:10:41 +0000 (05:10 +0000)]
Add pointer to wiki for Hyper-V information.

Wiki content for Hyper-V in FreeBSD 10 was significantly updated by
Abhishek Gupta <abgupta@microsoft.com>.

10 years agoThe NFSv4 client was passing both the p and cred arguments to
Rick Macklem [Tue, 24 Dec 2013 00:48:39 +0000 (00:48 +0000)]
The NFSv4 client was passing both the p and cred arguments to
nfsv4_fillattr() as NULLs for the Getattr callback. This caused
nfsv4_fillattr() to not fill in the Change attribute for the reply.
I believe this was a violation of the RFC, but had little effect on
server behaviour. This patch passes a non-NULL p argument to fix this.

MFC after: 1 week

10 years agoRemove references to SUP_UPDATE and CVS_UPDATE.
Glen Barber [Mon, 23 Dec 2013 21:58:03 +0000 (21:58 +0000)]
Remove references to SUP_UPDATE and CVS_UPDATE.
Include base svn when evaluating if svn(1) exists.

MFC after: 3-days
X-MFC-to: stable/10 only
Sponsored by: The FreeBSD Foundation

10 years agoUpdate FreeBSD version entities to reflect head/ is 11.0-CURRENT.
Glen Barber [Mon, 23 Dec 2013 20:39:54 +0000 (20:39 +0000)]
Update FreeBSD version entities to reflect head/ is 11.0-CURRENT.

Sponsored by: The FreeBSD Foundation

10 years agoAdd a resume hook for bhyve that runs a function on all CPUs during
John Baldwin [Mon, 23 Dec 2013 19:48:22 +0000 (19:48 +0000)]
Add a resume hook for bhyve that runs a function on all CPUs during
resume.  For Intel CPUs, invoke vmxon for CPUs that were in VMX mode
at the time of suspend.

Reviewed by: neel

10 years agoMention jemalloc upgrade to 3.4.0
Craig Rodrigues [Mon, 23 Dec 2013 19:48:02 +0000 (19:48 +0000)]
Mention jemalloc upgrade to 3.4.0

10 years agoext2fs: make the hashing algorithm match the linux code.
Pedro F. Giffuni [Mon, 23 Dec 2013 19:47:34 +0000 (19:47 +0000)]
ext2fs: make the hashing algorithm match the linux code.

There appears to be a hash function compatibility issue.
The code is currently disabled but fix it nevertheless.

PR: kern/183230
MFC after: 3 days

10 years agoExtend the support for local interrupts on the local APIC:
John Baldwin [Mon, 23 Dec 2013 19:29:07 +0000 (19:29 +0000)]
Extend the support for local interrupts on the local APIC:
- Add a generic routine to trigger an LVT interrupt that supports both
  fixed and NMI delivery modes.
- Add an ioctl and bhyvectl command to trigger local interrupts inside a
  guest.  In particular, a global NMI similar to that raised by SERR# or
  PERR# can be simulated by asserting LINT1 on all vCPUs.
- Extend the LVT table in the vCPU local APIC to support CMCI.
- Flesh out the local APIC error reporting a bit to cache errors and
  report them via ESR when ESR is written to.  Add support for asserting
  the error LVT when an error occurs.  Raise illegal vector errors when
  attempting to signal an invalid vector for an interrupt or when sending
  an IPI.
- Ignore writes to reserved bits in LVT entries.
- Export table entries the MADT and MP Table advertising the stock x86
  config of LINT0 set to ExtInt and LINT1 wired to NMI.

Reviewed by: neel (earlier version)

10 years agoo Add virtual terminal mmap request handler.
Aleksandr Rybalko [Mon, 23 Dec 2013 18:09:10 +0000 (18:09 +0000)]
o Add virtual terminal mmap request handler.
o Forward termianl framebuffer ioctl to fbd.
o Forward terminal mmap request to fbd.
o Move inclusion of sys/conf.h to vt.h.

Sponsored by: The FreeBSD Foundation

10 years agoUpdate whitespace to match mkkfont output
Ed Maste [Mon, 23 Dec 2013 17:49:12 +0000 (17:49 +0000)]
Update whitespace to match mkkfont output

Sponsored by: The FreeBSD Foundation

10 years agoFix yet another typo
Baptiste Daroussin [Mon, 23 Dec 2013 17:47:04 +0000 (17:47 +0000)]
Fix yet another typo

Reported by: kib

10 years agoFix typos
Baptiste Daroussin [Mon, 23 Dec 2013 17:26:56 +0000 (17:26 +0000)]
Fix typos

Reported by: bryanv

10 years agoDo not print a question in non-interractive mode but explain why boostrapping
Baptiste Daroussin [Mon, 23 Dec 2013 17:16:44 +0000 (17:16 +0000)]
Do not print a question in non-interractive mode but explain why boostrapping
has failed and how to allow it to happen

Reported by: jmmv

10 years agoOutput all {normal,bold} {left,right} maps
Ed Maste [Mon, 23 Dec 2013 17:14:11 +0000 (17:14 +0000)]
Output all {normal,bold} {left,right} maps

This change was missed in r259680.

Sponsored by: The FreeBSD Foundation

10 years agoThe NFSv4.1 client didn't return NFSv4.1 specific error codes
Rick Macklem [Mon, 23 Dec 2013 15:16:53 +0000 (15:16 +0000)]
The NFSv4.1 client didn't return NFSv4.1 specific error codes
for the Getattr and Recall callbacks. This patch fixes it.
Since the NFSv4.1 specific error codes would only happen for
abnormal circumstances, this patch has little effect, in practice.

MFC after: 1 week

10 years agomdoc: nuke whitespace.
Joel Dahl [Mon, 23 Dec 2013 15:00:15 +0000 (15:00 +0000)]
mdoc: nuke whitespace.

10 years agoTry and fix the dependency/bootstrap issues in kerberos5
Ulrich Spörlein [Mon, 23 Dec 2013 14:23:17 +0000 (14:23 +0000)]
Try and fix the dependency/bootstrap issues in kerberos5

libkafs5 needs a header from libkrb5, it includes this from
${.OBJDIR}/mumble, this used to work fine as long as you happen to have
a krb_err.h in your base system, this doesn't work for bootstrapping or
using a cross-compiler with a different sysroot. This is just a
best-effort bandaid, sufficient parallelism can still break it.

Fix a SRCS override that dropped krb5_err.h.

Discussed with: stas

10 years agoUpdates for various userland tools.
Craig Rodrigues [Mon, 23 Dec 2013 11:03:37 +0000 (11:03 +0000)]
Updates for various userland tools.

10 years agoMention that sysinstall is gone, replaced by bsdinstall and bsdconfig.
Craig Rodrigues [Mon, 23 Dec 2013 08:57:49 +0000 (08:57 +0000)]
Mention that sysinstall is gone, replaced by bsdinstall and bsdconfig.
Mention that bsdinstall supports installing ZFS on root.

10 years agoFix RPC server threads file handle affinity to work better with ZFS.
Alexander Motin [Mon, 23 Dec 2013 08:43:16 +0000 (08:43 +0000)]
Fix RPC server threads file handle affinity to work better with ZFS.

  Instead of taking 8 specific bytes of file handle to identify file during
RPC thread affitinity handling, use trivial hash of the full file handle.
ZFS's struct zfid_short does not have padding field after the length field,
as result, originally picked 8 bytes are loosing lower 16 bits of object ID,
causing many false matches and unneeded requests affinity to same thread.
  This fix substantially improves NFS server latency and scalability in SPEC
NFS benchmark by more flexible use of multiple NFS threads.

Sponsored by: iXsystems, Inc.

10 years agoMention RDRAND and Xen PVHVM. Add a revision number for 4TB RAM support on amd64.
Craig Rodrigues [Mon, 23 Dec 2013 08:22:08 +0000 (08:22 +0000)]
Mention RDRAND and Xen PVHVM.  Add a revision number for 4TB RAM support on amd64.

10 years agoAdd notes for ARM.
Craig Rodrigues [Mon, 23 Dec 2013 07:58:46 +0000 (07:58 +0000)]
Add notes for ARM.

10 years agoFix text for loading Hyper-V drivers via loader.conf.
Craig Rodrigues [Mon, 23 Dec 2013 07:35:34 +0000 (07:35 +0000)]
Fix text for loading Hyper-V drivers via loader.conf.

Noticed by: hrs

10 years agoFix linewrapping behaviour for CJK fullwidth characters.
Ed Schouten [Mon, 23 Dec 2013 05:47:27 +0000 (05:47 +0000)]
Fix linewrapping behaviour for CJK fullwidth characters.

Instead of only wrapping when in the 'wrapped state', also force
wrapping when the character to be rendered does not fit on the line
anymore.

Tested by: lwhsu

10 years agoGet rid of register keyword usage in gperf, it is totally obsolete for
Dimitry Andric [Mon, 23 Dec 2013 00:02:18 +0000 (00:02 +0000)]
Get rid of register keyword usage in gperf, it is totally obsolete for
C++, and this allows gperf to be compiled for C++11 without a warning
about it.

MFC after: 3 days

10 years agoAdd PPS support to the am335x timer driver. This uses the timer hardware's
Ian Lepore [Sun, 22 Dec 2013 23:03:29 +0000 (23:03 +0000)]
Add PPS support to the am335x timer driver.  This uses the timer hardware's
capture mode together with the timecounter's PPS polling feature to get
very accurate PPS capture without any interrupt processing (or latency).

Hardware timers 4 through 7 have associated capture-trigger input pins.
When the PPS support is compiled in the code automatically chooses the
first timer it finds that has the capture-trigger pin set to input mode
(this is configured via the fdt data).

10 years agoAdd updates for Raspberry PI support, unmapped VMIO, netmap(4), nvme(4).
Craig Rodrigues [Sun, 22 Dec 2013 22:56:45 +0000 (22:56 +0000)]
Add updates for Raspberry PI support, unmapped VMIO, netmap(4), nvme(4).

10 years agoA variety of cleanups...
Ian Lepore [Sun, 22 Dec 2013 21:44:32 +0000 (21:44 +0000)]
A variety of cleanups...
 - Use named constants for register bits, instead of mystery numebrs
   scattered around in the code.
 - Use inline functions for bus space read/write, instead of macros
   that rely on global variables.
 - Move the timecounter struct into the softc instead of treating it
   as a global variable.  Backlink from it to the softc.
 - This leaves a pointer to the softc as the only static/global variable
   and it's now used only by DELAY().

10 years agoMap out all the timer-related registers, and define named constants for
Ian Lepore [Sun, 22 Dec 2013 21:35:18 +0000 (21:35 +0000)]
Map out all the timer-related registers, and define named constants for
the bits within the registers.

10 years agoIn usr.bin/sort/radixsort.c, pop_ls_mt() is only referenced if
Dimitry Andric [Sun, 22 Dec 2013 20:46:31 +0000 (20:46 +0000)]
In usr.bin/sort/radixsort.c, pop_ls_mt() is only referenced if
SORT_THREADS is defined, so make the whole function conditional, instead
of just the pthread calls in it.

MFC after: 3 days

10 years agoShorten the DMTIMER_ prefix used for register names to DMT_. This is in
Ian Lepore [Sun, 22 Dec 2013 20:40:56 +0000 (20:40 +0000)]
Shorten the DMTIMER_ prefix used for register names to DMT_.  This is in
preparation for adding more complete register defintions, some of which
have fairly long names.

10 years agoAdd a parameter to 'vcpu_set_state()' to enforce that the vcpu is in the IDLE
Neel Natu [Sun, 22 Dec 2013 20:29:59 +0000 (20:29 +0000)]
Add a parameter to 'vcpu_set_state()' to enforce that the vcpu is in the IDLE
state before the requested state transition. This guarantees that there is
exactly one ioctl() operating on a vcpu at any point in time and prevents
unintended state transitions.

More details available here:
http://lists.freebsd.org/pipermail/freebsd-virtualization/2013-December/001825.html

Reviewed by: grehan
Reported by: Markiyan Kushnir (markiyan.kushnir at gmail.com)
MFC after: 3 days

10 years agoFix incorrect header guard define in sys/netpfil/pf/pf.h, which snuck in
Dimitry Andric [Sun, 22 Dec 2013 19:47:22 +0000 (19:47 +0000)]
Fix incorrect header guard define in sys/netpfil/pf/pf.h, which snuck in
in r257186.  Found by clang 3.4.

10 years agoGroup virtualization items in one section.
Craig Rodrigues [Sun, 22 Dec 2013 19:38:51 +0000 (19:38 +0000)]
Group virtualization items in one section.

10 years agoAdd a note for Microsoft Hyper-V.
Craig Rodrigues [Sun, 22 Dec 2013 19:33:15 +0000 (19:33 +0000)]
Add a note for Microsoft Hyper-V.

10 years agoImprove section on carp(4) updates.
Craig Rodrigues [Sun, 22 Dec 2013 19:11:06 +0000 (19:11 +0000)]
Improve section on carp(4) updates.
Add some revision numbers.

10 years agoTo avoid having to explicitly test COMPILER_TYPE for setting
Dimitry Andric [Sun, 22 Dec 2013 17:51:33 +0000 (17:51 +0000)]
To avoid having to explicitly test COMPILER_TYPE for setting
clang-specific or gcc-specific flags, introduce the following new
variables for use in Makefiles:

CFLAGS.clang
CFLAGS.gcc
CXXFLAGS.clang
CXXFLAGS.gcc

In bsd.sys.mk, these get appended to the regular CFLAGS or CXXFLAGS for
the right compiler.

MFC after: 1 week

10 years agoBootstrap etcupdate(8) as part of the release build, similar
Glen Barber [Sun, 22 Dec 2013 16:12:47 +0000 (16:12 +0000)]
Bootstrap etcupdate(8) as part of the release build, similar
to what is done for mergemaster(8).  This allows etcupdate(8)
to work out-of-box after the first upgrade of a system.

Submitted by: jhb
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoAdd Freescale i.MX515 vt(9) driver.
Aleksandr Rybalko [Sun, 22 Dec 2013 16:09:29 +0000 (16:09 +0000)]
Add Freescale i.MX515 vt(9) driver.

Sponsored by: The FreeBSD Foundation

10 years agoUpdate names from newcons to vt(9).
Aleksandr Rybalko [Sun, 22 Dec 2013 15:33:15 +0000 (15:33 +0000)]
Update names from newcons to vt(9).

Sponsored by: The FreeBSD Foundation

10 years agoApply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
Dimitry Andric [Sun, 22 Dec 2013 14:14:53 +0000 (14:14 +0000)]
Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
zoulasc) to contrib/file:

  don't write a char to a pointer.

MFC after: 3 days

10 years agoFor gnu/lib/csu, only use gcc-specific flags when compiling with gcc.
Dimitry Andric [Sun, 22 Dec 2013 12:53:56 +0000 (12:53 +0000)]
For gnu/lib/csu, only use gcc-specific flags when compiling with gcc.

MFC after: 3 days

10 years agoFix fallout from r258479: in pf_free_src_node() the node must already
Gleb Smirnoff [Sun, 22 Dec 2013 12:10:36 +0000 (12:10 +0000)]
Fix fallout from r258479: in pf_free_src_node() the node must already
be unlinked.

Reported by: Konstantin Kukushkin <dark rambler-co.ru>
Sponsored by: Nginx, Inc.

10 years agoMention virtio support.
Craig Rodrigues [Sun, 22 Dec 2013 11:41:26 +0000 (11:41 +0000)]
Mention virtio support.

10 years agodrm: Lower priority of "EDID checksum is invalid" message
Jean-Sébastien Pédron [Sun, 22 Dec 2013 11:11:23 +0000 (11:11 +0000)]
drm: Lower priority of "EDID checksum is invalid" message

The priority goes from "error" to "debug".

Connectors are polled every 10 seconds. Reading EDID is part of this
polling. However, when an invalid EDID is returned, this error message
is logged. When using Newcons for instance, having a kernel message
every 10 seconds is getting annoying.

Now that it's a debug message, it'll be logged only if hw.dri.debug is
enabled. This fix console spamming for some users.

Tested by: Larry Rosenman <ler@lerctr.org>

10 years agoMention addition of vmx(4).
Craig Rodrigues [Sun, 22 Dec 2013 11:10:08 +0000 (11:10 +0000)]
Mention addition of vmx(4).

10 years agoMention ZFS zio nop-write improvement.
Craig Rodrigues [Sun, 22 Dec 2013 10:58:40 +0000 (10:58 +0000)]
Mention ZFS zio nop-write improvement.

10 years agoAdd some revision numbers.
Craig Rodrigues [Sun, 22 Dec 2013 10:52:51 +0000 (10:52 +0000)]
Add some revision numbers.

10 years agoRe-order ZFS items.
Craig Rodrigues [Sun, 22 Dec 2013 10:50:09 +0000 (10:50 +0000)]
Re-order ZFS items.

10 years agoMention TRIM support for ZFS.
Craig Rodrigues [Sun, 22 Dec 2013 10:42:47 +0000 (10:42 +0000)]
Mention TRIM support for ZFS.

10 years agoAdd revision number for iSCSI initiator.
Craig Rodrigues [Sun, 22 Dec 2013 10:33:01 +0000 (10:33 +0000)]
Add revision number for iSCSI initiator.

10 years agoMention that GCC is not built on platforms where CLANG is the default system
Craig Rodrigues [Sun, 22 Dec 2013 10:24:14 +0000 (10:24 +0000)]
Mention that GCC is not built on platforms where CLANG is the default system
compiler.

10 years agoAdd revision number for BIND removal.
Craig Rodrigues [Sun, 22 Dec 2013 09:40:03 +0000 (09:40 +0000)]
Add revision number for BIND removal.

10 years agoAdd item for clang 3.3 update.
Craig Rodrigues [Sun, 22 Dec 2013 09:27:57 +0000 (09:27 +0000)]
Add item for clang 3.3 update.

10 years agoConsolidate the virtual apic initialization in a single function: vlapic_reset()
Neel Natu [Sun, 22 Dec 2013 00:08:00 +0000 (00:08 +0000)]
Consolidate the virtual apic initialization in a single function: vlapic_reset()

10 years agoSet the PMC trapframe macros appropriately
Justin Hibbits [Sun, 22 Dec 2013 00:04:50 +0000 (00:04 +0000)]
Set the PMC trapframe macros appropriately

MFC after: 2 weeks

10 years agoMinor grammar fix
Chris Rees [Sat, 21 Dec 2013 21:56:12 +0000 (21:56 +0000)]
Minor grammar fix

PR: docs/185057
Submitted by: Yuri (yuri@rawbw.com)
Approved by: gjb (mentor)

10 years agogcc: warnings from -Wformat-security
Pedro F. Giffuni [Sat, 21 Dec 2013 19:53:51 +0000 (19:53 +0000)]
gcc: warnings from -Wformat-security

Minor mismatch in r259666.

Obtained from: Apple GCC 4.2 - 5646 (Radar 5764921)
MFC after: 1 week

10 years agoDocument the lack of chflags support in pax(1)
Chris Rees [Sat, 21 Dec 2013 19:29:08 +0000 (19:29 +0000)]
Document the lack of chflags support in pax(1)

PR: docs/135516
Submitted by: arundel (based on)
Approved by: gjb (mentor)

10 years agoMove the installer's keymap solution introduced by SVN r259468. The new
Devin Teske [Sat, 21 Dec 2013 16:43:40 +0000 (16:43 +0000)]
Move the installer's keymap solution introduced by SVN r259468. The new
location of /etc/rc.local on the install media is more appropriate as it
knows serial vs. non-serial and can also do the change earlier (so that
even the initial Install dialog can benefit from the change).

MFC after: 3 days

10 years agoPlumb the cn_grab and cn_ungrab routines down into the uart
Warner Losh [Sat, 21 Dec 2013 16:23:31 +0000 (16:23 +0000)]
Plumb the cn_grab and cn_ungrab routines down into the uart
clients. Mask RX interrupts while grabbed on the atmel serial
driver. This UART interrupts every character. When interrupts are
enabled at the mountroot> prompt, this means the ISR eats the
characters. Rather than try to create a cooperative buffering system
for the low level kernel console, instead just mask out the ISR. For
NS8250 and decsendents this isn't needed, since interrupts only happen
after 14 or more characters (depending on the fifo settings). Plumb
such that these are optional so there's no change in behavior for all
the other UART clients. ddb worked on this platform because all
interrupts were disabled while it was running, so this problem wasn't
noticed. The mountroot> issue has been around for a very very long
time.

MFC after: 3 days

10 years agodrm/ttm, drm/radeon: Replace EINTR/ERESTART by ERESTARTSYS...
Jean-Sébastien Pédron [Sat, 21 Dec 2013 15:40:36 +0000 (15:40 +0000)]
drm/ttm, drm/radeon: Replace EINTR/ERESTART by ERESTARTSYS...

... for msleep/cv_*wait() return values, where wait_event*() is used
on Linux. ERESTARTSYS is the return code expected by callers when the
operation was interrupted.

For instance, this is the case of radeon_cs_ioctl() (radeon_cs.c): if
an error occurs, and the code isn't ERESTARTSYS (eg. EINTR), it logs an
error.

Note that ERESTARTSYS is defined as ERESTART, but this keeps callers'
code close to Linux.

Submitted by: avg@ (previous version)

10 years agoHonor WITHOUT_CASPER.
Glen Barber [Sat, 21 Dec 2013 15:16:28 +0000 (15:16 +0000)]
Honor WITHOUT_CASPER.

Sponsored by: The FreeBSD Foundation

10 years agoHonor WITHOUT_CASPER.
Glen Barber [Sat, 21 Dec 2013 15:02:47 +0000 (15:02 +0000)]
Honor WITHOUT_CASPER.

Sponsored by: The FreeBSD Foundation

10 years agoIn r248885 I have reduced size of fake uio resid that ng_ksocket(4) passes
Gleb Smirnoff [Sat, 21 Dec 2013 14:41:32 +0000 (14:41 +0000)]
In r248885 I have reduced size of fake uio resid that ng_ksocket(4) passes
to the soreceive(). This exposed a bug. When reading from a raw socket,
when our fake limit is depleted, we receive a truncated mbuf chain, with
m->m_pkthdr.len > m_length(m). The first problem is that MSG_TRUNC was not
handled. The second one is that we didn't reinit uio_resid in our endless
loop (neither flags), and if socket buffer contained several records, then
we quickly deplete our fake limit. The third bug, actually introduced in
r248885, is that MJUMPAGESIZE isn't enough to handle maximum packet that
ng_ksocket(4) can theoretically receive.

Changes:
- Reinit uio_resid and flags before every call to soreceive().
- Set maximum acceptable size of packet to IP_MAXPACKET. As for now the
  module doesn't support INET6.
- Properly handle MSG_TRUNC return from soreceive().

PR: 184601
Submitted & tested by: Viktor Velichkin <avisom yandex.ru>
Sponsored by: Nginx, Inc.

10 years agoSupport double-width characters in vt(9)
Ed Maste [Sat, 21 Dec 2013 13:58:55 +0000 (13:58 +0000)]
Support double-width characters in vt(9)

Normal and bold fonts each have a glyph map for single or left half-
glyphs, and right half glyphs.  The flag TF_CJK_RIGHT in term_char_t
requests the right half-glyph.

Reviewed by: ed@
Sponsored by: The FreeBSD Foundation

10 years agovga_pci: Improve boot display detection
Jean-Sébastien Pédron [Sat, 21 Dec 2013 12:55:42 +0000 (12:55 +0000)]
vga_pci: Improve boot display detection

The previous code was checking the "VGA Enable" bit on the video card's
parent PCI-to-PCI bridge only. This didn't work for the case where the
video card is attached to the root PCI bus (ie. the card has no parent
PCI-to-PCI bridge).

Now, the new code:
    1. checks the "VGA Enable" bit on the parent bridge only if it's a
       PCI-to-PCI bridge;
    2. always checks the "I/O" and "Memory address space decoding" bits
       on the video card itself.

However, vendor-specific bits are not used.

This fixes the use of many integrated Radeon cards: without this patch,
we fail to detect them as the boot display and, when radeonkms looks for
the Video BIOS, it skips the shadow copy made by the System BIOS. It
then fails to fully initialize the card, because the shadow copy is the
only way to read the Video BIOS in these situations. A workaround was to
force the boot display selection using the "hw.pci.default_vgapci_unit"
tunable.

A previous version of this patch added a new function doing the checks.
Now, the vga_pci_is_boot_display() function is used to perform the
checks (only until the boot display is found) and return if the given
device is the boot display or not.

Furthermore, vga_pci_attach() logs "Boot video device" if the card being
attached it the Chosen One:
    vgapci0: <VGA-compatible display> [...]
    vgapci0: Boot video device

Reviewed by: kib@, jhb@ (both a previous version)
Tested by: lunatic_ (#freebsd-xorg, integrated Radeon card,
xmj (#freebsd-xorg, i915+NVIDIA cards)

10 years agoFix build with WITHOUT_CAPSICUM.
Glen Barber [Sat, 21 Dec 2013 12:45:35 +0000 (12:45 +0000)]
Fix build with WITHOUT_CAPSICUM.

Submitted by: dt71 gmx com
Sponsored by: The FreeBSD Foundation

10 years agoswapon: Fix buffer overflow when configuring encrypted swap on GBDE.
Jilles Tjoelker [Sat, 21 Dec 2013 11:59:58 +0000 (11:59 +0000)]
swapon: Fix buffer overflow when configuring encrypted swap on GBDE.

PR: bin/184950
Tested by: Radim Kolar
MFC after: 3 days

10 years agoAdd suspend/resume state saving for OpenPIC on PowerMac. It's likely this
Justin Hibbits [Sat, 21 Dec 2013 04:31:54 +0000 (04:31 +0000)]
Add suspend/resume state saving for OpenPIC on PowerMac.  It's likely this
can be used on the others (cpcht and psim), but that has not been tested.

10 years agoAdd quirks to make my old SanDisk Cruzer Mini 128MB happy.
Don Lewis [Sat, 21 Dec 2013 03:05:13 +0000 (03:05 +0000)]
Add quirks to make my old SanDisk Cruzer Mini 128MB happy.

MFC after: 1 week

10 years agoFix a brain-o. I had misread the limit as a size, but it's a pointer.
Justin Hibbits [Sat, 21 Dec 2013 00:37:32 +0000 (00:37 +0000)]
Fix a brain-o.  I had misread the limit as a size, but it's a pointer.

Submitted by: Howard Su
MFC after: 2 weeks
X-MFC-with: r259668

10 years agobump Dd
John-Mark Gurney [Sat, 21 Dec 2013 00:15:37 +0000 (00:15 +0000)]
bump Dd

Reminded by: gjb

10 years agoAdd suspend/resume to DBDMA and ATA on PowerMacs.
Justin Hibbits [Sat, 21 Dec 2013 00:07:56 +0000 (00:07 +0000)]
Add suspend/resume to DBDMA and ATA on PowerMacs.

This, and several subsequent commits, are suspend/resume for various PowerMac
drivers, which will include a change to the global suspend/resume code
eventually.

10 years agodocument the m_getjcl function...
John-Mark Gurney [Fri, 20 Dec 2013 23:57:05 +0000 (23:57 +0000)]
document the m_getjcl function...

10 years agodocument how to install when src is newer than the world.. This allows
John-Mark Gurney [Fri, 20 Dec 2013 23:34:10 +0000 (23:34 +0000)]
document how to install when src is newer than the world..  This allows
people to build -current systems from older systems...

Thanks to:      Thomas Mueller

10 years agoFix a couple bugs in FBT PowerPC. Clamp the size to a 'instruction size' not
Justin Hibbits [Fri, 20 Dec 2013 23:18:14 +0000 (23:18 +0000)]
Fix a couple bugs in FBT PowerPC.  Clamp the size to a 'instruction size' not
'byte size', and fix a typo.

MFC after: 2 weeks

10 years agoExtend libteken to support CJK fullwidth characters.
Ed Schouten [Fri, 20 Dec 2013 21:31:50 +0000 (21:31 +0000)]
Extend libteken to support CJK fullwidth characters.

Introduce a new formatting bit (TF_CJK_RIGHT) that is set when putting a
cell that is the right part of a CJK fullwidth character. This will
allow drivers like vt(9) to support fullwidth characters properly.

emaste@ has a patch to extend vt(9)'s font handling to increase the
number of Unicode -> glyph maps from 2 ({normal,bold)} to 4
({normal,bold} x {left,right}). This will need to use this formatting
bit to determine whether to draw the left or right glyph.

Reviewed by: emaste

10 years agogcc: clean some warnings from -Wformat-security
Pedro F. Giffuni [Fri, 20 Dec 2013 20:57:13 +0000 (20:57 +0000)]
gcc: clean some warnings from -Wformat-security

Obtained from: Apple GCC 4.2 - 5646 (Radar 5764921)
MFC after: 1 week

10 years agoAdd another Haswell model (0x45) to the set of supported chips.
George V. Neville-Neil [Fri, 20 Dec 2013 20:22:10 +0000 (20:22 +0000)]
Add another Haswell model (0x45) to the set of supported chips.
Model 0x45 appears, for example, in late 2013 Mac Book Pro models
and is properly emulated by VMware.

10 years agoMove list of ttys handling from the allocating procedures, to the
Gleb Smirnoff [Fri, 20 Dec 2013 19:45:51 +0000 (19:45 +0000)]
Move list of ttys handling from the allocating procedures, to the
device creation stage. A device creation can fail, and in that case
an entry already on the list will be freed.

Sponsored by: Nginx, Inc.

10 years agoFix build.
Gleb Smirnoff [Fri, 20 Dec 2013 19:44:29 +0000 (19:44 +0000)]
Fix build.

10 years agoRevert r259619:
Pedro F. Giffuni [Fri, 20 Dec 2013 18:16:02 +0000 (18:16 +0000)]
Revert r259619:
Fixes GCC libstdc++/29286

The fix seems to work for amd64 but causes segfaults on powerpc.
At this time gcc is much more important on powerpc than on amd64.

Reported by: andreast

10 years agogcc: revert Rvalue references.
Pedro F. Giffuni [Fri, 20 Dec 2013 18:09:34 +0000 (18:09 +0000)]
gcc: revert Rvalue references.

They are very useful but at this time I prefer not to figure out
some  minor conflicts with the bigger Apple's blocks support
patch that is being worked on for current.

10 years agoRemove several linear list traversals per request from RPC server code.
Alexander Motin [Fri, 20 Dec 2013 17:39:07 +0000 (17:39 +0000)]
Remove several linear list traversals per request from RPC server code.

  Do not insert active ports into pool->sp_active list if they are success-
fully assigned to some thread.  This makes that list include only ports that
really require attention, and so traversal can be reduced to simple taking
the first one.

  Remove idle thread from pool->sp_idlethreads list when assigning some
work (port of requests) to it.  That again makes possible to replace list
traversals with simple taking the first element.

10 years agoAdd suspend/resume handlers for ATI backlight ppc driver.
Justin Hibbits [Fri, 20 Dec 2013 16:37:03 +0000 (16:37 +0000)]
Add suspend/resume handlers for ATI backlight ppc driver.

With this, also shut shut off the display (DPMS-style) and disable the clocking
when the backlight level is set to 0.  This is taken from the radeonkms driver
(radeon_legacy_encoders.c) which doesn't yet support PowerPC, and won't for a
while, as it's missing full AGP support.

10 years agogcc: merge upstream fix and new feature.
Pedro F. Giffuni [Fri, 20 Dec 2013 16:01:02 +0000 (16:01 +0000)]
gcc: merge upstream fix and new feature.

Fix for PR c++/29928

Add support for Rvalue references as described here:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html

Obtained from: gcc 4.3 (rev. 124724, 125211; GPLv2)
MFC after: 2 weeks

10 years agoEnable AltGr key by default.
Aleksandr Rybalko [Fri, 20 Dec 2013 15:45:22 +0000 (15:45 +0000)]
Enable AltGr key by default.

Asked by: many
Sponsored by: The FreeBSD Foundation

10 years agoSet mouse level per window, instead of global.
Aleksandr Rybalko [Fri, 20 Dec 2013 15:37:57 +0000 (15:37 +0000)]
Set mouse level per window, instead of global.

Sponsored by: The FreeBSD Foundation

10 years agogcc: more diff reductions against Apple GCC.
Pedro F. Giffuni [Fri, 20 Dec 2013 14:56:52 +0000 (14:56 +0000)]
gcc: more diff reductions against Apple GCC.

Mostly cosmetical changes to aid further merges.

Obtained from: gcc 4.3 (rev. 120611, 124839; GPLv2)
MFC after: 1 week

10 years agoo Remove assertions on ipa_version as sometimes the version detection
Attilio Rao [Fri, 20 Dec 2013 14:03:56 +0000 (14:03 +0000)]
o Remove assertions on ipa_version as sometimes the version detection
  using cpuid can be quirky (this is the case of VMWare without the
  vPMC support) but fail to probe hwpmc.
o Apply the fix for XEON family of processors as established by
  315338-020 document (bug AJ85).

Sponsored by: EMC / Isilon storage division
Reviewed by: fabient

10 years agoFix build broken in r259644.
Gleb Smirnoff [Fri, 20 Dec 2013 13:18:50 +0000 (13:18 +0000)]
Fix build broken in r259644.

Submitted by: tuexen
Pointy hat to: glebius

10 years agoFurther split kvm(3) and sysctl interfaces for route table printing.
Alexander V. Chernikov [Fri, 20 Dec 2013 12:08:36 +0000 (12:08 +0000)]
Further split kvm(3) and sysctl interfaces for route table printing.

MFC after: 4 weeks
Sponsored by: Yandex LLC

10 years agoixgbe(4) takes packet counters from hardware in ixgbe_update_stats_counters(),
Gleb Smirnoff [Fri, 20 Dec 2013 10:57:47 +0000 (10:57 +0000)]
ixgbe(4) takes packet counters from hardware in ixgbe_update_stats_counters(),
so we don't need to do a per packet increment, which trashes cache line.

Submitted by: oleg

10 years agoDisable the now unpredicably bogus check for whether we have
Adrian Chadd [Fri, 20 Dec 2013 07:41:03 +0000 (07:41 +0000)]
Disable the now unpredicably bogus check for whether we have
eneough queue space before queuing a bunch of IP fragments.

As the comment in the committed change says, in the post-if_transmit(),
post-SMP, post-preemption world, there's just too much overlapping
concurrent code paths and different approaches to driver transmit
queue management to have this code even remotely be effective.

The only specific place it could be useful is if ALTQ is enabled
but again it doesn't at all promise that all the fragments will be
transmitted anyway.

The main reason for committing this change is to disable a parallel
place where the drops counter is incremented.  This is a side effect
of an upcoming change to ixgbe/cxgbe to handle the queue drops
counter slightly better.

Sponsored by: Netflix, Inc.

10 years agoRe-arrange bits in the amd64/pmap 'pm_flags' field.
Neel Natu [Fri, 20 Dec 2013 05:50:22 +0000 (05:50 +0000)]
Re-arrange bits in the amd64/pmap 'pm_flags' field.

The least significant 8 bits of 'pm_flags' are now used for the IPI vector
to use for nested page table TLB shootdown.

Previously we used IPI_AST to interrupt the host cpu which is functionally
correct but could lead to misleading interrupt counts for AST handler. The
AST handler was also doing a lot more than what is required for the nested
page table TLB shootdown (EOI and IRET).

10 years agoAdd identification and necessary type checks for Krait CPU cores. Krait CPU is used in
Ganbold Tsagaankhuu [Fri, 20 Dec 2013 00:56:23 +0000 (00:56 +0000)]
Add identification and necessary type checks for Krait CPU cores. Krait CPU is used in
Qualcomm Snapdragon S4 and Snapdragon 400/600/800 SoCs and has architectural
similarities to ARM Cortex-A15. As for development boards IFC6400 series embedded
boards from Inforce Computing uses Snapdragon S4 Pro/APQ8064.

Approved by: stas (mentor)

10 years agoUse more fine-grained kvm(3) symbol lookup: routing code retrieves only
Alexander V. Chernikov [Fri, 20 Dec 2013 00:17:26 +0000 (00:17 +0000)]
Use more fine-grained kvm(3) symbol lookup: routing code retrieves only
necessary symbols needed per subsystem. Main kvm(3) init is now delayed
as much as possbile. This finally fixes performance issues reported in
kern/167204.
Some non-working code (ng_socket.ko symbol addresses calculation) removed.
Some global variables eliminated.

PR: kern/167204
MFC after: 4 weeks

10 years agoAdd an option to ignore accesses by the guest to unimplemented MSRs.
Neel Natu [Thu, 19 Dec 2013 22:27:28 +0000 (22:27 +0000)]
Add an option to ignore accesses by the guest to unimplemented MSRs.

Also, ignore a couple of SandyBridge uncore PMC MSRs that Centos 6.4 writes
to during boot.

Reviewed by: grehan