Commit Graph

250001 Commits

Author SHA1 Message Date
wiz 47990f0cb9 More wording and whitespace. 2017-04-16 06:34:05 +00:00
sevan 1c38b13310 Cross reference the manuals for listed modules. 2017-04-15 23:33:52 +00:00
riastradh 5a3d793f2a regen to confirm no functional change 2017-04-15 23:21:46 +00:00
riastradh ce1c68db98 Keep vnode locked during VOP_RECLAIM.
No bump because it wouldn't have been possible to acquire the lock in
VOP_RECLAIM anyway -- instant deadlock because vn_lock waits to
transition out of the RECLAIMING state first.  Benefit is that we can
now assert ownership of the lock in any operations called by
VOP_RECLAIM.

Discussed on tech-kern:

https://mail-index.netbsd.org/tech-kern/2017/04/01/msg021751.html
2017-04-15 23:16:53 +00:00
christos 3d6520b363 cosmetic fixes:
- __func__ in printfs
	- no space after sizeof
	- eliminate useless casts
	- u_intX_t -> uintX_t
2017-04-15 22:01:57 +00:00
kamil 0c8a82569b Build without installation example lua kernel module: luareadhappy 2017-04-15 18:22:35 +00:00
sevan 8be58fcddd Add authors email address. 2017-04-15 18:03:02 +00:00
sevan d54d828920 Re-edit
Add authors email address
Remove mb(9) as it's depricated
Bump date

TODO:
Software & Hard interrupt context description.
2017-04-15 18:00:32 +00:00
riastradh c8bcfc34de No need for membar_datadep_consumer here.
PSLIST_READER_FOREACH takes care of it already.
PSLIST_WRITER_FOREACH is exclusive so doesn't need it.
2017-04-15 17:06:45 +00:00
skrll ef94a4990e Typo - although maybe the language should change 2017-04-15 14:00:30 +00:00
skrll 2d85f55340 Typo 2017-04-15 13:57:47 +00:00
kamil bce1cecb2e Add new documentation locking(9)
It's a document from June 2015.

DESCRIPTION
     The NetBSD kernel provides several synchronization and interrupt control
     primitives.  This manpage aims at giving an overview of these interfaces
     and their proper application.  This document includes also basic kernel
     thread control primitives and rough overview of the NetBSD kernel design.

Part of interfaces are missing, like new mechanisms for networking SMP,
as this documentation page predates them.

Initial review back in 2015 by Thomas Klausner <wiz>
2017-04-15 13:52:51 +00:00
abhinav c6e09f6896 Use Xr instead of Fn to refer readdir(3) 2017-04-15 10:30:55 +00:00
abhinav 811db621b8 Use Xr instead of Fn to refer kqueue(2) 2017-04-15 09:50:57 +00:00
sevan b44ab99898 Improve wording.
Bump date.
2017-04-15 05:01:59 +00:00
sevan 4ebe471d77 Improve wording.
Bump date.
2017-04-15 04:44:14 +00:00
kamil 502c2ed2ba Add new example kernel module in Lua luareadhappy
This example presents a C module with its device (/dev entry) and its
content generator with algorithm defined in Lua state. The Lua state can
be changed dynamically from userland, without interruption of read(2) over
the device.

This is an example how to call Lua code from C.
2017-04-15 04:27:30 +00:00
wiz fc8a50fff0 Improve wording. Use standard section headers. Improve table formatting. 2017-04-15 04:08:24 +00:00
wiz 29f6cd1b8a Improve wording. 2017-04-15 04:07:52 +00:00
kamil c1fa86b6a5 Add new documentation for klua_mod_register(9) and klua_lock(9)
Lua kernel bindings.
2017-04-15 03:33:05 +00:00
jmcneill a1e104d5ce Replace early init node name list with a list of compatible strings. 2017-04-15 00:35:12 +00:00
jmcneill 2a9f65654c Change order in which nodes in the devicetree are processed.
1. Attach all known busses.
2. Attach all "early init" devices (by compatible string).
3. Finally, attach all other devices.
2017-04-15 00:34:29 +00:00
jmcneill 899026e63c Remove simplebus driver and allow fdtbus to attach directly to itself. 2017-04-14 22:55:06 +00:00
christos 4a345c3145 PR/52161: Ryota Ozaki: Fix AH tunnel ipsec for ipv6. Compute plen right,
don't forget to subtract the ipv6 header length.
2017-04-14 22:35:05 +00:00
christos def487d659 - fix old refactoring which zeroed the wrong part of the buffer.
- simplify.
2017-04-14 22:29:17 +00:00
christos 1c33db60e4 change into __func__ 2017-04-14 18:06:11 +00:00
christos 3bf4d13e2d leave the size alone and set the create_size to include the offset. It
does not matter anyway, but it makes more sense this way.
2017-04-14 15:40:35 +00:00
christos 64f54f261d Use the create_size if given to compute the real size instead of stat'ing
the file again, which might have been larger to start with.
2017-04-14 15:39:29 +00:00
riastradh d962cd4d88 libdevmapper is conditional on lvm. 2017-04-14 15:21:28 +00:00
riastradh 6b28507760 cvslatest is unconditional, not conditional on cvs. 2017-04-14 15:20:39 +00:00
jmcneill fa18b035dc Grow the MBR partition table entry for the BSD partition before
growing the disklabel.
2017-04-14 13:47:21 +00:00
roy 32859d4ec3 Note import of dhcpcd-7.0.0-beta3 2017-04-14 10:02:49 +00:00
roy 3ea4b10738 Backdate a note about adding RO_MSGFILTER. 2017-04-14 10:01:48 +00:00
roy d14d1633e4 Build logerr support. 2017-04-14 10:00:06 +00:00
roy 4589239c13 Sync 2017-04-14 09:56:32 +00:00
roy f85b60c0ae Import dhcpcd-7.0.0-beta3 with the following changes:
*  restored --logfile support as a few people complained it vanished
     The new logging code even makes the overall binary size smaller
     on most platforms.
  *  BPF filter now trims garbage trailing the payload
     OK, it's not garbage, but userland doesn't know some drivers append
     FCS to it.
  *  support NetBSD's RO_MSGFILTER socket option to reduce avoid context
     switching for route(4) messages that don't interest us.
  *  Don't open sockets if just sending signals.
  *  HMAC-MD5 test's now check expectations in code rather than relying
     on visual confirmation.
  *  added eloop-bench to test performance of eloop with available
     polling mechanisms.
2017-04-14 09:53:06 +00:00
jmcneill 5c16178e92 Add GPU gating clock 2017-04-14 09:50:56 +00:00
knakahara 200097fdf5 disable msi/msix when the system doesn't detect ioapic. This would fix PR kern/52111.
Some system does not detect ioapic when "boot -1", disable acpi, and so on.
In such cases, msi/msix doesn't work, so disable them.

This patch is implemented by nonaka@n.o, I just commit by proxy, thanks.
2017-04-14 09:34:46 +00:00
abhinav e31d33c056 Fix mandoc -Tlint warnings:
s/PP/Pp
	Remove Pp before It
2017-04-14 08:48:01 +00:00
abhinav e8fa53a0b4 Instead of removing markup as I did in the last commit, use markup but properly.
Hint taken from FreeBSD man page.

ok wiz@
2017-04-14 08:40:30 +00:00
roy b6de69380c Generate dhcpcd-embedded.c for dependencies too. 2017-04-14 07:55:55 +00:00
wiz 0d97bd8ae2 Whitespace fixes. 2017-04-14 07:09:43 +00:00
kamil 97ccec3243 x86: Export fpu_save, fpu_save_size, xsave_features to dedicated sysctl nodes
Add new defines:
 - CPU_FPU_SAVE (15)
   int: FPU Instructions layout
   * to use this, CPU_OSFXSR must be true
   * 0: FSAVE
   * 1: FXSAVE
   * 2: XSAVE
   * 3: XSAVEOPT
 - CPU_FPU_SAVE_SIZE (16)
   int: FPU Instruction layout size
 - CPU_XSAVE_FEATURES (17)
   quad: FPU XSAVE features

Bump CPU_MAXID from 15 to 18.

These values were prepared originally to be exported without ASCIIZ name to
be used as handler. These values are useful to get FPU accessors in a
debugger easier to implement on x86 (PT_SETFPREG, PT_GETFPREG).

This interface handles all supported x86 targets. In the older (i386) and
less featured CPUs check first osfxsr (OS uses FXSAVE/FXRSTOR).

According to sys/arch/x86/include/cpu.h r.1.65 this was prepared to be
exported beyond simple CTL_CREATE node.

Sponsored by <The NetBSD Foundation>
2017-04-14 04:43:47 +00:00
ozaki-r 47978ed2ef Mark tests of tunnel/AH/IPv6 as expected failure (PR kern/52161) 2017-04-14 03:35:40 +00:00
ozaki-r 0b5da45aff Add tests for ipsec
- Check if setkey correctly handles algorithms for AH/ESP
- Check IPsec of transport mode with AH/ESP over IPv4/IPv6
- Check IPsec of tunnel mode with AH/ESP over IPv4/IPv6
2017-04-14 02:56:48 +00:00
ozaki-r 469c0f099a Rumpify netipsec
Note that we should modularize netipsec and reduce reverse symbol references
(referencing symbols of netipsec from net, netinet and netinet6) though,
the task needs lots of code changes. Prior to doing so, rumpifying it and
having ATF tests should be useful.
2017-04-14 02:43:27 +00:00
riastradh 460f0e63ea Gotta mark crashes on signal separately from failures... 2017-04-14 01:30:38 +00:00
jmcneill 030df65867 Only route USB ports to XHCI controller after the firmware is loaded
successfully. This gives us working USB (via USB2 controllers) until the
tegra-firmware package is installed.
2017-04-14 00:19:34 +00:00
nat 0e007aeed4 Increase the priority of the mixing thread yet again.
Ensure that there is data in the mix ring.

Addresses PR kern/52098.
2017-04-14 00:05:46 +00:00
jmcneill 498820abda Allow devices to attach to nodes without a "compatible" property, but only
print "not configured" messages for nodes with one.
2017-04-13 22:27:07 +00:00