272144 Commits

Author SHA1 Message Date
yamaguchi
ab26da02e0 Added the manual for ixl(4) 2019-12-10 13:07:28 +00:00
nonaka
c9d5b0910f hvn(4) can be added and deleted dynamically. 2019-12-10 12:20:20 +00:00
yamaguchi
a5e8635231 Ported driver for Intel Ethernet 700 series
reviewed by msaitoh and knakahara
2019-12-10 12:08:52 +00:00
ad
7058786aea Inverted test. 2019-12-10 11:35:29 +00:00
nonaka
816b6ece7c hvn(4): Handle VMBUS_CHANPKT_TYPE_INBAND packet type. 2019-12-10 11:19:25 +00:00
ad
129ba28ca3 Fix build break. 2019-12-10 11:12:02 +00:00
kre
7af1d9b731 Correct a typo in a comment, 08x0 was meant to be 0x80 (duh!). NFC. 2019-12-10 09:18:37 +00:00
isaki
6e13a9a980 Fix typo. 2019-12-10 06:25:50 +00:00
manu
ab4342fd22 Add multiboot 2 support to amd64 kernel 2019-12-10 02:06:07 +00:00
manu
9d087602a9 In-RAID partitions with no name can be candidate for booting
The code to select boot partition in RAID assumed thet had a name,
which is true when there is a GPT inside the RAID, but not when there
is a disklabel inside the RAID. This caused a regression from behavior
of NetBSD 8.1.

We fix this by allowing nameless partition to be boot candidates.
This fixes misc/54748

While there, let raid device be used in the boot specification, like
raid0a:/netbsd.
2019-12-10 02:02:47 +00:00
ad
5fcb332dd2 Add mutex_owner_running(). 2019-12-09 21:08:56 +00:00
ad
76e423e55a - Add a mutex_owner_running() for the benefit of the pagedaemon, which
needs help with locking things in reverse order.
- Expunge the panicstr checks.
- Make MUTEX_NODEBUG work for adaptive mutexes too.
2019-12-09 21:05:23 +00:00
ad
359603aa58 Expunge the panicstr checks, we don't need them. 2019-12-09 21:02:10 +00:00
ad
9239dba04a Fix LOCKDEBUG panic on detach. 2019-12-09 21:00:48 +00:00
martin
2d2d93336c PR install/54582: allow MD code to disable on-disk presence verification
of "real" disklabels. Auto-enable this (at run time) when there is no other
partitioning scheme but disklabel configured.
Hard-coded enable this for x68k to allow using kernel based translations
for native Human68k partitions.
2019-12-09 19:16:53 +00:00
tsutsui
87f4dc45fb Fix incorrect argument order of cpu_intr(), slipped in rev 1.2.
Pointed out by maya@ in PR/45080.

Should be pulled up to netbsd-9.
2019-12-09 16:19:11 +00:00
tkusumi
cffbab3877 dm: Silence aprint_normal() in dm_target_linear_status()
dm_target_linear_status() shouldn't print this debug message by default
on dmsetup "table" ioctl/command.
2019-12-09 16:06:19 +00:00
tkusumi
3838da2c5a dm: Fix error handling in dmioctl()
Looks like cleanup_exit label is in a wrong place.
Should skip prop_dictionary_copyout_ioctl() on error.
2019-12-09 15:54:59 +00:00
jakllsch
16d7a284e8 build drm_panel.c w/ drmkms 2019-12-09 15:37:26 +00:00
jakllsch
153c41cc47 workaround netbsd incompatible LIST_HEAD
adapted from drm_bridge.c r1.3
2019-12-09 15:36:16 +00:00
tkusumi
943f37923f dm: Correct target name "stripe" -> "striped"
Sync with Linux kernel.
The file name is "stripe", but the target name is "striped".
DragonFlyBSD also follows this.
2019-12-09 15:30:42 +00:00
riastradh
c1ca5b3e18 Tidy up comments. 2019-12-09 14:56:44 +00:00
riastradh
36b5d590c2 Avoid a race between interruption and reacquisition of lock.
Otherwise, we would have leaked the memory in this case.
2019-12-09 14:56:30 +00:00
riastradh
d8e5becfca Make sure ERESTART doesn't come flying out to userland.
I picked ERESTART to mean `all channels are occupied' because that's
what opencrypto(9) uses to decide whether to queue a request, but
it's not appropriate for sysctl(2) to return that.
2019-12-09 14:56:18 +00:00
riastradh
ecc02e79ad Factor out some of the self-test logic used for debugging.
Add missing bus_dmamap_sync(POSTWRITE) while here.
2019-12-09 14:56:06 +00:00
riastradh
05dd3bec20 Reduce some duplicated bus_dma clutter. 2019-12-09 14:55:52 +00:00
riastradh
38b328fc76 Draft driver for Allwinner Crypto Engine.
Found on, e.g., the Pinebook.

Only used for TRNG at the moment, but hooking it up to opencrypto(9)
shouldn't be too hard if anyone still cares about that these days.

The distribution of the alleged TRNG is very nonuniform distributed
seems to alternate between toward runs with exceptionally high
fractions of 0 bits and runs with exceptionally high fractions of 1
bits -- initially all my samples were mostly 0's, and then all my
samples were mostly 1's, and now I'm seeing more oscillation between
these runs.

So I've wired it up as RND_TYPE_UNKNOWN, not RND_TYPE_RNG (it will
immediately flunk our rngtest and be disabled), and I estimated it to
provide at most one bit of entropy per byte of data -- which may
still be optimistic.  I also added a sysctl node hw.sun8icryptoN.rng
to read out 1024-byte samples for analysis, and I left the driver
commented out in GENERIC64 for now.

(If anyone has contacts at Allwinner who can tell us about how the
alleged TRNG is supposed to work, please let me know!)
2019-12-09 04:51:03 +00:00
riastradh
0bc8879de6 Add crypto engine block. 2019-12-09 04:40:50 +00:00
riastradh
c558d9a3e2 Convert pmap_pvt to atomic_load/store. 2019-12-09 04:39:58 +00:00
msaitoh
ce0d262598 Fix a bug that wm_sgmii_readreg_locked() may return error even if error isn't
occured.
2019-12-09 02:30:30 +00:00
sevan
59348bc454 We currently lack a tunable to control ZFS prefetch, so skip the warning and
FreeBSD specific instructions on settings.
2019-12-09 00:15:11 +00:00
kre
ff46268c6a PR bin/54743
If a builtin command or function is the final command intended to be
executed, and is interrupted by a caught signal, the trap handler for
that signal was not executed - the shell simply exited (an exit trap
handler would still have been run - if there was one the handler
for the signal may have been invoked during the execution of the
exit trap handler, which, if it happened, is incorrect sequencing).

Now, if we're exiting, and there are pending signals, run their handlers
just before running the EXIT trap handler, if any.

There are almost certainly plenty more issues with traps that need
solving.   Later,

XXX pullup -9

(-8 is too different in this area, and this problem suitably obscure,
that we won't bother)     (the -7 sh is simply obsolete).
2019-12-09 00:14:30 +00:00
kre
6fc2ffa023 PR bin/54743
Having traps set should not enforce a fork for the next command,
whatever that command happens to be, only for commands which would
normally fork if they weren't the last command expected to be
executed (ie: builtins and functions shouldn't be exexuted in a
sub-shell merely because a trap is set).

As it was (for example)
	trap 'whatever' SIGANY; wait $anypid
was guaranteed to fail the wait, as the subshell it was executed
in could not have any children.

XXX pullup -9
2019-12-09 00:14:24 +00:00
sevan
a8ffec0052 This script just makes sure that the ZFS module loads and unloads, mountall
script takes care of mounting filesystems.
Don't try to unmount all file systems before unloading the ZFS module, leave
that to the operator in preperation or the mountall script to take care
of. Module will of course fail to unload then if file systems are still
mounted.
2019-12-09 00:11:32 +00:00
uwe
3582b90734 Use existing lo() and hi() macros. Same object code is generated. 2019-12-08 23:49:16 +00:00
uwe
f3a8613fae Resolve ADDR16_LO, ADDR16_HI, and ADDR16_HA relocs.
Recent GNU ld does not resolve them statically if the reloc is in a
writable section and the symbol is not already referenced from text.
2019-12-08 22:57:51 +00:00
uwe
1cea4da77d Fix typo in a comment. 2019-12-08 22:41:42 +00:00
uwe
9332bf7c88 _rtld_relro - fix debug printf format for a size_t argument 2019-12-08 22:35:27 +00:00
uwe
bd776e8c02 Fix typo in the definition of #ha() in a comment. 2019-12-08 21:46:03 +00:00
scole
d47c12a8ad add platinumfb 2019-12-08 21:30:00 +00:00
ad
75b6feeba5 Merge x86 pmap changes from yamt-pagecache:
- Deal better with the multi-level pmap object locking kludge.
- Handle uvm_pagealloc() being able to block.
2019-12-08 20:42:48 +00:00
ad
0b2f97d6bd For safety, cv_broadcast(&bp->b_busy) in more places where the buffer is
changing identity or moving from one vnode list to another.
2019-12-08 20:35:23 +00:00
ad
a7dd1bbf7a After lots of testing I'm not convinced of the benefit to the tweak
I made to rw_enter(), so undo it to return to baseline.
2019-12-08 20:00:56 +00:00
ad
2210aab771 Revert previous. No performance gain worth the potential headaches
with buffers in these contexts.
2019-12-08 19:52:37 +00:00
ad
51eccb6fe4 Adjustment to previous: if we're going to toss the buffer, then wake
everybody.
2019-12-08 19:49:25 +00:00
ad
8dc9961386 - Avoid thundering herd: cv_broadcast(&bp->b_busy) -> cv_signal(&bp->b_busy)
- Sprinkle __cacheline_aligned.
2019-12-08 19:26:05 +00:00
ad
d9135670c1 Avoid thundering herd: cv_broadcast(&bp->b_busy) -> cv_signal(&bp->b_busy) 2019-12-08 19:23:51 +00:00
jmcneill
24516a125d Add SUNXI_CCU_NM_ROUND_DOWN to CE clock, fix pll parents to use 2X outputs 2019-12-08 18:13:24 +00:00
christos
ea19b263f1 Adjust tests for 0 hex values printing 0 instead of 0x0 2019-12-08 17:37:16 +00:00
pgoyette
9ad866d219 Add another issue that I just remembered, from the time working on the
[pgoyette-compat] branch, regarding inability to get some XEN-related
modules to build.
2019-12-08 15:51:49 +00:00