Commit Graph

290411 Commits

Author SHA1 Message Date
andvar 50d9072672 remove duplicate the article in comments. 2021-10-04 21:02:39 +00:00
andvar 3940c5da3c follow fcambus steps by fixing typos for "unknown" in few more error messages. 2021-10-04 20:48:05 +00:00
andvar 45f3db2a60 s/userpsace/userspace/ 2021-10-04 20:25:20 +00:00
mrg 6c82f5fe13 riscv: fix build with r/o src tree
add 'compile' to the SUBDIR list so that 'make obj' creates the
kernel compile base objdir so <bsd.kernobj.mk> sets KERNOBJDIR
correctly.
2021-10-04 18:16:48 +00:00
andvar e49c2d1bf9 remove duplicate the article in documentation. 2021-10-04 14:35:20 +00:00
rin 6e49f797f9 rasops_reconfig: Do not abort even if font stride is not supported by
rasops_make_box_chars_*() functions; Stop using ri_optfont instead.

XXX
Add rasops_make_box_chars_24().
2021-10-04 12:26:29 +00:00
skrll 3ea98cab27 Add a KASSERT 2021-10-04 09:39:18 +00:00
brad 20bbeb9e49 Sorry.. missed the debug module build in the previous commit. 2021-10-04 07:04:39 +00:00
skrll dac6eef826 Don't include bsd.own.mk here - none of the other etc.<foo>/Makefile.inc
files do.
2021-10-04 06:50:35 +00:00
jmcneill 3f3823769c disable GIC_SPLFUNCS until remaining issues are sorted out 2021-10-03 23:19:26 +00:00
rillig 1a270e8547 indent: fix lint warning about signed '>>'
Lint couldn't infer that indent's list of type names will practically
never contain more that 2 billion entries and that the result of '>>'
would be the same in all cases.
2021-10-03 20:35:59 +00:00
rillig ef99a9535c indent: clean up load_profile
No functional change.
2021-10-03 19:09:59 +00:00
rillig 38ac646534 indent: reduce duplicate code in load_profiles
No functional change.
2021-10-03 18:53:37 +00:00
fcambus cc80243388 Fix typo when erroring out on unknown ELF machine type. 2021-10-03 18:47:16 +00:00
rillig 5f2e9ccc97 indent: rename functions
There was no good reason for using the different verbs 'scan' and 'set'
for two functions that essentially do the same.

No functional change.
2021-10-03 18:44:51 +00:00
rillig 8a688e9358 indent: fix content of profile_name
Previously, profile_name included the leading "-P", which was confusing.
2021-10-03 18:41:36 +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
mrg 0eda81aab2 avoid set-but-unused-variable warnings. 2021-10-02 22:14:32 +00:00
skrll 4b1503161f Trailing whitespace 2021-10-02 20:52:09 +00:00
mrg d0708f9db6 regen. 2021-10-02 20:45:34 +00:00
mrg 67e374d7fa add intel 660p ssd, and expand the 760p description. 2021-10-02 20:45:17 +00:00
mrg d2ac9402fd default RK3399 PCIe to 1.x.
sometime in mid-2019, rockchip disabled PCIe 2.x referrencing a
non-public errata in linux and the dts, both of which were changed
to default to only PCIe 1.x (in code, and in DT.)  see:

   https://lore.kernel.org/all/1481881357-1793-1-git-send-email-shawn.lin@rock-chips.com/

we haven't observed any specific problems, but we've also tested
far fewer cards than linux.  there are other issues such as what
happens for a PCI abort depending on which CPU triggers it we do
not currently handle either.

tested on rockpro64 with nvme & ahcisata, and pinebook pro nvme.

still allows DT to set back to '2' if the user so desires.
2021-10-02 20:41:47 +00:00
thorpej d0340288a0 - Add a new EVFILT_WRITE test case for FIFOs that correctly validates
the writability thresholds.
- Fix a bug in fifo_kqfilter() exposed by the new test case; in the
  EVFILT_WRITE case, we were attaching the wrong end of the socket
  pair to the knote!
- In filt_fiforead(), use ">= so->so_rcv.sb_lowat" rather than "> 0"
  for consistency with fifo_poll().  NFC.
2021-10-02 18:39:15 +00:00
thorpej 1432c4dcd5 New EVFILT_READ test case for FIFOs; validates readability threshold and
EV_EOF behavior.
2021-10-02 18:21:05 +00:00
thorpej 77daf1cd04 ...and correct my terrible spelling. 2021-10-02 17:37:21 +00:00
thorpej 5de7d31bd2 - Strenghen the poll(2) fifo_inout test to ensure that once the reader
has read enough that exactly PIPE_BUF space is available that the FIFO
  becomes writable again.
- When creating a FIFO, ensure that the receive low water mark is 1
  (a FIFO must be readable when at least 1 byte is available); this
  was already the case implicitly, but this makes it explicit.
- Similarly, set the send low water mark to PIPE_BUF to ensure that
  the pipe is writable when at least PIPE_BUF bytes of space are available
  in the send buffer.  Without this change, the strengthened test case
  above does not pass (the default send low water mark is larger than
  PIPE_BUF; see soreserve()).
- Make the same low water mark changes to the PIPE_SOCKETPAIR case.
2021-10-02 17:32:55 +00:00
thorpej bad2e9f95b Add a fifo_inout test case that validates the expected POLLIN / POLLOUT
behavior for FIFOs:
- A FIFO is readable so long as at least 1 byte is available.
- A FIFO is writable so long as at least PIPE_BUF (obtained with _PC_PIPE_BUF)
  space is avaiable.

This will be cloned for a forthcoming kevent test case.
2021-10-02 15:50:06 +00:00
thorpej a0231a4201 In the fifo_hup1 test, also ensure that POLLHUP is de-asserted when a
new writer appears.
2021-10-02 14:41:36 +00:00
skrll bf021c82f6 Pass the pmap in tlb_set_asid for the benefit of aarch64. 2021-10-02 14:28:04 +00:00
skrll cbab0923d7 Use KERNEL_PID instead of 0. NFC. 2021-10-02 13:41:50 +00:00
kre ae04f7b6f0 We are now (partial) at tzdata2021c. This involves no changes other than
here (this), as we had not adopted the changes to tzdata in 2021b that were
reverted in 2021c, and the other changes are all to tzcode (and not
very important to us, either 2021b or 2021c tzcode changes).
2021-10-02 11:01:53 +00:00
hannken a573dcc118 Fix a deadlock where one thread writes to a pipe, has more data
and no space in the pipe and waits on "pipe_wcv" while the reader
is closing the pipe and waits on "pipe_draincv".

Swap the test for "PIPE_EOF" and the "cv_wait_sig()" in "pipe_write()".

PR bin/56422 "zgrep -l sometimes hangs"
2021-10-02 07:35:40 +00:00
thorpej 6dff442f06 - fifo_poll(): If the last writer has disappeared, detect this and return
POLLHUP, per POSIX.
- fifo_close(): Use the new fifo_socantrcvmore(), which is like the
  garden-variety socantrcvmore(), except it specifies POLL_HUP rather
  than POLL_IN (so the correct code for SIGIO is sent).
- sowakeup(): Allow POLL_HUP as a code (notifies poll'ers with POLLHUP).
- Add test cases for correct POLLHUP behavior with FIFOs.

Fixes PR kern/56429.
2021-10-02 02:07:41 +00:00
kre 9a89a03e6b tzdata partial update to 2021b 2021-10-01 22:42:28 +00:00
kre 335c778a91 Cherry pick the important changes from tzdata2031b:
Samoa (Pacific/Apia) has cancelled summer time this year
		(change effective last Sunday).
	Jordan (Asia/Amman) has moved the start of summer time from
		the last Thu/Fri in March to the last Thu/Fri in Feb
		to begin next year (2022).

Some more of the non-controversial (and less important, mostly some
corrections to historical data) changes may follow soon.
2021-10-01 22:35:06 +00:00
macallan 6e16e2a474 use quirk bit for devices that need sc_alwayson instead of adding yet another
if (uha->uiaa->uiaa_vendor == USB_VENDOR_..., remove entries now covered
by UQ_ALWAYS_ON
2021-10-01 21:14:06 +00:00
macallan 98194e6040 add a quirk for devices that need ums::sc_alwayson 2021-10-01 21:09:50 +00:00
macallan f4f1b36e2d regen 2021-10-01 21:03:51 +00:00
macallan aec536ece4 add PixArt Raspberry Pi Mouse 2021-10-01 21:01:34 +00:00
christos a8d8435dfa remove parameter names from decls. 2021-10-01 20:13:38 +00:00
martin 503b7706ee t_simplehook requires RUMP 2021-10-01 18:18:32 +00:00
martin 03523a19ee Make this compilable as tool with MKCROSSGDB=yes 2021-10-01 17:20:32 +00:00
christos 0d258229ce PR/56424: Clay Mayers: recvfrom() is not a cancelation point as documented
in pthread_setcanceltype.3
2021-10-01 17:13:44 +00:00
jmcneill 582345a779 riscv: Include kernel and bootloader in releasedir.
This change adds a kern-GENERIC set and distributes an INSTALL kernel
along with bootriscv64.efi as part of a standard release build.
2021-10-01 10:38:03 +00:00
rin 227cf4dc35 G/C unused over a decade. 2021-10-01 06:08:43 +00:00
rin 2cb1a9e146 Comment out hpcarm/spl.S, which was superseded by arm32/spl.S.
No functional changes; We had two source files for spl.o, but correct
file was chosen by config(1).
2021-10-01 06:07:12 +00:00
rillig 703861a771 tests/indent: add more tests with ')(', found bug in '//' 2021-09-30 22:45:34 +00:00
rillig aa38f45666 indent: remove space between ')' and '(' in declarations 2021-09-30 21:48:12 +00:00
rillig d9ceff4b7e indent: untangle want_blank_before_lparen
No functional change.
2021-09-30 21:38:43 +00:00