Commit Graph

275180 Commits

Author SHA1 Message Date
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
kre 93b9d85a0a Protect against malloc failure corrupting errno, which is not
permitted of these functions.
2020-03-25 16:10:17 +00:00
isaki 05b122f3e6 Use exact match to search testname.
This didn't affect test results.
2020-03-25 13:07:04 +00:00
skrll 2ba60f4598 Simplify #ifdefs 2020-03-25 06:17:23 +00:00
skrll e8713be684 Trailing whitespace 2020-03-25 06:02:09 +00:00
thorpej f9050a9a92 Add a file type entry for CLM files. 2020-03-25 04:53:11 +00:00
thorpej 66858ba7e1 - Refactor the firmware loading code into a set of common routines in the
core driver that understand how to find model-specific files before the
  generic files.  This greatly simplifies the firmware loading procedure
  in each of the bus front ends.  Adding additional firmware file types
  (such as CLM files) much simpler.
- Make firmware image selection table-driven rather than a set of switch()
  and if() statements.
- Add several additional firmware image entries.
2020-03-25 03:44:44 +00:00
nisimura 6af8bb8634 make sure to use mac_write() for GMACxxx registers. try to decode xMII link status report 2020-03-25 01:39:49 +00:00
tnn a44eb38cc9 ohci@fdt, ehci@fdt are machine independent; move from sunxi to sys/dev/fdt 2020-03-24 22:09:50 +00:00
ad b8e100778a Update a comment. 2020-03-24 21:05:06 +00:00
ryo b00a902639 add entry for NetMos NM9900 Quad UART.
The NM9900 seems to have variations such as 4UART and 2UART+1Printer,
but I tested on 4UART board.
2020-03-24 18:09:07 +00:00
sevan 71ad228e2b g/c UGEN_BULK_RA_WB which is not a supported option 2020-03-24 17:38:33 +00:00
maxv 00f513b846 Remove the argument from USB_{ATTACH,DETACH}, for consistency. 2020-03-24 17:20:55 +00:00
kre 12f8bae508 If we're going to loop, pausing and then retrying malloc() after it
has failed, in the hope that some other thread has free'd some memory,
but we want to bound the number of attempts, it helps if we actually
count them - otherwise we never get nearer to the limit.

In practice, malloc() for a reasonable application on a modern system
almost never fails, so the code containing this bug has probably never
been, and never will be, executed, but just in case, someday.

For this, it isn't clear if the intent was to have 10 retries (ie: 11
attempts) or 10 tries, but as the code said "retries > 10", I am
assuming the former (not that it matters, if the malloc() has failed
10 times in a row, with 10 second pauses between, the chances of an
11th succeeding aren't great).
2020-03-24 14:56:31 +00:00
kamil 15f8c76f05 Revert previous
It will be addressed in a better way.

Requested by <kre>
2020-03-24 14:47:02 +00:00
nisimura 853ccc43e8 add more register description 2020-03-24 13:44:21 +00:00
jdolecek 9d8cab4066 reset the csum_flags in bridge_brodcast() also for bmcast path
for destination interfaces with real hardware offloading this fixes
multicast packet corruption; for xvif(4) this fix stops treating them
as having no csum

may fix PR kern/42386
2020-03-24 13:30:54 +00:00
nisimura a9998060db add more registers supposed to exist 2020-03-24 13:07:46 +00:00
nisimura 3d1ec9b48e try to show 32 GPIO line usage 2020-03-24 11:40:08 +00:00
nisimura 94789c6f05 fix FDT 2nd addr to map EEPROM store. mention ACPI _DSD contains FDT equiv parameters. 2020-03-24 11:26:21 +00:00
nisimura aaf025f927 try to be consistent for the number of address match filter. tentative util the reality. 2020-03-24 10:47:03 +00:00
nisimura ec6ebe8800 small knit about multicast hash table handling. use sc_100mii as bool 2020-03-24 10:31:52 +00:00
knakahara e38af9b4f0 fix vmx(4) cannot link up at boot time. reviewed by msaitoh@n.o, thanks.
vmx(4) could call if_link_state_change(ifp, LINK_STATE_UP) from vmxnet3_init()
before ifp->if_link_cansched was set, because dp->dom_if_up() (in6_if_up() for
INET6) could call ifp->if_init().  And then, workqueue_enqueue() was not called
at that time.
As the result, the last LQ_ITEM was stuck LINK_STATE_UP, so
if_link_state_change_work_schedule() was never called until
if_link_state_change(ifp, LINK_STATE_DOWN) was called.

To fix this issue, vmx(4) avoid calling if_link_state_change() before
ifp->if_link_cansched is set.
2020-03-24 09:27:46 +00:00
skrll c97977ea42 Fix cprng_fast64 return type to match code 2020-03-24 08:48:31 +00:00
mrg 2f8ce28306 note that MKLLVMRT affects more than amdgpu. 2020-03-24 07:56:26 +00:00