dragonfly.git
9 years agokernel: Refer to it as "ACPICA", not "ACPI CA" or "ACPI-CA".
Sascha Wildner [Sat, 15 Nov 2014 12:07:52 +0000 (13:07 +0100)]
kernel: Refer to it as "ACPICA", not "ACPI CA" or "ACPI-CA".

9 years agoUpdate the pciconf(8) database.
Sascha Wildner [Sat, 15 Nov 2014 11:06:49 +0000 (12:06 +0100)]
Update the pciconf(8) database.

November 11, 2014 snapshot from http://pciids.sourceforge.net/

9 years agokernel/ndis - Fix flag usage in a macro.
Antonio Huete Jimenez [Fri, 14 Nov 2014 22:26:06 +0000 (23:26 +0100)]
kernel/ndis - Fix flag usage in a macro.

- For identifying system processes, Use P_SYSTEM for
  AT_PASSIVE_LEVEL() macro.

9 years agokernel - Rename unused flag.
Antonio Huete Jimenez [Fri, 14 Nov 2014 22:17:40 +0000 (23:17 +0100)]
kernel - Rename unused flag.

- This flag used to identify whether a process was a system one.
  Currently, we can use P_SYSTEM flag for that.

9 years agopkill - Fix a problem identifying system threads.
Antonio Huete Jimenez [Fri, 14 Nov 2014 21:51:52 +0000 (22:51 +0100)]
pkill - Fix a problem identifying system threads.

- As of commit 65a0e3d68b951f39cc39be7808e11e9de908d9fc the test to
  check whether a process is a system one or not was replaced by a
  wrong one. Restore that behaviour so that they are excluded by pkill(1).

9 years agoprocctl.2: Some cleanup.
Sascha Wildner [Fri, 14 Nov 2014 11:51:10 +0000 (12:51 +0100)]
procctl.2: Some cleanup.

9 years agoprocctl: Remove a header file that was renamed with 'make upgrade'.
Sascha Wildner [Fri, 14 Nov 2014 11:51:02 +0000 (12:51 +0100)]
procctl: Remove a header file that was renamed with 'make upgrade'.

9 years agoSync ACPICA with Intel's version 20141107.
Sascha Wildner [Thu, 13 Nov 2014 20:05:10 +0000 (21:05 +0100)]
Sync ACPICA with Intel's version 20141107.

* Support ASL+, which is an extension to ASL supporting C-style operators
  and expressions.

  Legacy ASL:
        If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual (
            And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 0x03FB),
            0x02E0), LEqual (And (R540, 0x03FB), 0x02E0))))
        {
    ...
}

  ASL+:
        If (((R510 & 0x03FB) == 0x02E0) ||
            ((R520 & 0x03FB) == 0x02E0) ||
            ((R530 & 0x03FB) == 0x02E0) ||
            ((R540 & 0x03FB) == 0x02E0))
        {
    ...
}

* Updates of the GPIO operation region handler interface.

* Various other changes.

For a more detailed list, please see sys/contrib/dev/acpica/changes.txt.

9 years agokernel/acpica: Restrict 'options ACPI_DEBUG' to printing debug output.
Sascha Wildner [Thu, 13 Nov 2014 19:58:18 +0000 (20:58 +0100)]
kernel/acpica: Restrict 'options ACPI_DEBUG' to printing debug output.

For now, stop compiling the debugger/disassembler into the kernel when
ACPI_DEBUG is in the config. It seems they are really only meant for
userland and getting them to compile for the kernel isn't easily
possible with newer ACPI releases (starting with 20140926).

Also, our ACPI module build wasn't set up properly for calling them
from DDB anyway.

The code is just commented out and it might all get fixed at a later
point in time.

9 years agoboot/loader: Autoload XHCI support (xhci.ko).
Sascha Wildner [Wed, 12 Nov 2014 21:39:47 +0000 (22:39 +0100)]
boot/loader: Autoload XHCI support (xhci.ko).

This should help with issues people were having when trying to
boot a DragonFly USB IMG from a thumb drive plugged into a
USB 3 port.

9 years agonrelease/rconfig: Remove some usbd(8) remains.
Sascha Wildner [Wed, 12 Nov 2014 21:36:44 +0000 (22:36 +0100)]
nrelease/rconfig: Remove some usbd(8) remains.

9 years agoSync zoneinfo database with tzdata2014j from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Wed, 12 Nov 2014 20:20:21 +0000 (21:20 +0100)]
Sync zoneinfo database with tzdata2014j from ftp://ftp.iana.org/tz/releases

* Turks & Caicos' switch from US eastern time to UTC-4 year-round
    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)

* Many corrections to pre-1989 time stamps of Asia/Seoul and
    Asia/Pyongyang.

* Change various zones into links where they differ only in pre-1970
    time stamps.

* Miscenallenous commentary adjustments.

9 years agosvc - Implement -g, -G -u, -j, -c, -m
Matthew Dillon [Wed, 12 Nov 2014 02:54:43 +0000 (18:54 -0800)]
svc - Implement -g, -G -u, -j, -c, -m

* Implement the gid, group-list, uid, jail, and chroot specifications.

* Reformulate the jail and chroot a bit.  Remove -J and -C and instead
  introduce -m to request that svc mount devfs in a jail or chroot.

* Adjust the exit sequencing and update the manual page.

9 years agojls - Fix seg-fault and formatting
Matthew Dillon [Wed, 12 Nov 2014 02:24:08 +0000 (18:24 -0800)]
jls - Fix seg-fault and formatting

* Fix seg-fault when no IPs are configured for a jail.

* Improve formatting, increase path to 15 characters.

9 years agosvc - Implement more features
Matthew Dillon [Wed, 12 Nov 2014 00:33:24 +0000 (16:33 -0800)]
svc - Implement more features

* All stdout/stderr output now goes to a pipe and a pipe buffering thread
  to read it into a circular buffer as well as write it to the log file.

  The program is now able to retain ~8KB worth of output in its circular
  buffer whether there is a log file attached to the service or not.

* When /dev/null is specified as the log file, short-cut the descriptor to -1
  instead of actually writing to /dev/null.

* log, logf, and tailf directives now work.

* Properly escape '.' on a line by itself for all buffered data dumped
  over a remote link (allowing logs to contain our command response
  terminator).

* Implement -f (foreground option) and clean-up descriptor initialization.

* Implement -s (sync on exit)

9 years agomiibus.4: Sync the list of miibus users with what we have.
Sascha Wildner [Tue, 11 Nov 2014 20:25:17 +0000 (21:25 +0100)]
miibus.4: Sync the list of miibus users with what we have.

9 years agokernel/usb4bsd: Remove an unused malloc type.
Sascha Wildner [Tue, 11 Nov 2014 19:45:16 +0000 (20:45 +0100)]
kernel/usb4bsd: Remove an unused malloc type.

It looks like old remains.

9 years agokernel - Add reapctl() system call for managing sub-processes (5) -> procctl
Matthew Dillon [Tue, 11 Nov 2014 19:17:01 +0000 (11:17 -0800)]
kernel - Add reapctl() system call for managing sub-processes (5) -> procctl

* Last commit was incomplete.  reaper_get() must be used to obtain
  the reaper in the RFNOWAIT case.

9 years agosvc - bug fixes
Matthew Dillon [Tue, 11 Nov 2014 19:04:52 +0000 (11:04 -0800)]
svc - bug fixes

* Setup our reaper before doing the initial start, otherwise we won't
  see sub-processes.

* Fix a bug in the label match code.

* Adjust debugging and fflush()s.

9 years agokernel - Add reapctl() system call for managing sub-processes (4) -> procctl
Matthew Dillon [Tue, 11 Nov 2014 18:49:10 +0000 (10:49 -0800)]
kernel - Add reapctl() system call for managing sub-processes (4) -> procctl

* Reparent to the correct reaper in the fork/RFNOWAIT case.

9 years agolibc/setjump: Align stack at 16-bytes before function call
John Marino [Tue, 11 Nov 2014 12:58:14 +0000 (13:58 +0100)]
libc/setjump: Align stack at 16-bytes before function call

This is required by amd64 ABI.  Comments were added where stack was
"accidentally" properly aligned.  The problem manifested on with a
bus error when built by clang.

While here, preserve the floating float exceptions flags.  Per POSIX,
siglongjump() shall be equivalent to longjump() except that it must
match sigsetjump() instead of setjump() and except for the effect on the
signal mask.  Therefore it should preserve the FP exception flags.

Also add the GNU-stack notes, all libc object files are supposed to have
them (although I am pretty sure they don't).

Taken from:
FreeBSD svn 217106 (7 Jan 2011)
FreeBSD svn 227023 (2 Nov 2011)
FreeBSD svn 267307 (9 Jun 2014)

9 years agosvc - misc improvements
Matthew Dillon [Tue, 11 Nov 2014 07:47:47 +0000 (23:47 -0800)]
svc - misc improvements

* Disallow extremely dangerous command sequences like 'svc exit' without
  a label (which would wildcard everything).

* Allow the label to be specified as 'all' for when you really want to
  operate on everything with a dangerous command.

* Clean up the socket and pid files on normal exit/kill, even if the
  service is not present.

* Add 'help' directive and -h option to cover our bases.

9 years agosvc - Initial commit, preliminary service manager
Matthew Dillon [Tue, 11 Nov 2014 06:54:42 +0000 (22:54 -0800)]
svc - Initial commit, preliminary service manager

* This is a preliminary service manager frontend and demon.
  It is not yet ready for prime-time (lots of support bits
  are missing).

* The main premise of this program is to be able to create
  and manage services in a more robust fashion, obtain status,
  log recent output or all output, and so forth.

  Among the many features, this program uses the new REAPER support
  to ensure that all processes related to the service can be accounted
  for.

* Includes a comprehensive manual page that lists all target features
  (many of which are not yet implemented as of this commit).

9 years agokernel - Add reapctl() system call for managing sub-processes (3) -> procctl()
Matthew Dillon [Tue, 11 Nov 2014 06:37:47 +0000 (22:37 -0800)]
kernel - Add reapctl() system call for managing sub-processes (3) -> procctl()

* After discussions, rename reapctl() -> procctl() and adjust
  the API to be compatible with FreeBSD.

* bapt will implement the same exact feature in FreeBSD via procctl().

9 years agokernel: Remove two more oldusb remains.
Sascha Wildner [Mon, 10 Nov 2014 11:08:25 +0000 (12:08 +0100)]
kernel: Remove two more oldusb remains.

9 years agoRemove the old USB stack and related userland, etc.
Sascha Wildner [Mon, 10 Nov 2014 10:49:03 +0000 (11:49 +0100)]
Remove the old USB stack and related userland, etc.

As detailed in UPDATING, users with a custom configuration file which
was derived from a *GENERIC file before we made usb4bsd default (this
happened in 3.6) might need to remove or comment out a couple of
devices which are now unknown.

9 years agonet/if_clone: Panic if the same cloner is attached twice
Markus Pfeiffer [Mon, 10 Nov 2014 10:21:46 +0000 (10:21 +0000)]
net/if_clone: Panic if the same cloner is attached twice

if_clone_attach used to allow attaching the same cloner twice,
which then lead to infinite loops when trying to create
a clone with an invalid name.
This patch adds a check whether the cloner is already
attached, and if so, panics.

9 years agotruephy: Clean up some leftover debug kprintf
Markus Pfeiffer [Mon, 10 Nov 2014 10:31:15 +0000 (10:31 +0000)]
truephy: Clean up some leftover debug kprintf

9 years agousb4bsd: Add FreeBSD revisions to files
Markus Pfeiffer [Mon, 10 Nov 2014 09:30:24 +0000 (09:30 +0000)]
usb4bsd: Add FreeBSD revisions to files

9 years agokernel - Add reapctl() system call for managing sub-processes (2)
Matthew Dillon [Mon, 10 Nov 2014 04:10:37 +0000 (20:10 -0800)]
kernel - Add reapctl() system call for managing sub-processes (2)

* subtract 1 from refs returned in status, so they roughly match the
  number of processes which are direct children of the caller.

* Load udata.status.pid_head even if we have not acquired reaping control.
  This can be useful information either way.

9 years agokernel - Add reapctl() system call for managing sub-processes
Matthew Dillon [Mon, 10 Nov 2014 04:03:02 +0000 (20:03 -0800)]
kernel - Add reapctl() system call for managing sub-processes

* Add reapctl().  This system call allows the current process to become
  the designated reaper for all sub-processes that are directly or indirectly
  forked under it, even if they detach.

  Instead of reparenting to init, related sub-processes will reparent to
  up the tree to the nearest process with reaping management enabled.

* The system call can be run by any user.  Multiple processes in the
  running topology can be reap masters for the processes under them,
  include sub-processes being reap-masters for processes under them,
  recursively.

* The system call provides an easy way to ensure that all processes under
  the current process, when it is a reap master, to be killed.  The first
  child pid under management can be queried, killed, waited upon, and the
  service monitor then simply loops until no children remain.

  Normally this information might not be available or require a 'ps' style
  (expensive) run to obtain.  This way it can be done trivially and
  dependably via reapctl().

9 years agousb4bsd: Fix SRCS sorting.
Sascha Wildner [Mon, 10 Nov 2014 00:43:20 +0000 (01:43 +0100)]
usb4bsd: Fix SRCS sorting.

9 years agousb4bsd: Add usb_pf.c to the module Makefile too.
Sascha Wildner [Mon, 10 Nov 2014 00:41:48 +0000 (01:41 +0100)]
usb4bsd: Add usb_pf.c to the module Makefile too.

9 years agousb4bsd: Make usb_pf work
Markus Pfeiffer [Sun, 9 Nov 2014 13:17:02 +0000 (13:17 +0000)]
usb4bsd: Make usb_pf work

Together with usbdump this allows dumping of usb traffic just like
tcpdump allows dumping of network traffic.

At the moment it is necessary to create the cloned device manually
for the usb bus one wants to monitor.

9 years agortld-elf - save/restore args fp regs as well (clang)
Matthew Dillon [Sun, 9 Nov 2014 21:27:54 +0000 (13:27 -0800)]
rtld-elf - save/restore args fp regs as well (clang)

* Note: this has no real effect on gcc based systems.

* fp registers %xmm0-7 can be used for arguments to procedures.  With
  GCC we didn't have to save/restore them for the rtld binder because
  rtld didn't use any FP registers and GCC did not insert any for
  structural copies.

  But CLANG does, so the binder has to save/restore these registers or
  dynamically linked calls which take FP arguments will explode on the
  first call.

* For example, A simple clang program to printf("%f", 1.0); a few times...
  the first output would be 0.0 instead of 1.0 due to the binder blowing
  away the procedure argument to dtoa().  The bug also blows up awk and
  dports and... well.

Reported-by: marino
9 years agoyacc(1): Some local adjustments for byacc-20141006.
Sascha Wildner [Sun, 9 Nov 2014 13:16:29 +0000 (14:16 +0100)]
yacc(1): Some local adjustments for byacc-20141006.

This also doubles the MAXTABLE size (which is configurable in 20141006
and the reason for this upgrade), because a newer iasl(8) was whining
about it.

9 years agoMerge branch 'vendor/BYACC'
Sascha Wildner [Sun, 9 Nov 2014 14:26:04 +0000 (15:26 +0100)]
Merge branch 'vendor/BYACC'

9 years agodrm: Remove some useless macros
François Tigeot [Sun, 9 Nov 2014 13:16:33 +0000 (14:16 +0100)]
drm: Remove some useless macros

9 years agobyacc-20141006: Adjust some forgotten things on the vendor branch.
Sascha Wildner [Sun, 9 Nov 2014 13:02:53 +0000 (14:02 +0100)]
byacc-20141006: Adjust some forgotten things on the vendor branch.

* skeleton.c is now yaccpar.c

* New file mstring.c

* Adjust README.DELETED

9 years agopci.9: Some more cleanup.
Sascha Wildner [Sun, 9 Nov 2014 12:49:49 +0000 (13:49 +0100)]
pci.9: Some more cleanup.

9 years agokernel: Document pci_find_extcap(9)
François Tigeot [Sun, 9 Nov 2014 10:45:13 +0000 (11:45 +0100)]
kernel: Document pci_find_extcap(9)

Inspired-from: FreeBSD's pci.9 manpage
Reviewed-by: swildner
9 years agokernel: Move dev2unit() to a common place
François Tigeot [Sun, 9 Nov 2014 10:28:08 +0000 (11:28 +0100)]
kernel: Move dev2unit() to a common place

It is required by both the firewire driver and recent versions of the
FreeBSD sound framework.

9 years agoImport byacc-20141006.
Sascha Wildner [Sat, 8 Nov 2014 23:01:41 +0000 (00:01 +0100)]
Import byacc-20141006.

9 years agoiasl(8): Add some missing CLEANFILES.
Sascha Wildner [Sat, 8 Nov 2014 22:31:20 +0000 (23:31 +0100)]
iasl(8): Add some missing CLEANFILES.

9 years agocompilers.conf: Remove EOL whitespace and start sentences on new lines.
Sascha Wildner [Sat, 8 Nov 2014 20:47:36 +0000 (21:47 +0100)]
compilers.conf: Remove EOL whitespace and start sentences on new lines.

9 years agoipheth.4: Remove empty line.
Sascha Wildner [Sat, 8 Nov 2014 20:46:28 +0000 (21:46 +0100)]
ipheth.4: Remove empty line.

9 years agodev/drm: Implement kqueue support; Wake up blocking reads
Imre Vadasz [Fri, 7 Nov 2014 19:49:37 +0000 (20:49 +0100)]
dev/drm: Implement kqueue support; Wake up blocking reads

* Add a call to drm_event_wakeup() in drm/radeon.

* Flesh out the stubbed kqueue support.

* Blocking reads were not woken up because of a typo in the wakeup call.

9 years agousb4bsd/net: Adjust comment, we also miss axge(4) and smsc(4).
Sascha Wildner [Sat, 8 Nov 2014 09:03:15 +0000 (10:03 +0100)]
usb4bsd/net: Adjust comment, we also miss axge(4) and smsc(4).

9 years agousb4bsd: Port aue(4), cue(4), ipheth(4) and kue(4) USB ethernet drivers.
Sascha Wildner [Sat, 8 Nov 2014 00:10:28 +0000 (01:10 +0100)]
usb4bsd: Port aue(4), cue(4), ipheth(4) and kue(4) USB ethernet drivers.

Also sync them with FreeBSD's current code.

aue(4), cue(4) and kue(4) were available with oldusb. ipheth(4) is a
new driver.

This commit adds support for 105 devices.

Still missing from our net/ category are cdce(4), rue(4), uhso(4) and
usie(4).

Taken-from-and-thanks-to: FreeBSD

9 years agousb4bsd/if_urndis: Add a missing KKASSERT().
Sascha Wildner [Thu, 6 Nov 2014 21:35:39 +0000 (22:35 +0100)]
usb4bsd/if_urndis: Add a missing KKASSERT().

While here, remove an unused URNDIS_LOCK_ASSERT() parameter.

9 years agourndis.4: No ifmedia support in this driver.
Sascha Wildner [Thu, 6 Nov 2014 18:59:34 +0000 (19:59 +0100)]
urndis.4: No ifmedia support in this driver.

9 years agousb4bsd: Fix if_urndis/umodem probing conflict.
Sascha Wildner [Thu, 6 Nov 2014 18:45:41 +0000 (19:45 +0100)]
usb4bsd: Fix if_urndis/umodem probing conflict.

Previously, if_urndis would not detect certain devices (among them
the HTC One) due to a conflict with certain USB modems from Huawei.

Fix this by making umodem check explicitly for Huawei as the vendor.

As far as I can see, devd(8) would now load both umodem.ko and
if_urndis.ko for these modems but only umodem.ko would attach, so
we should be fine.

However, so far only the urndis(4) part was actually tested.

Submitted-by: Yellow Rabbit <yrabbit@sdf.lonestar.org>
Tested-by: Robin Hahling <robin.hahling@gw-computing.net>
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2725>

9 years agosed(1): Fix implicit definition of getline error
John Marino [Thu, 6 Nov 2014 12:40:24 +0000 (13:40 +0100)]
sed(1): Fix implicit definition of getline error

9 years agocsu: isolate gcc-specific flags
John Marino [Thu, 6 Nov 2014 11:33:07 +0000 (12:33 +0100)]
csu: isolate gcc-specific flags

Limiting gcc-specific flags to CCVER that begins with "gcc"  allows world
to build on clang without NO_WARNS defined.

9 years agosed(1): Sync with FreeBSD (adds -u switch)
John Marino [Thu, 6 Nov 2014 08:08:48 +0000 (09:08 +0100)]
sed(1): Sync with FreeBSD (adds -u switch)

This is a minor sync with FreeBSD.  The -r option, an alias of -E, was
recently added.  This adds "-u" which makes the output unbuffered.  There
are minor tweaks to newline and file handling.

9 years agodrm/i915: Remove a premature i915_gem_valid_gtt_space() check
François Tigeot [Wed, 5 Nov 2014 22:08:23 +0000 (23:08 +0100)]
drm/i915: Remove a premature i915_gem_valid_gtt_space() check

We still miss some gtt initialization code at this point in time

Reported-and-tested-by: Johannes Hofmann
9 years agocrt1.o: Fix compilation failure with -DGCRT on clang
John Marino [Wed, 5 Nov 2014 21:48:48 +0000 (22:48 +0100)]
crt1.o: Fix compilation failure with -DGCRT on clang

Clang has been failing to compile the crt1.c with GCRT macro defined.  The
error message stated the "eprol" label was being defined twice.  Clang was
performing an alternative conditional optimization which duplicated the
assembly including our inserted eprol label.

The workaround is to relocate the eprol label after the handle_static_init
function to get it out of the optimization loop.  The trade-off of this
workaround is that handle_static_init() can no longer be profiled.  The
formerly preceding monstartup belongs to gmon and it controls the range of
PCs the profiling code considers.

Suggested by: dillon

9 years agokernel - Improve m->hold_count assertions, fix page-zeroing code bug
Matthew Dillon [Wed, 5 Nov 2014 19:06:28 +0000 (11:06 -0800)]
kernel - Improve m->hold_count assertions, fix page-zeroing code bug

* Improve assertions on m->hold_count to provide more information.

* Fix a bug in vm_page_free_fromq_fast() where an assertion can get
  hit due to a SMP race.  This is only used by the page-zeroing code.

9 years agokernel - Fix exec optimization race
Matthew Dillon [Wed, 5 Nov 2014 19:04:11 +0000 (11:04 -0800)]
kernel - Fix exec optimization race

* Fix an improper vm_page_unhold() in exec_map_page() which
  under heavy memory loads can cause a later assertion
  on m->hold_count == 0.

* Triggered every few days by bulk builds on pkgbox64.

9 years agokernel: Allow pf to build without INET6
François Tigeot [Wed, 5 Nov 2014 09:11:31 +0000 (10:11 +0100)]
kernel: Allow pf to build without INET6

Submitted-by: lhmwzy
9 years agousb4bsd: Cleanup usb_ethernet after the recent changes
Markus Pfeiffer [Tue, 4 Nov 2014 20:42:15 +0000 (20:42 +0000)]
usb4bsd: Cleanup usb_ethernet after the recent changes

The ue_ifp member of the usb ethernet softc is not required anymore, so get
rid of it to have less points of failure.

9 years agousb4bsd/if_mos: Add a missing line to 'files' and fix some USB_DEBUG errors.
Sascha Wildner [Tue, 4 Nov 2014 17:41:23 +0000 (18:41 +0100)]
usb4bsd/if_mos: Add a missing line to 'files' and fix some USB_DEBUG errors.

9 years agoRevert "kern/dsched: Fix a panic at proc exit"
Joris Giovannangeli [Tue, 4 Nov 2014 13:43:12 +0000 (14:43 +0100)]
Revert "kern/dsched: Fix a panic at proc exit"

This reverts commit 4db1a66d8221d557a0a3e37aa842cf2824e0dfea.

Caused a random panic with no dump, I need more time to figure it
out.

9 years agousb4bsd: Fix usb_etherther and cleanup if_axe
Markus Pfeiffer [Mon, 3 Nov 2014 22:33:31 +0000 (22:33 +0000)]
usb4bsd: Fix usb_etherther and cleanup if_axe

Since mii relies on a struct ifnet being the first part of a
softc for a network driver, make usb_ethernet adhere to this rule.
This fixes panics with usb_ethernet caused by parts of the
uether_softc being overwritten by the mii code.

9 years agodrm/i915: Make the GEM code more Linux-like
François Tigeot [Mon, 3 Nov 2014 09:36:06 +0000 (11:36 +0200)]
drm/i915: Make the GEM code more Linux-like

* Reduce differences with Linux 3.8.13

* Segregate memory domains in the GTT using coloring

* Enable the use of i915 semaphores

9 years agoUpdate devd(8)'s usb.conf for mos(4).
Sascha Wildner [Mon, 3 Nov 2014 10:59:08 +0000 (11:59 +0100)]
Update devd(8)'s usb.conf for mos(4).

9 years agousb4bsd/if_mos: Sync with FreeBSD.
Sascha Wildner [Mon, 3 Nov 2014 10:38:48 +0000 (11:38 +0100)]
usb4bsd/if_mos: Sync with FreeBSD.

9 years agousb4bsd/if_mos: Make mos(4) compile.
Sascha Wildner [Fri, 31 Oct 2014 18:06:03 +0000 (19:06 +0100)]
usb4bsd/if_mos: Make mos(4) compile.

9 years agosysv_shm: allow attaching to REMOVED shm segments
Joris Giovannangeli [Sun, 2 Nov 2014 18:08:18 +0000 (19:08 +0100)]
sysv_shm: allow attaching to REMOVED shm segments

 * Add kern.ipc.shm_allow_removed to allow for this behavior

 * chrome relies on this behavior

Taken-from: FreeBSD

9 years agodrm/i915: Clean up various non-critical files
François Tigeot [Sat, 1 Nov 2014 21:04:59 +0000 (22:04 +0100)]
drm/i915: Clean up various non-critical files

Remove dead code and obsolete fields in various areas, reducing differences
with Linux 3.8.13.

9 years agokernel/x86: Add Advanced Power Management Information constants
François Tigeot [Sat, 1 Nov 2014 20:18:37 +0000 (21:18 +0100)]
kernel/x86: Add Advanced Power Management Information constants

Obtained-from: FreeBSD

9 years agocamcontrol - Add idle, standby, and sleep directives
Matthew Dillon [Fri, 31 Oct 2014 19:27:10 +0000 (12:27 -0700)]
camcontrol - Add idle, standby, and sleep directives

* Bring the idle, standby, and sleep directives in from FreeBSD.

* Note that our ATA pass-through works a bit differently than FreeBSDs.

9 years agohammer2 - update documentation, begin working on callback I/O
Matthew Dillon [Thu, 30 Oct 2014 21:14:58 +0000 (14:14 -0700)]
hammer2 - update documentation, begin working on callback I/O

* Update documentation with my current thinking.

* Implement hammer2_iocb - a structure to govern async block I/O requests
  with a callback function.

* Implement iocb API.

* Replace old hammer2_chain_load_async() and related code with the new
  callback mechanism.

* Implemented a somewhat more sophisticated freemap DOMAYFREE setting,
  but note that we still do not iterate file data blocks when removing
  a file to adjust their freemap (and I may decide not to just in general,
  since the meta-data scan and freemap update can add considerable latency
  to a remove() operation).

  This means that the whole concept of partial block free states may wind
  up being thrown out the window, but as of now it's still the plan.

9 years agoRemove obsolete ieee80211_amrr.9 manual page.
Sascha Wildner [Thu, 30 Oct 2014 15:19:37 +0000 (16:19 +0100)]
Remove obsolete ieee80211_amrr.9 manual page.

9 years agokern/dsched: Fix a panic at proc exit
Joris Giovannangeli [Wed, 29 Oct 2014 21:43:02 +0000 (22:43 +0100)]
kern/dsched: Fix a panic at proc exit

 * When a proc exit, dsched tries to destroy the thread context.
   But if the thread context is not empty, it needs to wait
   for the thread ios to be drained.

 * add a callback to wakeup the thread when the last queued io is
   completed and resume the in progress destruction.

 * Should fix #2645

9 years agorc.8: Mention 'reload', which is enabled frequently to kill -HUP daemons.
Sascha Wildner [Wed, 29 Oct 2014 18:08:59 +0000 (19:08 +0100)]
rc.8: Mention 'reload', which is enabled frequently to kill -HUP daemons.

Reported-by: Matteo Cypriani <mcy@lm7.fr>
9 years agopowerd.8: Fix incomplete -p / -u commit.
Sascha Wildner [Wed, 29 Oct 2014 10:35:18 +0000 (11:35 +0100)]
powerd.8: Fix incomplete -p / -u commit.

9 years agopowerd: add tunables to control the load thresold
Joris Giovannangeli [Tue, 28 Oct 2014 22:43:48 +0000 (23:43 +0100)]
powerd: add tunables to control the load thresold

9 years agoRemove pkg_radd from the Makefile too.
Sascha Wildner [Tue, 28 Oct 2014 18:49:54 +0000 (19:49 +0100)]
Remove pkg_radd from the Makefile too.

9 years agopowerd.8: Fix a typo and elaborate a bit on what -t means.
Sascha Wildner [Tue, 28 Oct 2014 17:51:03 +0000 (18:51 +0100)]
powerd.8: Fix a typo and elaborate a bit on what -t means.

9 years agoRemove various pkgsrc remains.
Sascha Wildner [Tue, 28 Oct 2014 17:46:34 +0000 (18:46 +0100)]
Remove various pkgsrc remains.

* Remove pkgsrcaudit periodic script.

* Remove pkg_radd(1) and pkg_search. pkg(8) will do.

* Remove pkgsrc(7) manual page.

* Remove test/fastbulk (meant to be a faster alternative to pbulk but it
  never took off).

* Remove searching of /usr/pkgsrc searching via whereis(1).

* Various small adjustments.

9 years agopowerd: add an option to disable turbo mode
Joris Giovannangeli [Mon, 27 Oct 2014 22:46:44 +0000 (23:46 +0100)]
powerd: add an option to disable turbo mode

9 years agomdocml: compile and reapply some local changes
Franco Fichtner [Mon, 27 Oct 2014 22:51:23 +0000 (23:51 +0100)]
mdocml: compile and reapply some local changes

9 years agoMerge branch 'vendor/MDOCML'
Franco Fichtner [Mon, 27 Oct 2014 22:40:16 +0000 (23:40 +0100)]
Merge branch 'vendor/MDOCML'

Conflicts:
contrib/mdocml/Makefile
contrib/mdocml/mandoc.h
contrib/mdocml/mdoc_validate.c
contrib/mdocml/read.c

9 years agoImport mdocml-1.13.1
Franco Fichtner [Mon, 27 Oct 2014 21:18:52 +0000 (22:18 +0100)]
Import mdocml-1.13.1

9 years agoftp - bring 1.205 from netbsd
Matthew Dillon [Mon, 27 Oct 2014 18:53:46 +0000 (11:53 -0700)]
ftp - bring 1.205 from netbsd

* Don't pay attention to special characters if they don't come
  from the command line (from jmcneill)

* Also, for DragonFly specifically I am removing the use of
  popen() entirely, even for command-line-specified features.

9 years agobuild.7: document rescue target
Robin Hahling [Sun, 26 Oct 2014 07:41:01 +0000 (08:41 +0100)]
build.7: document rescue target

9 years agoSync zoneinfo database with tzdata2014i from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Sun, 26 Oct 2014 03:31:08 +0000 (04:31 +0100)]
Sync zoneinfo database with tzdata2014i from ftp://ftp.iana.org/tz/releases

* asia: Many time stamps have been corrected for Asia/Ho_Chi_Minh
    before 1976. Asia/Phnom_Penh and Asia/Vientiane have been turned
    into links, as they differed from existing zones only for older
    time stamps.

* australasia: Pacific/Fiji will observe DST from 2014-11-02 02:00 to
    2015-01-18 03:00. A new Zone Pacific/Bougainville, for the part
    of Papua New Guinea that plans to switch from UTC+10 to UTC+11 on
    2014-12-28 at 02:00.

* europe: Since Belarus is not changing its clocks even though Moscow is,
    the time zone abbreviation in Europe/Minsk is changing from FET
    to its more-traditional value MSK on 2014-10-26 at 01:00.

* northamerica: Some comment fixes.

As usual, the NEWS file has more details.

9 years ago4.1 branch. v4.1.0
Justin C. Sherrill [Sun, 26 Oct 2014 03:31:47 +0000 (23:31 -0400)]
4.1 branch.

9 years agoupmap.4: Add missing .El
Sascha Wildner [Sat, 25 Oct 2014 17:31:39 +0000 (19:31 +0200)]
upmap.4: Add missing .El

9 years agomdoc.local: Add version 3.9 for .Dx
Sascha Wildner [Sat, 25 Oct 2014 17:30:49 +0000 (19:30 +0200)]
mdoc.local: Add version 3.9 for .Dx

While here, also add 9.3 for .Fx

9 years agoAdd a upmap(4)/kpmap(4) manual page.
Sascha Wildner [Sat, 25 Oct 2014 15:05:27 +0000 (17:05 +0200)]
Add a upmap(4)/kpmap(4) manual page.

Submitted-by: Robin Hahling <robin.hahling@gw-computing.net>
9 years agodrm/radeon: Handle -fms-extensions better (fixes the clang build).
Sascha Wildner [Sat, 25 Oct 2014 13:39:56 +0000 (15:39 +0200)]
drm/radeon: Handle -fms-extensions better (fixes the clang build).

FreeBSD has since switched to only using it for GCC (which apparently
complains about anonymous unions). In clang, it will enable Microsoft's
__wchar_t type, which (as in FreeBSD) conflicts with our own one.

We actually only need it for gcc44. Our gcc47 builds radeon.ko fine
without it.

9 years agodev/drm: For now, only build radeon drivers with base compilers
John Marino [Sat, 25 Oct 2014 10:38:54 +0000 (12:38 +0200)]
dev/drm: For now, only build radeon drivers with base compilers

Currently, at least clang35 can't build radeon drivers due to how system
headers are included.  I suspect dports gcc compilers may also have the
same issue.  Until this issue is understood and fixed, limit the building
of radeon modules to the base compilers.

9 years agokern.mk: isolate gcc-only flags to gcc compilers (determined by CCVER)
John Marino [Sat, 25 Oct 2014 10:28:56 +0000 (12:28 +0200)]
kern.mk: isolate gcc-only flags to gcc compilers (determined by CCVER)

9 years agolibstand: Isolate gcc-specific flags, avoid native compilations
John Marino [Sat, 25 Oct 2014 07:28:32 +0000 (09:28 +0200)]
libstand: Isolate gcc-specific flags, avoid native compilations

Only set -mpreferred-stack-boundary when using GCC.  While here, add
a bunch of flags that avoid cpu-specific instructions.  Similar flags
are seen in the boot code.

9 years agoboot/pc32: specify some flags based on CCVER
John Marino [Sat, 25 Oct 2014 07:22:42 +0000 (09:22 +0200)]
boot/pc32: specify some flags based on CCVER

Some flags are gcc-specific, so only set them if CCVER begins with
the substring "gcc".  Some assembly files can only be built by the
binutils GNU assembler, so define ASSEMBLER flags which CCVER starting
with "clang" will augment.  There is no change for the current base
compilers.

9 years agoboot/dloader: Remove duplicate CFLAGS
John Marino [Sat, 25 Oct 2014 07:04:29 +0000 (09:04 +0200)]
boot/dloader: Remove duplicate CFLAGS

The -ffreestanding flag gets defined by ../pc32/Makefile.inc which
both platforms pull in.  The -m32 flag is defined by ../pc64/Makefile
which only x86_64 pulls in.

9 years agopc64/acpica: specify cmpw in acpi_wakecode.S
John Marino [Sat, 25 Oct 2014 06:45:46 +0000 (08:45 +0200)]
pc64/acpica: specify cmpw in acpi_wakecode.S

The "cmp" instruction is ambiguious in acpi_wakecode.S.  The GNU assembler
should emit an error, but instead it just assumes that the operand is of
a wide type.  The clang assembler does throw an error, so let's explicitly
use "cmpw" to resolve the ambuiguity.

9 years agodrm1: Remove formatted manual pages via 'make upgrade', too.
Sascha Wildner [Fri, 24 Oct 2014 16:22:28 +0000 (18:22 +0200)]
drm1: Remove formatted manual pages via 'make upgrade', too.