275354 Commits

Author SHA1 Message Date
ad
161a7dbda8 TAILQ -> LIST 2020-03-26 22:43:19 +00:00
ad
71d4f850c1 sleepq_t is now a LIST. Forgot to commit earlier. 2020-03-26 22:40:10 +00:00
ad
6a317a61b7 Fix crash observed with procfs on current-users by David Hopper. LWP refcnt
and p_zomblwp both must reach the needed state, and LSZOMB be set, under a
single hold of p_lock.
2020-03-26 21:31:55 +00:00
ad
b00d9a59ce sigpost(): check for LSZOMB, not l_refcnt == 0. 2020-03-26 21:25:26 +00:00
ad
89ade3dc61 SOBJ_SLEEPQ_FIFO is gone 2020-03-26 21:15:14 +00:00
ad
a977daea03 softint_overlay() (slow case) gains ~nothing but creates potential headaches.
In the interests of simplicity remove it and always use the kthreads.
2020-03-26 20:19:06 +00:00
ad
797f06655d NetBSD 9.99.52 - sleepq_t & kcondvar_t shrunk 2020-03-26 19:47:23 +00:00
ad
ee5f078d47 Change sleepq_t from a TAILQ to a LIST and remove SOBJ_SLEEPQ_FIFO. Only
select/poll used the FIFO method and that was for collisions which rarely
occur.  Shrinks sleep_t and condvar_t.
2020-03-26 19:46:42 +00:00
ad
abbb7ed584 Leave the idle LWPs in state LSIDL even when running, so they don't mess up
output from ps/top/etc.  Correctness isn't at stake, LWPs in other states
are temporarily on the CPU at times too (e.g.  LSZOMB, LSSLEEP).
2020-03-26 19:42:39 +00:00
ad
4186b1557d sched_curcpu_runnable_p(): cosmetic change. 2020-03-26 19:25:07 +00:00
ad
7d77d42694 Don't overwrite ci_is_slow if it has explicitly been set. Changed for
correctness, should have no impact.
2020-03-26 19:23:18 +00:00
jdolecek
2cc8ca5cf7 in xennet_tx_complete() replace the grant status condition with just KASSERT()
it's really a possible programming error rather than something actually
happening in wild - since rev. 1.57 in 2012 this condition leaked
locked mutex, and nobody noticed
2020-03-26 18:50:16 +00:00
jdolecek
c8f4924ada Stop using IFF_OACTIVE, just keep processing until we fill the Tx ring
xennet_tx_complete() is now called only in xennet_softstart() just
before processing Tx queue; xennet_handler() just schedules the
softint for xennet_softstart() iff the Tx ring list is completely empty

no performance changes observed

XXX the detach and suspend code expects xennet_handler() to collect
XXX the Tx responses, the tsleep() loop should still work since the tsleep()
XXX would allow the softint to trigger; untested though
2020-03-26 18:32:21 +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
isaki
1088ff9364 Add tests for poll(POLLIN) before read().
This affects only standalone test, not atf.
2020-03-26 13:43:10 +00:00
pgoyette
799a3b19cf When using SYSCTL_SETUP there is no guarantee of the order in which
the set-up functions will be called, so it is perfectly acceptable
for a compat code's routine to be called ahead of the code in other
parts of the kernel.

So make sure that the 2nd level sysctl node ``vfs.generic'' exists
before trying to add the 3rd level entries.

XXX Rather than creating the 2nd level node in two places, we could
XXX add the shared ``vfs.generic'' node to sysctl_init_base.c but
XXX this is left for another day.
2020-03-26 13:39:29 +00:00
isaki
08c0ee5cd7 Sync with sys/dev/audio/audio.c rev1.65.
> Fix to start recording immediately when open() with READ mode is called.
This affects only standalone test, not atf.
2020-03-26 13:37:44 +00:00
isaki
85c4f0d204 Fix to start recording immediately when open() with READ mode is
called (unless pause).
- Opening /dev/audio always initializes pause with false.  Therefore
  it always starts recording.
- Opening /dev/sound inherites pause from the sticky parameter.
  Therefore whether /dev/sound starts recording or not depends on the
  sticky pause parameter.
This fixes two problems:
- Opening /dev/audio didn't start recording after merging isaki-audio2.
- Opening /dev/sound didn't start recording regardless of the sticky
  pause, probably since long time ago (at least netbsd-7).
2020-03-26 13:32:03 +00:00
nisimura
c74fe8685a update register definition. from UEFI source code. 2020-03-26 10:38:16 +00:00
nisimura
34e16e09ff correct global reset logic. still remains MII speed trouble. 2020-03-26 08:28:50 +00:00
skrll
35f8f9c96c Only build sshramdisk when building RPI_INSTALLx 2020-03-26 08:02:55 +00:00
skrll
909a200b92 Bump IMAGESIZE 2020-03-26 07:44:43 +00:00
skrll
87c6d737b9 Increase MEMORY_DISK_ROOT_SIZE 2020-03-26 07:38:31 +00:00
kre
1083ca28cc Fix the build, use %jd and (intmax_t) cast for big numbers, off_t
and ptrdiff_t aren't always the same size.
2020-03-26 04:25:28 +00:00
nisimura
4ea05de8ea adjust minor comments 2020-03-26 01:05:26 +00:00
thorpej
146d5720c0 Add "snps,dwc3" to the list of compatible strings we match against.
The code already handles "snps,dwc3" not being a subordinate of
an SoC-specific node, but the string was missing from the match
routine.

Necessitated by the sun50i-h6 device tree update on Jan 3 2020, which
elimiated the "allwinner,sun50i-h6-dwc3" node and placed all of the
clocks, resets, etc. directly under the "snps,dwc3" node.
2020-03-26 00:21:27 +00:00
nisimura
5b897531ca try to DRT about config messages, redo ... 2020-03-25 23:31:19 +00:00
nisimura
addc143131 try to DRT about config messages 2020-03-25 23:29:39 +00:00
nisimura
7cdd1c0aa2 DRT about config messages 2020-03-25 23:20:38 +00:00
nisimura
2fb87e5039 better boot messaging, redo 2020-03-25 22:15:53 +00:00
nisimura
52a2f4a42a better boot messaging 2020-03-25 22:11:00 +00:00
wiz
2d8be20973 Remove trailing whitespace. 2020-03-25 22:09:48 +00:00
christos
703562b76a new paragraph 2020-03-25 21:26:12 +00:00
christos
00c598c3f1 more info 2020-03-25 21:24:08 +00:00
christos
6fa2277528 Revert putting a $ as the final character for blowfish. It is not required by
MCF and we want to be compatible.
2020-03-25 21:02:26 +00:00
nisimura
affebe318b use dma32 for descriptor store. likely still missing freq designation(s) 2020-03-25 20:19:46 +00:00
christos
bc2a90737a improve error messages. 2020-03-25 20:17:48 +00:00
nisimura
78a90419bf describe DeveloperBox pin assignment correctly 2020-03-25 19:03:44 +00:00
wiz
51ad823948 Fix typos. Use more markup. New sentence, new line. 2020-03-25 18:53:50 +00:00
kre
4f0910e281 Delete the BUGS paragraph about the "missing" const qualifier for the
result type of strerror() (and strerror_l()).   While that once should
really have been present, when strerror() was invented, there was no
"const" qualifier in C to apply, and now the way the code is writtem
(really needs to be because of NLS support) the const is no longer
really appropriate.

Applications still shouldn't attempt to modify the result however.
2020-03-25 18:50:47 +00:00
kre
5388a00941 Document strerror_l()
While here also document (but comment it out since it isn't
available - yet) strerror_lr().   To include that, simply
uncomment the relevant lines, and (twice I think) s/returns/return/
on lines just after currently commented out lines (that is, it
currently says, "A returns" after the comments are returned, we
need it to be "A and B return" - the "and B" appears when the comment
markers are removed, removing the 's' from returns must be done manually.

In addition to adding strerror_l() some additional enhancements were
made to the general strerror() doc.
2020-03-25 18:45:42 +00:00
nisimura
15e52fec4c try to decode _DSD ACPI resource 2020-03-25 18:42:16 +00:00
christos
3178d52ed6 - bump blowfish size, explain version
- add passwd xref
2020-03-25 18:37:08 +00:00
christos
fd9ae3edee Add missing trailing $ for blowfish 2020-03-25 18:36:29 +00:00
gdt
d5db881aeb Relax fdatasync restriction that fd be writable
The restriction that a fd passed to fdatasync(2) must be writable was
added in 2003 in order to comply with POSIX.  Since then, POSIX has
removed that requirement, and POSIX-valid programs have been therefore
encountering errors on NetBSD.

Patch by Paul Ripke after discussion on netbsd-users.  Issue
discovered with pkgsrc/databases/mongodb3 as used by pkgsrc/net/unifi.
2020-03-25 18:08:34 +00:00
christos
4fa722caef add pw_gensalt 2020-03-25 17:13:49 +00:00
christos
54fcd90b42 PR/55095: David A. Holland: pw_gensalt(3) undocumented 2020-03-25 17:11:06 +00:00
jdolecek
23d0128155 remove 'file-system SMBFS' and 'pseudo-device nsmb' from all kernel configs
to prepare for their eventual removal
2020-03-25 17:06:17 +00:00
kre
219987b252 Arrange that strerror(-1) prints "Unknown error: -1" and not the
unsigned equivalent of -1.

While here, guarantee, even when !NLS, that nothing here (not even
snprintf deciding to complain about EILSEQ or something) can ever
alter errno (ie: always save and restore it, not only in the NLS case).
The functions here must never alter errno, whatever happens.
2020-03-25 16:15:41 +00:00