summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-05-08add printing of arguments in stack traces.David Gwynne
this relies on building the kernel with -msave-args, which has functions save their register arguments on the stack, so ddb can easily find them and print them. while here try to print arguments out of registers if we're at the top of the stack (ie, if we set a breakpoint on a function entry). -msave-args is only added to the compiler flags if the kernel has been configured with ddb. this means it wont waste the space on RAMDISK kernels because they don't include ddb. inspired by similar functionality that has been in use on solaris and its derivatives for well over a decade. ok deraadt@
2017-05-07further improvement to vmm fpu handling (support avx and avx2, blockMike Larkin
avx512 and various xsave* instructions) tested by many
2017-05-07Fix stage transition from the initial one to DROPPINGMike Belopuhov
When the initial state is set to DROPPING, the code immediately jumps to a CONTROL state bypassing DROPPING. To fix this we start with an explicit INITIAL state so that we do an INITIAL->DROPPING transition right off the bat in the beginning of the loop and then perform a DROPPING->CONTROL and either CONTROL->DROPPING and restart the loop or CONTROL->RECOVERY/ACCEPTING and terminate.
2017-05-07Backout previous as it's causing problems on architectures that alignMike Belopuhov
64 bit integers on an 8 byte boundary such as armv7. MHLEN calculation doesn't account for padding bytes inserted by the compiler after m_hdr. Found the hard way by kettenis@.
2017-05-07Program hardware address in dwc_gmac_init() instead of dwc_gmac_attach()Mark Kettenis
such that "ifconfig dwge0 lladdr 00:11:22:33:44:55" actually works.
2017-05-07Refactor this code to support the GMAC found on the Rockchip RK3399 alongsideMark Kettenis
the GMAC found on the Allwinner A20/A31. With this diff I can receive packets on the Firefly-RK3399. Unfortunately sending packets doesn't seem to work yet.
2017-05-07Sync FDT code with arm64.Mark Kettenis
2017-05-07Pass the address of the EFI system table and the EFI memory map throughMark Kettenis
properties in the /chosen node of the FDT. The properties match the ones used by Linux (see Documentation/arm/uefi.txt in the Linux kernel source tree) but with the "linux," prefix replaced by "openbsd,". ok jmatthew@, tom@
2017-05-06Add rkgpio(4), a driver to handle GPIOs on Rockchip SoCs.Mark Kettenis
2017-05-06Do not export the protocol PCB pointer from kernel to non-root usersAlexander Bluhm
also in the IPv6 case. This fixes "netstat -An -f inet6 -p tcp" and shows 0x0. report and OK dhill@
2017-05-06Remove unused local variable such that this actually compiles.Mark Kettenis
2017-05-06Checking for IPv4 mapped addreses and dropping the packet is doneAlexander Bluhm
in ip6_input(). Do not check that again in the protocol input functions. OK mpi@
2017-05-06Add a few GMAC related clocks and implement reset logic.Mark Kettenis
2017-05-06Configure pins and deassert resets, just in case some other board needs it.Mark Kettenis
2017-05-06Convert the xformsw definition to C99 style initializer. Also fixAlexander Bluhm
the function declaration of ipe4_input() and avoid a wrong cast. OK mikeb@ dhill@
2017-05-06Print full MIDR for CPUs that can't be identified.Mark Kettenis
ok jsg@
2017-05-06Now that we have a table of Cavium part numbers add the part number forJonathan Gray
Broadcom's Vulcan design with a Cavium implementer code (ThunderX2 T99/CN99xx). Suggested by kettenis@
2017-05-06add Moxa CP-104ELJonathan Matthew
ok kettenis@
2017-05-05Move dwge(4) glue into dev/fdt.Mark Kettenis
2017-05-05Add rkpinctrl(4), a driver to configure pins on Rockchip SoCs. For now,Mark Kettenis
only the RK3399 is supported.
2017-05-05Include <dev/ofw/ofw_misc.h> instead of <dev/ofw/ofw_pinctrl.h>.Mark Kettenis
2017-05-05Put back the call to pf_remove_src_node lost in the netlock backoutMike Belopuhov
Reported by Remi Barbier, thanks! OK mpi@
2017-05-05Add glue to attach SDHC compliant controllers using the FDT. This makesMark Kettenis
the eMMC controller on the Rockchip RK3399 work.
2017-05-05Implement two quirks to support the Arasan eMMC 5.1 controller found onMark Kettenis
the Rockchip RK3399. - Make it possible to override sdhc_signal_voltage(). - Make it possible to disable double-data rate modes. ok patrick@
2017-05-05Add the missing cache flush operations for non-coherent mappings.Mark Kettenis
ok jsg@, patrick@
2017-05-05Add eMMC-related clocks.Mark Kettenis
2017-05-05Remove /* FALLTHROUGH */ that isn't (and shouldn't).Mark Kettenis
2017-05-05Remove a DIAGNOSTIC test for a NULL pipe value inside a transfer,Jonathan Gray
mpi says a transfer can't exist without a pipe. ok mpi@
2017-05-05regenJonathan Matthew
2017-05-05add Moxa CP-104ELJonathan Matthew
2017-05-05Expand SA_LEN(), there is no benefit for using the macro in theAlexander Bluhm
kernel. It was only used in IPsec sources. No binary change OK deraadt@
2017-05-05Allow setting guest %xcr0 from vmd(8).Mike Larkin
Tested on linux and amd64 OpenBSD guests. Posted to tech by Pratik Vyas.
2017-05-04Also pass the blk offset to disk_unbusy(), so that it can pass it toTheo de Raadt
the random subsystem as entropy. This value is pretty much unknown, and anyways our entropy input ring does not saturate from knowns. ok mikeb djm
2017-05-04enable brgphy, which appears in the edgerouter proJonathan Matthew
2017-05-04Recognize various Cavium ThunderX cores.Mark Kettenis
ok patrick@
2017-05-04If m is not a continuous mbuf cluster, m_pullup() in pr_input mayAlexander Bluhm
change the pointer. Then *mp keeps the invalid pointer and it might be used. Fix the potential use after free and also reset *mp in other places to have less dangling pointers to freed mbufs. OK mpi@ mikeb@
2017-05-04Implementation of the Flow Queue - Controlled Delay (FQ-CoDel)Mike Belopuhov
The purpose of FQ-CoDel is to provide fair sharing of bandwidth between simultaneous connections and reduce latency differences among them. OK mpi, sthen, visa
2017-05-04Remove side effects from assignment. Fixes warning with cppcheck.Alexander Bluhm
No binary change. OK ratchov@
2017-05-04Introduce sstosa() for converting sockaddr_storage with a type safeAlexander Bluhm
inline function instead of casting it to sockaddr. While there, use inline instead of __inline for all these conversions. Some struct sockaddr casts can be avoided completely. OK dhill@ mpi@
2017-05-04Reset the MLD default ip6_opts by using ip6_initpktopts(). This fixes aRafael Zalamena
problem with MLD packets being sent with hlim set to zero. with suggestion from and ok bluhm@
2017-05-04If iwm_nic_lock() cannot access the device then print "acquiring device failed"Stefan Sperling
instead of "device timeout". The latter is printed by the Tx watchdog already.
2017-05-03Bring boot() in line with our other architectures.Mark Kettenis
ok mpi@, deraadt@
2017-05-03Provide a function to dispose of a list of mbufs on dequeueMike Belopuhov
ifq_mfreeml() is similar to the ifq_mfreem(), but takes an mbuf list as an argument. This also lets these functions subtract the number of packets to be disposed of from the ifq length. OK dlg
2017-05-03Back out rev 1.185 (which made the code match the comment) andTodd C. Miller
adjust the comment to match reality (or at least rfc7323) instead. This brings us back in line with the behavior of Net and Free. From Lauri Tirkkonen. OK bluhm@
2017-05-03Provide a signed 64 bit integer timestamp in the mbuf packet headerMike Belopuhov
The precision of the timestamp is not fixed yet, but there's a strong argument to measure it in nanoseconds. With suggestions from kettenis, dlg, miod and deraadt. OK deraadt@, sthen@
2017-05-03Byte order of IP addresses was broken on big endian machines.Gerhard Roth
MBIM already uses network byte order for IP addresses, so just use them as they are. ok stsp@, deraadt@
2017-05-03Fix a regression in iwm(4) which made 3165 devices unusable.Stefan Sperling
When MIMO support was added several entries in the rate table index enum got a wrong value. On most devices the firmware ended up using a Tx rate different from the rate net80211 asked for (which is bad, but not fatal). But on 3165 devices which do not support MIMO the firmware rightly raised a fatal error whenever the driver mistakenly asked for a MIMO Tx rate. Reported by Georgios Pediaditis, Steve Throckmorton, and Kai Wirt on misc@ Thanks to benno@ for providing 3165 hardware I could use to debug this.
2017-05-03explicitly initialise the mutex in the kernel map.David Gwynne
previously it was zeroed memory from a global, which kind of looks like a valid mutex, but we shouldnt rely on that. ok kettenis@
2017-05-03Change the ip6_setmoptions() function to receive the rdomain as a newRafael Zalamena
parameter. This makes the ip6_setmoptions() function look more like the ipv4 version and fixes a problem with IPV6_JOIN_GROUP when no interface is specified. ok bluhm@
2017-05-03Remove unused (and wrong) uaudio_drain() call. From Michael W.Alexandre Ratchov
Bombardieri" <mb@ii.net>.