Beginnings of IPI infrastructure for m68k. cpu_need_resched()
and cpu_signotify() need MP hooks, so relocate those to m68k_machdep.c.
cpu_need_proftick() gets relocated, too, so we can make some assertions.
Implementations cribbed from Alpha.
Pull up following revision(s) (requested by hannken in ticket #1425):
sys/kern/vfs_wapbl.c: revision 1.118 (via patch)
The evaluation of resource shortage in wapbl_register_deallocation()
is incomplete as only "wl_dealloccnt" is checked. Replace this check with
the doflush check from wapbl_begin() testing for 75% instead 50% to
make sure the next wapbl_begin() will always flush.
It is still a mitigation, for a fix the file system must provide an
upper bound for every transaction to wapbl_begin().
PR kern/47146 user-triggerable crash in wapbl_register_deallocation (confi)
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
Pull up following revision(s) (requested by hannken in ticket #586):
sys/kern/vfs_wapbl.c: revision 1.118
The evaluation of resource shortage in wapbl_register_deallocation()
is incomplete as only "wl_dealloccnt" is checked. Replace this check with
the doflush check from wapbl_begin() testing for 75% instead 50% to
make sure the next wapbl_begin() will always flush.
It is still a mitigation, for a fix the file system must provide an
upper bound for every transaction to wapbl_begin().
PR kern/47146 user-triggerable crash in wapbl_register_deallocation (confi)
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
Pull up following revision(s) (requested by hannken in ticket #1424):
sys/ufs/ffs/ffs_snapshot.c: revision 1.158
Add UFS_WAPBL_UPDATE() after block allocations to group the
allocation and the inode update into the same transaction.
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
Pull up following revision(s) (requested by hannken in ticket #585):
sys/ufs/ffs/ffs_snapshot.c: revision 1.158
Add UFS_WAPBL_UPDATE() after block allocations to group the
allocation and the inode update into the same transaction.
PR kern/60621 (panic: ufs_inactive: dirty filesystem?)
Use ETHER_MACADDR_{IG,UL}
if_tap.c and if_vether.c are not modified. I don't know where f2:0b:a4
comes from.
I think it'll be good to create a new function which make random MAC address
and use it.
libsaslc(3): simplify ENVIRONMENT section
Users need to know the actual names of the environment variables, not
the names of the C preprocessor constats used by the source code of
the library to refer to the string constants that contain the names of
these environment variables.
libsaslc(3): reduce verbiage
Prune "f() - The function f() does X" to just "f() - Do X." This also
gets rid of the visual clutter created by two long function names in
bold right next to each other.
Move saslc_strerror() next to other context functions - it's their
errors that it reports. It's far more important than the superficial
similarity with saslc_sess_strerror().
Leave encode/decode alone for now. Rewording that bit is not as
straightforward as the rest of them.
ether_input: Silently discard oversized frame
Some Ethernet controllers do not allow the maximum receive frame size to be
configured in bytes. Additionally, some Ethernet controllers cannot
automatically adjust the maximum receive frame size setting to account for the
presence or absence of a VLAN tag. ether_input() counts the oversized frame
into ierrors. There is no need to print an error message.
imx_ccm: check that regidx is mapped; accept same-rate set_rate
- Reject table entries whose register region is not mapped.
- For clocks without set_rate, return 0 if the requested rate equals
the current rate, as clk_set_rate() does; otherwise ENXIO as before.
- Note that busy_reg must be in the same region as the divider.
Tested on QEMU mcimx7d-sabre: the clock list is unchanged, a same-rate
request on a PLL now succeeds (was ENXIO), and an unmapped regidx
stops attach. Built GENERIC and GENERIC64.
imx_ccm: extend the core for non-FDT i.MX50/51 CCM support
- Allow four register regions for the i.MX5 CCM and DPLL1-3.
- Add read-only divider and mux macros, including _INDEX variants.
- Add IMX_DIV_ONE_BASED, where zero means the clock is stopped.
- Add IMX_DIV_BUSY and its _INDEX variant to wait for the busy bit.
- Validate parent names against the clock table on non-FDT attach.
- Add a read-only i.MX5 DPLL clock type, kept out of GENERIC builds.
Use unsigned rate differences in divider and composite set_rate.
A true difference of 2^31 Hz or more could appear negative as an int
and select the wrong divisor. This is the only behavior change on
i.MX7D and i.MX8MQ.
Tested on QEMU mcimx7d-sabre: the clock list was unchanged, and a
3 GHz request with a 24 MHz parent changed from 3,428,571 Hz (/7)
to 24 MHz (/1). Built GENERIC, GENERIC64, KOBO, and NETWALKER
(i.MX8MQ build-tested only).