Commit Graph

197078 Commits

Author SHA1 Message Date
gjb
30e366f556 Connect the UEFI-capable memstick.img to the build.
This is a direct commit to stable/10, as the script
in head/ does UEFI by default.

Approved by:	re (rodrigc)
Sponsored by:	The FreeBSD Foundation
2014-09-09 21:07:21 +00:00
emaste
884e0cd091 MFC improved vt(4) font generation
r266851: Add VGAROM 8x8, 8x14 and 8x16 fonts for vt(4)

  These are converted from syscons(4) cp437 fonts.

r267306: Add vgarom font source

  These are in 'GNU Unifont' format, and are converted from syscons(4)
  cp437 fonts.

r267400: Add thin versions of VGAROM 8x8 and 8x16 fonts for vt(4)

  These are converted from syscons(4) cp437-thin-8x* fonts.

r267423: Build vt(4) fonts during buildworld

  vtfontcvt(8) is now built during buildworld, so can be used as a
  bootstrap tool to create vt(4) fonts from source .hex or .bdf font
  files, rather than having uuencoded binary fonts in the tree.

r267578: Add glyphs from converted syscons iso* fonts

  This consists of the unique glyphs from the following font files in
  /usr/share/syscons/fonts:

  iso*.fnt     ISO-8859-1 West European
  iso02*.fnt   ISO-8859-2 Central European
  iso04*.fnt   ISO-8859-4 Baltic
  iso05*.fnt   ISO-8859-5 Cyrillic
  iso07*.fnt   ISO-8859-7 Greek
  iso08*.fnt   ISO-8859-8 Hebrew
  iso09*.fnt   ISO-8859-9 Turkish
  iso15*.fnt   ISO-8859-15 West European

r268022: Rename the WITHOUT_VT_SUPPORT knob to WITHOUT_VT

  The _SUPPORT knobs have a consistent meaning which differs from the
  behaviour controlled by this knob.  As the knob is opt-out and has not
  appeared in a release the impact should be low.

Approved by:	re
Sponsored by:	The FreeBSD Foundation
2014-09-09 20:36:56 +00:00
ian
a029ba8e5f MFC r270065:
Move the imx6 sysctl temperature info to hw.imx6 where all the other
  soc-wide info lives.  It was under dev.imx6_anatop.0.

Approved by:	re(gjb)
2014-09-09 19:47:35 +00:00
ian
ba4eeb7160 MFC r270858, 270879:
Remove duplicated option FDT from individual Wandboard configs, leave
  the one in the common IMX6 file that they all include.

Approved by:	re(gjb)
2014-09-09 19:26:55 +00:00
ian
d8cb26ab27 MFC r270862, r270878: MMU fixes for kernel startup.
Fix the handling of MMU type in the AP entry code.  The ARM_MMU_V6/V7
  symbols are always #defined to 0 or 1, so use #if SYM not #if defined(SYM).
  Also, it helps if you include the header file that defines the symbols.

  The Marvell PJ4B cpu family is armv7, not armv6.

Approved by:	re(gjb)
2014-09-09 18:17:43 +00:00
gjb
c32d713587 Document SA-14:18.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-09 17:38:55 +00:00
emaste
63b0cc75c9 MFC UEFI memstick build script
r264935 (gjb):

    Add a separate script to build the memstick.img and the
    mini-memstick.img with UEFI support.

    As the comments in the file suggest, 1) there must
    be existing ${.OBJDIR}/usr/src/release/{release,bootonly};
    2) TARGET/TARGET_ARCH must be amd64; and 3) it must be
    a vt(4)-enabled kernel with vt_efifb (*not* vt_vga).

    This script is not hooked into release/Makefile in any way
    until further testing is complete.

r264992 (nwhitehorn):

    Make a dual-boot BIOS/UEFI memstick image. Testing required before
    this gets renamed make-memstick.sh.

r265017 (nwhitehorn):

    loader's GPT support on BIOS does not seem to like the root
    filesystem being the last filesystem on the disk for some reason
    when made by this script. Add a vestigial swap partition to allow
    this to boot with QEMU BIOS.

Approved by:	re
Sponsored by:	The FreeBSD Foundation
2014-09-09 16:11:04 +00:00
glebius
39bf2b6509 Merge r270928: explicitly free packet on PF_DROP, otherwise a "quick"
rule with "route-to" may still forward it.

PR:		177808
Approved by:	re (gjb)
2014-09-09 10:29:27 +00:00
ngie
e55bc1f0d7 MFC r267176, r267181, r268445 (ATF-related commits):
Phabric: https://reviews.freebsd.org/D706
Approved by: rpaulo (mentor)
Approved by: re (gjb)
Reviewed by: jmmv
Sponsored by: EMC / Isilon Storage Division

r267176:

 Add the *_TESTS_SH_SED_* functionality to atf.test.mk.

 This exists already in plain.test.mk and tap.test.mk and should have been
 added to atf.test.mk too when the feature was first introduced.

 (It is probably time to address the related TODOs but I will do that
 separately.)

r267181:

 Move atf-sh from /usr/bin/ to /usr/libexec/

 In r266650, we made libatf-c and libatf-c++ private libraries so that no
 components outside of the source tree could unintendedly depend on them.

 This change does the same for the "atf-sh library" by moving the atf-sh
 interpreter from its public location in /usr/bin/ to the private location
 in /usr/libexec/.  Our build system will ensure that our own test programs
 use the right binary, but users won't be able to depend on atf-sh by
 "mistake".

 Committing this now to ride the UPDATING notice added with r267172 today.

r268445:

 Fix atf-sh's integration_test

 With the move of atf-sh into /usr/libexec in r267181, some of the
 tests in the integration_test program broke because they could not
 execute atf-sh from the path any longer.

 This slipped through because I do have a local atf installation in
 my home directory that appears in my path, hence the tests could
 still execute my own version.

 Fix this by forcing /usr/libexec to appear at the beginning of the
 path when attempting to execute atf-sh.

 To make upgrading easy (and to avoid an unnecessary entry in UPDATING),
 make integration_test depend on the Makefile so that a rebuild of the
 shell script is triggered.  This requires a hack in the *.test.mk files
 to ensure the Makefile is not treated as a source to the generated
 program.  Ugly, I know, but I don't have a better way of doing this at
 the moment.  Will think of one once I address the TODO in the *.test.mk
 files that suggests generalizing the file generation functionality.

 PR:		191052
 Reviewed by:	Garrett Cooper
2014-09-09 04:00:30 +00:00
emaste
352b5da28f MFC r265014: Report boot method (BIOS/UEFI) via sysctl machdep.bootmethod
Approved by:	re
Sponsored by:	The FreeBSD Foundation
2014-09-08 21:10:51 +00:00
ae
7bed52c05c MFC r270927:
Add the reverse part to rule #9. Also change its description in the
  netstat(8) output.

Approved by:	re (gjb)
2014-09-08 19:40:59 +00:00
gjb
259a8f66d5 - Document 263725, ctld(8) 'portal-group' is overrideable.
- Document 263726, ctld(8) 'auth-group' default entry.

Submitted by:	trasz
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 15:42:47 +00:00
gjb
8894289180 Document r263720, hostname- and IP-based restrictions added
to ctld(8).

Submitted by:	trasz
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 15:42:45 +00:00
emaste
e594c0c895 MFC r271047: Avoid ./ in zoneinfo entries in METALOG
Use of "find ." resulted in METALOG entries with an extra ./ -- e.g.,
./usr/share/zoneinfo/./America/Toronto.  Avoid this by using globbing
via "find *" instead.

Approved by:	re
Sponsored by:	DARPA, AFRL
2014-09-08 15:40:55 +00:00
emaste
e7480b54c3 MFC r270976: Allow standalone debug for non-default ${PROG} targets
This allows WITH_DEBUG_FILES to produce standalone debug for the ELF
runtime linker.

We previously disabled standalone debug files for bsd.prog.mk consumers
that included a non-default ${PROG} target, but this is not required.

Consumers that do not support standalone debug are still handled by
disabling it for statically linked binaries, and for those that specify
a non-default binary format.

Sponsored by:	DARPA, AFRL
Approved by:	re
2014-09-08 15:28:17 +00:00
gjb
f9220a91f7 Document r271260, support for /etc/rc.d/<service>/
subdirectories.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 15:00:01 +00:00
gjb
8df04a2533 Document r271234, mrsas(4) enabled in GENERIC for amd64
and i386.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:59 +00:00
gjb
41da06704c Document r271205, powerpc ATI Radeon 9700 backlight fix.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:57 +00:00
gjb
2139254e4b Document r271153, KSTACK_PAGES increased 4 -> 8 on powerpc64.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:55 +00:00
gjb
48180318a3 - Refine entry for r271130 since a follow-up commit
adds 64-bit libstand.

- Document r271135, initial UEFI boot support.

- Document r271136, boot1.efi, boot1.efifat, loader.efi
  installed to /boot.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:53 +00:00
gjb
471b8a73bc Document r271130, sys/boot/libstand moved to 32-bit specific
directory naming convention.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:51 +00:00
gjb
d2a36566dd Document r271128, several performance enhancements to vt(4).
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:49 +00:00
gjb
778da94be7 Document r271116, ofwfb updated to work with
x11-servers/xorg-server.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:47 +00:00
gjb
a434c5e9c4 Document r271111, vt(4) enabled for PS3.
Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:45 +00:00
gjb
be0094980b Document r271095, vt(4) keymap support added to the syscons
rc(8) startup script.

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-09-08 14:59:43 +00:00
jhb
f227573925 MFC 271048:
Always seek back to the beginning of a regular directory, even if the
previous seek location was 0.  Without this, readdir() would see
dd_loc of zero and call getdirentries() which would start reading
entries at the current seek location of the directory ignoring the
first batch of entries.  Also, rewinddir() should always seek so that
it reads the directory from the beginning to get updated entries.

PR:		192935
Approved by:	re (gjb)
2014-09-08 14:45:58 +00:00
des
1b9496716d MFH (r270392, r270676, r270679, r270698): add support for subdirectories in rc.conf.d
Approved by:	re (glebius)
2014-09-08 11:18:27 +00:00
kadesai
2205945995 MFC r270973
r270973
Fix for WITNESS warning while doing xpt_rescan.
This happen when converting any JBOD to RAID or creating
any new RAID from Unconfigured Drives.

Without this fix, user may see call trace if  WITNESS is enabled.
System may panic when reconfiguring the RAID.

Reviewed by: ambrisko
Approved by: re (gleb)

---
2014-09-08 08:25:33 +00:00
marcel
f2fb38d67f Fix previous commit: unbreak build of libkvm by including sys/systm.h
only when _KERNEL is defined.

Approved by:	re@ (implicit)
2014-09-07 21:40:14 +00:00
smh
a7cb473513 MFC r256956:
Improve ZFS N-way mirror read performance by using load and locality
information.

MFC r260713:
Fix ZFS mirror code for handling multiple DVA's

Also make the addition of the d_rotation_rate binary compatible. This allows
storage drivers compiled for 10.0 to work by preserving the ABI for disks.

Approved by:	re (gjb)
Sponsored by:	Multiplay
2014-09-07 21:30:47 +00:00
rodrigc
73701b0292 MFC r262351:
Remove KASSERT from in6p_lookup_mcast_ifp().

    When the devel/jenkins port, version 1.551 was started,
    the kernel would panic if INVARIANTS was enabled in the kernel config.

    Suggested by: bms

Approved by: re (gjb)
2014-09-07 20:11:23 +00:00
markj
7b2b287dbf MFC r271137:
Add mrsas(4) to GENERIC for i386 and amd64.

Approved by:	re (gjb)
2014-09-07 18:43:26 +00:00
gjb
b6cfb220f7 MFC r271078:
Fix typo: s/_maske/_mask/

Approved by:	re (rodrigc)
Sponsored by:	The FreeBSD Foundation
2014-09-07 00:44:59 +00:00
jhibbits
f971f9cd08 MFC r269701:
Set the si_code appropriately for exception-caused signals.

LLDB checks the si_code, and aborts if a code isn't known.

Approved by:	re (gjb)
Relnotes:	yes
2014-09-06 22:37:47 +00:00
marcel
1e706702bd Fix the PCPU access macros. It was found that the PCPU pointer, when
held in register r13, is used outside the bounds of critical_enter()
and critical_exit() by virtue of optimizations performed by the
compiler. The net effect being that address computations of fields
in the PCPU structure could be relative to the PCPU structure of the
CPU on which the address computation was performed and not related
to the CPU that executes the actual load or store operation.
The typical failure mode being that the per-CPU cache of UMA got
corrupted due to accesses from other CPUs.

Adding more volatile decorating to the register expression does not
help. The thinking being that volatile is assumed to work on memory
references and not register references. Thus, the fix is to perform
the address computation using a volatile inline assembly statement.

Additionally, since the reference is fundamentally non-atomic on ia64
by virtue of have a distinct address computation followed by the
actual load or store operation, it is required to wrap the entire
PCPU access in a critical section.

With PCPU_GET and friends requiring curthread now that they're in a
critical section, low-level use of these macros in functions like
cpu_switch() is not possible anymore. Consequently, a second order
set of changes is needed to avoid using PCPU_GET and friends where
curthread is either not set yet, or in the process of being changed.
In those cases, explicit dereferencing of pcpup is needed. In those
cases it is also possible to do that.

This is a direct commit to stable/10.

Approved by:	re@ (marius)
2014-09-06 22:17:54 +00:00
gjb
52ea0d605b MFC r271043:
Update the autofs(5) manual to reflect it first appeared iN
  FreeBSD 10.1-RELEASE.

Approved by:	re (marius)
Sponsored by:	The FreeBSD Foundation
2014-09-06 20:16:45 +00:00
jhibbits
021e2fad89 MFC r259657,r264205,r264207:
r259657:

Add suspend/resume capabilities to the ATI backlight ppc driver.

With this, also 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.

r264205,r264207:

Fix the ATI backlight driver off/on handling.  Now this driver works
correctly with the ATI Radeon 9700 in the PowerBook G4 1.67GHz.

Code shamelessly taken in spirit from the radeonkms driver, which I
hope will make this driver redundant in the future.

Approved by:	re (marius)
Relnotes:	yes (not suspend/resume, but the rest)
2014-09-06 19:38:40 +00:00
mav
c5202a10e4 MFC r270423:
Restore pre-r239157 handling of sched_yield(), when thread time slice
was aborted, allowing other threads to run.  Without this change thread
is just rescheduled again, that was illustrated by provided test tool.

PR:		192926
Submitted by:	eric@vangyzen.net
Approved by:	re (marius)
2014-09-06 15:26:38 +00:00
mav
273fd13216 MFC r269228:
Add support for SOUND_MIXER_INFO IOCTL, used by gstreamer.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>
Approved by:	re (marius)
2014-09-06 15:24:48 +00:00
jhb
ed4c49e7dd MFC 270826:
MFamd64: Add a machdep.bootmethod sysctl to inform the installer which
firmware method was used for booting.  This is hardcoded to BIOS on i386.

PR:		192962
Approved by:	re (gjb)
2014-09-06 15:15:06 +00:00
markj
5a094736fb MFC r270348:
Add some missing checks for unsupported interfaces (e.g. pflog(4)) when
handling ioctls. While here, remove duplicated checks for a NULL ifp in
in6_control(): this check is already done near the beginning of the
function.

MFC r270349:
Suppress warnings when retrieving protocol stats from interfaces that
don't support IPv6 (e.g. pflog(4)).

PR:		189117
Approved by:	re (gjb)
2014-09-06 04:39:26 +00:00
jhb
27eceb3a0f MFC 270722:
Correct the destroy example.  The -n argument is not needed (and is not
valid).

Approved by:	re (gjb for 10)
2014-09-05 17:44:10 +00:00
jhb
e5fbff9d81 MFC 270674:
Clarify that the -c argument clears the list of tracepoints specified by
-t (it does not clear all tracepoints).

Approved by:	re (gjb for 10)
2014-09-05 17:22:20 +00:00
jhb
2c7959e7bd MFC 270222:
Bump the default size of cpuset_t masks in userland from 128 bits to 256.

This should not be an ABI change since the various public APIs that use
cpusets all include an explicit size parameter in addition to the cpuset
parameter.

Approved by:	re (gjb)
2014-09-05 15:45:20 +00:00
jhibbits
7d1fd313b1 MFC r261095,r263464,r263752,r264189
r263464,r263752,r275189:

Mask out SRR1 bits that aren't exported to the MSR.

This appears to fix a strange condition with X on 32-bit PowerBooks I
observed, caused by one of these bits getting set in the mcontext, but
not set in the thread, which is a symptom of another problem, more
difficult to diagnose.  Since these bits aren't exported anyway, this
change makes it more explicit that the bits aren't MSR-related in SRR1.

r261095:

Fix 32-bit signal handling on ppc64.  This was broken when the
PSL_USERSTATIC macro was changed.  Since copying 64-bit srr1 into
32-bit srr1 drops the upper 32 bits, any bits set in the context were
dropped, meaning the context check fails.  Since 32-bit set_context()
can't change those bits anyway, copy the ones from the current context
(td->td_frame) before calling set_context().

Approved by:	re
Relnotes:	yes (Affects 10-stable, but not 10.0-release)
2014-09-05 15:13:41 +00:00
kib
db4159a95c MFC r270797:
Direct access to the quota files, in particular, lookup, causes lock
conflict with the quota metadata access. Mark quota vnode lock as
recursive and always exclusive to avoid the problem.

Approved by:	re (gjb)
2014-09-05 13:25:27 +00:00
kib
78a27e5e59 Add function and wrapper to switch lockmgr and vnode lock back to
auto-promotion of shared to exclusive.

Approved by:	re (gjb)
2014-09-05 13:22:28 +00:00
jhibbits
ddbdadae3d MFC r258078,258079
Increase the stack size for ppc64 from 4 pages to 8.

I found a stack overflow when a coredump was taken onto a ZFS volume with
heavy network activity.  2 DSI traps, plus one DECR trap, along with several
function calls in the stack, overflowed the 4 pages.  8 page stack fixes this.

Discussed with: nwhitehorn
Approved by:	re
Relnotes:	yes
2014-09-05 05:07:38 +00:00
emaste
38e6a286e9 Add UPDATING entry for r271116
Noticed by:	nwhitehorn
2014-09-04 21:10:24 +00:00
emaste
d483443db2 MFC boot1.efi stub loader
r264391 (nwhitehorn):

  Add a simple EFI stub loader. This is a quick and dirty of boot1.chrp
  from the PowerPC port with all the Open Firmware bits removed and
  replaced by their EFI counterparts. On the whole, I think I prefer
  Open Firmware.

  This code is supposed to be an immutable shim that sits on the EFI
  system partition, loads /boot/loader.efi from UFS and tells the real
  loader what disk/partition to look at. It finds the UFS root partition
  by the somewhat braindead approach of picking the first UFS partition
  it can find. Better approaches are called for, but this works for now.
  This shim loader will also be useful for secure boot in the future,
  which will require some rearchitecture.

r264403 (nwhitehorn):

  Fix buildworld. I had some local bits in my build tree that caused
  this to work by accident.

r264404 (nwhitehorn):

  Add my copyright here. Most of this is unmodified from the original
  sparc64 version, but at least some indication of changes that postdate
  the actual invention of EFI is probably a good idea.

r264414 (nwhitehorn):

  Apparently some of the i386 boot blocks are so close to full that
  adding single lines to ufsread.c spills them over. Duplicate a whole
  bunch of code to get file sizes into boot1.efi/boot1.c rather than
  modifying ufsread.c.

r264975 (nwhitehorn):

  Add generation of an EFI filesystem to hold boot1.efi. This is a near-
  exact copy of the code from boot1.chrp again.

  The resulting image is installed to /boot/boot1.efifat. If dd'ed to an
  800K "efi" partition, it should result in a bootable system.

r268975 (sbruno): Remove boot1.efi during clean target.

Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
2014-09-04 21:05:04 +00:00