dragonfly.git
6 years agoifnet: Fix typo.
Sascha Wildner [Sat, 15 Jul 2017 08:31:29 +0000 (10:31 +0200)]
ifnet: Fix typo.

6 years agoDefine __* symbols for the malloc(3) functions to make wrapping easier.
Imre Vadász [Sun, 9 Jul 2017 12:08:38 +0000 (14:08 +0200)]
Define __* symbols for the malloc(3) functions to make wrapping easier.

This should match what FreeBSD and other systems do. Where the __* variants
always refer to the libc function, but the actual malloc(), free() etc.
symbols can be overrided by a malloc wrapper.

6 years agoResolve issue with libusb C++ header file inclusion.
Imre Vadász [Sat, 1 Jul 2017 20:42:48 +0000 (22:42 +0200)]
Resolve issue with libusb C++ header file inclusion.

Taken-From: FreeBSD (svn r302171)

6 years agoImplement libusb_hotplug_register_callback() and _deregister_callback().
Imre Vadász [Sat, 1 Jul 2017 20:37:03 +0000 (22:37 +0200)]
Implement libusb_hotplug_register_callback() and _deregister_callback().

  Implement libusb_hotplug_register_callback() and
  libusb_hotplug_deregister_callback() for the LibUSB v1.0 API and
  update the libusb(3) manual page.

Taken-From: FreeBSD (svn r302080)

6 years agoifnet: Log rarely used ifnet address destruction.
Sepherosa Ziehau [Tue, 11 Jul 2017 02:15:45 +0000 (10:15 +0800)]
ifnet: Log rarely used ifnet address destruction.

6 years agoifnet: Break long lines.
Sepherosa Ziehau [Tue, 11 Jul 2017 02:11:54 +0000 (10:11 +0800)]
ifnet: Break long lines.

6 years agoifnet: ifa_addr should always be configured.
Sepherosa Ziehau [Tue, 11 Jul 2017 02:06:29 +0000 (10:06 +0800)]
ifnet: ifa_addr should always be configured.

6 years agoifnet: Delete INET address should not fail; panic upon failure.
Sepherosa Ziehau [Tue, 11 Jul 2017 02:03:57 +0000 (10:03 +0800)]
ifnet: Delete INET address should not fail; panic upon failure.

This helps catch the root cause of a tun(4) related crash.

Reported-by: dillon
6 years agolibthread_xu: Some small fixes.
Sascha Wildner [Mon, 10 Jul 2017 17:56:19 +0000 (19:56 +0200)]
libthread_xu: Some small fixes.

* Add some parentheses for readability.

* 'count' is already unsigned, so remove useless <0 check.

6 years agoipflow: Unroll the first iteration of the hash generation loop.
Sepherosa Ziehau [Mon, 10 Jul 2017 06:27:06 +0000 (14:27 +0800)]
ipflow: Unroll the first iteration of the hash generation loop.

Right shifting 32 bits w/ 32 bits is undefined behaviour.

Reported-by: swildner
6 years agokernel: Remove old unused #defines in kern_lock.c
Sascha Wildner [Sun, 9 Jul 2017 19:35:51 +0000 (21:35 +0200)]
kernel: Remove old unused #defines in kern_lock.c

The code using them was removed in 2003 (8a8d5d85f4fb81fc5b1dd4).

Repoted-by: Mateusz Guzik (mjg_)
6 years agokernel/acpi: Untangle the wakecode generation during buildkernel.
Sascha Wildner [Sat, 8 Jul 2017 21:18:23 +0000 (23:18 +0200)]
kernel/acpi: Untangle the wakecode generation during buildkernel.

* Use file2c instead of hexdump and remove hexdump from the bootstrap
  tools.

* Remove the nested make invocation and the genwakecode.sh script
  too. Instead, do all the steps from acpica's Makefile and
  sys/conf/files.

* Finally, comment it all out because right now all of this isn't
  used.

* This commit also silences a "Object directory not changed from
  original" make warning.

Reported-by: zrj
Based-on:    FreeBSD

6 years agosshlockout - Also lockout on max authentication attempts
Matthew Dillon [Sat, 8 Jul 2017 17:38:26 +0000 (10:38 -0700)]
sshlockout - Also lockout on max authentication attempts

* Also lockout on max authentication attempts, because its really annoying
  to have log files filled with them.

6 years agoUnbreak VKERNEL64 after apple_gmux module addition.
zrj [Sat, 8 Jul 2017 12:12:04 +0000 (15:12 +0300)]
Unbreak VKERNEL64 after apple_gmux module addition.

Better and more flexible DEV_SUPPORT checking logic is needed.
For now just fix the build.

6 years agokernel: Let thread IDs start at 1 instead of 0.
Sascha Wildner [Sat, 8 Jul 2017 09:19:19 +0000 (11:19 +0200)]
kernel: Let thread IDs start at 1 instead of 0.

This is helpful in various places, for example Chromium.

Reported-by: ivadasz
Submitted-by: sephe
Approved-by: dillon
6 years agosbin/hammer: Drop rerundant ()
Tomohiro Kusumi [Sun, 2 Jul 2017 20:01:40 +0000 (23:01 +0300)]
sbin/hammer: Drop rerundant ()

6 years agosbin/hammer: Fix get_buffer_data()'s wrong xor for undo buffer caching
Tomohiro Kusumi [Sat, 24 Jun 2017 23:17:09 +0000 (02:17 +0300)]
sbin/hammer: Fix get_buffer_data()'s wrong xor for undo buffer caching

As mentioned in 830ab40e
"sbin/hammer: Redo e4323571 partly (after reverted by 03d5db37)",
830ab40e (originally by e4323571) fixed a bug for get_buffer_data()
wrongly taking xor of zone-X offset and zone-2 offset, where X is
one of the direct zones other than zone-2.

This commit fixes it for indirect zone which is zone-3 (and only
zone-3 in this case). The reason zone-3 being different is because
zone-3 to zone-2 translation isn't direct mapped, but instead the
volume header has a pointer to big-blocks that belong to zone-3.

Also see 0942cbbc which made this xor bug clear.

6 years agosbin/hammer: Move cache to tailq end when get_buffer_data() has a valid cache
Tomohiro Kusumi [Sun, 2 Jul 2017 18:30:08 +0000 (21:30 +0300)]
sbin/hammer: Move cache to tailq end when get_buffer_data() has a valid cache

This is the same as what get_buffer() does when new allocation
is not needed. This hasn't been done in get_buffer_data() when
the given non NULL buffer is the one to look for.

This seems to make newfs_hammer a bit faster, as the i/o size is
normally large enough to invoke eviction of HAMMER userspace buffer
cache while running, starting from the head of the tailq.

-- before this commit
 # for x in 1 2 3 4 5; do
 > (time newfs_hammer -L TEST /dev/da1 /dev/da2 /dev/da3 > /dev/null) 2>&1 | grep real
 > done
 real    0m20.291s
 real    0m20.574s
 real    0m22.347s
 real    0m21.562s
 real    0m20.991s

-- with this commit
 # for x in 1 2 3 4 5; do
 > (time newfs_hammer -L TEST /dev/da1 /dev/da2 /dev/da3 > /dev/null) 2>&1 | grep real
 > done
 real    0m18.023s
 real    0m18.064s
 real    0m18.104s
 real    0m17.646s
 real    0m18.310s

6 years agosys/vfs/hammer: Fix a comment on nresolving PFS
Tomohiro Kusumi [Sat, 24 Jun 2017 21:56:58 +0000 (00:56 +0300)]
sys/vfs/hammer: Fix a comment on nresolving PFS

On nresolving a PFS, the entry name to be resolved is the PFS itself,
whether it's pointed to by a symlink or not.

Also note that a PFS doesn't necessarily require a symlink to point
to itself. A symlink is used only because the PFS itself isn't visible
to userspace via readdir(2) (i.e can't see with ls without a symlink...).

6 years agosys/vfs/hammer: Drop wrong info on inode# from hammer(5)
Tomohiro Kusumi [Sat, 24 Jun 2017 19:38:42 +0000 (22:38 +0300)]
sys/vfs/hammer: Drop wrong info on inode# from hammer(5)

PFS has nothing to do with namespace of inode#.

The only exception is the root inode# for PFS including PFS#0, which
are all 1. Another exceptional case is a master PFS and its slave PFS,
where corresponding files/dirs have the same inode#.

6 years agoipfw: Increate FIN states life time.
Sepherosa Ziehau [Thu, 6 Jul 2017 01:14:03 +0000 (09:14 +0800)]
ipfw: Increate FIN states life time.

So they will not be ripped prematurely, which may prevent FIN
retransmission from working.

6 years agoipfw: Don't allow state allocation to fail and use M_INTWAIT for states
Sepherosa Ziehau [Thu, 6 Jul 2017 00:39:57 +0000 (08:39 +0800)]
ipfw: Don't allow state allocation to fail and use M_INTWAIT for states

6 years agokernel - Automatically downscasle NPROC resource limit
Matthew Dillon [Wed, 5 Jul 2017 16:07:06 +0000 (09:07 -0700)]
kernel - Automatically downscasle NPROC resource limit

* Downscale the NPROC resource limit based on fork and chroot depth, up
  to 50%, and also make the limit apply to root processes.  This is intended
  to be a poor-man's safety, preventing run-away (root or other) process
  creation from completely imploding a system.

* Each level of fork() downscales the NPROC resource limit by 1/3%,
  capped at 32 levels (~10%)

* Each chroot (including that made by a jail) downscales the NPROC
  resource limit by 10%, up to 40%.

6 years agoRevert "Always use unix line endings"
zrj [Wed, 5 Jul 2017 10:05:19 +0000 (13:05 +0300)]
Revert "Always use unix line endings"

This reverts commit 74d54042dbade9a0b2e5830b9645fd12ebc978f4.

While Eitan Adler intension is understandable, it was done without normalizing
line endings in the repo first nor checking for contrib/ sources.
Global rule applied even for the binary files.

Discussed-with: swildner

6 years agosocket: Allow root to pass large buffer to getsockopt.
Sepherosa Ziehau [Wed, 5 Jul 2017 00:27:36 +0000 (08:27 +0800)]
socket: Allow root to pass large buffer to getsockopt.

This fixes IP_FW_GET with large amount of states; e.g. 30K~60K states.

6 years agoBump __DragonFly_version after PTHREAD_STACK_MIN increase
John Marino [Tue, 4 Jul 2017 17:20:06 +0000 (12:20 -0500)]
Bump __DragonFly_version after PTHREAD_STACK_MIN increase

6 years agoFix mixed line endings.
zrj [Tue, 4 Jul 2017 07:43:14 +0000 (10:43 +0300)]
Fix mixed line endings.

6 years agopthreads - Change PTHREAD_STACK_MIN
Matthew Dillon [Tue, 4 Jul 2017 02:58:19 +0000 (19:58 -0700)]
pthreads - Change PTHREAD_STACK_MIN

* Change PTHREAD_STACK_MIN from 1024 to 16384.  Most other platforms
  seems to use 16384.  Even 4096 can cause rtld failures.

* Fixes 'node', which defaults to configuring the pthreads stacksize to
  PTHREAD_STACK_MIN and then proceeded to implode.

Reported-by: tautology
6 years agokernel/acpica: Better check AcpiOsPredefinedOverride()'s InitVal argument.
Sascha Wildner [Mon, 3 Jul 2017 21:20:04 +0000 (23:20 +0200)]
kernel/acpica: Better check AcpiOsPredefinedOverride()'s InitVal argument.

Taken-from: FreeBSD

6 years agokernel/acpica: ACPI_THREAD_ID is unsigned.
Sascha Wildner [Mon, 3 Jul 2017 21:06:44 +0000 (23:06 +0200)]
kernel/acpica: ACPI_THREAD_ID is unsigned.

6 years agokernel/acpica: Remove no longer needed #include.
Sascha Wildner [Mon, 3 Jul 2017 19:09:46 +0000 (21:09 +0200)]
kernel/acpica: Remove no longer needed #include.

6 years agokernel/acpica: Return curthread as thread id from AcpiOsGetThreadId().
Sascha Wildner [Mon, 3 Jul 2017 18:53:23 +0000 (20:53 +0200)]
kernel/acpica: Return curthread as thread id from AcpiOsGetThreadId().

Discussed-with: ivadasz

6 years agoipfw: Remove context generation; the race it tries to fix no longer exists
Sepherosa Ziehau [Sun, 2 Jul 2017 18:40:20 +0000 (02:40 +0800)]
ipfw: Remove context generation; the race it tries to fix no longer exists

It was intend to fix the race when the configuration was running in the
deleted ifnet threads; now the configuration is running in the netisrs.

6 years agoSync ACPICA with Intel's version 20170629.
Sascha Wildner [Sat, 1 Jul 2017 10:08:04 +0000 (12:08 +0200)]
Sync ACPICA with Intel's version 20170629.

We skipped 20170531 due to a regression in the processing of resource
descriptors (see https://bugs.acpica.org/show_bug.cgi?id=1391) which
is fixed in 20170629.

* Support added for ACPI 6.2. Specification available at uefi.org.

* Fixes in ACPI table verification, signature validation, mutexes.

* Numerous other fixes and additions.

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

6 years agokernel/acpi: Call AcpiInitializeSubsystem() before AcpiInitializeTables().
Sascha Wildner [Sat, 1 Jul 2017 09:46:29 +0000 (11:46 +0200)]
kernel/acpi: Call AcpiInitializeSubsystem() before AcpiInitializeTables().

Per chapter "Required ACPICA Initialization Sequence" of the ACPICA
Programmer Reference.

Uncovered by recent table handling changes in ACPICA 20170629.

6 years agoroute: Cache align statistics.
Sepherosa Ziehau [Fri, 30 Jun 2017 01:23:57 +0000 (09:23 +0800)]
route: Cache align statistics.

Though these statistics are rarely updated; better safe the sorry.

Since it changes userland visible structure size, bump
__DragonFly_version.

6 years agoispfw.4: Remove extra .Pp
Sascha Wildner [Fri, 30 Jun 2017 08:44:23 +0000 (10:44 +0200)]
ispfw.4: Remove extra .Pp

6 years agonetinet: Static assert TCP/UDP/IP stats are cache line aligned.
Sepherosa Ziehau [Fri, 30 Jun 2017 00:37:25 +0000 (08:37 +0800)]
netinet: Static assert TCP/UDP/IP stats are cache line aligned.

6 years agokmalloc: Reduce ks_loosememuse update frequency.
Sepherosa Ziehau [Thu, 29 Jun 2017 19:39:32 +0000 (03:39 +0800)]
kmalloc: Reduce ks_loosememuse update frequency.

ks_loosememuse is shared by all CPUs, so this commit is intended to
reduce negative effect of cache pollution due to high ks_loosememuse
update frequency.

6 years agokernel/hptrr: Oops, fix some whitespace.
Sascha Wildner [Thu, 29 Jun 2017 19:34:53 +0000 (21:34 +0200)]
kernel/hptrr: Oops, fix some whitespace.

6 years agokernel: Sync hptrr(4) with FreeBSD.
Sascha Wildner [Thu, 29 Jun 2017 19:31:42 +0000 (21:31 +0200)]
kernel: Sync hptrr(4) with FreeBSD.

* A number of locking fixes, no longer grabs Giant in the ioctl() method
  (not relevant to us) and when scanning the bus. Also set D_MPSAFE and
  INTR_MPSAFE.

* Use bus_dmamap_load_ccb(). Thanks, sephe!

* Additional fixes supplied by HighPoint.

* Fix some typos in comments.

6 years agokernel/isp: Unify firmware handling with the rest of the system.
Jan Sucan [Sun, 25 Jun 2017 10:27:24 +0000 (10:27 +0000)]
kernel/isp: Unify firmware handling with the rest of the system.

* Convert firmware binary data from C arrays in a header files to
  uuencode .uu files. Byte order of the firmware image is
  little-endian. As far as DragonFly BSD supports only little-endian
  architectures it's ok. But in case of a big-endian architecture the
  byte order must be changed before firmware is processed by the isp
  driver.

* Move the .uu images to a sys/contrib/dev/isp.

* Add a script for conversion of firmware stored in arrays in the C
  header files to .uu files. This is for getting the firmware changes
  from the other BSD systems more easily.

* Remove use of ispfw module that contains firmwares for all of the
  isp.4 driver devices. User can pick a module for a particular device
  instead of having firmwares for all of the devices loaded.

* Document that the kitchen sink ispfw.ko module with all firmware is
  gone.

Submitted-by: Jan Sucan
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/3044>

6 years agokmalloc: Avoid code duplication.
Sepherosa Ziehau [Thu, 29 Jun 2017 01:37:26 +0000 (09:37 +0800)]
kmalloc: Avoid code duplication.

6 years agokmalloc: Minor style changes; no functional changes.
Sepherosa Ziehau [Thu, 29 Jun 2017 01:14:41 +0000 (09:14 +0800)]
kmalloc: Minor style changes; no functional changes.

6 years agobusdma: Add bus_dmamap_load_ccb; ease driver porting from FreeBSD.
Sepherosa Ziehau [Thu, 29 Jun 2017 00:20:22 +0000 (08:20 +0800)]
busdma: Add bus_dmamap_load_ccb; ease driver porting from FreeBSD.

6 years agokmalloc: Minor style changes; no functional changes.
Sepherosa Ziehau [Thu, 29 Jun 2017 00:02:44 +0000 (08:02 +0800)]
kmalloc: Minor style changes; no functional changes.

6 years agokmalloc: Update comment
Sepherosa Ziehau [Wed, 28 Jun 2017 23:39:50 +0000 (07:39 +0800)]
kmalloc: Update comment

6 years agomalloc: Make # of calls statistic per-cpu.
Sepherosa Ziehau [Tue, 27 Jun 2017 23:13:22 +0000 (07:13 +0800)]
malloc: Make # of calls statistic per-cpu.

While I'm here, remove unused fields from malloc_type.

Bump __DragonFly_version.

6 years agoipfw3_nat: move housekeeping into callout func
Bill Yuan [Mon, 26 Jun 2017 15:41:26 +0000 (23:41 +0800)]
ipfw3_nat: move housekeeping into callout func

6 years agolibalias: pointer for house keeping func
Bill Yuan [Mon, 26 Jun 2017 15:31:59 +0000 (23:31 +0800)]
libalias: pointer for house keeping func

6 years agoipfw3_nat: callout func for nat record cleaning
Bill Yuan [Mon, 26 Jun 2017 15:18:38 +0000 (23:18 +0800)]
ipfw3_nat: callout func for nat record cleaning

6 years agoipfw3_nat: new sysctl node 'cleanup_interval'
Bill Yuan [Mon, 26 Jun 2017 15:08:48 +0000 (23:08 +0800)]
ipfw3_nat: new sysctl node 'cleanup_interval'

6 years agoipfw3_nat: move func prototype into header
Bill Yuan [Mon, 26 Jun 2017 15:03:36 +0000 (23:03 +0800)]
ipfw3_nat: move func prototype into header

6 years agolibalias: cleanup
Bill Yuan [Mon, 26 Jun 2017 14:56:16 +0000 (22:56 +0800)]
libalias: cleanup

6 years agoif: Implement classq_concat()
Sepherosa Ziehau [Sun, 25 Jun 2017 20:13:03 +0000 (04:13 +0800)]
if: Implement classq_concat()

6 years agotcp: Disable NCR on link local network by default.
Sepherosa Ziehau [Sun, 25 Jun 2017 19:07:41 +0000 (03:07 +0800)]
tcp: Disable NCR on link local network by default.

6 years agotcp: Move rmx based RTT setup out of tcp_mss().
Sepherosa Ziehau [Sun, 25 Jun 2017 18:37:57 +0000 (02:37 +0800)]
tcp: Move rmx based RTT setup out of tcp_mss().

And rename tcp_mss() to tcp_rmx_init().

6 years agokernel: Don't include <sys/mutex.h> in some drivers that don't need it.
Sascha Wildner [Sat, 24 Jun 2017 20:45:53 +0000 (22:45 +0200)]
kernel: Don't include <sys/mutex.h> in some drivers that don't need it.

6 years agotcp: Reindent a bit.
Sepherosa Ziehau [Fri, 23 Jun 2017 01:16:56 +0000 (09:16 +0800)]
tcp: Reindent a bit.

6 years agoRevert "tcp: Fix comment, while I'm here."
Sepherosa Ziehau [Fri, 23 Jun 2017 08:40:05 +0000 (16:40 +0800)]
Revert "tcp: Fix comment, while I'm here."

This reverts commit 0358cc7b162d3691aa84a06d67472c3947a7157d.

The "feasible timer" is 2 ticks; so it will not expire too earlier:

      X    Y
 +....+....+
     A
     |
     set timer

If tick is 1, timer will expire too earlier (1/5 tick later), 2 ticks
obviously are better choice and safe here.

6 years agotcp: Fix comment, while I'm here.
Sepherosa Ziehau [Thu, 22 Jun 2017 23:13:17 +0000 (07:13 +0800)]
tcp: Fix comment, while I'm here.

6 years agotcp: Fix comment, which I'm here.
Sepherosa Ziehau [Thu, 22 Jun 2017 22:55:28 +0000 (06:55 +0800)]
tcp: Fix comment, which I'm here.

6 years agotcp: Reduce minimum retransmit timeout to 190ms.
Sepherosa Ziehau [Thu, 22 Jun 2017 22:06:31 +0000 (06:06 +0800)]
tcp: Reduce minimum retransmit timeout to 190ms.

Increase retransmit timeout slop to ~160ms and reduce TCPTV_MIN
to ~30ms.  Bring in dillon's comment about TCPTV_MIN reduction
and retransmit timeout slop from FreeBSD.  And make sure that
tcp_rexmit_min is valid for a low kern.hz setting.

6 years agotcp: Don't depend on PR_FASTHZ.
Sepherosa Ziehau [Thu, 22 Jun 2017 20:25:58 +0000 (04:25 +0800)]
tcp: Don't depend on PR_FASTHZ.

TCP timers are callout based for more than one decade.

6 years agoem/emx: Disable flow control by default.
Sepherosa Ziehau [Thu, 22 Jun 2017 19:11:45 +0000 (03:11 +0800)]
em/emx: Disable flow control by default.

6 years agoigb: Disable flow control by default.
Sepherosa Ziehau [Thu, 22 Jun 2017 19:09:27 +0000 (03:09 +0800)]
igb: Disable flow control by default.

6 years agoix: Disable flow control by default.
Sepherosa Ziehau [Thu, 22 Jun 2017 19:07:29 +0000 (03:07 +0800)]
ix: Disable flow control by default.

6 years agomxge: Disable flow control by default.
Sepherosa Ziehau [Thu, 22 Jun 2017 18:55:49 +0000 (02:55 +0800)]
mxge: Disable flow control by default.

6 years agotcp: Cache align ACK queue header.
Sepherosa Ziehau [Thu, 22 Jun 2017 18:11:35 +0000 (02:11 +0800)]
tcp: Cache align ACK queue header.

6 years agolibc/gmon: Replace sbrk() with mmap()
Antonio Huete Jimenez [Thu, 22 Jun 2017 23:40:14 +0000 (01:40 +0200)]
libc/gmon: Replace sbrk() with mmap()

- Fixes profiling for C++ programs compiled with lang/gcc5.

Taken-from: FreeBSD (svn 288009)

6 years agoUpdate the pciconf(8) database.
Sascha Wildner [Thu, 22 Jun 2017 19:49:55 +0000 (21:49 +0200)]
Update the pciconf(8) database.

June 22, 2017 snapshot from http://pciids.sourceforge.net/

6 years agodomain: Explicitly setup inet/inet6/route/local domain.
Sepherosa Ziehau [Thu, 22 Jun 2017 01:48:08 +0000 (09:48 +0800)]
domain: Explicitly setup inet/inet6/route/local domain.

6 years agoifnet: Remove unused functions
Sepherosa Ziehau [Wed, 21 Jun 2017 23:21:30 +0000 (07:21 +0800)]
ifnet: Remove unused functions

6 years agoloopback: Free ifnet memory in clone_destroy method.
Sepherosa Ziehau [Tue, 20 Jun 2017 03:16:02 +0000 (11:16 +0800)]
loopback: Free ifnet memory in clone_destroy method.

6 years agoloopback: Function renaming
Sepherosa Ziehau [Tue, 20 Jun 2017 03:03:06 +0000 (11:03 +0800)]
loopback: Function renaming

6 years agoloopback: Use ifclone APIs to create loopback interfaces.
Sepherosa Ziehau [Tue, 20 Jun 2017 02:58:55 +0000 (10:58 +0800)]
loopback: Use ifclone APIs to create loopback interfaces.

This paves way for multiple FIB support.

6 years agobridge: Fix comment.
Sepherosa Ziehau [Sun, 4 Jun 2017 14:38:38 +0000 (22:38 +0800)]
bridge: Fix comment.

6 years agovlan: Fix comment.
Sepherosa Ziehau [Sun, 4 Jun 2017 11:21:48 +0000 (19:21 +0800)]
vlan: Fix comment.

6 years agoipfw: Fix comment.
Sepherosa Ziehau [Sun, 4 Jun 2017 11:01:06 +0000 (19:01 +0800)]
ipfw: Fix comment.

6 years agoLINT64: Remove old LINPROCFS option.
Sascha Wildner [Sun, 18 Jun 2017 07:53:36 +0000 (09:53 +0200)]
LINT64: Remove old LINPROCFS option.

6 years agokernel/acpi: Match _HID instead of relying on _CID for PCIe.
Sascha Wildner [Sat, 17 Jun 2017 17:34:07 +0000 (19:34 +0200)]
kernel/acpi: Match _HID instead of relying on _CID for PCIe.

In practice this has probably no effect because usually _HID == PNP0A08
and _CID == PNP0A03 (or vice versa, like seen in VMware).

6 years agoig4 - Interrupt handling was mpsafe already, just set INTR_MPSAFE
Imre Vadász [Fri, 16 Jun 2017 19:06:04 +0000 (21:06 +0200)]
ig4 - Interrupt handling was mpsafe already, just set INTR_MPSAFE

6 years agoig4 - Recognize Haswell, the Atom SoCs and Skylake/Kaby Lake accordingly.
Imre Vadász [Thu, 15 Jun 2017 22:21:11 +0000 (00:21 +0200)]
ig4 - Recognize Haswell, the Atom SoCs and Skylake/Kaby Lake accordingly.

* Some of the registers only exist in some of Intel's i2c controller
  versions, and some registers have different locations or content.

* This should make ig4 attach successfully on Skylake-U/Y and Kaby Lake-U/Y.

6 years agokernel/acpi_sysresource: Don't be quiet when booting verbosely.
Sascha Wildner [Thu, 15 Jun 2017 22:34:44 +0000 (00:34 +0200)]
kernel/acpi_sysresource: Don't be quiet when booting verbosely.

6 years agoig4 - Fix typo, pci_get_devid() -> pci_get_device.
Imre Vadász [Thu, 15 Jun 2017 19:48:04 +0000 (21:48 +0200)]
ig4 - Fix typo, pci_get_devid() -> pci_get_device.

* Make intel_i2c_ids static const as well, while there.

6 years agokernel: Add 'static' to some function definitions.
Sascha Wildner [Thu, 15 Jun 2017 17:22:44 +0000 (19:22 +0200)]
kernel: Add 'static' to some function definitions.

The declarations already have it, so no functional difference.

6 years agoig4 - Recognize PCI device IDs for Skylake-U/Y and Kaby Lake-U/Y CPUs.
Imre Vadász [Wed, 14 Jun 2017 19:41:41 +0000 (21:41 +0200)]
ig4 - Recognize PCI device IDs for Skylake-U/Y and Kaby Lake-U/Y CPUs.

6 years agoipfw3sync: release mbuf after sync
Bill Yuan [Sat, 10 Jun 2017 16:36:48 +0000 (00:36 +0800)]
ipfw3sync: release mbuf after sync

6 years agoipfw3: seperate socreate & sobind to support socreate_fast
Bill Yuan [Sat, 10 Jun 2017 16:35:33 +0000 (00:35 +0800)]
ipfw3: seperate socreate & sobind to support socreate_fast

6 years agoipfw3: match_token func
Bill Yuan [Sat, 10 Jun 2017 16:29:52 +0000 (00:29 +0800)]
ipfw3: match_token func

6 years agoipfw3_basic: keep-state is a pseudo filter
Bill Yuan [Sat, 10 Jun 2017 16:25:46 +0000 (00:25 +0800)]
ipfw3_basic: keep-state is a pseudo filter

6 years agoipfw3sync: dont call the sync func when centre not running
Bill Yuan [Thu, 8 Jun 2017 16:35:55 +0000 (00:35 +0800)]
ipfw3sync: dont call the sync func when centre not running

6 years agodrm - Fix hrtimer, don't reset timer->function to NULL in timeout handler.
Imre Vadász [Wed, 7 Jun 2017 21:21:01 +0000 (23:21 +0200)]
drm - Fix hrtimer, don't reset timer->function to NULL in timeout handler.

* The same hrtimer object is activated multiple times by i915(4), so we
  mustn't clear timer->function in the timeout handler.

* This seems to fix the powersaving issues in i915(4) from the update to
  Linux 4.7.10 code in 8621f4070e7cb342161183c980ae7fce2fd8124e.

6 years agokernel - Move PAT indices 4, 5 to 5, 6
Matthew Dillon [Wed, 7 Jun 2017 18:59:15 +0000 (11:59 -0700)]
kernel - Move PAT indices 4, 5 to 5, 6

* Move the PAT indices to solve a stale cache issue on MacBooks that
  prevents proper booting.

Submitted-by: profmakx, peeter
Taken-from: FreeBSD

6 years agokernel - Add quirk for additional MCP79 AHCI chipset
Matthew Dillon [Wed, 7 Jun 2017 18:21:10 +0000 (11:21 -0700)]
kernel - Add quirk for additional MCP79 AHCI chipset

* Add quirk to ignore FIS status to yet another MCP79 chipset.  These NVidia
  chipsets do not implement the AHCI spec properly and need a quirk to probe
  properly.

Reported-by: peeter
6 years agoipfw3sync: comment out the printing
Bill Yuan [Thu, 8 Jun 2017 00:59:10 +0000 (08:59 +0800)]
ipfw3sync: comment out the printing

6 years agoipfw3_basic: move netisr_domsg out of callout func
Bill Yuan [Wed, 7 Jun 2017 13:02:55 +0000 (21:02 +0800)]
ipfw3_basic: move netisr_domsg out of callout func

6 years agosdhci - Add missing BROKEN_DMA quirk for Apollo Lake in sdhci_acpi(4).
Imre Vadász [Mon, 5 Jun 2017 19:48:36 +0000 (21:48 +0200)]
sdhci - Add missing BROKEN_DMA quirk for Apollo Lake in sdhci_acpi(4).

* Because of the APL18 erratum, DMA should be disabled on the Apollo Lake
  controllers for now, until we have 64bit ADMA2, which should work
  reliably on these models. I forgot to add this flag in sdhci_acpi(4) in
  commit 7ba10b88109826f7f4b59e318458760d74f2452e.

6 years agodhclient - Fix bug last commit
Matthew Dillon [Sat, 3 Jun 2017 22:05:18 +0000 (15:05 -0700)]
dhclient - Fix bug last commit

* Missing 'fi' in script prevented it from working properly.

6 years agodrm/radeon: Sync firmware with Linux
Michael Neumann [Fri, 2 Jun 2017 23:17:55 +0000 (01:17 +0200)]
drm/radeon: Sync firmware with Linux