summaryrefslogtreecommitdiffstats
path: root/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove no-op simple locksderaadt2015-01-293-167/+11
| | | | tested by jsg, ok miod
* back bpf.c down to 1.113, from before most recent timeout changes.tedu2015-01-291-8/+4
| | | | | | nmap is broken, as reported by kent fritz. pending further investigation, we should keep nmap working until a better fix is developed for the original problem.
* - Add PCH2 and PCH LPT to the list of chips capable of only 9K jumbos.brad2015-01-282-5/+13
| | | | | | | | | - Updated PBA values for the 82574 controller (20KB) and ICH9/10 with jumbos (14KB). Tested by a few on 82574, ICH9 and PCH LPT From FreeBSD
* Revert rtdeletemsg conversion. It was not ok'd, I misunderstood bluhm@'smpi2015-01-285-40/+69
| | | | email.
* revert back to initial vnodes again so we can be sure nfs likes ittedu2015-01-281-2/+2
|
* drm/radeon: allow geom rings to be setup on r600/r700 (v2)jsg2015-01-283-4/+19
| | | | | From Dave Airlie 7c4c62a04a2a80e3feb5d6c97aca1e413b11c790 in mainline linux
* drm/radeon: fix VGT_GS_INSTANCE_CNT registerjsg2015-01-284-4/+4
| | | | | From Dave Airlie b7bc799903bbae16795cb15705ddcab80c8f17f1 in mainline linux
* Remove an unused macro and a stale comment. No functional change.mlarkin2015-01-281-5/+1
|
* when doing a blocking read with a timeout, after the sleep resetdlg2015-01-281-1/+2
| | | | | | the start time so the next read behaves the same. from Simon Mages
* tedu x86_self_ipi()/i386_self_ipi()sf2015-01-273-13/+3
| | | | | | They are not used anywhere. ok mlarkin@
* Ignore buttons for which _STA indicates they're not present, enabled orkettenis2015-01-271-17/+10
| | | | | | functioning. Fixes suspend/resume on a Dell PowerEdge T20. ok mlarkin@, sthen@
* Vommiting errors about failed reset or stall clear are not usefull tompi2015-01-271-10/+12
| | | | | | the user and do not give enough informations to debug a problem. Only print such messages in DEBUG mode.
* Always call if_ioctl() for loopback interfaces, just like IPv4 do, tompi2015-01-271-2/+3
| | | | | | | make sure the default MTU is set for every address configured on the ifp and not just the first one. Regress test breakage reported by daniel@
* Ensure that link-local addresses are correctly configured on loopbackmpi2015-01-274-88/+42
| | | | | | | | | | | | | | | | | | | | interfaces. When the kernel automagically configures IPv6 addresses on loopback interfaces, start by assigning a link-local address and then try to assign "::1". Only the first configured loopback interface per rdomain can have the "::1" address. But even if other loopback interfaces failed to get this address, because it is already taken, give them a chance to have a link-local address. While here change in6_ifattach() to return an error value and remove duplicated code. Fix a regression introduced by the NOINET6 flag removal. ok henning@, stsp@, florian@, benno@
* Do not overwrite user-specified MTU.mpi2015-01-271-2/+2
| | | | | | Allow to use different size than the default of 32K. ok henning@, stsp@, florian@, benno@ as part of a larger diff.
* remove workq code. its been replaced with tasks.dlg2015-01-272-293/+0
| | | | | | | it has been unused since december, and unhooked from the build since christmas. ok krw@
* remove #include <sys/workq.h>. it wont exist anymore soon.dlg2015-01-272-4/+2
|
* ENOGREP.dlg2015-01-271-2/+2
| | | | | | i didnt find this TASK_INITIALIZER call when changing tasks. more beatings from deraadt@
* this code doesnt need to know about interrupts, so i can trim somedlg2015-01-271-15/+1
| | | | | | headers and types. ok deraadt@
* i forgot to fix ipw when i removed the second task argument.dlg2015-01-271-7/+7
| | | | poke from deraadt@
* remove the second void * argument on tasks.dlg2015-01-2751-269/+257
| | | | | | | | | | | | | | | | | | | | | when workqs were introduced, we provided a second argument so you could pass a thing and some context to work on it in. there were very few things that took advantage of the second argument, so when i introduced pools i suggested removing it. since tasks were meant to replace workqs, it was requested that we keep the second argument to make porting from workqs to tasks easier. now that workqs are gone, i had a look at the use of the second argument again and found only one good use of it (vdsp(4) on sparc64 if you're interested) and a tiny handful of questionable uses. the vast majority of tasks only used a single argument. i have since modified all tasks that used two args to only use one, so now we can remove the second argument. so this is a mechanical change. all tasks only passed NULL as their second argument, so we can just remove it. ok krw@
* Remove an unused and confusing assignment that had been commented out formlarkin2015-01-271-2/+1
| | | | years. No functional change.
* Remove an unused variable whose functionality was moved to locore long ago.mlarkin2015-01-271-4/+1
|
* Remove an odd comment in the first line of the filemlarkin2015-01-271-2/+1
| | | | ok deraadt@
* Rewrite receive filter handling and ioctl bits.brad2015-01-271-54/+34
|
* Require EFT shared objects have a PT_PHDR entry to be consideredkurt2015-01-271-5/+11
| | | | | | | | | | a pie binary. The kernel will now reject executing a typical shared library with EINVAL. This breaks compatibility with initial static pie binaries and requires a recent user-land prior to upgrading. In addition, more fine grained errors can be returned from execve(2) when errors occur while attempting to execute ELF objects. okay guenther@, kettenis@, deraadt@
* Move the "stackgap" from the stack into its own page at a random address.kettenis2015-01-264-38/+36
| | | | | | | This allows us the unmap the initial part of the stack, such that it can't be used as a staging area for ROP (or other) attacks. ok guenther@, tedu@
* Print frame buffer resolution at attach time.miod2015-01-261-2/+4
|
* Call rtdeletemsg(9) instead of rerolling its code. As a bonus you'llmpi2015-01-263-57/+9
| | | | | | get userland notification for free. ok blambert@, bluhm@
* Do not always try to rtfree(9) route entries inside rtdeletemsg(9).mpi2015-01-262-12/+31
| | | | | | | Instead check the error code returned by this function and let the caller free the route entry when appropriate. ok bluhm@
* Set PCIe max read request size to 2K to help with TX performance.brad2015-01-262-3/+24
| | | | | | From FreeBSD Tested with 8168C, 8168D and 8168G.
* Update the Samsung SSD controller comment.brad2015-01-261-3/+4
|
* Import the exynos work into tree. This is from Bitrig. Discussed with and OK jsg, also OK from krw.bmercer2015-01-2628-0/+7163
|
* Rework cbus(4) interrupt support a bit. Instead of merging devhandle andkettenis2015-01-257-116/+91
| | | | | | | devino into a pseudo-sysino, directly use the devino as the ihandle. The devhandle is stored in the cbus softc, and accessed through the bus space tag. This allows us to have more than 256 interrupts on a single cbus, and avoids relying on the lower bits of the devhandle being zero.
* Correct a bit test for DDR2 CAS Latency and recognise CL7 and CL6.jsg2015-01-251-3/+3
| | | | | | | While the spec only mentions bits for CL5->CL2 with the other bits being marked 'TBD' it seems likely they are used now. From David Vasek.
* refactor loading of dmamaps.dlg2015-01-251-173/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | bus_dmama_load and bus_dmamap_load mbuf figure out the physical addresses of the memory theyre given and then hand it to _bus_dmamap_load_paddr to store in the dmamaps sg lists. unfortunately bus_dmamap_load_mbuf assumes it is only given memory from the kernels direct mapped region, and blindly translates anything its given into phys addresses to hand to _load_paddr. i recently committed change to pool asking them to allocate large pages, which meant uvm allocated mbufs outside the direct map, which meant bus_dmamap_load_mbuf was handing out bogus physical addresses. the pool change got backed out until i could debug this. now _load and _load_mbuf now call _bus_dmamap_load_vaddr for every buffer theyve been given, which properly determines if the addresses are in the direct map or via the tlb. _load_vaddr then feeds the physical addresses into _bus_dmamap_load_paddr to store them in the dmamap. tldr; _load_mbuf doesnt make naive assumptions about its addresses now. ok miod@ kettenis@
* Implement bus_dmamem_alloc_range(9) for macppc/socppc.kettenis2015-01-246-10/+28
|
* correct the syntax description of the boot command; ok jmc@naddy2015-01-247-63/+63
|
* Use bus_dmamem_alloc_range(9) to make sure the ring descriprtors can bekettenis2015-01-241-3/+4
| | | | | | accessed by the device. ok deraadt@, stsp@
* Add bus_dmamem_alloc_range(9) to allow drivers to allocate DMA'able memorykettenis2015-01-249-16/+33
| | | | | | within a range that is more (or less) restrictive than the default range. ok deraadt@, stsp@
* Remove a comment that is no longer true with MCLGETI and jumbos onbrad2015-01-241-7/+1
| | | | some revisions of the chipsets.
* Userland (base & ports) was adapted to always include <netinet/in.h>deraadt2015-01-2419-71/+95
| | | | | | before <net/pfvar.h> or <net/if_pflog.h>. The kernel files can be cleaned up next. Some sockaddr_union steps make it into here as well. ok naddy
* Make km_alloc(9) use the direct map for all "phys contig" mappings requestedkettenis2015-01-231-37/+29
| | | | | | | | | by the caller on architectures that implement them. Make sure that we physically align memory such that we meet any demands on virtual alignment in this case. This should reduce the overhead of mapping large pool pages for pools that request dma'able memory. ok deraadt@, dlg@
* break after return is useless.dlg2015-01-231-2/+1
|
* move from deferring vd requests with a task per message to a ringdlg2015-01-231-39/+59
| | | | | | | | | | | | | | of pointers to vd requests, and a single task to notify the taskq that there's work on the ring. the ring is modelled on what you usually get with network cards, which is an array with a producer and consumer index. the interrupt handler fills an entry in the ring at the producers index and increments it. the task reads entries at the consumer index and increments it until it reaches the same value as the producer. tested and slightly tweaked by kettenis@ ok kettenis@
* get the args right for the fallback atomic_{cas,swap}_ptrdlg2015-01-231-5/+5
| | | | | implementations, and then cast the pointer to the right type for the gcc builtins.
* pool_setipl() on both pmap pools as a workaround for some sort of MPderaadt2015-01-221-1/+3
| | | | | | race. This will certainly be revisited, but too much time has been spent on it for now. ok mpi
* Let powerpc's bus_space(9) use the same pmap and uvm interfaces than thempi2015-01-223-89/+76
| | | | | | | | | | | | | | | | other archs. Specify the caching policy by passing PMAP_* flags to pmap_kenter_pa() like the majority of our archs do and kill pmap_kenter_cache(). Spread some pmap_update() along the way. While here remove the unused flag argument from pmap_fill_pte(). Finally convert the bus map/unmap functions to km_alloc/free() instead of uvm_km_valloc/free(). Inputs from kettenis@ and miod@, ok miod@
* Replace some obvious '$OpenBSD' and '$OpenBSD:' typos with '$OpenBSD$'.krw2015-01-229-9/+9
| | | | | | Pointed out by dickman@. ok sthen@ phessler@
* Reduce the number of intermediate buffers by pre-allocating DMA buffersmpi2015-01-223-50/+61
| | | | | | | in the report functions instead of letting the stack do it magically for us. Reviewed and tested by David Higgs, thanks!