imx7d: fix remaining clock table errors
The i2c1-4 root gates used bit 0, which is inside POST_PODF, instead
of bit 28, so enabling an I2C clock halved it.
usdhc2_pre_div and usdhc3_pre_div had the USDHC1_ROOT_PRE_DIV id.
pll_enet_250m_clk was defined twice.
imx6ccm: wait for busy on dividers with a busy bit too
Wait for the busy bit after setting the rate of a busy divider, as
was already done for busy muxes.
Add a timeout of about 10ms to the busy wait and return ETIMEDOUT.
Tested on QEMU sabrelite.
imx7d: fix UART clock definitions
The uart1-7 root gates used bit 18, which is inside PRE_PODF, instead
of bit 28, so enabling a UART clock changed its divider (24MHz became
4.8MHz on QEMU).
uart5_pre_div and uart5_post_div pointed at the uart4 register (0xb100)
instead of 0xb180.
imx_ccm: fix div set_rate never selecting the maximum divider
The search loop stopped one short of the field's maximum value.
Tested on QEMU mcimx7d-sabre: requesting 3MHz from 24MHz now gives
/8 (3MHz) instead of /7 (3.43MHz).
imx6ccm: fix panic in set_parent on muxes with a busy bit
The KASSERTs in imxccm_clk_mux_wait() were inverted, so with DIAGNOSTIC
set_parent on periph/periph2 (i.MX6Q, i.MX6SX) panicked.
Tested on QEMU sabrelite with assigned-clock-parents on periph.
imx_ccm: fix infinite loop in div set_rate with IMX_DIV_SET_RATE_PARENT
imx_ccm_div_set_rate() passed the clock itself to clk_set_rate() instead
of its parent, so the call came back into the same function and looped
forever, hanging the kernel.
This only affects dividers with IMX_DIV_SET_RATE_PARENT set. Reproduced
and verified the fix on QEMU mcimx7d-sabre with a DT that sets
assigned-clock-rates.
Pull up following revision(s) (requested by wiz in ticket #1423):
external/bsd/tmux/usr.bin/tmux/Makefile: revision 1.47 (patch)
tmux: fix TMUX_CONF
Addresses PR 61034.
Pull up following revision(s) (requested by wiz in ticket #584):
external/bsd/tmux/usr.bin/tmux/Makefile: revision 1.47
tmux: fix TMUX_CONF
Addresses PR 61034.
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?)
Implement a locking protocol for the 68k pmap structures. This essentially
replaces the old PMAP_CRIT_{ENTER,EXIT}() markers with PMAP_{LOCK,UNLOCK}()
calls.
On systems that aren't built for MP or for pmap lock debugging, this is
all a no-op as before.