Commit Graph

18280 Commits

Author SHA1 Message Date
nia 92e19c2b10 Add a man page for amdccp(4) 2021-07-25 07:35:55 +00:00
pgoyette 7e0a9c140e module_hold() returns void, not int
XXX module_hold() and module_rele() should probably not be exposed, since
XXX they really aren't MP-safe.
2021-07-22 01:38:45 +00:00
nia d0318bc6c3 Swap encryption no longer experimental or default-off. 2021-07-13 16:56:43 +00:00
mrg fc1fab36bb switch Mesa 19 to use MesaLib.old subdir. 2021-07-11 22:07:35 +00:00
mrg 6579c40d91 xorg-server is now 1.20.12. 2021-07-11 00:13:49 +00:00
jmcneill 84b16ca6b7 build fix 2021-07-06 09:30:07 +00:00
dholland 723d09ce8e Add containment for the cloning devices hack in vn_open.
Cloning devices (and also things like /dev/stderr) work by allocating
a struct file, stuffing it in the file table (which is a layer
violation), stuffing the file descriptor number for it in a magic
field of struct lwp (which is gross), and then "failing" with one of
two magic errnos, EDUPFD or EMOVEFD.

Before this commit, all callers of vn_open in the kernel (there are
quite a few) were expected to check for these errors and handle the
situation. Needless to say, none of them except for open() itself did,
resulting in internal negative errnos being returned to userspace.

This hack is fairly deeply rooted and cannot be eliminated all at
once. This commit adds logic to handle the magic errnos inside
vn_open; now on success vn_open returns either a vnode or an integer
file descriptor, along with a flag that says whether the underlying
code requested EDUPFD or EMOVEFD. Callers not prepared to cope with
file descriptors can pass NULL for the extra return values, in which
case if a file descriptor would be produced vn_open fails with
EOPNOTSUPP.

Since I'm rearranging vn_open's signature anyway, stop exposing struct
nameidata. Instead, take three arguments: an optional vnode to use as
the starting point (like openat()), the path, and additional namei
flags to use, restricted to NOCHROOT and TRYEMULROOT. (Other namei
behavior, e.g. NOFOLLOW, can be requested via the open flags.)

This change requires a kernel bump. Ride the one an hour ago.
(That was supposed to be coordinated; did not intend to let an hour
slip by. My fault.)
2021-06-29 22:40:53 +00:00
wiz e58f3f6928 Remove unnecessary Pp, fix formatting, remove empty line. 2021-06-29 10:26:00 +00:00
wiz ee7020df38 Fix date. 2021-06-29 10:25:33 +00:00
nia f3c68eb2b0 Remove uscanner(4) driver
This exists for compatibility with a Linux interface which was apparently
deprecated in Linux 2.6. There are various mailing list threads going
back to 2004 where the usefulness of this driver is discussed, but
the conclusion is that scanner software has all moved to using ugen(4)
instead, and enabling this driver will not help you scan things.
2021-06-29 10:22:33 +00:00
gutteridge 1115b3e02c boot.8: minor grammar tweaks 2021-06-22 03:39:21 +00:00
gutteridge b2e48ae440 mbr.8: fix a typo 2021-06-22 03:30:06 +00:00
yamaguchi 718c28d1e1 lagg: fix typo 2021-06-21 06:36:28 +00:00
thorpej 17524afeeb x/I no longer has special meaning on alpha, and behaves just like x/i. 2021-06-21 02:12:00 +00:00
mrg 5be704ed29 switch m68000, m68k and 32 bit arm to GCC 10. just sh3 left!
special thanks to rin for fixing arm32.
2021-06-19 06:19:35 +00:00
riastradh eace48406f EEE: embrace, extend, extinguish; or eastern equine encephalitis 2021-06-18 21:58:20 +00:00
riastradh 076e35792d if_attach and if_initialize cannot fail, don't test return value
These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:

https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html

However, this spawned many seldom- or never-tested error branches,
which are risky to have around.  And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:

https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html

So there is no longer any reason for if_initialize to fail.  (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)

There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint.  This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken.  However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.

(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)

Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.
2021-06-16 00:21:17 +00:00
jdc d9e6c5d988 Add a bugs section about inserting two cards with different requirements. 2021-06-11 05:10:45 +00:00
dholland 7cec841687 Mention in ums(4) that a lot of usb mice detach/reattcah when not in use.
Prompted by PR 56209 but not related to the actual problem there.
2021-06-07 03:04:50 +00:00
nia 6fea7fb4ad actually, an anchor is needed so the period is appended 2021-06-04 12:43:14 +00:00
nia 081ceff646 remove empty anchor text 2021-06-04 12:29:33 +00:00
nia e4f8ed1955 re-order initial sections in the order a user is likely to be able
to address them. add a section on NPF. attempt to make various things
easier to find.
2021-06-04 12:12:02 +00:00
wiz 306a842f34 Fix typo. 2021-06-04 11:56:47 +00:00
nia 1068f92f08 adjust layout of afterboot(8) to make things easier to find 2021-06-04 11:48:18 +00:00
nia 40ec0685cd capitalization police, etc 2021-06-04 11:33:18 +00:00
riastradh 96893e54be uvm(9): Enable swap encryption by default.
For machines where the performance impact of swapping before the
system has an opportunity to process `vm.swap_encrypt=0' in
/etc/sysctl.conf, you can disable it again by adding

options 	VMSWAP_DEFAULT_PLAINTEXT

to the kernel config.
2021-06-03 20:18:06 +00:00
wiz 9fa9487eaa Remove i386/autoconf(4) and i386/console(4) to x86/autoconf(4) and x86/console(4)
Part of PR 36350.
2021-06-03 07:41:26 +00:00
rin 99f59e4c4b Switch amiga to Xorg server 1.20; wsfb(4) is only graphic driver both for
1.10 and 1.20 (Xamiga was gone a long ago...), and there is no reason to
stay with 1.10.

At least, 1.20 works fine on wsdisplay(4) at amidisplaycc(4).
2021-06-03 07:40:48 +00:00
wiz bf53403ac2 Add commented out ASUSTek USB-N13 B1
The urtwn driver attaches, but I didn't have a chance to try if it
actually works.
2021-06-02 22:32:29 +00:00
jmcneill d3b931e31a Add support for installing a copy of dtb files to the base dtb directory
when DTBSUBDIR is defined.
2021-06-02 10:28:21 +00:00
simonb e1d48e5a8b Use <sys/param.h> in the synopsis rather than <machine/param.h>; an MI
interface should be pulled in via <sys/...>.
2021-05-31 12:24:15 +00:00
dholland 3ed1486ed0 signal.7: minor clarification. Bump date (to when I wrote the change) 2021-05-30 07:17:01 +00:00
mlelstv 93bbdd3a4c Add "root" command to pass a root specification. 2021-05-30 06:05:24 +00:00
rin f49ee5462d Switch mac68k to Xorg server 1.20. Only available driver is wsfb(4) both
for 1.10 and 1.20, and there is no reason to stay with 1.10.

XXX
1.20 works fine on WSFB* kernels with genfb(4), whereas both 1.10 and
1.20 fail for GENERIC* kernels with macfb(4) as some mandatory ioctl's
are missing. It would be better to make genfb(4) default before netbsd-10
is branched.
2021-05-29 12:25:08 +00:00
christos 357005ef43 mips has switched already. 2021-05-27 21:02:56 +00:00
christos 69d62fbbf7 mips64 only works with gcc-10 2021-05-27 20:29:24 +00:00
christos be33763f2d switch to MACHINE_ARCH i386 to include xen (thanks mlelstv) 2021-05-27 17:41:28 +00:00
christos e5a1a244b0 Switch "xen" to gcc 10 too, otherwise xen kernel builds fail because they
"think" we have gcc-9 where we have gcc-10 in reality (since MACHINE=xen),
and we don't add ${GCC_NO_RETURN_LOCAL_ADDR} COPTS.in_pcb.c
2021-05-27 17:13:20 +00:00
christos 949385b148 remove dup line (thanks rillig) 2021-05-27 11:24:58 +00:00
mrg d59b5a77d7 sparc raid boot was 2006 (i had it right originally.) noted by jdc. 2021-05-27 07:23:04 +00:00
wiz 13663b19ac Use \(em. Remove superfluous Pp. 2021-05-27 07:05:26 +00:00
mrg 41b9942230 switch mips* and i386 to GCC 10.
arm32 (significant issues remaining), m68k (seems fine, but x68k
needs to reduce support in loadbsd), and sh3 remaining.
2021-05-27 06:58:27 +00:00
mrg 41c1322c84 move the basic history i wrote from raidctl(8) to raid(4), and
fix the x86 (thanks simonb) and sparc bootable dates, a couple
of spelling errors.
2021-05-27 06:53:37 +00:00
christos adc3e0c6e2 Add date as a tool 2021-05-26 20:21:25 +00:00
yamaguchi f0101d0e08 Add a new link-aggregation pseudo interface named lagg(4)
- FreeBSD's lagg(4) based implementation
 - MP-safe and MP-scalable
2021-05-17 04:07:41 +00:00
nia 694dad1773 wskbd.4: document neo layout 2021-05-11 14:51:34 +00:00
rin 735b9693ea PR port-mvme68k/56146
Build wrtvid as tools.
2021-05-06 13:23:36 +00:00
christos 88ec8e1e1c Fix code example (from RVP) 2021-05-04 17:51:55 +00:00
christos 87874d0971 Fix incorrect structure name (Rocky Hotas) 2021-05-04 17:47:51 +00:00
nia 719c9c8c6e intro.7: add missing entries 2021-05-01 07:41:14 +00:00