summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-07-15usingacpi might be referenced in apm only code, so adjust #if guardTed Unangst
from Nick Briggs
2017-07-15Get rid of the device reset hack in iwm_newstate_task().Stefan Sperling
Instead, maintain firmware state in accordance to the current net80211 state by adding/updating/removing MAC config, PHY->MAC binding, and the station in the firmare station table (we only add the AP to this table). By eliminating the iwm_stop() call from iwm_newstate_task(), this change prepares future work on fixing races between ioctls and tasks scheduled by this driver. There's a known new occasional fatal firmware error which results in the message "iwm0: could not remove MAC context (error 35)" I expect to fix this soon. tested by tb@ on 7265, by jcs@ on 8265, and by myself on 7260/7265/8260 ok mpi@ tb@
2017-07-15Disable the has_audio pipe config check. We don't manage the HDMI/DP audioMark Kettenis
capabilities yet so discrepancies are not entirely unexpected.
2017-07-15iobus_h is unused, remove it.Visa Hankala
2017-07-14SpacingMike Belopuhov
2017-07-14Reduce the number of CAS loops from ludicrous to ridiculousMike Belopuhov
Now that the source of the delay with releasing grant table entries has been identified and fixed the number of attempts to CAS entry flags can be substantially reduced and while it's decreased by a factor of 100000, it should go down at least a 100 more in the future.
2017-07-14Silence the interrupt source until the interrupt task has done its jobMike Belopuhov
This small change significantly improves performance under load and halves the number of received interrupts.
2017-07-14Support out-of-order TX completion notificationsMike Belopuhov
Apparently, just like the disk interface, the network backend may post TX completions out-of-order, i.e. the ring position doesn't determine which descriptor is being completed and the code must look at the response id inside the completion message. It might seem obvious, but since networking hardware doesn't usually work this way, it was something that has been overlooked. Based on instability reports from Kirill Miazine <km at krot ! org>, thanks!
2017-07-14kernels don't build without MROUTING because ip_var.h only sometimesTed Unangst
introduces a forward decl for socket. turns out the affected file doesn't need ip_var.h, so remove it. then move the decl to the bottom to prevent the problem from recurring. bug report by Nick Briggs ok mpi
2017-07-14The regress test src/regress/sys/kern/siginfo-fault checks whetherAlexander Bluhm
the si_code is SEGV_ACCERR after memory access with wrong permissions has triggert a SIGSEGV. Adapt the behavior of i386 and amd64 kernel. Remove the useless code that changed error from EACCES to EFAULT in amd64. Also convert variable name rv to errno in i386 to make it look like amd64. OK kettenis@
2017-07-14Add some more i2c glue to reduce the diffs to Linux.Mark Kettenis
2017-07-14fix GET_CURPCB on !MULTIPROCESSOR builds.David Gwynne
this lets GENERIC work as well as GENERIC.MP. it should also fix bsd.rd. tested by me on an es45. from a grumpy alpha user
2017-07-13kill a prototype for a nonexisting function; ok mpi@Christian Weisgerber
2017-07-13Fix multicast reception: use unsigned chars to avoid accidental signChristian Weisgerber
extension in hash calculation. Reported & diagnosed by Nick Briggs. ok mpi@
2017-07-13Get rid of ip6.maxifprefixes and ip6.maxifdefrouters, the kernel noFlorian Obser
longer tracks prefixes or default routers from router advertisements. Pointed out by jmc. ports tree grepping sthen, who only found nsh OK mpi, sthen
2017-07-13Do not unlock the netlock in the goto out error path before it hasAlexander Bluhm
been acquired in sosend(). Fixes a kernel lock assertion panic. OK visa@ mpi@
2017-07-13Set the ipl of pipex pools to IPL_SOFTNET.Martin Pieuchot
Fix floor splassert reported by mlarkin@ and Marko Cupać. ok dlg@, visa@, yasuoka@
2017-07-13Add a driver for the CIB interrupt controller. Certain deviceVisa Hankala
controllers need it on CN70xx/CN71xx.
2017-07-13Add a comment explaining why pciide(4) must skip attaching disksMike Belopuhov
Requested by kettenis@.
2017-07-13Add handling for the third interrupt summary vector,Visa Hankala
needed by upcoming work.
2017-07-13Get cpuid from `ci' to avoid an extra function call.Visa Hankala
2017-07-12Add a "Backlight" property to connectors with an associated backlightMark Kettenis
controller for the inteldrm(4) driver. If wscons(4) provides backlight control, prefer ir over raw hardware control and attach it to LVDS, eDP and DSI connectors which are the connector types typically connected to laptop screens.
2017-07-12Get rid of ICMPV6CTL_ND6_DRLIST and ICMPV6CTL_ND6_PRLIST sysctlsFlorian Obser
With this we can also get rid of in6_prefix and in6_defrouter. They are meaningless, the kernel no longer tracks this information. Pointed out by & OK mpi
2017-07-12Tweak txp to avoid ifq_deq_begin/commit/rollbackMike Belopuhov
Setup the transmit ring the way FreeBSD driver does giving each descriptor a 16 fragment chain and revamp the start routine to use m_defrag for long chains and avoid the dequeue begin/commit/ rollback dance. OK dlg
2017-07-12Reshuffle vic_start and get rid of the dequeue begin/rollback/commit danceMike Belopuhov
Tested on ESXi 5.5.0, OK reyk
2017-07-12Use a 32 bit variable to detect integer overflow when searching forAlexander Bluhm
an unused nat port. Prevents a possible endless loop if high port is 65535 or low port is 0. report and analysis Jingmin Zhou; OK sashan@ visa@
2017-07-12Prefer paravirtualized interface for IDE disks as wellMike Belopuhov
2017-07-12Introduce two quirks to prevent attaching ATA and ATAPI devicesMike Belopuhov
Hyper-V and Xen have varying support for detaching emulated IDE devices ranging from none on Hyper-V to only IDE disks but not CDROM (Xen). The quirk mechanism provides a way of enforcing the desired behavior. With suggestions and OK kettenis, tedu, mlarkin
2017-07-12Reorganize separate configuration fields into per-CPU structsVisa Hankala
to compact the data indexing. This additionally improves the cache locality of the data.
2017-07-12Invalidate read-ahead buffers when read shortMike Belopuhov
Buffercache performs read-ahead for cluster reads by extending the length of an original read operation to the MAXPHYS (64k). Upon I/O completion, the length is trimmed and the buffer is returned to the filesystem and the remaining data is cached. However, under certain circumstances, the underlying hardware may fail to do a complete I/O operation and return with a non- zero value of the residual length (i.e. data that wasn't read). The residual length may exceed the size of an original request and must be re-adjusted to uphold the contract with the caller, e.g. the filesystem. At the same time, read-ahead buffers that cover chunks of memory corresponding to the residual length must be invalidated and not cached. Discussed at length during d2k17, ok tedu
2017-07-12Kill 'rwlock' forward declaration, this should have been removed withMartin Pieuchot
sbsleep().
2017-07-12Do not call fo_ioctl() in syscall that do, or will, take the socketMartin Pieuchot
lock. Prevents a future lock recursion since soo_ioctl() will need to grab the lock. ok bluhm@, visa@
2017-07-12Compute the level of contention only once.Visa Hankala
Suggested by and OK dlg@
2017-07-12When there is no contention on a pool cache lock, lower the numberVisa Hankala
of items that a cache list is allowed to hold. This lets the cache release resources back to the common pool after pressure on the cache has decreased. OK dlg@
2017-07-12remove CPU_LIDSUSPEND/machdep.lidsuspendMartin Natano
"fire away!" tedu
2017-07-12Make max memory for VMs equal to MAXDSIZ to avoid failing later duringMike Larkin
VM setup. ok pd
2017-07-11Purging is at last at hand. Day of Doom is here. All that is evilFlorian Obser
shall all be cleansed. Remove sending of router solicitations and processing of router advertisements from the kernel. It's handled by slaacd(8) these days. Input & OK bluhm@, mpi@
2017-07-10make malloc(9) mpsafe by using a mutex instead of splvm.David Gwynne
this is almost a straightforward change of spl ops with mutex ops, except the accounting has been shuffled around. memory is counted as used before an attempt to allocate it from uvm is made to prevent overcommitting memory. this is modelled on how pools limit allocations. the uvm bits have been eyeballed by kettenis@ who says they should be safe. visa@ found some nits which have been fixed. tested by chris@ and amit kulkarni ok kettenis@ visa@ mpi@
2017-07-10Keep refusing SDIO initialization. The driver cannot work properlyVisa Hankala
with SDIO because it does not handle card interrupts.
2017-07-10Replace codepatch nopsleds with trapsleds.mortimer
ok sf@ mlarkin@ suggested by deraadt@
2017-07-08Remove duplicate typedesf that are now provided by linux_types.h.Mark Kettenis
2017-07-08Enable slaacd on the installer and temporarily neuter routerFlorian Obser
advertisement processing and solicitation sending like we already did for the non-install kernels. Next step will be to tedu all that code from the kernel. OK rpe@ for the installer bits move forward deraadt@
2017-07-08- For RTL8188CUS/RTL8192CU, we have to force 8051 reset/enable before waitingKevin Lo
for firmware to get ready. It fixes "urtwn0: could not load firmware page" while running stsp@'s script: dhclient urtwn0; ifconfig urtwn0 down; ifconfig urtwn0 scan in a loop. - Minor cleanup for rtwn_read_rom()/rtwn_get_txpower(); no need to use callbacks. Tested by stsp@ and me. ok stsp@
2017-07-08Revert grabbing the socket lock in kqueue filters.Martin Pieuchot
It is unsafe to sleep while iterating the list of pending events in kqueue_scan(). Reported by abieber@ and juanfra@
2017-07-07You win some, you los some. The Linux 4.4 code is still sub-standard butMark Kettenis
triggers different warnings now. ok naddy@
2017-07-07Add logic for running SD commands. Tested with a few different makesVisa Hankala
of MMC/SD memory.
2017-07-07Fix function name in panic message.Visa Hankala
2017-07-06Our website says that socppc was discontinued after 5.8 (thanks toIngo Schwarze
tobiasu@ for pointing that out), but the manual pages are still installed. I have no idea how to properly tedu an architecture, so deleting the dead .Xr to boot_socppc(8) is all i'm doing in this respect.
2017-07-06Delete cross references to boot_landisk(8).Ingo Schwarze
According to tobiasu@, landisk is moribund and writing new manual pages for it would be a waste of time.
2017-07-06fix broken cross references; found with mandoc -TlintIngo Schwarze