summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-09-20Reset the `pending I$ flushes' flag in tfp_InvalidateICache() if invalidatingMiod Vallat
the whole I$.
2015-09-20need to keep bpf in the tx path. got a bit ahead of myself there...David Gwynne
noticed by brad
2015-09-19trivial "if(x) free(x)" replacement by "free(x)"Sebastien Marie
ok miod@
2015-09-19In the internal conversion of _TM_* to TAME_*, some bits were lost forSebastien Marie
"dns" and "cmsg" in the `tamereq' array. Restore the previous behaviour. ok guenther@
2015-09-19Avoid using a mutex in the rx completion path. Instead rely onMark Kettenis
intr_barrier(9) to avoid having the interrupt handler touch the rx data structures while we're brining down the interface. This actually reverts many of the changes in rev. 1.300. ok mikeb@
2015-09-19No need for wsmux on these installation media, which lack USB support.Miod Vallat
2015-09-19intr_barrier(9) for armJonathan Gray
ok kettenis@
2015-09-18Go back to the previous approach when managing individual HPC DMA descriptors:Miod Vallat
provide again an optional storage for a copy of the descriptor in the `sync' (fetch) function, and use the returned address afterwards. On IP22 systems (in the broader sense of the term, thus IP20/IP22/IP24), descriptors will remain in uncached memory and no local copies need to be made. On IP28 systems, descriptors will remain in cached memory (so as to avoid switching to `slow mode'), but a local copy will be performed with the necessary cache eviction work, so that speculative code execution on R10000 will not touch the real descriptor. With this in place, all the explicit descriptor cache operations in if_sq, some of them being redundant or operating on the wrong number of descriptors, can be removed, with the HPC DMA wrappers taking care of doing the right thing. Tested on IP22 and IP28. IP26 still unhappy but no worse than before.
2015-09-18Remove stray splx(9) call. Found by Maxime Villard's Brainy Code Scanner.Mark Kettenis
From miod@.
2015-09-18Do not manually decrement rt's refcounter in nd6_lookup() and let theMartin Pieuchot
callers rtfree(9) it. Inputs and ok bluhm@
2015-09-18Remove orphaned files.Miod Vallat
2015-09-18Use the local unixdev.h file rather than the outdated libsa one.Miod Vallat
2015-09-18Remove support for building the boot blocks with DEBUGFLAGS=-D_TEST, which isMiod Vallat
supposed to create a userland binary in order to test non-boot related functionality. This feature has been bitrotting in a non-compiling state for years, and causes a too-many-ifdefs disease now that there are intrusive EFI changes. No functional change.
2015-09-18Drop the workarounds allowing SMALL_KERNEL (i.e. installation media) to beMiod Vallat
booted from old (< 2.10) bootblocks.
2015-09-18Remove unused variables, from Michael McConville.Martin Pieuchot
ok stsp@
2015-09-18Fix an uninitialized variable found by Maxime Villard's Brainy.Visa Hankala
While here, fix the size parameter of bus_dmamem_unmap() in iec_alloc_physical(). ok miod@
2015-09-18More ifmedia64 fallout.Miod Vallat
2015-09-18implement SRPL_INSERT_AFTER_LOCKED.David Gwynne
i thought id committed this at l2k15. sorry for the delay.
2015-09-18make vmx(4) interrupts mpsafe.David Gwynne
the vmx rx path is only touched in the interrupt handler, so it is already guaranteed to be accessed by only one cpu at a time. the tx path has been massaged so the the producer is only touched by the start routine, and the consumer is only touched by the interrupt path, and can therefore be run concurrently. the only interlock is a count of the free descriptors. if txintr clears IFF_OACTIVE, it takes the kernel lock before running the start routine. other interrupts, eg, link state handling, take the kernel lock.
2015-09-17Back out rev. 1.125. This bit was left behind (intentionally?) when theMark Kettenis
remainder of that commit was backed out. However,clearing the PQ_AOBJ bit here is definitely wrong. Our pagedaemon uses two separate lists to keep track of inactive pages. It uses PQ_SWAPBACKED, which really is both PQ_ANON and PQ_AOBJ to keep track of which inactive queue a page is sitting on. So if you twiddle PQ_AOBJ (or PQ_ANON) for an inactive page, a subsequent uvm_pagefree(9) will remove the page from the wrong queue! This usually goes unnoticed, but if the page happens to be the last one on the queue, the queues get corrupted. The damage quickly spreads to the free page queues and almost certainly results in the uvm_pmr_size_RB_REMOVE_COLOR() faults that people have seen sporadically since the spring of this year. ok visa@, beck@, krw@, guenther@
2015-09-17Do not define QLW_DEBUG if SMALL_KERNEL, and turn qlw_dump_iocb() andMiod Vallat
qlw_dump_iocb_segs() into empty macros if QLW_DEBUG is not defined (if only to make this compile, then).
2015-09-17instead of leaking rarp packets, break from the switch statementDavid Gwynne
so packets can get enqueued for the arp netisr to process. fixes jsgs nfs mountroot problem.
2015-09-16Make code in ieee80211_send_4way_msg3() more readable and make sure a localStefan Sperling
variable is initialized to NULL in the WPA case. No functional change. Pointed out by Maxime Villard's brainy code scanner. ok claudio@ zhuk@
2015-09-16Fix uninitalized use of variable.Claudio Jeker
Issue _17 found by Maxime Villard Brainy scanner. OK bluhm@
2015-09-16Fix uninitialized variable found by Maxime Villard's Brainy Code Scanner.Daniel Dickman
ok uebayasi@, mlarkin@
2015-09-15Fix overlapping memcpy found by Maxime Villard's Brainy Code Scanner.Mark Kettenis
2015-09-15regenJasper Lievisse Adriaanse
2015-09-15add fingerprint reader as found the x250 as well as another similarJasper Lievisse Adriaanse
device found while figuring out the chipset. ok jsg@
2015-09-15Fix kpanic I found the hard way while using pcsc-liteDavid Coppa
From Grant Czajkowski <czajkow2 AT illinois DOT edu> OK mpi@
2015-09-15link_addr() is gonePhilip Guenther
ok mpi@
2015-09-15Unbeak boot from GPT partition. Reported by Henrik Friedrichsen.YASUOKA Masahiko
ok krw
2015-09-14unify free(NULL,size) behaviour by allowing passing NULLSebastien Marie
ok millert@ jasper@
2015-09-14Fix more ifmedia64 fallout in the kernel. It's hiding everywhere...Stefan Sperling
2015-09-13intr_barrier(9) for loongson, octeon and sgi.Mark Kettenis
2015-09-13intr_barrier(9) for alpha.Mark Kettenis
2015-09-13Fix double rtfree(9) in non-INET6 kernel.Martin Pieuchot
With and ok claudio@
2015-09-13There's no point in abstracting ifp->if_output() as long as pf_test()Martin Pieuchot
needs to see lo0 in the output path. ok claudio@
2015-09-13if_put() after if_get().Martin Pieuchot
ok dlg@
2015-09-13syncPhilip Guenther
2015-09-13Rename __sysctl syscall to just sysctl, as the userland wrapper is no longerPhilip Guenther
necessary ok deraadt@ jsing@
2015-09-13Put the 12x22 font on alpha and macppc installation kernels, the 8x16 fontMiod Vallat
is really fugly on large displays (tga, vgafb). It's only 10KB more data before compression, which fits in our floppies.
2015-09-13Remove unused and incorrect defines GPT_PARTSPERSEC and GPT_SECOFFSET.Kenneth R Westerback
2015-09-13intr_barrier(9) for hppa.Mark Kettenis
2015-09-13remove deltaTheo de Raadt
2015-09-13Move prototype for spoofgptlabel() from disklabel.h to subr_disk.c.Kenneth R Westerback
It's a helper function for readdoslabel(). Not something called outside of subr_disk.c.
2015-09-13intr_barrier(9) for macppc and socppc.Mark Kettenis
2015-09-13Get the default loopback interface pointer just after doing a routeMartin Pieuchot
lookup to ensure pf_test() is called with the same interface in the input annd output path for local traffic. Fix a regression reported by Heiko Zimmermann on bugs@, thanks! ok mikeb@, claudio@
2015-09-13Rename readgptlabel() to spoofgptlabel() because that's what weKenneth R Westerback
really want it to do. Handle all the actual disklabel reading in readdoslabel(). Makes the code much simpler to understand. ok deraadt@
2015-09-13Locators are long now.Miod Vallat
2015-09-13Needs <sys/systm.h> before <sys/syscall_mi.h> now.Miod Vallat