Imre Vadász [Sat, 16 May 2015 17:49:39 +0000 (19:49 +0200)]
kernel/acpi_thermal: Improve hw.acpi.thermal.polling_rate sysctl behaviour
* No longer allow setting hw.acpi.thermal.polling_rate to negative or to
meaninglessly large values of more than 3600s.
* Wake up the acpi_tz_thread after changing hw.acpi.thermal.polling_rate,
to wake it up when hw.acpi.thermal.polling_rate was set to 0 (i.e.
disabled polling) or a very large value before.
Imre Vadasz [Sat, 16 May 2015 19:03:07 +0000 (21:03 +0200)]
sysctl_add_oid.9: Document the "IK" sysctl oid format.
Sascha Wildner [Sat, 16 May 2015 10:17:26 +0000 (12:17 +0200)]
kernel/acpi_fadt: Allow FADT revision 6.
Sascha Wildner [Sat, 16 May 2015 08:06:04 +0000 (10:06 +0200)]
Sync ACPICA with Intel's version
20150515.
General changes:
* Runtime argument checking and return value checking for all new
ACPI 6.0 predefined names.
iasl(8) and other tools specific changes:
* Added support for all new ACPI 6.0 predefined names and tables and
for changes to existing tables (FADT, MADT).
* Added a new directive to enable inclusion of binary objects into
ASL code, #includebinary.
* Add support for all new ACPI 6.0 predefined names to acpihelp(8).
* Add new options -d (display iASL preprocessor directives) and
-t (display all known/supported ACPI tables) to acpihelp(8).
For a more detailed list, please see sys/contrib/dev/acpica/changes.txt.
Sascha Wildner [Fri, 15 May 2015 16:44:55 +0000 (18:44 +0200)]
libm: Add a missing closing comment (fixes -Wcomment).
Sascha Wildner [Fri, 15 May 2015 16:43:17 +0000 (18:43 +0200)]
libc: Make generation of nslexer.c more robust.
Quoting FreeBSD's r268620 commit msg:
Ensure that lex errors fail the build instead of being silently ignored
due to the piped call. Also postpone the update of the nslexer.c file
until we are sure we have generated it properly.
[...]
In DragonFly, this issue was causing a buildworld to stall if certain
-W... warning options were added.
Taken-from: FreeBSD
Sepherosa Ziehau [Thu, 14 May 2015 15:42:12 +0000 (23:42 +0800)]
dimm: Allow increasing internal ECC error counter, instead of setting
Sepherosa Ziehau [Thu, 14 May 2015 13:44:39 +0000 (21:44 +0800)]
ecc/e5: Fix error processing on attach path
Sepherosa Ziehau [Thu, 14 May 2015 13:31:48 +0000 (21:31 +0800)]
dimm: Allow ECC error threshold to be configured
Sepherosa Ziehau [Thu, 14 May 2015 13:15:29 +0000 (21:15 +0800)]
dimm/ecc: Send devctl notify if there are too many ECC errors
Tomohiro Kusumi [Wed, 13 May 2015 21:54:24 +0000 (06:54 +0900)]
sys/vfs/tmpfs: Remove duplicated cross-device check on nlink vop
- 'if (dvp->v_mount != vp->v_mount)' which avoids cross-device
hard link appears twice in this function after this one.
- Maybe this should be done in sys/kern/vfs_vopops.c considering
fs that implement nlink have the same check (not sure if it
should be applied to all fs though e.g. unionfs).
# grep -rIl EXDEV sys/vfs/
sys/vfs/smbfs/smbfs_vnops.c
sys/vfs/union/union_vnops.c
sys/vfs/tmpfs/tmpfs_vnops.c
sys/vfs/dirfs/dirfs_vnops.c
sys/vfs/nfs/nfs_serv.c
sys/vfs/nfs/nfs_vnops.c
sys/vfs/hammer2/hammer2_vnops.c
sys/vfs/puffs/puffs_vfsops.c
sys/vfs/puffs/puffs_vnops.c
sys/vfs/ufs/ufs_vnops.c
sys/vfs/msdosfs/msdosfs_vnops.c
sys/vfs/hammer/hammer_vnops.c
Tomohiro Kusumi [Wed, 13 May 2015 01:36:09 +0000 (10:36 +0900)]
sys/vfs/tmpfs: Add comment
- VTOI() was added for userspace (usr.bin/fstat/tmpfs.c).
Sascha Wildner [Wed, 13 May 2015 19:32:07 +0000 (21:32 +0200)]
Ansify a few functions.
Sascha Wildner [Wed, 13 May 2015 17:59:49 +0000 (19:59 +0200)]
ipfw3: Indent two switch()es better and add braces to while().
Sepherosa Ziehau [Wed, 13 May 2015 11:25:31 +0000 (19:25 +0800)]
systat/sensors: Filter sensors based on sensor device name
Sepherosa Ziehau [Wed, 13 May 2015 11:24:36 +0000 (19:24 +0800)]
systat/sensors: Filter sensors based on sensor type
Sepherosa Ziehau [Wed, 13 May 2015 11:24:03 +0000 (19:24 +0800)]
sensor: Add ECC sensor type
Matthew Dillon [Tue, 12 May 2015 22:58:54 +0000 (15:58 -0700)]
kernel - Improve cpu topology text output
* Fix a bug the cpu range display to properly
display e.g. cpu 3 through cpu 3 as cpu 3 instead
of cpu 3-3.
* Makes sysctl hw.cpu_topology more readable.
Tomohiro Kusumi [Tue, 12 May 2015 18:59:04 +0000 (03:59 +0900)]
sys/vfs/tmpfs: Remove nested #ifdef _KERNEL
- #ifdef _KERNEL around function prototypes for tmpfs_subr.c
is nested. It's in another #ifdef _KERNEL.
Sascha Wildner [Tue, 12 May 2015 20:25:07 +0000 (22:25 +0200)]
cryptsetup(8): Remove -std=gcc89 and make getline()'s prototype visible.
Tomohiro Kusumi [Tue, 12 May 2015 01:49:38 +0000 (10:49 +0900)]
sys/vfs/tmpfs: Rename ROOTINO to TMPFS_ROOTINO
- Rename it so that the utility program can distinguish it from UFS's
ROOTINO when they need to include filesystem headers possibly in the
future.
Tomohiro Kusumi [Tue, 12 May 2015 01:10:45 +0000 (10:10 +0900)]
Revert this commit to avoid a possible complaint by compiler when
INVARIANTS is not set which leaves code 'if(cond);'.
Spotted-by: dillon
Revert "sys/vfs/tmpfs: Cleanups"
This reverts commit
215b902242b386e5a01c72d8245df7535bed0bd0.
Tomohiro Kusumi [Tue, 12 May 2015 00:58:57 +0000 (09:58 +0900)]
It only exceeds the limit by small number, so it's ok to do this without a lock.
Take performance than exact accuracy of the #.
Spotted-by: dillon
Revert "sys/vfs/tmpfs: Lock tmpfs_mount member"
This reverts commit
8c24f24ee096861731f6e5a082e22370a972701c.
Tomohiro Kusumi [Tue, 12 May 2015 00:57:44 +0000 (09:57 +0900)]
Reverting series of commits (1/2 and 2/2) since they introduce
performance degrade.
'if ((node->tn_status & TMPFS_NODE_ACCESSED) == 0) {'
can be done without inode lock and helps performance.
Spotted-by: dillon
Revert "sys/vfs/tmpfs: Make flag handling consistent [1/2]"
This reverts commit
e6db94b29aacbd288774574b1967828c8c07c013.
Tomohiro Kusumi [Tue, 12 May 2015 00:49:45 +0000 (09:49 +0900)]
Reverting series of commits (1/2 and 2/2) since they introduce
performance degrade.
'if ((node->tn_status & TMPFS_NODE_ACCESSED) == 0) {'
can be done without inode lock and helps performance.
Spotted-by: dillon
Revert "sys/vfs/tmpfs: Make flag handling consistent [2/2]"
This reverts commit
c595728587e3d04ed27f9c275bddd0eafd6427ce.
Tomohiro Kusumi [Mon, 11 May 2015 15:20:02 +0000 (00:20 +0900)]
sys/vfs/tmpfs: Bring in a macro from UFS
- Bring in ROOTINO macro from UFS whose root inode# also starts from 2.
Sascha Wildner [Mon, 11 May 2015 11:18:47 +0000 (13:18 +0200)]
ipfw3(8): Small indent adjustment.
Bill Yuan [Mon, 11 May 2015 07:32:21 +0000 (15:32 +0800)]
Fix: buf size issue in do_get/set_x
Bill Yuan [Mon, 11 May 2015 06:40:43 +0000 (14:40 +0800)]
License: Preserve previous licensor information
Matthew Dillon [Mon, 11 May 2015 02:51:18 +0000 (19:51 -0700)]
hammer - Avoid panic in particular corruption situations
This commit fixes two panics which can arise from attempting to access a
corrupted filesystem. It does not fix the issue that led to the corruption
in the first place (which we believe might have been GPU-related random
memory corruption on a particular machine). It allows the filesystem to
continue to operate so it can be spooled off and reformatted.
* Do not panic on a NULL pointer dereference if a cursor iteration
fails due to corruption.
* Do not panic during a flush on a sequence space error if the filesystem
has been forced into read-only mode (which prevents older sequence spaces
from being flushed).
Reported-by: Sephe
Tomohiro Kusumi [Sun, 10 May 2015 17:17:57 +0000 (02:17 +0900)]
sys/kern: Remove trailing ; from DO_OPS()
- The trailing ; is redundant.
Tomohiro Kusumi [Sun, 10 May 2015 16:56:43 +0000 (01:56 +0900)]
sys/kern: Fix comments
- hunk1 - Add missing MPSAFE comment.
- hunk2 - It actually acquires per-mount-token and get_mplock();
although it says get_mplock(); is /* TEMPORARY */.
See sys/sys/mount.h.
Tomohiro Kusumi [Sat, 9 May 2015 22:45:08 +0000 (07:45 +0900)]
sys/sys: Rename VFS_MPLOCK1 to VFS_MPLOCK
- The previous commit has removed VFS_MPLOCK2 macro.
- VFS_MPLOCK1 is the only VFS_MPLOCK* macro now, so strip '1'
from VFS_MPLOCK1. It's confusing with '1' since VFS_MPUNLOCK
has no '1' as well with no numbered variants.
Tomohiro Kusumi [Sat, 9 May 2015 21:28:25 +0000 (06:28 +0900)]
sys/sys: Remove VFS_MPLOCK2 macro
- Not only vfs and filesystems are NOT using this macro,
but also this macro doesn't work given that
- The local variable 'xlock_mpsafe' (which is visibly hidden
from vfs C code) is being used without initializing, while
this header doesn't provide a macro to initialze it.
(even if it did provide the purpose of VFS_MPLOCK2 isn't
very clear either).
- VFS_MPLOCK1 is the only one that works as expected and all
the syscalls actually use this. Replacing VFS_MPLOCK1 with
VFS_MPLOCK2 results compile error with -Werror=uninitialized.
error: 'xlock_mpsafe' is used uninitialized in this function
[-Werror=uninitialized]
if (xlock_mpsafe) {
Sascha Wildner [Sun, 10 May 2015 07:03:28 +0000 (09:03 +0200)]
Fix LINT64 build.
Sascha Wildner [Sun, 10 May 2015 05:07:12 +0000 (07:07 +0200)]
Clean up some more signal handlers in various places.
Sascha Wildner [Sun, 10 May 2015 03:29:17 +0000 (05:29 +0200)]
sail(6): Clean up some signal handlers.
Sascha Wildner [Sun, 10 May 2015 02:21:02 +0000 (04:21 +0200)]
Stop using 'union wait' for the status of wait*() in a few places.
It is deprecated old 4.3BSD compatibility stuff and will soon go away.
zrj [Sat, 9 May 2015 10:07:07 +0000 (13:07 +0300)]
drm: less verbose prints with DRM_DEBUG option
Old behaviour can be used with 'options DRM_DEBUG=2'
François Tigeot [Sat, 9 May 2015 08:54:30 +0000 (10:54 +0200)]
drm: Start using kcalloc()
Reducing differences with Linux and fixing a few bugs where allocated
memory was not properly zeroed.
François Tigeot [Sat, 9 May 2015 08:26:29 +0000 (10:26 +0200)]
drm: Implement kcalloc()
Sascha Wildner [Sat, 9 May 2015 00:20:46 +0000 (02:20 +0200)]
nrelease: Fix for empty DPORTS_PACKAGES.
Also fix up the previously existing 'nopkgs' target and document it.
Reported-by: Rimvydas Jasinskas <rimvydas.jasinskas@gmail.com>
Tomohiro Kusumi [Fri, 8 May 2015 11:33:07 +0000 (20:33 +0900)]
sys/vfs/tmpfs: Make flag handling consistent [2/2]
- Remove unnecessary unlock/lock after the previous commit.
Tomohiro Kusumi [Fri, 8 May 2015 11:19:09 +0000 (20:19 +0900)]
sys/vfs/tmpfs: Make flag handling consistent [1/2]
- Not taking inode lock on if-test for inode status introduces
a potential race.
- Above race is basically harmless though since if-test itself
was redundant and basically results the same with or without it.
So get rid of it and keep the |= part with inode lock.
Tomohiro Kusumi [Fri, 8 May 2015 10:48:47 +0000 (19:48 +0900)]
sys/vfs/tmpfs: Cleanups
- hunk1 - Remove unnecessary #if0/endif.
- hunk2 - Remove unnecessary goto.
François Tigeot [Fri, 8 May 2015 12:14:01 +0000 (14:14 +0200)]
agp: Remove support for pre-amd64 ALI, AMD, ATI and Nvidia chipsets
These chipsets were paired with i386-only CPUs and thus have no
chance of ever being used on DragonFly anymore.
François Tigeot [Fri, 8 May 2015 07:25:57 +0000 (08:25 +0100)]
drm/i915: Update to Linux 3.14
Changes specific to the DragonFly driver:
* Most GEM code paths are now similar to Linux, leading to increased
stability and performance.
Making this change was greatly helped by studying the OpenBSD code.
* We were previously using legacy functions to set up page table entries and
this was starting to become a serious problem on particular platforms such
as gen4 or Broadwell. As of this commit, we now use the same chip-specific
virtual functions as Linux.
* RC6 and Frame Buffer Compression power savings enabled by default, depending
on the GPU family
Changes brought by the Linux 3.11 => 3.14 driver update:
* Various bug fixes on all GPU generations, especially stability improvements
* Power consumption improvements
* Many Valleyview/Baytrail support improvements
* The giant 128MB L4 cache is now enabled when present on Haswell
* Added support for Broadwell GPUs
* HDMI 4K support
* basic support for 3D/stereo displays on HDMI
François Tigeot [Fri, 8 May 2015 06:22:24 +0000 (08:22 +0200)]
agp: Fix install_gtt_pte functions
Some chips used the wrong functions and some chip-specific install_gtt_pte
functions were buggy.
Fix both issues.
Matthew Dillon [Fri, 8 May 2015 06:17:24 +0000 (08:17 +0200)]
agp: Add Broadwell support
Sascha Wildner [Thu, 7 May 2015 16:45:41 +0000 (18:45 +0200)]
installer: Add missing dir to install.
Tomohiro Kusumi [Thu, 7 May 2015 15:33:43 +0000 (00:33 +0900)]
sys/vfs/tmpfs: Fix lock ordering
- Get locks in consistent order (dnode -> node).
Sascha Wildner [Wed, 6 May 2015 21:26:42 +0000 (23:26 +0200)]
kernel/acpi: Remove some local changes from a no-longer used file.
Tomohiro Kusumi [Wed, 6 May 2015 16:09:23 +0000 (01:09 +0900)]
sys/vfs/tmpfs: Fix typo
- Flush all vnodes on unmount(2).
Tomohiro Kusumi [Wed, 6 May 2015 16:03:09 +0000 (01:03 +0900)]
sys/vfs/tmpfs: Fix assertion
- It's always expected to be 2.
Sascha Wildner [Wed, 6 May 2015 16:40:56 +0000 (18:40 +0200)]
bsd-family-tree: Sync with FreeBSD.
* DragonFly 4.0.2 to 4.0.5
* OpenBSD 5.7
* The Design and Implementation of the FreeBSD Operating System, 2nd Ed.
Sepherosa Ziehau [Tue, 5 May 2015 14:19:36 +0000 (22:19 +0800)]
coretemp: Add 'temp' to sensor description.
Sepherosa Ziehau [Tue, 5 May 2015 14:13:22 +0000 (22:13 +0800)]
sensor: Factor out helper functions.
Sepherosa Ziehau [Tue, 5 May 2015 13:40:32 +0000 (21:40 +0800)]
memtemp: Add 'temp' to the sensor description
Sascha Wildner [Tue, 5 May 2015 17:59:36 +0000 (19:59 +0200)]
kernel/ddb: Add a DB_COMMAND_FLAG() macro to set the flag, too.
Tomohiro Kusumi [Tue, 5 May 2015 15:33:21 +0000 (00:33 +0900)]
sys/vfs/tmpfs: Lock tmpfs_mount member
- Reading tmp->tm_nodes_inuse needs lock
Tomohiro Kusumi [Tue, 5 May 2015 15:26:24 +0000 (00:26 +0900)]
sys/vfs/tmpfs: Add comment
- This function unlocks a lock acquired by a caller.
Sepherosa Ziehau [Tue, 5 May 2015 13:03:50 +0000 (21:03 +0800)]
arp: Add sysctl to avoid creation failure log
It could be annoying sometime.
Sepherosa Ziehau [Tue, 5 May 2015 13:03:12 +0000 (21:03 +0800)]
ecc/e5: Hook up error correction counting into sensors framework.
Sepherosa Ziehau [Mon, 4 May 2015 13:04:33 +0000 (21:04 +0800)]
coretemp: Enhance data of devctl notify event.
Sepherosa Ziehau [Mon, 4 May 2015 13:03:31 +0000 (21:03 +0800)]
memtemp: Mention devctl notify event
Sepherosa Ziehau [Mon, 4 May 2015 12:28:30 +0000 (20:28 +0800)]
ig_hal: Fix improper multicast setup
Obtained-from: dillon@
Tomohiro Kusumi [Mon, 4 May 2015 18:55:17 +0000 (03:55 +0900)]
sys/vfs/tmpfs: Remove #include <sys/spinlock2.h>
- tmpfs no longer uses spinlock (it did before).
Tomohiro Kusumi [Mon, 4 May 2015 18:32:47 +0000 (03:32 +0900)]
sys/vfs/tmpfs: Lock tmpfs member on ino allocation
- tmp->tm_ino++;
should be properly protected by TMPFS_LOCK/UNLOCK().
Tomohiro Kusumi [Mon, 4 May 2015 17:54:30 +0000 (02:54 +0900)]
sys/vfs/tmpfs: Change tm_ino type from 'int' to 'ino_t'
- tmpfs_mount::tm_ino needs to be ino_t.
- A wrapper function for ino allocation tmpfs_fetch_ino() and
inode itself assume it's ino_t, but not int.
François Tigeot [Mon, 4 May 2015 18:50:49 +0000 (20:50 +0200)]
agp: Remove support for pre-amd64 Intel chipsets
These chipsets were paired with i386-only CPUs and thus have no
chance of being used with current DragonFly releases.
Sascha Wildner [Mon, 4 May 2015 18:43:06 +0000 (20:43 +0200)]
kernel/ddb: Use NULL for pointers.
Tomohiro Kusumi [Mon, 4 May 2015 16:07:52 +0000 (01:07 +0900)]
sys/vfs/tmpfs: Remove trailing whitespace
- Lines changed by
66fa44e7 have trailing whitespaces for some reason.
François Tigeot [Mon, 4 May 2015 07:35:03 +0000 (09:35 +0200)]
drm: Add alloc_page()
François Tigeot [Mon, 4 May 2015 07:34:51 +0000 (09:34 +0200)]
drm: Add pci_resource_start and pci_resource_len()
François Tigeot [Mon, 4 May 2015 07:31:19 +0000 (09:31 +0200)]
drm: Add a pci id field in struct pci_dev
François Tigeot [Mon, 4 May 2015 07:30:58 +0000 (09:30 +0200)]
drm: Add io_mapping_create_wc()
François Tigeot [Mon, 4 May 2015 07:29:20 +0000 (09:29 +0200)]
drm: Add __free_page()
François Tigeot [Mon, 4 May 2015 07:25:48 +0000 (09:25 +0200)]
drm: Add sg_page_iter_dma_address()
François Tigeot [Mon, 4 May 2015 07:23:15 +0000 (09:23 +0200)]
drm: Add IS_ENABLED()
Matthew Dillon [Mon, 4 May 2015 07:21:27 +0000 (09:21 +0200)]
drm: Add scatterlist functions
Matthew Dillon [Mon, 4 May 2015 07:10:53 +0000 (09:10 +0200)]
drm: Add alloc_pages and __free_pages()
Matthew Dillon [Mon, 4 May 2015 07:08:38 +0000 (09:08 +0200)]
drm: Add pci_dma_mapping_error()
François Tigeot [Mon, 4 May 2015 07:07:27 +0000 (09:07 +0200)]
drm: Add asm/pgtable.h and asm/pgtable_types.h
François Tigeot [Mon, 4 May 2015 07:05:29 +0000 (09:05 +0200)]
drm: Fix linux/seq_file.h
François Tigeot [Mon, 4 May 2015 07:03:35 +0000 (09:03 +0200)]
drm: Add mutex_trylock() and mutex_lock_interruptible()
François Tigeot [Mon, 4 May 2015 07:01:26 +0000 (09:01 +0200)]
drm: Add a few PCI power management definitions
François Tigeot [Mon, 4 May 2015 06:57:02 +0000 (08:57 +0200)]
drm: Add a definition of mmiowb()
François Tigeot [Mon, 4 May 2015 06:56:43 +0000 (08:56 +0200)]
drm: Add __copy_from_user_inatomic()
François Tigeot [Mon, 4 May 2015 06:53:43 +0000 (08:53 +0200)]
drm: Add definitions of ECHRNG and ENOTSUPP
François Tigeot [Mon, 4 May 2015 06:51:30 +0000 (08:51 +0200)]
drm: Add asm/page.h
François Tigeot [Sun, 3 May 2015 19:25:28 +0000 (21:25 +0200)]
drm: Add pci_map_page and pci_unmap_page()
François Tigeot [Sun, 3 May 2015 19:23:41 +0000 (21:23 +0200)]
drm: Add linux/uaccess.h
François Tigeot [Sun, 3 May 2015 19:12:32 +0000 (21:12 +0200)]
drm: Really implement fault_in_multipages_writeable()
Obtained-from: FreeBSD
François Tigeot [Sun, 3 May 2015 19:11:40 +0000 (21:11 +0200)]
drm: Really implement fault_in_multipages_readable()
Obtained-from: FreeBSD
François Tigeot [Sun, 3 May 2015 19:09:48 +0000 (21:09 +0200)]
drm: linux/mm.h: Add vma_pages()
François Tigeot [Sun, 3 May 2015 20:07:51 +0000 (21:07 +0100)]
drm: Fix linux/export.h and linux/module.h
François Tigeot [Sun, 3 May 2015 20:00:36 +0000 (21:00 +0100)]
drm: Import linux/rbtree.h
Obtained-from: FreeBSD/OFED
François Tigeot [Sun, 3 May 2015 19:16:46 +0000 (20:16 +0100)]
drm: Add linux/pagemap.h
Tomohiro Kusumi [Sun, 3 May 2015 17:25:39 +0000 (02:25 +0900)]
sys/vfs/tmpfs: Fix comments
- DragonFly has 'struct tmpfs_node *dnode' for the first arg.
(it was vnode* in FreeBSD)
François Tigeot [Sun, 3 May 2015 17:31:58 +0000 (19:31 +0200)]
drm: linux/kernel.h: Add mult_frac()
Obtained-from: NetBSD