Commit Graph

274902 Commits

Author SHA1 Message Date
jdolecek
d54f034772 drop the disabled M_EXT_ROMAP mbuf code, and convert xennet_checksum_fill()
to use in_undefer_cksum() instead of custom code to compute the checksum
for incoming packets

make it possible to defer/skip the checksum computation by appropriate Rx
flag similarily as we do for Tx; with
2020-03-16 20:49:22 +00:00
ad
cd4b207ac9 Use C99-ism to reduce ifdefs. Pointed out by christos@. 2020-03-16 20:07:44 +00:00
ad
db42bf9228 pmap_pv_track(): use PMAP_PAGE_INIT() otherwise the x86 pmap pukes. 2020-03-16 19:56:39 +00:00
nia
2dc9c196d6 audio.4: Mention the blk_ms sysctl 2020-03-16 19:20:36 +00:00
nia
96035af93e Lower blk_ms on more ports that are even slightly likely to play video 2020-03-16 19:09:34 +00:00
wiz
6d5974e98f Sort sections. 2020-03-16 13:02:05 +00:00
nia
c140c33a55 synaptics: Increase default scale_z for more precise scrolling 2020-03-16 11:13:19 +00:00
rin
fe3b3a2843 Catch up with major bump in terminfo. Unbreak build. 2020-03-16 10:02:47 +00:00
rin
9d99da222f Fix build; add -f flag to "rm miniroot.fs" in case of its absence. 2020-03-16 09:42:04 +00:00
nia
02ea559cdf pms.4: Typo. 2020-03-16 09:31:41 +00:00
nia
bfc83a571c audio.4: O_NONBLOCK isn't the actual problem 2020-03-16 09:20:01 +00:00
nia
b65a7a635c audio.4: Remove reference to using O_NONBLOCK
It doesn't work properly, but this turns out to not be a problem in most
code (code where it is generally uses threads)...

Don't provide misleading information about using it, or programmers
might start wondering why their code doesn't work.

Noted by Yorick Hardy on current-users
2020-03-16 08:50:06 +00:00
nisimura
ea60c1a68a redo the commit correctly 2020-03-16 08:48:05 +00:00
nisimura
3bb012f0f3 include files.sociox for generic64 2020-03-16 08:17:57 +00:00
nisimura
4848b2215d add a missing line 2020-03-16 08:10:20 +00:00
rin
e3bf4d7a45 Include <sys/rwlock.h> for krwlock_t required by uvm_pagewait(). 2020-03-16 08:03:58 +00:00
martin
989c6e9048 PR misc/54886: bump threshold for automatic/default creation of a tmpfs /tmp
up slightly (to 384 MB ram). This will make sure the default install has
a > 64 MB /tmp available (number pulled out of thin air, 64 MB is the minimum
required by the ZFS tests).
2020-03-16 06:48:17 +00:00
thorpej
bf60b623f3 Do the "have transmit resources available" check before checking that
there is a packet in the send queue.
2020-03-16 01:54:23 +00:00
christos
bfaaad7411 Unfortunately all the clockctl ioctls contain pointers to structs instead
of the structs themselves, so they need special handling. Undo previous
and do the permissions checks explicitly. It would be better to fix the
clockctl ioctls to contain the structs themselves...
2020-03-16 01:37:51 +00:00
christos
4d739e07c5 Don't open-code ioctls, pass back to the 64 bit ones (found by maxv@), 2020-03-16 00:05:29 +00:00
kamil
2272371ba2 Fix compiler-rt build with MKIPFILTER=no
Cherry-pick upstream patch:

From 7f6b25ad1bb3f8057655a9bad2a3b69621f4a543 Mon Sep 17 00:00:00 2001
From: Kamil Rytarowski <n54@gmx.com>
Date: Mon, 16 Mar 2020 00:39:02 +0100
Subject: [PATCH] [compiler-rt] [netbsd] Add support for the MKIPFILTER=no
 distribution

Add fallback definition for the IPFilter ioctl commands.

7f6b25ad1b.patch

PR bin/55070 by Roy Marples
2020-03-15 23:51:27 +00:00
thorpej
83ce4c20bb Add and use a new function, mowner_init_owner(), that initializes an
MBUFTRACE mowner structure (so that providers of it don't have to
grovel the internals).
2020-03-15 23:14:41 +00:00
thorpej
89dc2fdefd NetBSD 9.99.50 -- ifmedia / mii locking changes. 2020-03-15 23:06:02 +00:00
thorpej
7a9a30c5e7 Define and implement a locking protocol for the ifmedia / mii layers:
- MP-safe drivers provide a mutex to ifmedia that is used to serialize
  access to media-related structures / hardware regsiters.  Converted
  drivers use the new ifmedia_init_with_lock() function for this.  The
  new name is provided to ease the transition.
- Un-converted drivers continue to call ifmedia_init(), which will supply
  a compatibility lock to be used instead.  Several media-related entry
  points must be aware of this compatibility lock, and are able to acquire
  it recursively a limited number of times, if needed.  This is a SPIN
  mutex with priority IPL_NET.
- This same lock is used to serialize access to PHY registers and other
  MII-related data structures.

The PHY drivers are modified to acquire and release the lock, as needed,
and assert the lock is held as a diagnostic aid.

The "usbnet" framework has had an overhaul of its internal locking
protocols to fit in with the media / mii changes, and the drivers adapted.

USB wifi drivers have been changed to provide their own adaptive mutex
to the ifmedia later via a new ieee80211_media_init_with_lock() function.
This is required because the USB drivers need an adaptive mutex.

Besised "usbnet", a few other drivers are converted: vmx, wm, ixgbe / ixv.

mcx also now calls ifmedia_init_with_lock() because it needs to also use
an adaptive mutex.  The mcx driver still needs to be fully converted to
NET_MPSAFE.
2020-03-15 23:04:50 +00:00
nia
e1ecc07c09 synaptics: Check for single-finger event jitter in all cases.
I now have smooth two-finger scrolling.
2020-03-15 22:44:32 +00:00
thorpej
fa0b22a163 Don't bother with IFF_OACTIVE. 2020-03-15 22:19:00 +00:00
roy
a6837a9b93 tests: ndp_rtm: Check correct source address in RTA_AUTHOR
Fixes PR kern/55074.
2020-03-15 21:15:25 +00:00
ad
9887ecbe68 uvm_physseg: cluster fields used during RB tree lookup for PHYS_TO_VM_PAGE(). 2020-03-15 21:06:30 +00:00
martin
e3d221ef2a Skip tests when we know there is not enough space available 2020-03-15 20:10:26 +00:00
ad
a33dfea19c Fix a comment. 2020-03-15 19:41:04 +00:00
ad
a9352a15b6 - pmap_enter(): Remove cosmetic differences between the EPT & native cases.
Remove old code to free PVEs that should not be there that caused panics
  (merge error moving between source trees on my part).

- pmap_destroy(): pmap_remove_all() doesn't work for EPT yet, so need to catch
  up on deferred PTP frees manually in the EPT case.

- pp_embedded: Remove it.  It's one more variable to go wrong and another
  store to be made.  Just check for non-zero PTP pointer & non-zero VA
  instead.
2020-03-15 15:58:24 +00:00
ad
05d58a760b pmap_enter(): look directly in the tree for old PVE when installing an
unmanaged mapping, because there is no existing pmap_page to check in
the shortcut path (it traps).

pv_pte_next(): don't assert pp_embedded because it could have been removed
(during pmap_pp_remove()).
2020-03-15 15:14:22 +00:00
skrll
c6c249e390 Fix a comment 2020-03-15 15:00:14 +00:00
skrll
4ffa961b14 Move some comments 2020-03-15 14:58:54 +00:00
skrll
6a1a5871fe KNF the KNF 2020-03-15 14:19:04 +00:00
skrll
0cdd25d498 KNF 2020-03-15 14:17:33 +00:00
pgoyette
b7f6986c09 Use SYSCTL_SETUP mechanism to establish our sysctl tree, rather than
using explicit calls to netbsd32_sysctl_{init,fini}()
2020-03-15 14:15:12 +00:00
skrll
159692a8d4 Remove useless #include 2020-03-15 14:14:50 +00:00
skrll
1c1e6f59bf Use howmany. NFCI. 2020-03-15 13:59:20 +00:00
skrll
78585e568a Remove duplicate ehci @ fdt 2020-03-15 13:54:28 +00:00
pgoyette
729c6e77de Now that we have split the quota code out of the compat_netbsd32_50
module, it no longer depends on compat_50_quota.

Should address PR kern/55073
2020-03-15 12:46:02 +00:00
martin
9fc99040ba Hardcode a check for ZFS and too little free space in workdir to skip
ZFS tests if the atf working directory is size restricted (ZFS has a
hardcoded minimal size of 64MB for a storage pool and 128 MB disk size).
2020-03-15 12:12:42 +00:00
nisimura
2555aa968c driver description file for Socionext products 2020-03-15 12:01:41 +00:00
rin
e2a385b1ae Fix build for ports using uvm/pmap; pmap_remove_all() returns a boolean. 2020-03-15 11:36:24 +00:00
martin
b46551040d Skip tests where the old or the new image size seem to not fit into
the working directory.
2020-03-15 11:17:59 +00:00
rin
999e4e2245 Fix build with UVMHIST. 2020-03-15 11:17:22 +00:00
martin
581b9627a8 Skip this test if the atf working directory has not enough space
for the created image.
2020-03-15 10:15:16 +00:00
skrll
69398d62e1 Use roundup. NFCI. 2020-03-15 07:56:19 +00:00
uwe
eea4ed980c werase, wclrtobot, wclrtoeol - make code even more similar.
Rename attr to battr to match bch and WINDOW::battr.
No functional change intended.
2020-03-15 01:18:43 +00:00
uwe
878e2e095f __NEED_ERASE - don't shadow __LDATA::attr with macro parameter name. 2020-03-15 01:12:47 +00:00