Improve JH7110 support:
- Round to the nearest achievable clock rate instead of rounding down.
- Make sure we don't set a divider to zero.
- Fully initialize PLL0 when setting its rate.
- Bump PLL0 rate regardless of what the firmware configures it to.
This avoids issues with firmware based on upstream U-Boot.
ok jca@
Clarify CCR file format: the payload is encapsulated inside an OCTET STRING
Brought up by William McCall
This is a mechanical change.
discussed with / OK tb@
When tab-completing a filename, ensure that the completed string
does not end up mid-way through a multibyte character, as this
will cause a fatal() later on.
based on GHPR#587 from @TaoistBrickscarrier; feedback tb@ kevlo@
ok dtucker@
Fix association to access points which have all 802.11b rates disabled.
When I replaced ieee80211_iserp_sta() with a check for the extended
rates information element I wrongly assumed that this information
element would always be present if 11g is supported. However, the
xrates IE only appears in 11b/g mixed mode. APs which have 802.11b
rates completely disabled can announce all rates via the regular
rates IE and never send the xrates IE.
Ensure that we recognize such APs as 11g-capable regardless of the
missing xrates IE. Otherwise assocation can fail due to a mismatch
of basic rates.
Problem reported by landry@
ok phessler@ sthen@
implement "checksum offload" between rport pairs.
this allows the kernel to skip ip/tcp/udp checksum calculation for
packets between rdomains.
rport interfaces advertise checksum offload capabilities to the
stack, so the stack will set CSUM_OUT mbuf flags rather than do the
checksum calculation for packets being transmitted on an port
interface. when these packets are sent back into the stack by the
partner rport interface, the CSUM_OUT flags get mapped to equivalent
CSUM_IN_OK flags. this is modelled on how lo(4) does the same thing.
return early if pci_sys is NULL in vgaarb functions
Kevin Chadwick reported that Xorg was segfaulting every 10 or 20 minutes
in pci_device_vgaarb_set_target() on a machine with Intel I945G (gen 3).
This generation of hardware is pre OpenGL 2.0, so is not using glamor in
the xserver or the modesetting driver.
When we move to more partitions, MAKEDEV will need sysctl kern.maxpartitions.
The ramdisk sysctl is a minimal version which only knows certain variables,
so add this one into the list.
test framework: allow overriding the "/tmp/" directory
Windows is super picky when it comes to paths, so it needs some special
massaging. Will let us avoid a patch or hack in portable.
propagate errors from bnxt_up() back to userspace
Reveals errors that can occur during 'ifconfig bnxt0 down up', such as:
ifconfig: bnxt0: SIOCSIFFLAGS: Cannot allocate memory
help & ok jmatthew@ sf@ jan@
don't reuse c->isatty for signalling that the remote channel
has a tty attached as this causes side effects, e.g. in
channel_handle_rfd(). bz3872
ok markus@
unbreak vport to vport communication on the same veb.
veb is now set up to support port interfaces that can do checksum
offloading on behalf of the network stack (or virtual machines via
tun_hdr offloads). to allow packets leaving the kernel ip stack via
a vport interface to use hardware offloading, vport interfaces
advertise ip/tcp/udp offloads. veb then fixes up the packet if
the outgoing port doesn't support the necessary offload.
however, veb and vport can be used to support communication between
rdomains. this means packets can leave the stack via a vport interface
in one rdomain, and then enter the stack again on another vport.
in this situation the packets (re)entering the stack don't have
checksums calculated because vport advertises csum offloads, so the
packets get dropped.
this has vport map the CSUM_OUT flags to CSUM_IN flags before pushing
the packets into the stack again, despite the checksums not being
calculated. this is modelled on the behaviour of lo(4) and tun(4)/
[4 lines not shown]