]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAn intermittent problem with NFSv4 exporting of ZFS snapshots was
rmacklem [Tue, 24 Dec 2013 22:24:17 +0000 (22:24 +0000)]
An intermittent problem with NFSv4 exporting of ZFS snapshots was
reported to the freebsd-fs mailing list. I believe the problem was
caused by the Readdir operation using VFS_VGET() for a snapshot file entry
instead of VOP_LOOKUP(). This would not occur for NFSv3, since it
will do a VFS_VGET() of "." which fails with ENOTSUPP at the beginning
of the directory, whereas NFSv4 does not check "." or "..". This
patch adds a call to VFS_VGET() for the directory being read to check
for ENOTSUPP.
I also observed that the mount_on_fileid and fsid attributes were
not correct at the snapshot's auto mountpoints when looking at packet
traces for the Readdir. This patch fixes the attributes by doing a check
for different v_mount structure, even if the vnode v_mountedhere is not
set.

Reported by: jas@cse.yorku.ca
Tested by: jas@cse.yorku.ca
Reviewed by: asomers
MFC after: 1 week

10 years agosh: Remove an unused variable.
jilles [Tue, 24 Dec 2013 22:04:44 +0000 (22:04 +0000)]
sh: Remove an unused variable.

10 years agoMove a static const variable to the #if 0 part where it is only used.
dim [Tue, 24 Dec 2013 20:57:26 +0000 (20:57 +0000)]
Move a static const variable to the #if 0 part where it is only used.
(Note the #if 0 part has been inactive since the initial commit,
r177633, so maybe it should be removed altogether).

MFC after: 3 days

10 years agoRemove some unused static const strings under sys/rpc, which have never
dim [Tue, 24 Dec 2013 20:55:22 +0000 (20:55 +0000)]
Remove some unused static const strings under sys/rpc, which have never
been used since the initial commit (r177633).

MFC after: 3 days

10 years agogcc: Add ability to generate DWARF pubtypes section if
pfg [Tue, 24 Dec 2013 20:42:48 +0000 (20:42 +0000)]
gcc:  Add ability to generate DWARF pubtypes section if
DEBUG_PUBTYPES_SECTION is defined.

Obtained from: gcc 4.3 (rev. 118826; GPLv2)

MFC after: 2 weeks

10 years agoIn sys/netinet6/in6_mcast.c, in6m_is_ifp_detached() is only used
dim [Tue, 24 Dec 2013 20:30:13 +0000 (20:30 +0000)]
In sys/netinet6/in6_mcast.c, in6m_is_ifp_detached() is only used
whenever KTR is defined, so put it between #ifdef KTR guards.  This
avoids a warning about a unused function if KTR is not enabled.

MFC after: 3 days

10 years agoIn sys/netinet/in_mcast.c, inm_is_ifp_detached() is only used whenever
dim [Tue, 24 Dec 2013 20:25:18 +0000 (20:25 +0000)]
In sys/netinet/in_mcast.c, inm_is_ifp_detached() is only used whenever
KTR is defined, so put it between #ifdef KTR guards.  This avoids a
warning about a unused function if KTR is not enabled.

MFC after:  3 days

10 years agoAdd another HP iLO serial (console) port, found on Itanium servers.
marcel [Tue, 24 Dec 2013 19:58:27 +0000 (19:58 +0000)]
Add another HP iLO serial (console) port, found on Itanium servers.

Derived from information provided by: felip.nadal@hob.de

10 years agoRemove another unused static const variable num_chip_names, from
dim [Tue, 24 Dec 2013 18:52:36 +0000 (18:52 +0000)]
Remove another unused static const variable num_chip_names, from
aic7xxx.c this time.

Noticed by: pluknet
MFC after: 3 days

10 years agoFix copy-pasting of CJK fullwidth characters.
ed [Tue, 24 Dec 2013 18:42:26 +0000 (18:42 +0000)]
Fix copy-pasting of CJK fullwidth characters.

They are stored as two separate characters in the vtbuf, so copy-pasting
will cause them to be passed to terminal_input_char() twice. Extend
terminal_input_char() to explicitly discard characters with TF_CJK_RIGHT
set. This causes only the left part to generate input.

10 years agoFix a bug introduced at r259632, triggering infinite loop in some cases.
mav [Tue, 24 Dec 2013 17:28:27 +0000 (17:28 +0000)]
Fix a bug introduced at r259632, triggering infinite loop in some cases.

10 years agoRemove unused static const variable num_chip_names from aic79xx.c.
dim [Tue, 24 Dec 2013 16:46:06 +0000 (16:46 +0000)]
Remove unused static const variable num_chip_names from aic79xx.c.

Reviewed by: gibbs
MFC after: 3 days

10 years agoSupport soft power-off via the ACPI S5 state for bhyve guests.
jhb [Tue, 24 Dec 2013 16:14:19 +0000 (16:14 +0000)]
Support soft power-off via the ACPI S5 state for bhyve guests.
- Implement the PM1_EVT and PM1_CTL registers required by ACPI.
  The PM1_EVT register is mostly a dummy as bhyve doesn't support any
  of the hardware-initiated events.  The only bit of PM1_CNT that is
  implemented are the sleep request bits (SPL_EN and SLP_TYP) which
  request a graceful power off for S5.  In particular, for S5, bhyve
  exits with a non-zero value which terminates the loop in vmrun.sh.
- Emulate the Reset Control register at I/O port 0xcf9 and advertise
  it as the reset register via ACPI.
- Advertise an _S5 package.
- Extend the in/out interface to allow an in/out handler to request
  that the hypervisor trigger a reset or power-off.
- While here, note that all vCPUs in a guest support C1 ("hlt").

Reviewed by: neel (earlier version)

10 years agoRemove unused static function adwccbstatus() from adw(4).
dim [Tue, 24 Dec 2013 15:56:16 +0000 (15:56 +0000)]
Remove unused static function adwccbstatus() from adw(4).

Reviewed by: gibbs
MFC after: 3 days

10 years agoFix i386 build.
jhb [Tue, 24 Dec 2013 14:48:52 +0000 (14:48 +0000)]
Fix i386 build.

Pointy hat to: jhb

10 years agoFix incorrect markup introduced in r259813.
delphij [Tue, 24 Dec 2013 07:27:55 +0000 (07:27 +0000)]
Fix incorrect markup introduced in r259813.

Pointy hat to: delphij
X-MFC-after: r259813

10 years agoMFV r258374:
delphij [Tue, 24 Dec 2013 07:14:25 +0000 (07:14 +0000)]
MFV r258374:

4171 clean up spa_feature_*() interfaces

4172 implement extensible_dataset feature for use by other zpool
features

illumos/illumos-gate@2acef22db7808606888f8f92715629ff3ba555b9

MFC after: 2 weeks

10 years agoSome devices have a dual mode such as Tenda W326U and ZyXEL NWD2705,
kevlo [Tue, 24 Dec 2013 07:02:05 +0000 (07:02 +0000)]
Some devices have a dual mode such as Tenda W326U and ZyXEL NWD2705,
add the product id and use a standard scsi eject.

Tested on the ZyXEL NWD2705 wlan dongle.

10 years agoMFV r258373:
delphij [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.
rodrigc [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
rmacklem [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.
gjb [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.
gjb [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
jhb [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
rodrigc [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.
pfg [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:
jhb [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.
ray [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
emaste [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
bapt [Mon, 23 Dec 2013 17:47:04 +0000 (17:47 +0000)]
Fix yet another typo

Reported by: kib

10 years agoFix typos
bapt [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
bapt [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
emaste [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
rmacklem [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 [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
uqs [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.
rodrigc [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.
rodrigc [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.
mav [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.
rodrigc [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.
rodrigc [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.
rodrigc [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 [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
dim [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 [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).
rodrigc [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 [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 [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
dim [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 [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 [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
dim [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.
rodrigc [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.
rodrigc [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.
rodrigc [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
dim [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
gjb [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.
ray [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).
ray [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
dim [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.
dim [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
glebius [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.
rodrigc [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
dumbbell [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).
rodrigc [Sun, 22 Dec 2013 11:10:08 +0000 (11:10 +0000)]
Mention addition of vmx(4).

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

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

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

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

10 years agoAdd revision number for iSCSI initiator.
rodrigc [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
rodrigc [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.
rodrigc [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.
rodrigc [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 [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
jhibbits [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
crees [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
pfg [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)
crees [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
dteske [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
imp [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...
dumbbell [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.
gjb [Sat, 21 Dec 2013 15:16:28 +0000 (15:16 +0000)]
Honor WITHOUT_CASPER.

Sponsored by: The FreeBSD Foundation

10 years agoHonor WITHOUT_CASPER.
gjb [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
glebius [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)
emaste [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
dumbbell [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.
gjb [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 [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
jhibbits [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.
truckman [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.
jhibbits [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
jmg [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.
jhibbits [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...
jmg [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
jmg [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
jhibbits [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 [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
pfg [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.
gnn [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
glebius [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.