Commit Graph

294819 Commits

Author SHA1 Message Date
riastradh b2097dd8cd kern: Fix synchronization of clearing LP_RUNNING and lwp_free.
1. membar_sync is not necessary here -- only a store-release is
   required.

2. membar_consumer _before_ loading l->l_pflag is not enough; a
   load-acquire is required.

Actually it's not really clear to me why any barriers are needed, since
the store-release and load-acquire should be implied by releasing and
acquiring the lwp lock (and maybe we could spin with the lock instead
of reading l->l_pflag unlocked).  But maybe there's something subtle
about access to l->l_mutex that's not obvious here.
2022-03-10 12:21:25 +00:00
msaitoh 7e3fbda44d Print ECC, PHY and temp error log using with ratecheck().
- The ratecheck() is for just in case. All of the interrupts might occur
   only once, but I don't know whether it's true or not. For the fan failure,
   it seems it occurs only once.
 - All of the interval is 60s.
2022-03-10 04:14:34 +00:00
msaitoh 5b2d06244e Enclose flow director stuff in ixgbe_intr_admin_common() with IXGBE_FIR. 2022-03-10 04:00:32 +00:00
msaitoh 55f137d7f7 Move the definition of eicr_mask variable. No functional change. 2022-03-10 03:58:52 +00:00
msaitoh 088e7d9728 Modify comment to clarify EIAC setting. 2022-03-10 03:57:33 +00:00
msaitoh ecdd3fd031 Add IFF_RUNNING check in ixgbe_legacy_irq() again.
- This change might fix small race between ifconfig down and an interrupt.
   If the race really exists, txeof() is called and it's not so dangerous.
   The rxeof is blocked in the beginning of ixgbe_handle_que().
 - This change makes consistent with ixgbe_handle_que().
 - Found and OK'd by knakahara.
2022-03-10 03:53:46 +00:00
riastradh 45639107a9 gffb(4): Nix membar_sync and explain what's going on here. 2022-03-10 00:14:33 +00:00
riastradh 00f14e0a7c gffb(4): Use bus_space_barrier, not membar_sync. 2022-03-10 00:14:25 +00:00
riastradh cc01a7f7c9 powerpc: Implement bus_space_barrier as eieio. 2022-03-10 00:14:16 +00:00
andvar a28dc1d834 s/Horizontao/Horizontal/ in comment and removing misplaced "pxel" word. 2022-03-09 23:09:15 +00:00
reinoud f15dde2ee3 Add note on optical media lockup fix for UDF 2022-03-09 22:55:32 +00:00
reinoud c297e948d9 Add notes on various UDF fixes concerning Windows10 interoperationability with
recordable media.
2022-03-09 22:52:28 +00:00
riastradh 993225d9b7 xhci(4): Avoid holding bus lock across usb_delay_ms.
We may still need a mechanism to serialize access to the portsc
registers between xhci_roothub_ctrl and xhci_suspend/resume, but the
bus lock is no longer that, and holding the bus lock across
usb_delay_ms may lead to deadlock by blocking the softints that wake
usb_delay_ms.
2022-03-09 22:19:07 +00:00
riastradh b2df79f6b5 ohci(4): Don't flail around with enabling polling in suspend/resume.
This doesn't work -- polling mode only works when all other CPUs are
quiesced and the current one is running sequentially without
preemption.

Also not clear whether this does anything useful.  Maybe we need a
mechanism to block new xfers until resumed, but this wasn't that.
2022-03-09 22:18:54 +00:00
riastradh aca5da5f8c ehci(4): Omit bus lock around ehci_suspend/resume.
This no longer serializes access to the portsc registers, also used
by ehci_roothub_ctrl, but it does pose a potential deadlock with
softints to wake usb_delay_ms.  So the bus lock doesn't help here,
and may cause deadlock.
2022-03-09 22:18:13 +00:00
riastradh 87c2ace410 usb: Provisionally release bus lock around ubm_rhctrl.
This isn't quite correct, but it avoids a deadlock:

- *_roothub_ctrl holds bus lock, waits in usb_delay_ms for kpause
- softint waits for bus lock, holds up kpause wakeup

The deadlock is new since recent changes to hold the bus lock over
upm_start/upm_transfer.  Making this change regresses to other
problems:

- *_suspend/resume and *_roothub_ctrl often touch the same portsc
   registers

- roothub_ctrl_abort needs to wait for ubm_rhctrl to complete.

  When the bus lock was held across both, a noop served here, but we
  can't hold the bus lock across both, so that doesn't work.

However, these problems -- which we've had for a long time -- seem to
be less bad than the deadlock.  So let's avoid the deadlock for now
and then work out another way to serialize suspend/resume/rhctrl and
aborts.

Candidate fix for PR kern/56739.
2022-03-09 22:17:41 +00:00
macallan fad4a61deb turns out we can map the full amount of VRAM on a 4MB board even when in
double buffer mode

thanks foo bar
2022-03-09 17:53:39 +00:00
mrg ed0da8b889 in fdt_cpu_rootconf(), return without doing anything (like setting
"root=something" in boot_args, or booted_device), if booted_device
is already set to something.

this makes raidframe softroot work on evbarm.
2022-03-09 10:06:36 +00:00
mrg 373c5db106 merge two debug lines in auto-root selection. 2022-03-09 10:04:06 +00:00
hannken 5213b7d3d4 vrelel(): after all locks are in place check for new reference again.
Should fix assertion "vp->v_iflag & VI_TEXT" under load.
2022-03-09 08:43:28 +00:00
rillig 6fd02fc319 lint: fix indentation in C grammar
No functional change.
2022-03-09 00:20:48 +00:00
rillig a57d5f3aac lint: fix typo in comment
No binary change.
2022-03-08 23:24:20 +00:00
rillig 08cb0b9a96 man: remove unused global variable 'instype' (since yesterday)
No functional change.
2022-03-08 23:13:05 +00:00
rillig 464029217b man: remove trailing whitespace
No binary change.
2022-03-08 23:09:36 +00:00
rillig d834ba5cf2 man: fix type mismatch between enum and int (since yesterday)
No binary change.
2022-03-08 23:05:32 +00:00
andvar a835fb03b3 fix few typos in comments. 2022-03-08 20:45:56 +00:00
reinoud 66e688eb66 For bug-compatibility with Windows, the last VAT sector must be a multiple of
16/32 from the start of the track.  To allow for scratches, write out at least
a 32 pieces.
2022-03-08 18:30:43 +00:00
reinoud 5ba19a4f03 On switching from writing to reading explicitly synchronize the caches. It
isn't strictly needed but some devices in the wild will otherwise bluntly
ignore all reading commands resulting in a kernel and device lockup.
2022-03-08 10:52:43 +00:00
gutteridge ce25000ddd man.c: fix -m option so it works as documented
Refactoring work in man.c r. 1.40 from twelve years ago introduced a
regression where input from the -m option was appended rather than
prepended to the search paths. Problem reported by C. Chapman on
netbsd-users.
2022-03-07 22:43:39 +00:00
mrg f3bf968556 disable compatfile for filter-aaaa.so. 2022-03-07 09:45:02 +00:00
mrg 55bbcc605b comment filter-aaaa.so.debug for now. it's not installed normally
and will need a special rule, left as an exercise to the reader.

make plugins .WAIT on everything else.
2022-03-07 09:23:20 +00:00
mrg 896c379021 fix build when the tree hasn't been built already. LIB wasn't defined
by the time Makefile.inc is included, and the wrong thing happens.
2022-03-07 07:53:08 +00:00
mrg 2bd052e5d8 enter the bind plugins library dir, and also add missing set lists.
fixes building sets for at least vax.
2022-03-07 07:07:55 +00:00
knakahara 3e666b9122 Don't change ifp->if_link_state directly. Pointed out by yamaguchi@n.o. 2022-03-07 04:06:20 +00:00
andvar 52cba97c01 s/filered/filtered/ in comment. 2022-03-06 23:36:50 +00:00
andvar 96f5cafeda s/sarch/search/ in commented part. 2022-03-06 23:36:01 +00:00
mlelstv e5e68a367e pass errno through switch to protected mode. 2022-03-06 18:35:43 +00:00
christos 859122dbc4 add filter-aaaa 2022-03-06 17:54:52 +00:00
christos f6ca6d6231 add named plugins directory. 2022-03-06 17:51:42 +00:00
christos aaa1857f42 Makefile for plugins 2022-03-06 17:50:19 +00:00
riastradh e30c3d8025 usb(4): Use atomics for usb_async_proc.
This is written under proc_lock and read without it in usb_add_event,
so using atomics pacifies the sanitizer.  No memory ordering needed
because the value isn't actually used until the softint runs, using
it under proc_lock.  Kind of a micro-optimization, but let's avoid
contention on proc_lock in the common case of no usb_async_proc set
up (why is this a system global, anyway? and why is there a softint
if usb_add_event always runs at IPL_NONE?).

Reported-by: syzbot+1b2fa68535e5b0f3dcaa@syzkaller.appspotmail.com
2022-03-06 09:03:42 +00:00
hgutch 0d7f3d7673 Make sure daddr_t is a 64 bit type when building tools.
(see also PR sw-bug/56742 ).
2022-03-06 08:31:54 +00:00
skrll 1314864c5f Slight comment improvement. 2022-03-05 16:53:24 +00:00
wiz 3eca4640ee expat 2.4.7, another security fix release, out 2022-03-05 08:53:58 +00:00
riastradh d77e27a12a usbnet(9): Clarify uno_stop contract in man page. 2022-03-05 06:55:58 +00:00
riastradh 1c13666aef usbnet(9): uno_init is now optional.
Update assertion and man page accordingly.
2022-03-05 06:55:49 +00:00
sjg e56a2ae17f Fix some unused warnings 2022-03-04 23:17:16 +00:00
andvar 634b965029 fix few typos in comments for word "because". 2022-03-04 21:12:03 +00:00
skrll f80fe7971e Add mailbox and power-domain support.
power-domain support is very rudimentary.
2022-03-04 08:19:06 +00:00
skrll cd2e3de681 Rmmove an incorrect KASSERT. 2022-03-04 08:11:48 +00:00