Commit Graph

156421 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
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
jmcneill 3f3823769c disable GIC_SPLFUNCS until remaining issues are sorted out 2021-10-03 23:19:26 +00:00
fcambus cc80243388 Fix typo when erroring out on unknown ELF machine type. 2021-10-03 18:47:16 +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 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
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
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
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
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
skrll 8a7e02ed9f Ensure TCR_EPD0 is set on entry to pmap_activate and ensure it is set as
early as possible for APs.
2021-09-30 21:19:16 +00:00
jmcneill 2017b9f914 efiboot: Build and install bootriscv64.efi for riscv64 builds. 2021-09-30 20:02:54 +00:00
jmcneill be2c2428c9 gnu-efi: riscv64 build fixes for NetBSD 2021-09-30 19:09:10 +00:00
jmcneill 35ff39e48f merge conflicts 2021-09-30 19:02:47 +00:00
jmcneill 1eb4b21779 Import gnu-efi-3.0.14 2021-09-30 18:50:09 +00:00
skrll 90d63b9ce9 Make tlb_asid_t unsigned int as pmap_tlb.c expects tlb_asid_t to be able to
hold ASID_MAX + 1.
2021-09-30 18:33:28 +00:00
msaitoh 4f07fd3101 Print CPUID_PBE (Pending Break Enable) with "PBE". 2021-09-30 15:54:55 +00:00
skrll 8d5eabfe33 Drive-by KNF 2021-09-30 10:19:52 +00:00
skrll 18e1a8baa4 More catching up with spl changes. 2021-09-30 07:49:09 +00:00
skrll 49c386859d Some platforms need sys/cpu.h for curlwp so #include it 2021-09-30 07:15:02 +00:00
skrll e18e8cbcbf KNF 2021-09-30 07:14:09 +00:00
yamaguchi 3b70907a67 Bump the version for struct ifnet and ethercom changes
Welcome to 9.99.90
2021-09-30 04:36:25 +00:00
yamaguchi 1f3caf1ea7 lagg: Register lagg_ifdetach to ether_ifdetach hook 2021-09-30 04:29:16 +00:00
yamaguchi 74194586cd Make a link-layer address of lagg(4) configurable by ifconfig(8)
lagg(4) uses a configured link-layer (MAC) address instead
of a random MAC address generated on creating.
The configured MAC address is copied to all child interface
and used for a system id of LACP.
2021-09-30 04:23:30 +00:00
yamaguchi bbf66daf1a Fix to acquire LAGG_LOCK without psref
to remove possibility of deadlock

the deadlock maybe happened between lagg_ifdetach()
and lagg_delport()

1. lagg_ifdetach calls psref_target_acquire()
2. lagg_delport calls LAGG_LOCK()
3. lagg_ifdetach calls LAGG_LOCK()
   - wait for lagg_delport
4. lagg_delport calls psref_target_destroy()
   - wait for lagg_ifdetach
2021-09-30 04:20:14 +00:00
yamaguchi e87863469b vlan: Register vlan_ifdetach to ether_ifdetach hook 2021-09-30 04:13:42 +00:00
yamaguchi 749b8a37e5 Remove vlan_ifdetach() from ixgbe_detach()
The removed function is called in ether_ifdetach().
And ether_ifdetach is changed to be called before a device
is stopped, because vlan_ifdetach called from ether_ifdetach
configures VLAN settings.
2021-09-30 04:06:50 +00:00
yamaguchi 8eb645ff48 Remove vlan_ifdetach() from ixv_detach()
The removed function is called in ether_ifdetach().
2021-09-30 04:02:27 +00:00
yamaguchi c06d6dc9b0 bridge: Register bridge_ifdetach to ether_ifdetach hook 2021-09-30 03:57:48 +00:00
yamaguchi e83dba728e Provide a hook point called when ether_ifdetach is called 2021-09-30 03:54:04 +00:00
yamaguchi b9fe3c4690 net: obsolete ifnet::if_link_state_chenged
that was used for updating link-state of vlan I/F

The obsoleted function is replaced with
ifnet::if_linkstate_hooks
2021-09-30 03:51:05 +00:00
yamaguchi 1202a27903 vlan: Register the callback to update link-state of vlan I/F
to link-state change hook

The callback is registered in every vlan I/F even if the parent
interface is the same. Therefore it is not needed to search the
vlan I/F by the parent interface unlike the previous callback.
2021-09-30 03:47:27 +00:00
yamaguchi 16737cff1d carp: Register carp_carpdev_state to link-state change hook 2021-09-30 03:43:25 +00:00