Commit Graph

275064 Commits

Author SHA1 Message Date
pgoyette
67a77d0bf0 Remove a debug printf() that accidentally got committed. :( 2020-03-17 17:16:26 +00:00
ad
0ff2f2aa33 Add a bunch of assertions. 2020-03-17 13:34:50 +00:00
nia
e911afe581 audio.4: 1-12 channels are only universally supported for playback.
When a mono recording device is set to use 1 channel, the kernel will
correct the number of channels back down to 1. This information can be
obtained with AUDIO_GETINFO...
2020-03-17 10:50:59 +00:00
kre
f8c9ca57b4 #if 0 the declaration and definition of xennetback_tx_free()
Since it is never otherwise referenced, this cannot make any
current operational difference, but should fix the build.
(-Werror=unused-function)

The added #if/#endif lines are /* XXX */ commented, so they will be
easy to remove when needed.
2020-03-17 05:04:10 +00:00
fox
ea2ed373b0 external/cddl/osnet: Do not suppress the warning output for libdtrace.
Changed -Wno-maybe-uninitialized to -Wno-error=maybe-uninitialized to allow
warnings to be printed out during build.

Suggested by: christos@
2020-03-17 01:36:29 +00:00
fox
f61eb78c70 external/bsd/iscsi: Fix -Werror=maybe-uninitialized error in initiator.c.
Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Submitted by: mlelstv@
Reviewed by: kamil@
2020-03-17 00:57:54 +00:00
fox
cc6a7388a1 external/cddl/osnet: Fix -Werror=maybe-uninitialized error in zfs_acl.c.
Detected by build.sh with MKLIBCSANITIZER=yes and fixed upstream, pick only the fix from the commit.

Upstream commits

100a91aa3e
100a91aa3e

Cherry-pick:
From 100a91aa3e9773f2a2a373c5cb066b52c780716c Mon Sep 17 00:00:00 2001
From: Chunwei Chen <david.chen@osnexus.com>
Date: Fri, 17 Jun 2016 17:36:01 -0700
Subject: [PATCH] Fix NFS credential

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4772
Closes #4758

Reviewed by: kamil@
2020-03-17 00:54:03 +00:00
fox
6594959c4a external/cddl/osnet: Supress -Werror=maybe-uninitialized error in libdtrace.
It looks like this is a false positive, since the section of code triggering the error

external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.c:400:42:

is only accessed after "err" is initialized.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-03-17 00:50:12 +00:00
ad
a1a4ef596e Fix a comment. 2020-03-17 00:30:17 +00:00
macallan
a7ac0cc69e make the ROM font usable on G5s:
- copy the font data into a buffer instead of just pointing at the ROM
- don't blindly assume the font's width
- don't try to center output ourselves - rasops_init() will do it for us
- provide a hook to add the ROM font to wsfont when we're ready
2020-03-16 22:02:37 +00:00
pgoyette
9120d4511b Use the module subsystem's ability to process SYSCTL_SETUP() entries to
automate installation of sysctl nodes.

Note that there are still a number of device and pseudo-device modules
that create entries tied to individual device units, rather than to the
module itself.  These are not changed.
2020-03-16 21:20:09 +00:00
jdolecek
368951cea2 drop the disabled M_EXT_ROMAP mbuf code, convert xennet_checksum_fill()
to use in_undefer_cksum() instead of custom code to compute the checksum
for Rx packets, and set csum_data appropriately for eventual hw offloading

make it possible to skip the sw checksum computation by appropriate Rx
flag similarily as we do for Tx

XXX for now, the Rx flag is mostly for testing as it only works for
dom0<->domu, need some further network stack changes to arrange for
the checksum to be eventually computed when packets goes outside xen
2020-03-16 20:51:36 +00:00
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