Age | Commit message (Collapse) | Author |
|
OK guenther@
|
|
OK guenther@
|
|
nfsmount. Delay the free(9) of the nfs mount point data until
pending or sleeping timeouts have finished by running it on the
softclock thread.
OK visa@
|
|
OK guenther@
|
|
OK guenther@
|
|
bump to 400 MHz for the eMMC on i.MX8MQ.
|
|
ok kettenis@
|
|
values are defined in the device tree and make sure that all clocks
needed for controller and driver operation are configured as expected.
This allows modifying a clock's rate and parent. For now expect that
a parent clock is on the same controller as the muxed one.
ok kettenis@
|
|
|
|
scrollback. Fixes use of an uninitialised attribute value in scrollback.
Patch from miod@ ok kettenis@
|
|
workaround for branch target injection attacks (CVE 2017-5715).
ok patrick@, jsg@
|
|
This could happen during fragment reassembly. Better check if we
are dealing with the first mbuf of the chain.
m_adj() changes the length of the mbuf, obviously. So when using
this length to calulate the amount of adjustment, do not calculate
it again after m_adj() with wrong input. Use a temporary variable
to save the value.
from Maxime Villard, NetBSD; OK markus@ claudio@
|
|
Revert previous commit; the XR17V35X probe that was added accesses registers
that aren't guaranteed to be there and may even belong to a different device.
This triggers a fault on hppa machines like the C3000 for example.
|
|
|
|
ok kettenis@
|
|
essentially calls into ATF to make it supply power.
ok kettenis@
|
|
domains. This mechanism is used by the newer i.MX8M SoCs so that
drivers can call into ATF to supply power to e.g. a USB port.
ok kettenis@
|
|
that aren't guaranteed to be there and may even belong to a different device.
This triggers a fault on hppa machines like the C3000 for example.
|
|
that only needs the read lock.
ok visa, mpi
|
|
for in_control(). Protect mrt6_ioctl() and nd6_ioctl() with a read
lock and in6_ioctl with the NET_LOCK() while establishing a single
exit point.
tested by kn
ok florian, mpi, visa
|
|
unnecessary because curproc always does the locking.
OK mpi@
|
|
if the lock becomes watched later.
|
|
has to support for MMC cards prior to reading the extended registers.
We already do this for SD cards. Fixes eMMC support on the i.MX8M.
Tested by and ok kettenis@
|
|
gathered from usb devices.
Cache them early in usbd_new_device() instead of querying the device
several times (the content wont change anyway) and uselessly generating
usb traffic (which could conflict with other access..)
The heuristic stays the same, first look in the device descriptor, then
try to match against usb_known_vendors/usb_known_products, then fallback
to use the idVendor/idProduct codes.
Remove the now useless 'usedev' parameter from usbd_fill_deviceinfo().
Tested from bsd & bsd.rd.
suggested by and ok mpi@
|
|
from mlarkin@
|
|
protected: mrt_ioctl() and in_ioctl(). The former has no other callers
and only needs a read lock. The latter will need refactoring to reduce
the lock's scope further. In a first step, establish a single exit point
and protect most of the function body with the NET_LOCK() while removing
the NET_LOCK() from a handful of callers.
suggested by & ok mpi, ok visa
|
|
ok mpi@
|
|
|
|
|
|
the given number of elements already is a power of 2.
ok visa@, "seems like a good plan" deraadt@
|
|
Patch by Jesper Wallin
|
|
|
|
ok pirofti@, visa@
|
|
Pointed out by Ryan Lennox via tech@
|
|
Add another magic 1ms delay that seems to help with some remaining "Hardware
Initialization Failed" issues on an HP elitebook 820 G3 with i219LM. A printf()
at the same place helps, too.
ok mikeb@
|
|
The em driver calls em_get_software_flag() recursively, which causes the
semaphore to be unlocked too early. Make em_get_software_flag and
em_release_software_flag handle this correctly. Freebsd does not do
this, but they have a mutex that probably allows them to detect
recursive calls to e1000_acquire_swflag_ich8lan(). Reworking the
openbsd driver to not recursively get the semaphore would be very
invasive.
ok mikeb@
|
|
Some em chips have a semaphore ("software flag") to synchronize access
to certain registers between OS and firmware (ME/AMT).
Make the logic to get the flag match the logic in freebsd. This includes
higher timeouts and waiting for a previous unlock to complete before
trying a lock again.
ok mikeb@
|
|
debug print "invalid transition" to dmesg in this case.
|
|
they flush old nodes and set the interface link state to down, like the
framework does.
OK stsp@ pirofti@
|
|
this gets rid of the source annotation which doesn't really add
anything other than adding complexitiy. randomess is generally
good enough that the few extra bits that the source type would
add are not worth it.
ok mikeb@ deraadt@
|
|
get an up-to-date view of APs around us. In particular, we need to
kick out the AP we are associated to. Otherwise, our current AP might
stay cached if it is turned off while we are scanning, and we could
end up picking a now non-existent but "good looking" AP over and over.
found with and ok phessler@
|
|
The WEP key index is stored in ic_def_txkey. The iGTK ("integrity group key")
index is specific to WPA. The previous code happened to always select WEP key
index 0 since the iGTK index is not yet used by any driver.
ok phessler@
|
|
type then panic immediately instead of silently dropping packets.
ok phessler@
|
|
error is set by copyinstr(9) only and we return early if it is non-zero,
so the loop's last condition is always true.
OK deraadt, jca
|
|
The only action taken during the scan ioctl was to sleep. This does not make
sense as the scanning process happens in the state machine behind the scenes.
Initialization indeed performs newstate(SCAN), but that is done no matter
if the user waits for the full results or not. Instead, this change unifies
the (new) user experience when performing ifconfig scan and shows the
nodes list produced by the latest background scan.
This was not tested on real hardware.
Please message me directly in case this broke your card.
OK stsp@, deraadt@
|
|
|
|
|
|
|
|
might be shutting the session down
|
|
|