]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAdd support to export the contents of the notification updates from the firmware.
adrian [Sat, 29 Mar 2014 19:53:04 +0000 (19:53 +0000)]
Add support to export the contents of the notification updates from the firmware.

Right now the NIC isn't actually exporting useful data. I'm not quite sure
why this is. :(

10 years agoHook mkimg(1) to the build.
marcel [Sat, 29 Mar 2014 19:04:38 +0000 (19:04 +0000)]
Hook mkimg(1) to the build.

10 years agoAdd mkimg, a utility for making disk images from raw partition contents.
marcel [Sat, 29 Mar 2014 19:03:10 +0000 (19:03 +0000)]
Add mkimg, a utility for making disk images from raw partition contents.
The partitioning scheme can be one of the schemes supported by gpart.

Reviewed by: sjg
Obtained from: Juniper Networks, Inc.

10 years agoFix ah_powerMode setting.
adrian [Sat, 29 Mar 2014 18:56:11 +0000 (18:56 +0000)]
Fix ah_powerMode setting.

Reported by: sbruno

10 years agoVFP fixes/cleanups for ARM11:
andrew [Sat, 29 Mar 2014 14:35:36 +0000 (14:35 +0000)]
VFP fixes/cleanups for ARM11:
 * Save the required VFP registers on context switch. If the exception bit
   is set we need to save and restore the FPINST register, and if the fp2v
   bit is also set we need to save and restore FPINST2.
 * Move saving and restoring the floating point control registers to C.
 * Clear the fpexc exception and fp2v flags on a floating-point exception.
 * Signal a SIGFPE if the fpexc exception flag is set on an undefined
   instruction. This is how the ARM core signals to software there is a
   floating-point exception.

10 years agoInitialise fpscr to a sane value when we create the pcb. This sets NaNs to
andrew [Sat, 29 Mar 2014 14:17:04 +0000 (14:17 +0000)]
Initialise fpscr to a sane value when we create the pcb. This sets NaNs to
be the default NaN and for denormalised numbers to be flushed to zero.

10 years agoClear the kernel grab of the FPU state on fork. The pcb_save pointer
kib [Sat, 29 Mar 2014 11:56:33 +0000 (11:56 +0000)]
Clear the kernel grab of the FPU state on fork.  The pcb_save pointer
is already correctly reset to the FPU user save area, only PCB_KERNFPU
flag might leak from old thread state into the new state.

For creation of the user-mode thread, the change is nop since
corresponding syscall code does not use FPU.  On the other hand,
creation of a kernel thread forks from a thread selected arbitrary
from proc0, which might use FPU.

Reported and tested by: Chris Torek <torek@torek.net>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoAdd more flags for the fpexc register from the ARM1176JZF-S Manual
andrew [Sat, 29 Mar 2014 10:11:19 +0000 (10:11 +0000)]
Add more flags for the fpexc register from the ARM1176JZF-S Manual

10 years agoMFV for 263899, tzdata2014b
edwin [Sat, 29 Mar 2014 04:15:11 +0000 (04:15 +0000)]
MFV for 263899, tzdata2014b

- Update antartica.
- Comments about historical data for Hawaii.
- Update details for Crimea on 30 March
- Move location data Simferopol.

10 years agoBuild this on sparc64, where we don't have LABELSECTOR nor LABELOFFSET
marcel [Sat, 29 Mar 2014 04:05:57 +0000 (04:05 +0000)]
Build this on sparc64, where we don't have LABELSECTOR nor LABELOFFSET
defined. Improve portability by eliminating their use.

10 years agoMake this build on ia64 w/ gcc.
marcel [Sat, 29 Mar 2014 03:55:58 +0000 (03:55 +0000)]
Make this build on ia64 w/ gcc.

10 years agoFix build on i386 w/ clang.
marcel [Sat, 29 Mar 2014 03:46:36 +0000 (03:46 +0000)]
Fix build on i386 w/ clang.

10 years agoAdd a paragraph about running mkimg without arguments to get a list
marcel [Sat, 29 Mar 2014 03:39:22 +0000 (03:39 +0000)]
Add a paragraph about running mkimg without arguments to get a list
of supported schemes and/or a detailed description of how to specify
partitions.

10 years agoDocument how labels can be given to partitions.
marcel [Sat, 29 Mar 2014 03:33:31 +0000 (03:33 +0000)]
Document how labels can be given to partitions.

10 years agoHandle the raw partition of the BSD and VTOC schemes.
marcel [Sat, 29 Mar 2014 03:14:00 +0000 (03:14 +0000)]
Handle the raw partition of the BSD and VTOC schemes.

10 years agoAdd the llvm/clang patch for r263891.
dim [Sat, 29 Mar 2014 00:48:50 +0000 (00:48 +0000)]
Add the llvm/clang patch for r263891.

10 years agoMake clang default to DWARF2 debug info format for FreeBSD 10.x and
dim [Sat, 29 Mar 2014 00:25:27 +0000 (00:25 +0000)]
Make clang default to DWARF2 debug info format for FreeBSD 10.x and
earlier.  For head, this commit does not change anything, but it is
purely meant to be MFC'd.

MFC after: 3 days

10 years agoDump default media size to 1GB to reflect a fatter environment and
imp [Fri, 28 Mar 2014 23:20:56 +0000 (23:20 +0000)]
Dump default media size to 1GB to reflect a fatter environment and
larger base media.

Submitted by: Michael Dexter

10 years agoMFV r263887:
delphij [Fri, 28 Mar 2014 23:12:00 +0000 (23:12 +0000)]
MFV r263887:

3993 zpool(1M) and zfs(1M) should support -p for "list" and "get"
4700 "zpool get" doesn't support -H or -o options

MFC after: 2 weeks

10 years agoo Add new vd_driver method to do bitblt with mask, named vd_maskbitbltchr.
ray [Fri, 28 Mar 2014 22:04:27 +0000 (22:04 +0000)]
o Add new vd_driver method to do bitblt with mask, named vd_maskbitbltchr.
o Move vd_bitbltchr vga's driver method to vd_maskbitbltchr.
o Implement new vd_bitbltchr method for vga driver. (It do single write for 8
pixels, have to be a bit faster).

MFC after: 7 days
Sponsored by: The FreeBSD Foundation

10 years agoOnly set XDDESTDIR if it wasn't already set to allow people to
imp [Fri, 28 Mar 2014 16:31:12 +0000 (16:31 +0000)]
Only set XDDESTDIR if it wasn't already set to allow people to
override it.

10 years agoAdd `-S' to display syscall numbers in the output as well.
bdrewery [Fri, 28 Mar 2014 16:11:20 +0000 (16:11 +0000)]
Add `-S' to display syscall numbers in the output as well.

This is useful for debugging compat modules.

Sponsored by: EMC / Isilon Storage Division
Obtained from: Isilon OneFS (based on work by Jeff Hughes)
MFC after: 2 weeks

10 years agoSeveral fixes for the PCID implementation:
kib [Fri, 28 Mar 2014 16:07:27 +0000 (16:07 +0000)]
Several fixes for the PCID implementation:

- When clearing a bit for a cpuid in pmap->pm_save, ensure that the
  cpuid is not set in pm_active.  The pm_save indicates which CPUs may
  have cached translations for given PCID, which implies that a CPU
  executing with the given pmap active have the translations
  cached. [1]

- In smp_masked_invltlb(), pass pmap to smp_targeted_tlb_shootdown(). [1]

- In invlrng_handler(), check for the special values of pcid (0 and
  -1) and do corresponding global or total invalidations before
  checking for performing PCID-specific range invalidation with
  INVPCID_ADDR. [2]

- In invltlb_pcid_handler(), do not read %cr3 unless needed. [2]

- Do minor style tweaks. [2]

Submitted by: Henrik Gulbrandsen <henrik@gulbra.net> [1]
Other parts sponsored by: The FreeBSD Foundation [2]
Tested by: Henrik Gulbrandsen, pho
MFC after: 1 week

10 years agoEnable to build UEFI framebuffer driver for vt(4).
ray [Fri, 28 Mar 2014 12:50:39 +0000 (12:50 +0000)]
Enable to build UEFI framebuffer driver for vt(4).
It can be enabled by "device vt_efifb" in kernel config.

Requested by: emaste
Sponsored by: The FreeBSD Foundation

10 years agoFix missed efi.h header change in r263815
emaste [Fri, 28 Mar 2014 11:46:54 +0000 (11:46 +0000)]
Fix missed efi.h header change in r263815

Pointy hat to: emaste

10 years agoMake mkimg a general command and not a maintenance command.
marcel [Fri, 28 Mar 2014 05:06:12 +0000 (05:06 +0000)]
Make mkimg a general command and not a maintenance command.

10 years agoDefine SPARSE_WRITE to enable writing sparse files. Output compares ok...
marcel [Fri, 28 Mar 2014 04:51:18 +0000 (04:51 +0000)]
Define SPARSE_WRITE to enable writing sparse files. Output compares ok...

10 years agoFlesh-out manpage.
marcel [Fri, 28 Mar 2014 04:43:36 +0000 (04:43 +0000)]
Flesh-out manpage.

10 years agoUse :- and not :! for pipes. ! needs to be escaped, which adds to the
marcel [Fri, 28 Mar 2014 04:42:34 +0000 (04:42 +0000)]
Use :- and not :! for pipes. ! needs to be escaped, which adds to the
hassle.

10 years agoDereference nonexistent md2(3) manual.
gjb [Fri, 28 Mar 2014 04:19:06 +0000 (04:19 +0000)]
Dereference nonexistent md2(3) manual.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoWrite verbosity to stderr. The image may be written to stdout.
marcel [Fri, 28 Mar 2014 04:14:40 +0000 (04:14 +0000)]
Write verbosity to stderr. The image may be written to stdout.
While here, fix writing to stderr, by not calling errc()
unconditionally, but only when there's an error.

10 years agoChange default logic to CONFORM because this routine is shared
takawata [Fri, 28 Mar 2014 02:38:14 +0000 (02:38 +0000)]
Change default logic to CONFORM because this routine is shared
with SCI polarity setting.

Reviewed by: jhb

10 years agoWrite sparse files by default (when SPARSE_FILE is defined).
marcel [Fri, 28 Mar 2014 01:55:02 +0000 (01:55 +0000)]
Write sparse files by default (when SPARSE_FILE is defined).
While here, detect errors when writing to stdout.

10 years agoPartitions start on cylinder boundaries.
marcel [Fri, 28 Mar 2014 01:52:48 +0000 (01:52 +0000)]
Partitions start on cylinder boundaries.

10 years agoPartitions start on track boundaries.
marcel [Fri, 28 Mar 2014 01:51:45 +0000 (01:51 +0000)]
Partitions start on track boundaries.

10 years agoPartitions start on track boundaries.
marcel [Fri, 28 Mar 2014 01:50:56 +0000 (01:50 +0000)]
Partitions start on track boundaries.

10 years agoRemove the -z flag. Let's just write a sparse file whenever we can.
marcel [Thu, 27 Mar 2014 23:44:16 +0000 (23:44 +0000)]
Remove the -z flag. Let's just write a sparse file whenever we can.

10 years agoProperly fill in d_nsectors, d_ntracks, d_ncylinders & d_secpercyl.
marcel [Thu, 27 Mar 2014 23:16:18 +0000 (23:16 +0000)]
Properly fill in d_nsectors, d_ntracks, d_ncylinders & d_secpercyl.
Round the image size to a multiple of the cyclinder size.

10 years agoRemember operator precedence?
marcel [Thu, 27 Mar 2014 23:15:07 +0000 (23:15 +0000)]
Remember operator precedence?

10 years agosh: Fix memory leak with an assignment before a regular builtin.
jilles [Thu, 27 Mar 2014 22:57:23 +0000 (22:57 +0000)]
sh: Fix memory leak with an assignment before a regular builtin.

MFC after: 1 week

10 years agosh: Fix memory leak when trying to set a read only variable.
jilles [Thu, 27 Mar 2014 22:52:26 +0000 (22:52 +0000)]
sh: Fix memory leak when trying to set a read only variable.

MFC after: 1 week

10 years agoGive vtoc8 a change to work: when setting the physical block size to 4K,
marcel [Thu, 27 Mar 2014 22:48:48 +0000 (22:48 +0000)]
Give vtoc8 a change to work: when setting the physical block size to 4K,
sectors/track to 8 and number or heads to 1, partitions that are block
aligned are also cyclinder aligned. With that trick, fix the vtoc8:
1.  Set physcyls, ncyls, altcyls, nheads and nsecs appropriately.
2.  Truncate the image size to exactly ncyls * nheads * nsecs * secsz.
3.  Properly write the cylinder number as the start of the partition.
4.  Oh, and actually calculate the checksum of the label...

10 years ago1. When calculating block addresses, round to the physical block
marcel [Thu, 27 Mar 2014 22:45:05 +0000 (22:45 +0000)]
1.  When calculating block addresses, round to the physical block
    size.
2.  Replace scheme_first_block() & scheme_next_block() with
    scheme_metadata(). When we round to block sizes, we can't
    reliably fixup any miscalculations.
3.  In scheme_write, calculate ncyls (number of cyclinders), based
    on the total size, sectors/track and number of heads.
4.  Add verbosity when constructing the partitions. This includes
    the starting block address and size in bytes and blocks.
5.  Add verbosity about the sectors/track and number of heads.

10 years agoRemove trksz, which was hardcoded to 1, and replace it by secs, which
marcel [Thu, 27 Mar 2014 22:39:22 +0000 (22:39 +0000)]
Remove trksz, which was hardcoded to 1, and replace it by secs, which
can be set on the command line.

10 years agoUpdate system man pages for s/capability.h/capsicum.h/.
rwatson [Thu, 27 Mar 2014 21:43:00 +0000 (21:43 +0000)]
Update system man pages for s/capability.h/capsicum.h/.

MFC after: 3 weeks

10 years agoFix writing the start and size fields.
marcel [Thu, 27 Mar 2014 21:32:02 +0000 (21:32 +0000)]
Fix writing the start and size fields.

10 years agoEnable parallel building for gnu/usr.bin and usr.bin/clang too.
dim [Thu, 27 Mar 2014 20:15:33 +0000 (20:15 +0000)]
Enable parallel building for gnu/usr.bin and usr.bin/clang too.

MFC after: 2 weeks
X-MFC-With: r263778

10 years ago1. Add -v option to increase vebosity levels
marcel [Thu, 27 Mar 2014 20:14:40 +0000 (20:14 +0000)]
1.  Add -v option to increase vebosity levels
2.  Fix copy-paste bug -- acrually check secsz for being a power of 2
3.  Check secsz and blksz parameters
4.  Print the sector and block size when -v is given

10 years agoAdd scheme_max_secsz() for returning the maximum sector size supported
marcel [Thu, 27 Mar 2014 20:10:26 +0000 (20:10 +0000)]
Add scheme_max_secsz() for returning the maximum sector size supported
by the partitioning scheme.

10 years agoUpdate EFI framebuffer handoff from loader
emaste [Thu, 27 Mar 2014 19:43:38 +0000 (19:43 +0000)]
Update EFI framebuffer handoff from loader

Sponsored by: The FreeBSD Foundation

10 years agoamd64: Parse the EFI memory map if present
emaste [Thu, 27 Mar 2014 18:23:02 +0000 (18:23 +0000)]
amd64: Parse the EFI memory map if present

With this change (and loader.efi from the projects/uefi branch) we can now
boot under qemu using the OVMF UEFI firmware image with the limitation
that a serial console is required.

(This is largely r246337 from the projects/uefi branch.)

Sponsored by: The FreeBSD Foundation

10 years agoRevert r263321.
ray [Thu, 27 Mar 2014 14:07:36 +0000 (14:07 +0000)]
Revert r263321.
vt(9) crash on resume fixed, but Xorg still have damaged screen on resume (at
least with i915kms), so better to switch to VT0 before suspend and back on
resume.

Sponsored by: The FreeBSD Foundation

10 years agoMove ia64 efi.h to sys in preparation for amd64 UEFI support
emaste [Thu, 27 Mar 2014 13:57:00 +0000 (13:57 +0000)]
Move ia64 efi.h to sys in preparation for amd64 UEFI support

Prototypes specific to ia64 have been left in this file for now, under
__ia64__, rather than moving them to a new header under sys/ia64.
I anticipate that (some of) the corresponding functions will be shared
by the amd64, arm64, i386, and ia64 architectures, and we can adjust
this as EFI support on other than ia64 continues to develop.

Sponsored by: The FreeBSD Foundation

10 years agoFix path to the run.pl script to let these tests run.
jmmv [Thu, 27 Mar 2014 13:15:22 +0000 (13:15 +0000)]
Fix path to the run.pl script to let these tests run.

Submitted by: Peel, Casey
Obtained from: freebsd-testing

10 years agoUpdate build(7) with LOCAL_* vars
bdrewery [Thu, 27 Mar 2014 11:12:35 +0000 (11:12 +0000)]
Update build(7) with LOCAL_* vars

PR: docs/178286
Submitted by: Garrett Cooper <yaneurabeya@gmail.com>
Sponsored by: EMC / Isilon Storage Division
MFC after: 1 week

10 years agoRemove ctl_mem_pool.{c,h}.
trasz [Thu, 27 Mar 2014 11:10:13 +0000 (11:10 +0000)]
Remove ctl_mem_pool.{c,h}.

Sponsored by: The FreeBSD Foundation

10 years agoRework cfiscsi_datamove_in() to obey expected data transfer length
trasz [Thu, 27 Mar 2014 10:15:35 +0000 (10:15 +0000)]
Rework cfiscsi_datamove_in() to obey expected data transfer length
received from the initiator.

Sponsored by: The FreeBSD Foundation

10 years agoFix crash on resume in vt(9).
ray [Thu, 27 Mar 2014 09:24:09 +0000 (09:24 +0000)]
Fix crash on resume in vt(9).
Statically allocated terminal window have not initialized callout handler, so we
have to initialize it even for existing window if it is console window.

Reported by: gjb and many
Tested by: gjb
MFC after: 7 days
Sponsored by: The FreeBSD Foundation

10 years agoStrict value checking will cause problem.
takawata [Thu, 27 Mar 2014 06:36:38 +0000 (06:36 +0000)]
Strict value checking will cause problem.
Bay trail DN2820FYKH is supported on Linux but does not work on FreeBSD.
This behaviour is bug-compatible with Linux-3.13.5.

References:
http://d.hatena.ne.jp/syuu1228/20140326
http://lxr.linux.no/linux+v3.13.5/arch/x86/kernel/acpi/boot.c#L1094

Submitted by: syuu

10 years agoTo check polarity, check ACPI_MADT_POLARITY_CONFORMS, instead of ACPI_MADT_TRIGGER_CO...
takawata [Thu, 27 Mar 2014 06:08:07 +0000 (06:08 +0000)]
To check polarity, check ACPI_MADT_POLARITY_CONFORMS, instead of ACPI_MADT_TRIGGER_CONFORMS.

PR:amd64/188010
Submitted by: syuu

10 years agoAdd an ioctl to suspend a virtual machine (VM_SUSPEND). The ioctl can be called
neel [Wed, 26 Mar 2014 23:34:27 +0000 (23:34 +0000)]
Add an ioctl to suspend a virtual machine (VM_SUSPEND). The ioctl can be called
from any context i.e., it is not required to be called from a vcpu thread. The
ioctl simply sets a state variable 'vm->suspend' to '1' and returns.

The vcpus inspect 'vm->suspend' in the run loop and if it is set to '1' the
vcpu breaks out of the loop with a reason of 'VM_EXITCODE_SUSPENDED'. The
suspend handler waits until all 'vm->active_cpus' have transitioned to
'vm->suspended_cpus' before returning to userspace.

Discussed with: grehan

10 years agoCorrect ARP update handling when the routes for network interfaces are
asomers [Wed, 26 Mar 2014 22:46:03 +0000 (22:46 +0000)]
Correct ARP update handling when the routes for network interfaces are
restricted to a single FIB in a multifib system.

Restricting an interface's routes to the FIB to which it is assigned (by
setting net.add_addr_allfibs=0) causes ARP updates to fail with "arpresolve:
can't allocate llinfo for x.x.x.x".  This is due to the ARP update code hard
coding it's lookup for existing routing entries to FIB 0.

sys/netinet/in.c:
When dealing with RTM_ADD (add route) requests for an interface, use
the interface's assigned FIB instead of the default (FIB 0).

sys/netinet/if_ether.c:
In arpresolve(), enhance error message generated when an
lla_lookup() fails so that the interface causing the error is
visible in logs.

tests/sys/netinet/fibs_test.sh
Clear ATF expected error.

PR: kern/167947
Submitted by: Nikolay Denev <ndenev@gmail.com> (previous version)
Reviewed by: melifaro
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation

10 years agoAdd a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to process
dim [Wed, 26 Mar 2014 22:30:38 +0000 (22:30 +0000)]
Add a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to process
all the SUBDIR entries in parallel, instead of serially.  Apply this
option to a selected number of Makefiles, which can greatly speed up the
build on multi-core machines, when using make -j.

This can be extended to more Makefiles later on, whenever they are
verified to work correctly with parallel building.

I tested this on a 24-core machine, with make -j48 buildworld (N = 6):

                before    stddev       after    stddev
                =======   ======       =======  ======
real time        1741.1     16.5         959.8     2.7
user time       12468.7     16.4       14393.0    16.8
sys  time        1825.0     54.8        2110.6    22.8

(user+sys)/real     8.2                   17.1

E.g. the build was approximately 45% faster in real time.  On machines
with less cores, or with lower -j settings, the speedup will not be as
impressive.  But at least you can now almost max out a machine with
buildworld!

Submitted by: jilles
MFC after: 2 weeks

10 years agosh: Fix possible memory leaks and double frees with unexpected SIGINT.
jilles [Wed, 26 Mar 2014 20:43:40 +0000 (20:43 +0000)]
sh: Fix possible memory leaks and double frees with unexpected SIGINT.

10 years agoAvoid "cc1: warning: is shorter than expected" when using GNU cpp in
dim [Wed, 26 Mar 2014 19:57:50 +0000 (19:57 +0000)]
Avoid "cc1: warning: is shorter than expected" when using GNU cpp in
combination with dtrace scripts, which have "#!/usr/sbin/dtrace -Cs"
shebang lines.  This is because dtrace positions the file pointer after
the shebang line, before passing the file to GNU cpp.

To fix the warning, adjust the size downwards by the current position,
after a bit of sanity checking.

Suggested by: avg
MFC after: 1 week

10 years agoRevert r263694, and apply a better fix to squelch unnecessary warnings
dim [Wed, 26 Mar 2014 19:31:33 +0000 (19:31 +0000)]
Revert r263694, and apply a better fix to squelch unnecessary warnings
from clang about possible keywords being treated as identifiers for the
remainder of the translation unit (a.k.a. -Wkeyword-compat), when using
libstdc++ in combination with -Wsystem-headers.  This will not only fix
devd, but any C++ program using libstdc++.

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

10 years agoFix build without SMP.
jhb [Wed, 26 Mar 2014 17:40:13 +0000 (17:40 +0000)]
Fix build without SMP.

PR: kern/187854
MFC after: 1 week

10 years agoRevert r263638 (create /root dataset) for now as it breaks install and needs
bdrewery [Wed, 26 Mar 2014 13:41:30 +0000 (13:41 +0000)]
Revert r263638 (create /root dataset) for now as it breaks install and needs
more work in cases such as single-user mode.

10 years agofix up an old email address and drop clause 3 of my copyright...
jmg [Wed, 26 Mar 2014 05:49:09 +0000 (05:49 +0000)]
fix up an old email address and drop clause 3 of my copyright...

bump date..

MFC after: 1 week

10 years agoudpate VERY old email address.. I haven't had this email address for
jmg [Wed, 26 Mar 2014 03:18:27 +0000 (03:18 +0000)]
udpate VERY old email address.. I haven't had this email address for
well over 8 years...

roll the clock forward 16 years since there have been other changes
deserving of a bump, but never happened..

Submitted by: feld
Obtained from: 1 week

10 years agoUpdate userspace users of hw.bus.devctl_disable.
mjg [Wed, 26 Mar 2014 02:25:40 +0000 (02:25 +0000)]
Update userspace users of hw.bus.devctl_disable.

This fixes breakage resulting from r263754.

Reported by: AN <andy@neu.net>
Reviewed by: imp
Pointy hat to: me

10 years agoDocument r263754
gjb [Wed, 26 Mar 2014 01:36:00 +0000 (01:36 +0000)]
Document r263754

Sponsored by: The FreeBSD Foundation

10 years agoMake `-R', `-T' and `-E' options mutially non-exclusive. It is often
sobomax [Tue, 25 Mar 2014 23:37:57 +0000 (23:37 +0000)]
Make `-R', `-T' and `-E' options mutially non-exclusive. It is often
useful to see two or three types at the same time when inspecting the
dump.

MFC after: 1 month
Sponsored by: Sippy Software, Inc.

10 years agoDocument a known problem with handling the process intended to receive
mjg [Tue, 25 Mar 2014 23:30:35 +0000 (23:30 +0000)]
Document a known problem with handling the process intended to receive
SIGIO in /dev/devctl.

Suggested by: adrian
MFC after: 6 days

10 years agoRemove long obsolete sysctl hw.bus.devctl_disable.
mjg [Tue, 25 Mar 2014 23:19:45 +0000 (23:19 +0000)]
Remove long obsolete sysctl hw.bus.devctl_disable.

Suggested by: imp
Relnotes: yes

10 years agoRemove lockless check in devopen, while correct it does not make much sense.
mjg [Tue, 25 Mar 2014 23:13:46 +0000 (23:13 +0000)]
Remove lockless check in devopen, while correct it does not make much sense.

Suggested by: imp
MFC after: 6 days

10 years agoDefine PSL_SRR1_MASK for BOOK-E too so MPC85XX compiles again.
imp [Tue, 25 Mar 2014 22:49:33 +0000 (22:49 +0000)]
Define PSL_SRR1_MASK for BOOK-E too so MPC85XX compiles again.

10 years agoAdd a '*' to the M modifier string so we match any -gdwarf string (even
imp [Tue, 25 Mar 2014 22:32:13 +0000 (22:32 +0000)]
Add a '*' to the M modifier string so we match any -gdwarf string (even
though it works w/o it for some reason, contrary to our reading of
make(1)). Also add a comment explaining things a bit better so there's
one less mystery that must be answered with svn blame.

Submitted by: ian@

10 years agoRather than require a makeoptions DEBUG to get debug correct,
imp [Tue, 25 Mar 2014 22:08:31 +0000 (22:08 +0000)]
Rather than require a makeoptions DEBUG to get debug correct,
add it in kern.mk, but only if we're using clang. While this
option is supported by both clang and gcc, in the future there
may be changes to clang which change the defaults that require
a tweak to build our kernel such that other tools in our tree
will work. Set a good example by forcing -gdwarf-2 only for
clang builds, and only if the user hasn't specified another
dwarf level already. Update UPDATING to reflect the changed
state of affairs. This also keeps us from having to update
all the ARM kernels to add this, and also keeps us from
in the future having to update all the MIPS kernels and is
one less place the user will have to know to do something
special for clang and one less thing developers will need
to do when moving an architecture to clang.

Reviewed by: ian@
MFC after: 1 week

10 years agoCorrect the comments as support for RFC 1644 has been removed for a long time.
hiren [Tue, 25 Mar 2014 21:57:50 +0000 (21:57 +0000)]
Correct the comments as support for RFC 1644 has been removed for a long time.

10 years agoTarget Transfer Tag is opaque; no need to htonl(3) it.
trasz [Tue, 25 Mar 2014 19:28:40 +0000 (19:28 +0000)]
Target Transfer Tag is opaque; no need to htonl(3) it.

Sponsored by: The FreeBSD Foundation

10 years agoMove the atpit device model from userspace into vmm.ko for better
tychon [Tue, 25 Mar 2014 19:20:34 +0000 (19:20 +0000)]
Move the atpit device model from userspace into vmm.ko for better
precision and lower latency.

Approved by: grehan (co-mentor)

10 years agoMove the ic_outstanding_count under #ifdef DIAGNOSTIC.
trasz [Tue, 25 Mar 2014 19:17:22 +0000 (19:17 +0000)]
Move the ic_outstanding_count under #ifdef DIAGNOSTIC.

Sponsored by: The FreeBSD Foundation

10 years agoFix harmless warning after reconnecting a session and not doing anything
trasz [Tue, 25 Mar 2014 19:09:52 +0000 (19:09 +0000)]
Fix harmless warning after reconnecting a session and not doing anything
with it.

Sponsored by: The FreeBSD Foundation

10 years agoUse newly added extended LUN support in CAM.
trasz [Tue, 25 Mar 2014 19:05:05 +0000 (19:05 +0000)]
Use newly added extended LUN support in CAM.

Sponsored by: The FreeBSD Foundation

10 years agoUse a less unusual syntax in debug printfs.
trasz [Tue, 25 Mar 2014 18:30:57 +0000 (18:30 +0000)]
Use a less unusual syntax in debug printfs.

Sponsored by: The FreeBSD Foundation

10 years agotests/sys/netinet/Makefile
asomers [Tue, 25 Mar 2014 15:03:08 +0000 (15:03 +0000)]
tests/sys/netinet/Makefile
tests/sys/netinet/fibs.sh
Replace fibs:udp_dontroute with fibs:src_addr_selection_by_subnet.
The original test was poorly written; it was actually testing
kern/167947 instead of the desired kern/187553.  The root cause of the
bug is that ifa_ifwithnet did not have a fib argument.  The new test
more directly targets that behavior.

tests/sys/netinet/udp_dontroute.c
Delete the auxilliary binary used by the old test

PR: kern/187553
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation

10 years agoUpgrade to OpenSSH 6.6p1.
des [Tue, 25 Mar 2014 11:05:34 +0000 (11:05 +0000)]
Upgrade to OpenSSH 6.6p1.

10 years agoSwitch to my freebsd.org emal address in copyright.
ganbold [Tue, 25 Mar 2014 08:31:47 +0000 (08:31 +0000)]
Switch to my freebsd.org emal address in copyright.

Approved by: stas (mentor)

10 years agoMerge from projects/pf r251993 (glebius@):
mm [Tue, 25 Mar 2014 06:55:53 +0000 (06:55 +0000)]
Merge from projects/pf r251993 (glebius@):

De-vnet hash sizes and hash masks.

Submitted by: Nikos Vassiliadis <nvass gmx.com>
Reviewed by: trociny

MFC after: 1 month

10 years agoFirst batch of media control:
marcel [Tue, 25 Mar 2014 04:45:55 +0000 (04:45 +0000)]
First batch of media control:
1.  Change -h to -H and change -t to -T. Use -H to specify the number of
    heads and -T to specify the track size (number of sectors per track).
2.  Add -S and -P. Use -S to specify the logical sector size and -P to
    specify the physical sector size.

Default to 512 for both the logical and physical sector size.
Set nheads and nsecs to 1 by default.

10 years agoMove setting CHS fields to mbr_chs() in preparation of ...
marcel [Tue, 25 Mar 2014 03:58:13 +0000 (03:58 +0000)]
Move setting CHS fields to mbr_chs() in preparation of ...

10 years agoMake /dev/devctl mpsafe.
mjg [Tue, 25 Mar 2014 03:28:58 +0000 (03:28 +0000)]
Make /dev/devctl mpsafe.

MFC after: 1 week

10 years agoAllow schemes to specify a maximum sector size. The minimum is fixed
marcel [Tue, 25 Mar 2014 02:32:04 +0000 (02:32 +0000)]
Allow schemes to specify a maximum sector size. The minimum is fixed
at 512. This allows checking of the sector size up-front when given
on the command line.

10 years agoMostly implement the vtoc8 scheme. The vtoc8 scheme uses cylinders for
marcel [Tue, 25 Mar 2014 02:15:19 +0000 (02:15 +0000)]
Mostly implement the vtoc8 scheme. The vtoc8 scheme uses cylinders for
the beginning of partitions, which makes it sensitive to geometry.
Again, we'll need to revisit this.

10 years agoAdd code for enabling second CPU core for A20 SoC.
ganbold [Tue, 25 Mar 2014 01:34:39 +0000 (01:34 +0000)]
Add code for enabling second CPU core for A20 SoC.
Enable SMP on Cubieboard2.

Approved by: stas (mentor)

10 years agoMostly implement the pc98 scheme. The partition table has no LBA
marcel [Tue, 25 Mar 2014 00:29:56 +0000 (00:29 +0000)]
Mostly implement the pc98 scheme. The partition table has no LBA
fields at all, so we're entirely dependent upon CHS addressing.
And CHS addressing is what needs more work.

10 years agoApply a temporary band-aid for building devd with clang 3.4, libstdc++
dim [Mon, 24 Mar 2014 20:30:39 +0000 (20:30 +0000)]
Apply a temporary band-aid for building devd with clang 3.4, libstdc++
and -Wsystem-headers enabled (which is the default for any non-zero
WARNS level, crazily enough!).  This is primarily meant to be MFC'd as
soon as possible.

MFC after: 3 days

10 years agoAdds the ADC driver for TI AM3xxx SoC family.
loos [Mon, 24 Mar 2014 20:06:27 +0000 (20:06 +0000)]
Adds the ADC driver for TI AM3xxx SoC family.

The ADC has a 12bit resolution and its raw output can be read via sysctl(8)
interface.

The driver allows the setup of ADC clock, samples average and open delay
(the number of clock cycles to wait before start the conversion).

The TSC_ADC module is set in the general purpose mode (no touchscreen
support).

Tested on Beaglebone-black.

Written based on AM335x TRM.

Reviewed by: rpaulo
Approved by: adrian (mentor)
Tested by: me, Brian J. McGovern, Sulev-Madis Silber (ketas)

10 years agoAdd a note to UPDATING about customized kernel configuration files now
dim [Mon, 24 Mar 2014 19:21:14 +0000 (19:21 +0000)]
Add a note to UPDATING about customized kernel configuration files now
requiring -gdwarf-2 for debug info, when using clang 3.4.

Suggested by: adrian
MFC after: 3 days