Commit Graph

18566 Commits

Author SHA1 Message Date
dholland 9188f350fd +aioli 2022-01-21 08:58:10 +00:00
skrll fa1e00efc4 Add return type of the __SHIFT* macros. Bump date.
"looks right to me" from mrg@
2022-01-20 07:30:25 +00:00
christos 55cf6c3f80 put back more links now that we have them. 2022-01-18 20:38:28 +00:00
wiz 8dc77b19f8 Sort ERRORS, mark up NULL. 2022-01-17 23:12:41 +00:00
christos d531eb8e3c Add new acl vnode op pages 2022-01-17 22:47:43 +00:00
wiz 2fe22866e0 Sort SEE ALSO, fix punctuation. 2022-01-17 22:27:20 +00:00
wiz f5e669e2ed use "non-null" instead of "nonnull" for readability 2022-01-17 22:27:10 +00:00
christos 1527922e50 Add acl related changes; there is no more vaccess; document the genfs functions
instead.
2022-01-17 19:08:06 +00:00
thorpej 5eb438ad7a Re-factor and overhaul the "mcp23s17gpio" driver as "mcpgpio", and
add support for 8-bit and I2C variants of the chip:
- MCP23008 / MCP23S08: 8-bit (I2C / SPI)
- MCP23017 / MCP23S17: 16-bit (I2C / SPI)
- MCP23018 / MCP23S18: 16-bit (I2C / SPI), open-drain outputs

The MCP23x17 and MCP23x18 are essentially identical, software-wise; we
merely report different GPIO pin capabilities (no push-pull output for
MCP23x18).  Also, remove the tri-state capability that was previously
advertised by the old version of this driver; these chips have no way
to put the pin into a HI-Z mode.

All 3 I2C versions are supported, but the SPI front-end still only
supports the MCP23S17 for now (SPI autoconfiguration needs an overhaul).

mcp23s17gpio(4) remains present as a link to the new mcpgpio(4) man page.

XXX Still to-do: FDT integration, interrupt suppoort.
2022-01-17 16:31:23 +00:00
wiz e751bb9847 whitespace fix 2022-01-15 17:54:01 +00:00
christos 10191c34cf PR/56629: Andreas Gustafsson: Update documentation about the filter head
maintainance functions.
2022-01-15 15:37:15 +00:00
wiz 52efe91aa5 Fix typo, remove dot 2022-01-06 22:10:39 +00:00
nia 2e2abd82c6 Add man pages for eqos(4), mcommphy(4)
lgtm jmcneill@
2022-01-06 21:55:23 +00:00
msaitoh 988ab2c9fa s/sytem/system/ 2022-01-01 10:32:28 +00:00
msaitoh 36a58e7c07 s/assoicate/associate/ 2022-01-01 09:53:32 +00:00
riastradh 88580404b3 sysmon(9): New sysmon_task_queue_barrier(pri) function.
This waits for the completion of all tasks at priority pri or lower
that are currently queued at the time of the call.
2021-12-31 14:22:10 +00:00
christos 32fedbaf4c remove the NEED_OWN_INSTALL_TARGET conditional for setting the install
variables, suggested by phone@
2021-12-30 04:57:10 +00:00
andvar ca8f8e9eb0 namei(9): s/operatoins/operations/ 2021-12-26 16:41:09 +00:00
andvar e590e6c9f3 fix various typos, mainly in comments. 2021-12-26 16:08:19 +00:00
christos e84b253916 remove extra C in OBJCOPTS (from Anon Ymous) 2021-12-23 20:08:07 +00:00
thorpej 3000bba86d Document PR_PSERIALIZE. Remove documentation for pool_cache_setpredestruct(). 2021-12-22 17:28:17 +00:00
thorpej 1af3a96973 Add pool_cache_setpredestruct(), which allows a pool cache to specify
a function to be called before the destructor for a batch of one or more
objects is called.  This can be used as a synchronization point by
subsystems that rely on the type-stable nature of pool cache objects or
subsystems that use other forms of passive serialization.
2021-12-21 18:59:22 +00:00
christos 69f41f5953 Rename:
MKKDEBUG -> MKDEBUGKERNEL
    MKTOOLSDEBUG -> MKDEBUGTOOLS
while keeping compatibility with the old names. Add missing documentation.
Now all debugging tunables are prefixed with MKDEBUG.
2021-12-20 20:33:20 +00:00
christos 814fa5ccf1 PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x  0 root   wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x  0 root   wheel 208125880 Dec 19 12:50 ./netbsd.gdb
2021-12-20 14:41:26 +00:00
christos 7aa721301c Pass W with IDU for lint and deps. 2021-12-14 16:22:07 +00:00
dholland 602dabe914 Add a bunch of missing food items. 2021-12-12 22:58:35 +00:00
maya 1eb4f57936 Add amdgpu firmware build goo (disabled) 2021-12-12 20:33:21 +00:00
riastradh c59d430d3b crashme(9): Touch up man page markup.
Better consistency with sysctl(7), less random widthing and
offsetting.
2021-12-11 23:47:53 +00:00
wiz 2ea60c825f Document vchiq@acpi 2021-12-11 20:42:48 +00:00
mrg d914a3c1b9 remove clause 3 from all my licenses that aren't conflicting with
another copyright claim line.  again.  (i did this in 2008 and then
did not update all of my personal templates.)
2021-12-11 19:24:18 +00:00
riastradh 72cb7fc7b2 Update crashme(9) man page for recent additions. Reorganize slightly. 2021-12-11 19:16:48 +00:00
andvar 8c4df4824b s/unaccessible/inaccessible/ 2021-12-10 19:30:05 +00:00
andvar 28425333b6 s/refernce/reference/ 2021-12-09 21:14:50 +00:00
andvar 765c526966 s/recomended/recommended/ and s/unknonwn/unknown/ 2021-12-08 19:28:30 +00:00
rillig f839c2b06d bsd.clean.mk: fix typo in comment 2021-12-07 22:40:52 +00:00
brad 4baee7b8d2 Mention the SCMD device 2021-12-07 17:50:27 +00:00
brad bf53d44167 A driver and user land utility for the Sparkfun Serial Controlled Motor
Driver module as illustrated here:

https://www.sparkfun.com/products/13911

A SCMD module is a ARM SOC simular to a Arduino in front of a motor
driver chip.  The single SCMD module can control two motors and up to
16 additional modules can be chained together using an internal I2C
bus.  One can interface with the SCMD using tty uart commands, SPI or
I2C.  The driver in this commit adds a kernel driver for the I2C and
SPI interfaces.  The command line utility provides a set of
convenience commands that support most of the functions of the SCMD
and is able to use the tty uart mode, SPI user land or the included
kernel driver in a uniform manor.

The use of the SCMD module is mostly for small robots and the like,
but it can control anything that is controllable by voltage.
2021-12-07 17:39:53 +00:00
abs 9a317b44dd Add Xwsfb X server to pmax build
With the previous tweak to TURBOchannel framebuffers in sys/dev/tc this
should allows pmax to once again run X11.

TODO: Investigate pullup to -9
2021-12-06 17:51:59 +00:00
msaitoh e6dabad63a s/specificed/specified/ in comment. 2021-12-05 07:53:57 +00:00
msaitoh 8194593f85 s/runable/runnable/ 2021-12-05 07:35:17 +00:00
msaitoh 8a3fe07864 s/from from/from/ in comment. 2021-12-05 04:54:20 +00:00
msaitoh 9071b4b491 s/covert/convert/ in comment. 2021-12-05 04:38:54 +00:00
msaitoh a302c94c87 Add some devices. 2021-12-02 05:10:04 +00:00
ryo 11b9cb2b2b aarch64 also now can execute both 32 and 64 bit 2021-11-28 18:08:51 +00:00
christos c207dc6779 When we build against DESTDIR, add the lint library path for DESTDIR during
the link phase for lint.
2021-11-28 15:49:36 +00:00
christos 9bb938d35a For private and module libraries, build lint but do not install the lint
libraries. We want to lint the private library code and we want to be able
to link against the lint libraries, for example llib-largon2 from cgdconfig
which is accessed via PROGDPLIBS.
2021-11-28 15:47:33 +00:00
rillig 6e083f0283 sys.mk: fix duplicate character in character class of LINTFLAGS
The character class contained two times U+0020, which makes one of them
redundant, so remove the character class. PR toolchain/18248 already
contained these two spaces.

Apparently there is no need to support tabs in this place, otherwise
someone would have noticed it in the 17 years since this pattern had
been added in sys.mk 1.83 from 2004-01-27.

No functional change.
2021-11-28 00:21:12 +00:00
thorpej 0cf29bbbd8 Add "Gearmo USA-FTDI4X" (a 4-port USB serial adapter) to the list of
devices supported by uftdi(4).
2021-11-26 22:37:31 +00:00
msaitoh e53114c37c Remove mb_map. 2021-11-16 05:16:47 +00:00
christos dd08f8bc5d Explain the state of ASU and ACOMPAT. 2021-11-15 17:41:20 +00:00
skrll 50e70fef69 Hook in riscv dtb build 2021-11-13 10:13:42 +00:00
skrll 4eedda3bdc Correct a comment 2021-11-13 09:41:15 +00:00
brad d8ba40df01 Fix the serial number handling of the HTU21D chip and probably others.
Increase the number of read attempts as the HTU21D and probably others
do not respond as fast the actual SI70xx chip can.
2021-11-12 15:12:11 +00:00
wiz cecc7a2e8c new sentence, new line. 2021-11-11 14:24:24 +00:00
brad d0247a8a52 Some HTU21D chips do not have a heater register and apparently no
heater element.  Disable the heater features in the driver when that
condition is detected and let the attachment succeed.  Also mention
that the SHT21 is another clone.
2021-11-11 14:16:04 +00:00
msaitoh fb5eed7026 s/ba/be/ 2021-11-10 15:41:41 +00:00
nia 388c45680d iwm.4: rework caveat for more relevance to this driver 2021-11-10 07:58:44 +00:00
nia 96c0ccb3f3 Update the list of supported devices for iwm(4) and add a CAVEAT. 2021-11-10 07:57:29 +00:00
plunky c27aa72c78 ODMR on-demand mail relay 2021-11-10 07:08:47 +00:00
riastradh f2e0f4c55c pslist(9): No need to serialize pserialize_perform any more.
So take it out of the mutex section.
2021-11-06 23:29:03 +00:00
wiz a47d853d9f New sentence, new line; remove trailing whitespace. 2021-11-06 19:36:12 +00:00
brad a827f0510e Mention sht3xtemp(4) 2021-11-06 13:36:34 +00:00
brad 1f3d8cb8fe Driver for the Sensirion SHT30/SHT31/SHT35 temperature and humidity
sensor such as:

https://www.adafruit.com/product/2857

This is a higher priced sensor with a lot of features, including the
ability to do sub-second periodic updates.  The driver supports
everything about the sensor except for the alert pin.
2021-11-06 13:34:39 +00:00
riastradh 17baa91bd8 Rework ilog2(3) man page.
- Tweak title.
- Clarify semantics -- round down, not any other way.
- xref ffs(3)
- Fix return type: int.
- Fix language about input type.
  . Any unsigned type is fine.
  . Types smaller than uint32_t will be safely converted to uint32_t.
- Note that it is a constant expression if x is constant.
2021-11-05 22:39:35 +00:00
abs b184d46aae Update glob example from X11R6 to X11R7 2021-11-02 22:13:14 +00:00
abs 52b076ef20 Adjust example path to kde/sounds
Wherever sounds may be on a current NetBSD system, /usr/X11R6 is
unlikely to be in that set...
2021-11-02 21:55:38 +00:00
nia 8b8c4023f4 mk: Add support for conditional compilation of parts of the tree with
partial RELRO when MKRELRO=full is set.

Currently the X server needs to be compiled with only partial RELRO
due to the way certain (but not all - it seems wsfb works with full
RELRO) graphics driver modules are loaded.
2021-11-01 10:05:18 +00:00
andvar 56d66eb030 "no affect" -> "no effect" in man pages and comments. 2021-10-30 21:08:58 +00:00
nia 62c18ff3d1 pdcsata.4: Add HISTORY section, fix stray space. 2021-10-29 10:26:10 +00:00
nia 63871daedd Add some missing device drivers to the lists.
From bobs at thelibertytree.org, thanks!
2021-10-29 10:21:28 +00:00
ryo f989f9625c revert previous: http://mail-index.netbsd.org/source-changes/2021/10/25/msg133295.html
going to add __always_inline to the functions called from _mcount()
discussed on http://mail-index.netbsd.org/source-changes-d/2021/10/25/msg013480.html
2021-10-27 03:06:59 +00:00
nia 0e837f732b passwd.conf(5): switch default cipher for new user accounts to Argon2id
As well as offering a dynamic amount of iterations and memory usage,
which fits well with NetBSD's goal of running on a diverse range of
hardware devices, Argon2id offers improved resistance to GPU-based
password cracking and side channel attacks.
2021-10-26 20:44:45 +00:00
ryo 843ce00650 In some arch, _mcount() would be called recursively when built with COPTS=-O0.
Normally, functions called from mcount.c are expected to be expanded inline,
so _mcount() will never be called recursively. But when build with COPTS=-O0,
`static inline' functions aren't inlined, and _mcount() will be called
recursively.

Even if _mcount() has `__attribute__((__no_ instrument_function__))',
it has no effect on the calling external (no-inlined) function.

To avoid this, PROF.<fn> is added can be set the profiling flag of any file.
"PROF.mcount.c" is set to blank by default, mcount.c itself is compiled
without -pg.
2021-10-25 07:54:44 +00:00
gutteridge ffbf25baea bpf.4: amend caveat about what types of links can be written to
Try to be clearer about what's supported. A peripheral issue noted in
PR pkg/55446.
2021-10-24 17:46:06 +00:00
andvar 6f8dc1509f fix various typos, mainly in comments, but also in man pages and log messages. 2021-10-21 13:21:53 +00:00
wiz 7e8cc147ae Bump date for previous. 2021-10-21 07:33:13 +00:00
blymn 016c53adf0 Add documentation for the button_region_movement_enable variable. 2021-10-21 04:51:10 +00:00
wiz fd83225780 New sentence, new line. 2021-10-14 21:35:45 +00:00
nia fe6a647e2c Add sgp40mox(4) 2021-10-14 20:23:31 +00:00
brad ea034c40cb A driver for the Sensirion SGP40 MOx gas sensor. An example of this
chip from Adafruit is:

https://www.adafruit.com/product/4829

This is a moderately priced gas sensor that can detect volatile
organic compounds in the air.  The driver uses the 3-clause BSD
licensed VOC algorithm provided by Sensirion to turn the raw sensor
metric into a VOC index which can indicate the quality of the air in a
particular indoor environment.  All published functions of the chip
are supported and one unpublished feature.
2021-10-14 13:54:45 +00:00
nia 7d6fba5f3f mk: Enable MKPIE on aarch64 (it's already enabled on 32-bit arm) 2021-10-14 12:58:30 +00:00
nia ac33538813 mk: Enable MKRELRO on aarch64 to match x86. 2021-10-14 11:46:45 +00:00
nia 2088d9efba mk: Enable MKARGON2 now that this stuff works. 2021-10-14 11:45:46 +00:00
andvar da66f63158 fix typos in man pages. 2021-10-12 15:25:27 +00:00
nia 09dde10e16 passwd.conf.5: document using argon2 2021-10-12 11:08:14 +00:00
wiz bde02bf7a2 Fix xrefs. Remove superfluous Pp. 2021-10-12 07:43:49 +00:00
wiz d0783ebfe3 Fix date. 2021-10-12 07:43:41 +00:00
msaitoh c6448522e7 Add hvn.4. OK'd by nonaka@. 2021-10-12 04:55:19 +00:00
nia e11ac7eb28 wsmouse.9: document scrolling bits 2021-10-11 18:19:27 +00:00
nia 384dab288d wsmouse.4: document newer ioctls
accidentally missing from a previous commit, pointed out by tsutsui
2021-10-11 18:06:06 +00:00
wiz 7cfde6547e New sentence, new line. 2021-10-11 07:45:39 +00:00
rin 795407bc1e Add description for 3c572B aka OfficeConnect 572B. 2021-10-11 03:00:18 +00:00
riastradh 97eadbd13e pserialize(9): Lift rule that pserialize_perform be serialized.
There may have been a technical reason for this back when we were
following the expired passive serialization patent to the letter, but
no more -- and this is a real burden for some applications.
2021-10-10 11:20:46 +00:00
jandberg 05b33a3ec0 Update documentation to mention current status of X11 2021-10-09 08:25:33 +00:00
msaitoh 7928066bd9 Update the description of the NMBCLUSTERS. Add NMBCLUSTERS_MAX. 2021-10-06 05:25:53 +00:00
nia 13076480ca Add sht4xtemp(4). Sort. 2021-10-05 16:36:58 +00:00
andvar 45f3db2a60 s/userpsace/userspace/ 2021-10-04 20:25:20 +00:00
andvar e49c2d1bf9 remove duplicate the article in documentation. 2021-10-04 14:35:20 +00:00
wiz a9ca187139 New sentence, new line. Fix Dd. Use more macros. 2021-10-03 18:20:13 +00:00
brad ee2dd9d79d A driver for the Sensirion SHT40/SHT41/SHT45 temperature and humidity
sensor.  An example of this chip is:

https://www.adafruit.com/product/4885

This is a lower cost chip that provides higher then usual precision
according to the data sheet.  This driver supports all of the published
functions that the chip has.
2021-10-03 17:27:02 +00:00
jmcneill 2017b9f914 efiboot: Build and install bootriscv64.efi for riscv64 builds. 2021-09-30 20:02:54 +00:00
maya f9d97969cb Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional
Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html
2021-09-26 15:52:40 +00:00
nia f7f2d033b2 Update remarks on Linux-flavored procfs. 2021-09-26 11:22:29 +00:00
maya f54624bd74 Move DRM-driver firmware from base to its own set, gpufw
This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.
2021-09-25 08:54:29 +00:00
ryo aa98bec62c add aarch64, and sort architecture names by alphabetical order. 2021-09-23 09:07:39 +00:00
tsutsui 5edb7daeef Fix pasto. WSKBDIO_*BELL ioctls take struct wskbd_bell_data.
Bump date.

XXX1: the wskbd(4) (and all otther wscons(4) related) man page should
      describe more details of all ioctls.
      (usage, args and return values including structures).
XXX2: the wsbell(4) man page has description about all WSKBDIO_*BELL ioctls
      and struct wskbd_bell_data, but maybe they should be moved into this
      wskbd(4) man page and wsbell(4) should be changed to xref wskbd(4).
2021-09-18 18:14:07 +00:00
tsutsui 7239780e82 Update description of struct timecounter (u_int64_t -> uint64_t).
It has been changed since src/sys/sys/timetc.h rev 1.8.
Bump date.
2021-09-18 18:01:18 +00:00
leot f48828b0bf Add DW 2021-09-16 08:33:24 +00:00
nat ea1f37116e Describe how to obtain debugging information from vchiq(4).
Ok nia@
2021-09-16 02:53:28 +00:00
andvar 80f2027016 sysinst/partitions.h: fix typos comments, also fix same typos in other files. 2021-09-11 21:30:46 +00:00
nia 6c5944f65d sort 2021-09-10 22:48:19 +00:00
nia 4e08b86501 iic.4: add missing client devs (those with man pages, many don't have one) 2021-09-10 21:12:20 +00:00
alnsn 65be30e010 Move SOB to offensive acronyms. 2021-09-05 17:29:27 +00:00
msaitoh 8ab7d3270e Use MCLGET() instead of homegrown cluster (jcl) allocation mechanism.
- Before this commit, resource shortage was easily occurred because the total
  number of the clusters is small.

- Reviewed by knakahara and ryo.
2021-08-25 09:06:02 +00:00
mrg d07aa01e08 xorg-server is now at 1.20.13. 2021-08-24 06:29:18 +00:00
mrg 2fa4170300 define variables for the libxcb-* libraries. 2021-08-23 22:13:27 +00:00
andvar 8324be4c9b fix some more typos in comments/log messages, improve wording as well. 2021-08-21 11:55:24 +00:00
mrg ab57e84c1b fix arm64 builds: turn off MKCOMPAT for GCC
no idea why it was enabled as we can't easily target 32 bit.

if we figure this out for aarch32, the subdir names etc will
probably be different, or we can just revive the deleted
files no longer referenced with this commit.
2021-08-19 06:52:37 +00:00
andvar 2e0bf311b3 fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected. 2021-08-17 22:00:26 +00:00
andvar a6c62dd046 tty.4: s/asynchronus/asynchronous/ 2021-08-17 14:11:22 +00:00
mrg 344668bab1 switch sh3 to GCC 10. buh bye GCC 9!
thanks to everyone who helped (most espcially rin@.)
2021-08-16 17:40:16 +00:00
christos 9aa9806a13 Fix sun2 build for ldap/gssapi 2021-08-15 10:30:39 +00:00
christos 7377d9de8f Centralize the ldap libraries 2021-08-14 16:16:32 +00:00
andvar d4eac28cae s/directry/directory/ 2021-08-12 20:25:26 +00:00
nia 213aa76def introduce a SOL_LOCAL for unix-domain socket level socket options
as an alias of the current 0 used for these options, as in FreeBSD.

reviewed by many.
2021-08-08 20:54:48 +00:00
andvar 5712d03cb7 change othersize to otherwise. I believe this is what was meant in the context. 2021-08-08 16:12:10 +00:00
uwe 3c26fdeeb4 autoconf(9) - Improve formatting.
Don't hide consumed cfargs in the second sentence of a function's
description, they ends up hidden towards the right margin and that
sentence is guaranteed to get a line break further reducing its
readability.  Instead make that the first sentence and start the
description with a new paragraph.  That makes it looks like part of
the signature and is much more prominent.

Various markup improvements while here.

Bump date for thorpej-cfargs2 changes.
2021-08-07 20:41:17 +00:00
andvar 3c7a3199b6 s/configuraiton/configuration/ in comments and man pages. 2021-08-07 19:41:13 +00:00
thorpej 2540f5896a Update for thorpej-cfargs2. 2021-08-07 16:20:02 +00:00
isaki 5aeec4b8b4 x68k now uses KAUTH_MACHDEP_UNMANAGEDMEM. 2021-08-07 03:28:42 +00:00
tnn 2fb83002a9 ssdfb(4): note SSD1353 support 2021-08-05 19:23:44 +00:00
andvar cba4208ca7 add pcib(4), pceb(4), pcmb(4).
pcmb is a separate man page for i386 only, pceb and pcib are references to pci(4) only and mentioned in its bridges section.
ok riastradh
2021-08-01 21:56:26 +00:00
tnn 25e0fac49a ssdfb(4): add an iic fdt attachment example also 2021-08-01 16:17:05 +00:00
tnn 2a55bc0beb ssdfb(4): nix BUGS section, add EXAMPLES section 2021-08-01 15:35:47 +00:00
wiz e2a90e41be Fix typos. 2021-07-28 11:32:21 +00:00
manu e5ffdc00de Tie the maximum file lock per unprivilegied uid to kern.maxfiles
This makes the limit simple to raise at run time. While there, document
that fcntl(2) and flock(2) may return ENOMEM when this limit is reached.
2021-07-27 09:32:55 +00:00
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
christos a2d5970e99 Mention that check-names is now the default. 2021-04-30 16:12:18 +00:00
bad eda596189c enable sun8icrypto on Allwinner H3 too.
Allwinner H3 needs a slower mod clock according to the Linux driver.

tested on NanoPi R1.

thanks jmcneill@ and riastradh@ for advice.

XXX pullup-9
2021-04-28 16:57:05 +00:00
thorpej 314209004d Update autoconf(9) for recent autoconfiguration changes. 2021-04-28 00:49:22 +00:00
nia 5783e20041 add a man page for sun8icrypto(4) 2021-04-27 21:13:38 +00:00
mrg 842d17106a xorg-server 1.20.11 is now current. 2021-04-27 04:02:09 +00:00
christos ef70f9b69b Revert the AFLAGS change since it affects kernels. 2021-04-26 00:38:23 +00:00
christos 617e25cc45 make MACHINE_MIPS a boolean not a condition 2021-04-25 21:55:58 +00:00
rin 3fce5ffb9d Add missing \ for previous. 2021-04-25 15:33:15 +00:00
christos 8c4355e24e - since we are using regex already, shorten by merging arm and mips entries
- add a MACHINE_MIPS64 macro shorthand
- pass -m{soft,hard}-float to the assembler when we are passing it to the
  compiler
2021-04-25 14:32:20 +00:00
mrg 9aab5f6a62 switch powerpc and arm64 to GCC 10. 2021-04-25 08:01:54 +00:00
nia d6f5a14b2b these sysctl variables were removed 2021-04-25 05:52:22 +00:00
nia 4986201e82 update information 2021-04-24 07:12:17 +00:00
rin 1062ebcd31 Capitalize /EFI and /EFI/NetBSD as usual. Both are case-insensitive although.
Maybe not worth bumping dates...
2021-04-22 01:36:25 +00:00
skrll eea8ca29ae Switch hppa to gcc 10 2021-04-18 20:32:49 +00:00