bwfm at sdmmc stability improvements
Some stability improvements to the bwfm driver that help a lot on the
Nintendo Wii U and Pinebook Pro. Crashes, hangs, and stalls are gone.
- Periodically send a TX control frame, if we don't do this it seems
that firmware can stop giving back TX credits and we get stuck with
IFF_OACTIVE set. Do this from the if watchdog, and save 2 TX credits
for control frames only so data packets don't block the recovery path.
- In bwfm_sdio_stop, clear tx_count instead of resetting tx_seq and
tx_max_seq. This makes ifconfig bwfm0 down up work.
- bwfm_sdio_intr is called from the sdmmc task thread and the sdmmcchip
interrupt is acknowledged when it returns. Do work directly here
instead of queueing up another task to do it so we don't acknowledge
the interrupt first.
- Stop transmitting if there are RX frames pending.
- Explicitly initialize the flowctl and res0 fields of swhdr when
submitting a control or data frame.
- Update the TX max sequence number from the RX glom header too, in
case it has changed.
Import xz-5.8.5 (previous was xz-5.8.3)
Security issues
++++
GHSA-vhhh-g38j-pr8q: LZMA2 encoder data corruption
++++
In XZ Utils 5.8.4 and older, the LZMA2 encoder can corrupt data (data recovery
should usually be possible with a slightly modified decoder). With dictionary
sizes smaller than 64 KiB, triggering the bug might also result in invalid
memory reads.
The bug has been fixed in XZ Utils 5.8.5 and in the Git repository branches
v5.8, v5.6, v5.4, and v5.2.
The bug was reported by Vladimir Kukharenko (GenProof).
++++
GHSA-6237-3fq8-r2hg: x86 filter deadlock and data corruption
[33 lines not shown]
fix ISC_QP_ADD in the !LP64 case to update the in-memory value.
Patch provided by Showta Ishizaki in PR bin/59982.
Note that an equivalent fix was commited by christos@ to zone.c in rev 1.31
Tested on evbarm.
pmap: don't conditionally #define PMAP_KMPAGE as non-zero
Don't conditionally #define PMAP_KMPAGE as non-zero based on if
PMAP_ENABLE_PMAP_KMPAGE is defined. Instead always define PMAP_KMPAGE
with a value and provide a pmap_is_kmpage_p which will only ever
perform a test on platforms where PMAP_ENABLE_PMAP_KMPAGE is defined.
This allows moving the include of machine/pmap.h after the flags
definition which will be useful for future flags.
Save and restore the X register around mod/div functions.
Normal builds aren't affected because mod/div don't clobber
the X register on any architecture with MKSLJIT=yes by default.
Building tests with -finstrument-functions triggers the bug.
aarch64: better reporting of ID_AA64PFR0_EL1.GIC
GIC Meaning
0b0000 GIC CPU interface System registers not implemented.
0b0001 System register interface to versions 3.0 and 4.0 of the GIC CPU interface is supported.
0b0011 System register interface to version 4.1 of the GIC CPU interface is supported.
To check the status of the the DS248x chip family the data sheet
indicates that one does a I2C READ without STOP on a particular chip
register. This will be a problem with controllers that do not support
I2C READ without STOP.
With some experimentation, a status checking mode was found that uses
I2C READ with STOP that appears to work on the DS2482 and DS2484
members of the chip family, the only ones really tested at this point
and the members of the chip family that are the most common. The data
sheet does not disallow this mode and it appears to be legal in all
respects, just not documented explicitly. The cost of this mode is
some additional latency that may not be desirable if it can be
avoided.
Introduce another sysctl that lets the status checking mode be set to
use I2C READ with STOP as an option.
[5 lines not shown]
imxclock: Fix timekeeping errors.
The following two warnings appeared in dmesg on every NetWalker boot.
Before this change, they appeared every time about 21 seconds after
boot:
WARNING: lwp 29 (system sdmmc0) ...: timecounter went backwards
... in netbsd:mi_switch+0xf0
WARNING: pid ... (devpubd): negative runtime; monotonic clock has
gone backwards
The time difference in the warnings was about 0.576 s, which matches
the value computed in cause 1 below.
Cause 1: the value goes back right after a reload (a 0.576 s step).
imx_epit_get_timecount() returned base - CNT. When the value goes
back, the difference in kern_tc.c (tc_delta) wraps to nearly 2^32, the
multiplication overflows, and the time jumps forward by
frac((2^32 - LR) / f). On a NetWalker (66.5 MHz, LR = 664999), this
[17 lines not shown]
inet: do not treat reject/blackhole routes as error
Reject/blackhole routes can have a loopback interface. Don't return
an ICMP error for a packet being forwarding on such routes.
Patch from oohashi at IIJ
hxtool(1) embryo page (not hooked into the build)
Hopefully, this provides enough mdoc boilerplate for someone with an
actual clue to add the rest of the commands.
PR bin/61120
Include the ad.arm entries in ad.earmv7 and ad.earmv7hf
This will hopefully finally fix the evbarm-earmv7hf build failures.
Note: I did not copy the obsolete entries, based upon the assumption
that no earmv7 or earmv7hf systems would have existed when those
old files were part of the build. If that is incorrect, by all means,
add them back (that won't affect the daily autobuilds, or any other
fully clean build, as those never experience files from a previous generation).