Commit Graph

17944 Commits

Author SHA1 Message Date
mrg
4aaecf0671 switch alpha to GCC 8. tested by rin@, same atf result as with GCC 7.
thanks rin!  only vax, sh3 and m68k left.
2020-05-27 06:06:37 +00:00
christos
b43a201fc6 Move sun2 and alpha to new binutils 2020-05-26 19:29:59 +00:00
rin
0ff014d53b Add GNU_ARCH for earmv5hf{,eb}. 2020-05-24 21:09:49 +00:00
christos
0f8b984644 Add libuv 2020-05-24 19:58:02 +00:00
martin
2628ec890f Switch sparc64 to binutils 2.34 2020-05-20 15:43:29 +00:00
rin
1436d99d73 Fix dtblist; our echo(1) does not interpret \t. 2020-05-19 08:59:36 +00:00
rin
c08d500faf Try to fix fallout from addition of dtb.tgz; MKDTB was added to both
_MKVARS.yes and _MKVARS.no. Remove it from the former.
2020-05-19 08:07:44 +00:00
jdc
e738d60314 Add tadpmu to Makefile and set list. 2020-05-19 06:26:37 +00:00
jmcneill
043d88a7c1 Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.
2020-05-18 21:19:34 +00:00
sevan
b28c03fb6f BMP, DGEMM, DIB, GEMM, WMF 2020-05-18 20:28:44 +00:00
wiz
80892d06ff Whitespace fixes and a serial comma. 2020-05-18 16:42:05 +00:00
jdc
2f8e1da7e4 Add a basic manual page for tadpmu. 2020-05-18 08:40:44 +00:00
riastradh
9c94f9d816 Remove obsolete paragraph. 2020-05-17 01:00:34 +00:00
tnn
79915ae707 wsdisplay.4: correct ioctl name for WSDISPLAYIO_GET_FBINFO 2020-05-16 20:27:38 +00:00
maya
5cf9e8b81f Remove uyap, USB YAP phone firmware loader.
And the associated ezload EZ-USB code, which is only used by uyap.
It could theoretically be used by other drivers, but none of them are
in tree.

I suspect that this device isn't in use, as phone technology has improved
a lot since 2001 when uyap(4) was added to the tree.

Proposed with no objections on netbsd-users on 13 April 2020
2020-05-16 13:46:10 +00:00
maxv
50bfcd3de6 Don't add KCOV instrumentation on top of the KUBSAN instrumentation,
this is useless and too bloated.
2020-05-15 19:07:01 +00:00
kamil
b2e8cbc777 Fix typo
Reported by vezhlys on IRC.
2020-05-15 09:21:59 +00:00
snj
f27f66ae80 - prune src/gnu and src/sys/netsmb
- add src/sys/netcan
- remove bogus statement about location of reachover Makefiles
- tweak language
2020-05-14 16:32:57 +00:00
leot
467c5d63f6 Remove a reference to /etc/netstart
It was removed in rc.d era and no longer honored (except by newbtconf(8)).

Noticed by Ottavio Caruso on #netbsd@Freenode, thanks!
2020-05-12 10:20:16 +00:00
skrll
26371ac3a2 Update the list of hppa options to build working kernel modules. 2020-05-11 10:21:24 +00:00
riastradh
f21348ab88 Remove timedwaitclock.
This did not fix the bug I hoped it would fix in futex, and needs
more design thought.  Might redo it somewhat differently later.
2020-05-11 03:59:33 +00:00
maxv
e4eb677baa Pass -Wno-unused-command-line-argument for LLVM, discussed on
tech-toolchain@.
2020-05-10 06:38:24 +00:00
riastradh
4fe11140e4 Mark experimental-default-off knobs clearly as such. 2020-05-10 02:32:32 +00:00
riastradh
f96b491d2f Document vm.swap_encrypt. 2020-05-10 02:31:29 +00:00
riastradh
3d1d29c849 Tweak kern.arandom documentation. 2020-05-10 02:30:33 +00:00
wiz
de5a2786ff Fix macro usage. 2020-05-07 12:56:19 +00:00
rkujawa
c388420a0e Document the HDAUDIO_ENABLE_HDMI and HDAUDIO_ENABLE_DISPLAYPORT options. 2020-05-06 20:15:15 +00:00
riastradh
df65398010 Update to reflect change to message. 2020-05-06 18:38:20 +00:00
skrll
533e6b2e7c switch hppa to new binutils (2.34) 2020-05-05 20:47:38 +00:00
ginsbach
dde087a379 Add OWASP 2020-05-05 01:28:17 +00:00
wiz
8b5b0fc37e Improve markup. 2020-05-04 15:13:45 +00:00
wiz
3b9d941ba3 Break line after macro arguments end. Use \- for minus. 2020-05-04 15:10:40 +00:00
riastradh
5d5b825847 Bump date. 2020-05-03 04:06:15 +00:00
riastradh
c97c41e809 Document cv_timedwaitclock. 2020-05-03 04:05:50 +00:00
riastradh
6d64c76acc Add a note about setting the timeout to zero _and_ returning success. 2020-05-03 04:05:28 +00:00
riastradh
5b0aa16b11 Simplify example of cv_timedwaitbt.
It is simpler if there is only one place we check the condition.

That said, there are cases where the caller needs to re-check before
choosing to fail (e.g., futex_wait in kern/sys_futex.c, which must
verify the condition before taking destructive steps to abort the
wait).  But it's not clear that that's the norm.
2020-05-03 04:05:00 +00:00
riastradh
a36c0b2b71 Update cv_timedwaitbt documentation to reflect useful reality.
Previously, a negative timeout was forbidden (kassert), a zero or
maybe even just a sufficiently small timeout would block forever, and
we would subtract the time elapsed -- possibly longer than the
timeout, leading to a negative updated timeout, which would trip the
kassert the next time around if used as advertised.  DERP.

Now negative timeouts are still forbidden in order to detect usage
mistakes, but a zero timeout fails immediately and we clamp the
subtracted time to be at least zero so you can always safely call
cv_timedwaitbt in a loop.

(An alternative would be to fail immediately for all nonpositive
timeouts, and to leave in the timespec the negative time we overshot,
but it's not clear this would be useful.)
2020-05-03 04:04:32 +00:00
christos
4f121a6996 document MKCOMPATMODULES 2020-05-02 19:46:58 +00:00
rin
021d8db65a Fix previous; add missing <module>.kmod.debug to realall. 2020-05-02 09:15:30 +00:00
christos
0e244e0f79 Install <module>.kmod.debug files for kernel crash debugging. 2020-05-01 22:23:00 +00:00
jdolecek
40ace5566a link also m_apply(9) to mbuf(9) 2020-05-01 21:43:23 +00:00
riastradh
9dcd95ee64 Combine some related paragraphs. 2020-05-01 19:56:08 +00:00
riastradh
57efbe1b81 Tighten language so it fits in one paragraph again.
This way the first two paragraphs have parallel structure:

- _Applications_ should read from /dev/urandom or sysctl kern.arandom...
- _Systems_ should be engineered to read once from /dev/random...
2020-05-01 19:54:37 +00:00
nia
47b7f85860 rnd.4: Bump dates. 2020-05-01 12:43:33 +00:00
nia
0714b28933 rnd.4: Explain why libraries should use kern.arandom over /dev/urandom 2020-05-01 12:30:16 +00:00
nia
a04ab133b7 Update documentation of kern.arandom. It uses cprng_strong(9). 2020-05-01 10:06:09 +00:00
riastradh
5084c1b50f Rewrite entropy subsystem.
Primary goals:

1. Use cryptography primitives designed and vetted by cryptographers.
2. Be honest about entropy estimation.
3. Propagate full entropy as soon as possible.
4. Simplify the APIs.
5. Reduce overhead of rnd_add_data and cprng_strong.
6. Reduce side channels of HWRNG data and human input sources.
7. Improve visibility of operation with sysctl and event counters.

Caveat: rngtest is no longer used generically for RND_TYPE_RNG
rndsources.  Hardware RNG devices should have hardware-specific
health tests.  For example, checking for two repeated 256-bit outputs
works to detect AMD's 2019 RDRAND bug.  Not all hardware RNGs are
necessarily designed to produce exactly uniform output.

ENTROPY POOL

- A Keccak sponge, with test vectors, replaces the old LFSR/SHA-1
  kludge as the cryptographic primitive.

- `Entropy depletion' is available for testing purposes with a sysctl
  knob kern.entropy.depletion; otherwise it is disabled, and once the
  system reaches full entropy it is assumed to stay there as far as
  modern cryptography is concerned.

- No `entropy estimation' based on sample values.  Such `entropy
  estimation' is a contradiction in terms, dishonest to users, and a
  potential source of side channels.  It is the responsibility of the
  driver author to study the entropy of the process that generates
  the samples.

- Per-CPU gathering pools avoid contention on a global queue.

- Entropy is occasionally consolidated into global pool -- as soon as
  it's ready, if we've never reached full entropy, and with a rate
  limit afterward.  Operators can force consolidation now by running
  sysctl -w kern.entropy.consolidate=1.

- rndsink(9) API has been replaced by an epoch counter which changes
  whenever entropy is consolidated into the global pool.
  . Usage: Cache entropy_epoch() when you seed.  If entropy_epoch()
    has changed when you're about to use whatever you seeded, reseed.
  . Epoch is never zero, so initialize cache to 0 if you want to reseed
    on first use.
  . Epoch is -1 iff we have never reached full entropy -- in other
    words, the old rnd_initial_entropy is (entropy_epoch() != -1) --
    but it is better if you check for changes rather than for -1, so
    that if the system estimated its own entropy incorrectly, entropy
    consolidation has the opportunity to prevent future compromise.

- Sysctls and event counters provide operator visibility into what's
  happening:
  . kern.entropy.needed - bits of entropy short of full entropy
  . kern.entropy.pending - bits known to be pending in per-CPU pools,
    can be consolidated with sysctl -w kern.entropy.consolidate=1
  . kern.entropy.epoch - number of times consolidation has happened,
    never 0, and -1 iff we have never reached full entropy

CPRNG_STRONG

- A cprng_strong instance is now a collection of per-CPU NIST
  Hash_DRBGs.  There are only two in the system: user_cprng for
  /dev/urandom and sysctl kern.?random, and kern_cprng for kernel
  users which may need to operate in interrupt context up to IPL_VM.

  (Calling cprng_strong in interrupt context does not strike me as a
  particularly good idea, so I added an event counter to see whether
  anything actually does.)

- Event counters provide operator visibility into when reseeding
  happens.

INTEL RDRAND/RDSEED, VIA C3 RNG (CPU_RNG)

- Unwired for now; will be rewired in a subsequent commit.
2020-04-30 03:28:18 +00:00
rtr
abac7a776d LSO large send offload 2020-04-29 22:17:38 +00:00
jmcneill
c2bf22a2df Add support for Realtek RTS522A 2020-04-27 23:06:34 +00:00
plunky
94b6940f54 EPT extended page tables 2020-04-27 09:10:45 +00:00
mrg
89f8a416b9 invert the GCC 7/8 conditional.
only alpha, vax, m68k and sh3 are still on GCC 7.
2020-04-27 03:15:12 +00:00
mrg
17ce967706 switch mips to GCC 8. 2020-04-26 22:06:01 +00:00
skrll
76f1fdb56e Switch hppa to gcc 8 2020-04-26 20:13:43 +00:00
simonb
3fd4d3b537 More path markup. Ref wizd(8). 2020-04-26 00:40:10 +00:00
bouyer
224cc4e632 Add /usr/include/xen/intrdefs.h to sets
Add xen to KLINKFILES for amd64/i386
2020-04-25 15:46:59 +00:00
wiz
9f6b6bc85a Use more markup. 2020-04-25 13:51:04 +00:00
simonb
1051ded1d9 Document the "database" configuration option. 2020-04-25 10:56:53 +00:00
jdolecek
642bc4c72b bump date 2020-04-24 13:54:56 +00:00
jdolecek
09a2b15c05 actually MBUFTRACE does splvm(), kpreempt_disable()/enable() and percpu,
this has non-slight overhead - amend documentation to stop claiming
the overhead is slight

adresses PR port-xen/50290
2020-04-24 13:47:50 +00:00
ryo
7d182e1a03 add AQC100, AQC100S, D100 2020-04-24 04:37:27 +00:00
christos
d8fa6d0b7a Swirch arm to the new binutils 2020-04-23 19:24:53 +00:00
jdolecek
4e451dae6b fix tyop 2020-04-23 15:55:14 +00:00
jdolecek
00eb0f15bf elaborate on why we don't support hardware checksum offloading, and probably
never will
2020-04-23 15:54:36 +00:00
ginsbach
c8e8129819 Add RFI, RFP 2020-04-22 15:03:46 +00:00
simonb
a539149917 Note that these drivers are present on some newer AMD Family 15h
processors.
2020-04-20 11:09:48 +00:00
gutteridge
277fa1cfb2 fstab.5: note the first field is a placeholder for some FSes
Addresses PR misc/52607. (I suppose something about this could also be
added to the man pages for the mount commands for each applicable file
system, but I think this should suffice.)
2020-04-19 19:20:32 +00:00
is
c1a0f7b9a0 New Greek National Numbering Plan, according to the EETT decision published
in the Greek Government Gazette 127 B/8.2.2001
2020-04-19 15:58:53 +00:00
wiz
0f2169d04c Remove trailing comma. 2020-04-18 18:55:20 +00:00
jdolecek
efee1aad48 remove documentation for (non-atomic) boottime, it was eliminated
from kernel in 2020-01-02 by thorpej@
2020-04-17 17:43:38 +00:00
kim
568e57b236 Update date 2020-04-17 13:36:48 +00:00
pgoyette
2a14d5b775 Put the spaces back (they're part of the config(1) syntax) but quote
them to avoid formatting errors
2020-04-16 18:56:04 +00:00
pgoyette
0be19164f9 Remove extraneous spaces 2020-04-16 18:51:47 +00:00
christos
649d42183a need more || 2020-04-15 23:10:27 +00:00
christos
851d50d82c fix backslash 2020-04-15 23:09:28 +00:00
christos
0a84c4d611 switch ppc to the new binutils 2020-04-15 21:28:08 +00:00
kim
aae8c85b3e Add an "rtsol" keyword to ifconfig.if for enabling IPv6 RS/RA 2020-04-15 20:31:57 +00:00
simonb
1c61f00504 Add xref to umodem(4). Mistake picked up by wizd(8), but somewhat
unexpectedly it didn't correct the reference to the one I meant but
got wrong.  Need to remember to file a bug report against wizd(8).
2020-04-13 11:17:27 +00:00
jdolecek
a6db9077db remove the In-System design note, related code is about to be dropped and
it doesn't make sense to have a note about things we don't support
2020-04-13 09:15:54 +00:00
wiz
6618bd8ba0 Remove superfluous whitespace & macros. 2020-04-13 08:59:14 +00:00
wiz
5f0ae7a9b4 Fix date. Remove Xr to non-existent modem(4). Serial comma. Use more macros. 2020-04-13 08:46:39 +00:00
wiz
0e961a0fbe Bump date for previous 2020-04-13 08:45:11 +00:00
chs
328da78dac slightly change and fix the semantics of pool_set*wat(), pool_sethardlimit()
and pool_prime() (and their pool_cache_* counterparts):

 - the pool_set*wat() APIs are supposed to specify thresholds for the count of
   free items in the pool before pool pages are automatically allocated or freed
   during pool_get() / pool_put(), whereas pool_sethardlimit() and pool_prime()
   are supposed to specify minimum and maximum numbers of total items
   in the pool (both free and allocated).  these were somewhat conflated
   in the existing code, so separate them as they were intended.

 - change pool_prime() to take an absolute number of items to preallocate
   rather than an increment over whatever was done before, and wait for
   any memory allocations to succeed.  since pool_prime() can no longer fail
   after this, change its return value to void and adjust all callers.

 - pool_setlowat() is documented as not immediately attempting to allocate
   any memory, but it was changed some time ago to immediately try to allocate
   up to the lowat level, so just fix the manpage to describe the current
   behaviour.

 - add a pool_cache_prime() to complete the API set.
2020-04-13 00:27:16 +00:00
simonb
cddaf0cb47 Add NetBSD CVS tag. 2020-04-12 02:04:12 +00:00
simonb
a91470c59b Add uxrcom driver for Exar XR21V141x USB serial adapters. Based in part
on the OpenBSD single-port XR21V1410 uxrcom driver, but adds support
for multi-port chipsets and uses the common umodem framework instead of
being a standalone driver.

Thanks to skrll@ for much USB clue and mrg@ for financing the
development of this driver.
2020-04-12 01:10:53 +00:00
ad
e0bb7e8edd - Make this needed sequence always work for condvars, by not touching the CV
again after wakeup.  Previously it could panic because cv_signal() could
  be called by cv_wait_sig() + others:

	cv_broadcast(cv);
	cv_destroy(cv);

- In support of the above, if an LWP doing a timed wait is awoken by
  cv_broadcast() or cv_signal(), don't return an error if the timer
  fires after the fact, i.e. either succeed or fail, not both.

- Remove LOCKDEBUG code for CVs which never worked properly and is of
  questionable use.
2020-04-10 17:16:21 +00:00
jdolecek
0b4aefec80 add a warning in checksum offload that hardware TCP segmentation might be
slow

on I219 I observe about 35% transmit performance drop when tso4 enabled
2020-04-08 23:01:51 +00:00
jdolecek
1243d69abd bring the section on automatic acquisition of kernel_lock up-to-date 2020-04-07 07:25:09 +00:00
rin
6776cf02ff Remove copy-paste garbage. 2020-04-06 08:26:33 +00:00
jdolecek
b122d52951 remove RX flip from diagnostic, it was removed 2020-04-05 19:03:30 +00:00
christos
c6e7fca7f4 Document and set a default for KERNEL_DIR 2020-04-04 23:54:06 +00:00
christos
2cc98f83cd make sure _OSRELEASE is defined where it is needed. 2020-04-04 23:19:08 +00:00
christos
d361eb2a3d Switch x86 to the new binutils. 2020-04-04 20:47:56 +00:00
christos
d8e96a2d4f Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules.  This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.
2020-04-04 19:50:53 +00:00
jdolecek
b28734a61b remove SMBFS and nsmb/netsmb - userland part 2020-04-04 15:39:13 +00:00
jdolecek
fea2af3136 remove mount_smbfs(8)/nsmb(4) references 2020-04-04 15:32:42 +00:00
christos
e9be03e610 Linker semantics have changed; we now don't automatically link dependent
libraries from other DSO's. For example in /usr/bin/passwd:
ld: krb5_passwd.o: undefined reference to symbol \
	'UI_UTIL_read_pw_string@@OPENSSL_1_1_0'
ld: /usr/obj/amd64-x86_64/release/lib/libcrypto.so.14: error adding symbols: \
	DSO missing from command line
2020-04-04 13:33:14 +00:00
maxv
7f5f3e6b75 KCOV doesn't depend on specificdata and cpu_intr_p() anymore, so drop
references.
2020-04-04 07:03:57 +00:00
christos
a4770732da Fix kerberos libraries order 2020-04-04 03:35:01 +00:00
christos
0916a77251 Add libgnuctf 2020-04-04 01:35:22 +00:00
christos
00f1d03533 Switch to binutils.old 2020-04-03 17:57:30 +00:00
roy
61a9079563 Add _dhcpcd entries. 2020-04-02 20:57:20 +00:00
sevan
ab0cf3894f Sync with FreeBSD r359561 2020-04-02 11:09:24 +00:00
gson
42a6cab883 Fix incorrect device path. OK jmcneill. 2020-04-01 15:42:15 +00:00
gson
1db3cc90ce regen 2020-04-01 15:33:50 +00:00
ryo
36b02b5b3e add missing netmos devices
- NetMos NM9900 PCIe (pucdata.c r1.106)
- NetMos NM9912 PCIe (pucdata.c r1.104)
- NetMos NM9855 PCIe (pucdata.c r1.49)
2020-03-31 07:08:59 +00:00
maya
9d3388e3c9 Don't mention a.out support, which does not exist in ddb any more. 2020-03-30 20:47:57 +00:00
wiz
528cd50a16 Remove trailing whitespace. 2020-03-28 05:47:41 +00:00
isaki
9dfdc1fc6d Add description about channel limitation introduced in audio.c 1.43.
PR kern/54973.
2020-03-28 04:55:08 +00:00
isaki
819aaeb57a Revert 1.96, 1.97 and 1.100. (no response from nia@)
These changes are not correct nor notable unresolvable problem.
If you find any problems, please send a report before changing manpage.
2020-03-28 04:21:58 +00:00
bad
a087c2fcde Belatedly add NanoPi R1. 2020-03-27 23:02:33 +00:00
christos
3958d16a96 As described in tech-userlevel:
- Modify the writing code to only write entries in the new
  format for the terminal descriptions that require it.
- Store new format entries as <name>@v3
- Store old format entries with clamped values as <name> for
  backwards compatibility
- Lookup first <name>@v3 and then <name> if that is not found.
- Don't create terminfo2 anymore; old programs keep working with
  clamped entries, and new programs be able to use the wide
  fields with using the original db file.
2020-03-27 15:11:57 +00:00
thorpej
7dbf99902b Add OrangePi Lite and Lite2. 2020-03-27 02:01:48 +00:00
leot
41ae6fc330 Add HPD
From Rocky Hotas, thanks!
2020-03-26 18:28:09 +00:00
leot
16690ce41b Add TLDW
From Rocky Hotas, thanks!
2020-03-26 18:25:32 +00:00
skrll
c97977ea42 Fix cprng_fast64 return type to match code 2020-03-24 08:48:31 +00:00
mrg
2f8ce28306 note that MKLLVMRT affects more than amdgpu. 2020-03-24 07:56:26 +00:00
kim
ac8e31be1d Fix the currency symbol for fi_FI.ISO8859-1
In the Finnish language, the recommended symbol for euro is the euro sign
where it is available, and the lowercase letter e otherwise.

The use of the ISO currency code EUR is not an abbreviation of the word
euro in the Finnish language, just like FIM is not an abbreviation of
the word markka.

Reference:
    https://www.kielikello.fi/-/euro-
    Euro
    Kielikello 3/1998
    Kotimaisten kielten keskus
    Institute for the Languages of Finland
    [Last retrieved 2020-03-23]
2020-03-23 13:56:12 +00:00
kim
601620aab2 Add C.UTF-8 2020-03-23 08:44:10 +00:00
wiz
5303923225 Fix some typos, remove unnecessary Pp 2020-03-20 08:02:55 +00:00
sevan
6cccac6916 Update to r359157 from FreeBSD 2020-03-20 03:19:43 +00:00
thorpej
a3d4be7fa6 Update for recent locking changes. 2020-03-20 01:15:05 +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
nia
2dc9c196d6 audio.4: Mention the blk_ms sysctl 2020-03-16 19:20:36 +00:00
wiz
6d5974e98f Sort sections. 2020-03-16 13:02:05 +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
nia
dd302e79dd synaptics: Set up_down_emulation=3 by default.
It's a less surprising default for modern hardware.
2020-03-14 19:29:39 +00:00
ad
be9c6147a4 pmap_remove_all(): Return a boolean value to indicate the behaviour. If
true, all mappings have been removed, the pmap is totally cleared out, and
UVM can then avoid doing the work to call pmap_remove() for each map entry.
If false, either nothing has been done, or some helpful arch-specific voodoo
has taken place.
2020-03-14 14:05:42 +00:00
nia
6fe7b60978 synaptics: Make up_down_emulation useful for single-button clickpads
On devices such as the Thinkpad X250, the clickpad can be pressed
to generate mouse button events 1 and 2. There are also additional
physical buttons which the pms(4) driver recognizes as "up/down" buttons
(mouse buttons 3 and 4). Allow these to be remapped to buttons 1 and 2
and used like normal touchpad buttons with the following sysctl:

# sysctl -w hw.synaptics.up_down_emulation=3

While here, adjust the existing "middle button emulation"
(hw.synaptics.up_down_emulation=1) so it works with single-button
clickpads.

XXX: 3 may be a more useful default than the current default,
depending on hardware availability of touchpads with "up/down buttons".

Update the documentation accordingly.
2020-03-14 13:08:18 +00:00
roy
aadfdb111b terminfo: promote numeric parameters from short to int
POSIX mandates implementations must support upto a short but may exceed it.
When NetBSD terminfo was implemented, no terminfo description used over
a short, but because ncurses has supported ints for some time, some now do.

Infact, such a terminfo description was imported where colour pairs for
screen-256color went up to 65536 which exposed a bug in the existing
implementation where it set to zero. Because the number might mean
something more than a range, we need to be able to store it accurately.

This requires a version bump because whilst the API hasn't changed thanks
to C int promotion, the ABI has. Also the underlying database structure
has changed as well - we now store the numeric paramter inside a uint32_t
field rather than a uint16_t one.
Whilst this change can still read the old style database, the old one
cannot read the new one and thus we now maintain the database as
terminfo2.cdb, leaving the old library and database alone so old programs
still work fine.

libcurses, libfrom, libmenu and libpanel have also been bumped to
accomoate this change.
2020-03-13 15:19:24 +00:00
tnn
a5b3fa3e75 correct documentation for options TFTPROOT
TFTPROOT does *not* require MEMORY_DISK_IS_ROOT. In fact, it doesn't
work at all when MEMORY_DISK_IS_ROOT is set, because then setroot()
tries to perform dhcp on md0 instead of the network card.
2020-03-07 23:17:47 +00:00
fcambus
cd0b68b9c9 Fix area code for Czestochowa and add area code for Tarnow.
While there, fix names for some other Polish cities.
2020-03-04 22:24:46 +00:00
maya
f09a2d8288 Remove ETH (defunct) and add ETM. 2020-03-04 14:59:00 +00:00
fcambus
454f71e77a Add LUZ and WMI airports (Poland). 2020-03-04 14:19:14 +00:00
christos
7acab15b19 Add fido and cbor 2020-03-03 02:25:03 +00:00
isaki
b7468096e2 Describe about (existing) constraints on round_blocksize(). 2020-02-29 05:39:03 +00:00
kim
aa06efc870 Typo fix (remove extra TPM) 2020-02-28 07:31:38 +00:00
kim
7fa57f6b97 Fix .Dt to match installed section 2020-02-28 07:30:51 +00:00
macallan
ae5f09c21f ZFS works fine on my v210, so let's enable it for sparc64 2020-02-27 12:52:20 +00:00
sevan
565b242515 SSTP 2020-02-26 23:38:08 +00:00
uwe
035e2f78b0 Make .Bl -width match the actual .It usage. 2020-02-26 18:39:24 +00:00
uwe
79985dd01d Minor formatting tweaks. 2020-02-26 18:32:57 +00:00
uwe
e979ab6242 Fix unedited pasto. 2020-02-26 18:25:39 +00:00
wiz
ed72789936 Minor fixes. 2020-02-26 10:06:08 +00:00
wiz
795276af5a Fix Xr section numbers. 2020-02-26 10:04:32 +00:00
riastradh
e4d662933e Draft man pages for the standard users and groups.
These are currently listed in order of uid because I went through
src/etc/group and src/etc/master.passwd line by line, and sorting any
other way after the fact -- like lexicographically, how it should be
-- was kinda inconvenient.

Feel free to sort, add information, add historical references,
correct any mistakes, &c., so that these remain living documents
describing NetBSD's standard users and groups and practices around
them.
2020-02-26 07:31:51 +00:00
rin
c7f03ba743 Add one more: Buffalo BSUSRC06. 2020-02-25 11:36:48 +00:00
rin
897e200cea Add CableCreation CD0487 to supported adapter list.
Bump date.
2020-02-25 11:32:09 +00:00
sevan
6c3061a7d9 Sync with r358264 which fixes NetBSD 9.0 release 2020-02-23 23:31:55 +00:00
mrg
7d2bf6fde2 update for xorg-server 1.20.6. 2020-02-23 10:28:16 +00:00
mrg
0cf113e74f install rw_lock_op link too. 2020-02-23 08:57:44 +00:00
isaki
92e2bd444b Make start_input/halt_input optional if the driver has no recording,
make start_output/halt_output optional if the driver has no playback.
And remove such never called functions.
2020-02-23 04:02:45 +00:00
sevan
03e003853e Sync with FreeBSD r358254 2020-02-22 23:38:04 +00:00
ad
284662e223 Add rw_lock_op(): return either RW_READER or RW_WRITER for a lock that is
known to be held by the caller.  Panic if the lock is not held.
2020-02-22 21:24:44 +00:00
martin
fe36d07293 Move sysinst man page next to the source 2020-02-19 21:42:53 +00:00
fcambus
b8575f575a Add RIF (reduction in force). 2020-02-17 17:16:51 +00:00
jmcneill
02f33d7bd0 Remove azalia(4) references, spotted by maxv 2020-02-16 10:45:42 +00:00
sevan
e15af42da1 grammar 2020-02-13 22:48:11 +00:00
ryoon
b48c5a02dc Add description on hw.alps.touchpad_movement_threshold 2020-02-10 16:13:48 +00:00
ryoon
3f4e05bdbc Reflect typo fix, bump date 2020-02-10 15:30:33 +00:00
ryo
accb2dabd4 add support VLAN HW filter 2020-02-10 05:53:11 +00:00
jmcneill
428130a8e6 Retire azalia(4). 2020-02-09 16:06:17 +00:00
maxv
1273dfb58e Reference nvmmctl(8). 2020-02-09 12:19:01 +00:00
maya
f9068bab35 Don't special case aarch64 and add -fomit-frame-pointer to builds.
This behaviour is probably due to a past behaviour of clang, where it
always emitted frame pointer code.
This is no longer true for clang on netbsd, and I don't think it was true
for GCC.

Meanwhile, this flag bleeds into pkgsrc where it breaks random packages,
requiring workarounds like lang/ruby*-base/hacks.mk.
2020-02-08 21:16:53 +00:00
roy
6847938ebe route(4): add RO_MISSFILTER socket option
This allows filtering of specific RTM_MISS destination sockaddrs.
2020-02-08 14:17:30 +00:00
maxv
081da2e4c3 Retire KLEAK.
KLEAK was a nice feature and served its purpose; it allowed us to detect
dozens of info leaks on the kernel->userland boundary, and thanks to it we
tackled a good part of the infoleak problem 1.5 years ago.

Nowadays however, we have kMSan, which can detect uninitialized memory in
the kernel. kMSan supersedes KLEAK: it can detect what KLEAK was able to
detect, but in addition, (1) it operates in all of the kernel and not just
the kernel->userland boundary, (2) it requires no user interaction, and (3)
it is deterministic and not statistical.

That makes kMSan the feature of choice to detect info leaks nowadays;
people interested in detecting info leaks should boot a kMSan kernel and
just wait for the magic to happen.

KLEAK was a good ride, and a fun project, but now is time for it to go.

Discussed with several people, including Thomas Barabosch.
2020-02-08 07:07:06 +00:00
sevan
10ad18e415 LAG, MLAG, the G is for group, adjust MCLAG 2020-02-08 00:47:57 +00:00
wiz
cb8499b801 Remove duplicate word. 2020-02-07 15:11:46 +00:00
jmcneill
d9ff5e3a53 Update comment 2020-02-07 14:08:11 +00:00
thorpej
4c962dcba7 Document percpu_foreach_xcall(). 2020-02-07 13:02:35 +00:00
riastradh
7735b624a8 Redocument xc_barrier.
Be more clearer, and more correcter, about what it does.
2020-02-01 13:35:11 +00:00
riastradh
d92a26fbe9 New function percpu_create.
Associates a constructor and destructor with the percpu.  Currently
the constructor runs immediately, but in principle we could use the
same API for future CPU hotplug support.

This lets you sleep for allocation or draining users before
deallocation when setting up or tearing down a percpu -- currently we
have many abuses of percpu_foreach in tree for that purpose.

Proposed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2020/01/30/msg026036.html
2020-02-01 12:49:02 +00:00
sevan
c8c5fbdc3e new sentence, new line 2020-01-31 00:24:51 +00:00
sevan
ef3bd9e419 Typo - heads up by Thorsten Glaser 2020-01-30 23:47:45 +00:00
maya
5e031685d6 remove urio(4), a driver for the Rio500 MP3 player.
At this point it is highly unlikely this 1999 device still has users,
but it still comes up in the context of maxv's USB-fuzzing (and any device
could pretend to be a urio(4)), so it's best to get rid of it.

Renamed all major entries to obsolete, as was done in previous removals.

This still requires an update to sanitizers, but they're located in
"external", perhaps it should be first committed upstream?

Proposed on tech-kern a month ago.
2020-01-29 18:39:00 +00:00
nia
4fc51d6777 move some more to comp 2020-01-27 10:56:29 +00:00
nia
826beea78c SEO - already in comp 2020-01-27 10:35:20 +00:00
nia
a53fb3f704 CCC, CPA, MDMA, SEO, WLW 2020-01-27 10:25:16 +00:00
thorpej
ab92444102 Add Rock64 and Pinebook Pro to list of known boards. 2020-01-27 07:48:59 +00:00
thorpej
264ecc7b95 Remove references to le@pci, and direct users to pcn(4) instead. 2020-01-25 18:53:31 +00:00
uwe
19fb3ed590 Provide ability to override <title>
If \*[title-section] is non-empty, use it to override the title
instead of appending it.  Nothing in the tree uses title-section
currently, so it shouldn't affect any existing document.

This override will be used by the installation notes where the default
title is less than helpful.
2020-01-23 23:52:13 +00:00
uwe
b453cdfc13 Switch powerpc to GCC 8 again now that alloca() is fixed.
PR port-macppc/54827
2020-01-22 21:46:06 +00:00
thorpej
c718a72d76 I overlooked the esh(4) man page when removing HIPPI support; remove it
now.  Thanks maxv@ for noticing and pointing it out.
2020-01-22 14:01:50 +00:00
uwe
10180bec9c Switch powerpc back to GCC 7 until we fix alloca() PR port-macppc/54827
ok mrg@
2020-01-22 08:32:33 +00:00
wiz
6e6411c310 Remove superfluous Pp. 2020-01-21 07:53:51 +00:00
thorpej
4541d6828b Remove FDDI support. 2020-01-20 18:38:17 +00:00
nia
288b76eaef when referring to the "user"/"operator"/"network manager": he -> they 2020-01-20 13:08:40 +00:00
riastradh
08a157de6e Remove filemon(4).
Discussed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2020/01/13/msg025938.html

This was never (intentionally) enabled by default, and the design has
some shortcomings.  You can get mostly the same results with ktrace,
as in usr.bin/make/filemon/filemon_ktrace.c which is now used instead
of filemon for make's meta mode.

If applications require higher performance than ktrace, or nesting
that ktrace doesn't support, we might consider adding something back
into the vfs system calls themselves, without hijacking the syscall
table.  (Might want a more reliable output format too, e.g. one that
can handle newlines in file names.)
2020-01-19 20:41:17 +00:00
thorpej
ed469c22d6 Remove Token Ring support. 2020-01-19 20:00:35 +00:00
thorpej
332fd700ea Remove the de(4) driver, which has long since been supplanted by the
tlp(4) driver, which supports more chips and more board variants.
2020-01-19 17:53:14 +00:00
thorpej
c1d9ec8d89 Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
2020-01-19 01:25:03 +00:00
jmcneill
8f8fe2de40 Install nouveau and radeon firmware on aarch64 2020-01-19 00:57:18 +00:00
simonb
2fb6b7b160 Revert kern/54790 and kern/54855 NCQ fix that penalised all Samsung
EVO 860 drives.

ok jdolecek@
2020-01-18 11:22:49 +00:00
christos
f58ad7d37c Back to libarchive's bsdtar 2020-01-17 16:26:12 +00:00
maya
09ad70fb6c Remove uyurex(4).
This is a driver for a "nonsense machine" made by the art group Maywa-Denki
in 2008. It was disabled by default.

Unfortunately even so it draws development attention (flaws found in the
code, MP-ification needs) and it is best not to continue to maintain this
driver.

Proposed without objections on tech-kern.
2020-01-17 15:00:20 +00:00
skrll
2098dd207b Add '_p' to uvm_physseg_valid to match the function. Bump date. 2020-01-17 12:34:55 +00:00
kardel
3408b8e06e Provide SIOCGIFMEDIA ioctl to deliver link status.
Add link0 (IFF_LINK0) flag to map INIT state to LINK_STATE_DOWN
instead of LINK_STATE_UNKNOWN. This allows routing software to
suppress routes to the interface of the carp interface when in
init state (e. g. link down in the parent interface).
2020-01-16 12:56:39 +00:00
christos
53517b7626 Back to pax as tar until I figure out how I broke libarchive (hard link
extraction creates 0 length files for existing hard-links).
2020-01-14 16:48:18 +00:00
msaitoh
b45be541ba Update for AMD FCHs (HUDSON, BOLTON and KERNCZ). 2020-01-14 15:43:19 +00:00