summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2012-03-21Prevent vrele() being called with a NULL argument if nfs_namei() returns anMark Kettenis
error in several places. Should fix the "vrele: null vp" panic that henning@ has been seeing lately. ok tedu@, krw@, deraadt@
2012-03-20Add ioctl to write to hypervisor memory.Mark Kettenis
2012-03-19On sgi, use CKSEG0 addresses whenever possible for pmap_map_direct and u areaMiod Vallat
pages. This will allow R5000-based systems with physical memory fitting in CKSEG0 to use 16KB pages and direct maps (since only XKPHYS accesses trigger the XKPHYS coherency errata on these processors). Tested on IP32, IP30 and IP27 (and loongson too as well).
2012-03-19Recent uvm code (and maybe not-so-recent, but it did not explode^WKASSERT atMiod Vallat
my face then...) depends upon PMAP_PREFER_ALIGN to be a power of two, minus one. On mips64 with 4KB pages, the runtime variable used to compute PMAP_PREFER_ALIGN had the low PAGE_SHIFT bits zeroed (for no good reason I'd say). Don't bother zeroing them anymore.
2012-03-19Use uncached addresses for all exception vectors, when copying our code (orMiod Vallat
trampolines) to them; this makes sure there is no risk of pending writes being lost when we clear the caches. Of course, this would be a bug in the cache handling routines, but having our vectors correctly set will help debugging the issue. Tested on sgi and loongson.
2012-03-19Change the page size computation logic to default to 16KB pages, and onlyMiod Vallat
restrict to 4KB if the kernel is configured with R5000 or RM7000 family support. Allow the kernel configuration to override this if it knows better (e.g. an upcoming kernel configuration with support for R5000, but where physical memory on R5000 systems fits within the first 512MB).
2012-03-19Prevent the Ethernet driver to be opened twice when using a bootp() path;Miod Vallat
some ARCBios don't like this.
2012-03-19Teach the bootblocks how to load kernel from tftp (i.e. when OSLoadPartitionMiod Vallat
is bootp() instead of a disk). Kind of ugly because of the usual `can't seek' problem causing kernels with symbols to be read from the network twice. While there, add a 32 bit ECOFF boot block, not hooked to the build yet, to be used shortly.
2012-03-19Only change the default boot device to a bootable softraid volume, if weJoel Sing
are able to handle the given discipline. At this stage amd64 boot(8) is limited to RAID 1. This makes life easier for users who are booting from a softraid crypto volume, but are loading a kernel from hd0a:/bsd. Tested by jrick@devio.us - thanks!
2012-03-19Add tracing and dumping of "pointer to struct" syscall arguments forPhilip Guenthe
structs timespec, timeval, sigaction, and rlimit. ok otto@ jsing@
2012-03-19more intel cpu models, though the low/high est method is largelyJonathan Gray
irrelevant with acpi machines
2012-03-17Add hvctl(4).Mark Kettenis
2012-03-17Add vldc(4) and hvctl(4).Mark Kettenis
2012-03-17hvctl(4) is a driver for the "hvctl" Logical Domain Channel that allows theMark Kettenis
control domain to talk to the sun4v hypervisor.
2012-03-17vldc(4) is a "bus" driver for Logical Domain Channels.Mark Kettenis
2012-03-17remove IP_JUMBO, SO_JUMBO, and RTF_JUMBO.David Gwynne
no objection from mcbride@ krw@ markus@ deraadt@
2012-03-16missing bracket; ok miodTheo de Raadt
2012-03-16Display L3 cache information on amd64 for amd cpus, Intel now uses aChristiano F. Haesbaert
different scheme. ok jsg@
2012-03-15Fix vmmap SMALL_KERNEL introduced bug.Ariane van der Steldt
The if (min < VMMAP_MIN_ADDR) min = VMMAP_MIN_ADDR; code should have moved across when the small_kernel diff moved the initialization from uvm_map_setup() to uvm_map_setup_md(). Prevents a nasty panic on hppa, sparc64 (and possibly other archs). kettenis: the diff make some sense to me
2012-03-15Take cd9660 support off the "obviously a floppy" install media, to findTheo de Raadt
new space. The same cannot be done yet with some other architectures which share the RAMDISK kernel amongst media types too tightly. I am investigating the horrific src/distrib cleanups required to fix that.
2012-03-15uncached_base was introduced early in IP27 support, since these designs useMiod Vallat
subspaces in the CCA_NC uncached memory space. However, being coherent, there was never a need for bus_dma to use uncached addresses. This means that, on the only systems where uncached_base was not set to PHYS_TO_XKPHYS(0, CCA_NC), it was never used. Remove the variable, and replace PHYS_TO_UNCACHED() with PHYS_TO_XKPHYS(, CCA_NC). No functional change.
2012-03-15No longer allow bus_space_barrier() to be a NULL pointer on a givenMiod Vallat
bus_space_tag on sgi, but rather always provide at least a dummy asm("sync") flavour. Saves a function pointer test at runtime.
2012-03-15Allow multiple backslashes at the start of a namespace path. It is prettyMark Kettenis
clear this is not supposed to happen, but unfortunately the description of the ECDT table in the standard document has a path that starts with two backslashes so that's what some vendors used. From Christophe Staiesse. ok deraadt@
2012-03-15Reduce installmedia pressure from new vmmap.Ariane van der Steldt
Has less special allocators on install media (where they aren't required anyway). Bonus: makes the vmmap initialization code easier to read.
2012-03-15improve IPsec/ENC interaction:Markus Friedl
- ipip_input() recalculate the IP header checksum if the tos bits are changed after decapsulation. Otherwise these packets are dropped later in the stack. - ip_ecn_egress(): do not drop packets for IPsec if the outter packet of a Tunnel has the ECN-CE bit set (Congestion Experienced) and the inner packet does not indicate support ECN. - remove unused ip6_ecn_ingress(), ip6_ecn_egress() code ok mikeb@
2012-03-15Let nviic(4) match the NVIDIA MCP89 chipset, from Brad.Stuart Henderson
2012-03-15Direct IPv6 packets with Ethernet encapsulation into the appropriateMike Belopuhov
input routine allowing us to bridge two IPv4 networks over an IPv6 link with gif(4). ok henning, sthen, ok and tests phessler, "lets get this in!" todd
2012-03-14Fix booting on the Thecus N1200. From Tobias Ulmer.Mark Kettenis
2012-03-14Close a race that would corrupt a sockbuf because the code that externalizesMark Kettenis
an SCM_RIGHTS message may sleep. Bits and pieces from NetBSD with some simplifications by yours truly. Fixes the "receive 1" panic seen by many. ok guenther@, claudio@
2012-03-14ubsec gets stuck after receiving a packet of a particular lengthMike Belopuhov
and stops processing any further packets. this is believed to be a result of the inconsistency of the destination mbuf chain as a a copy acquired via m_copym2 works fine. so far only one problem was discovered with the optimized inline version of m_copym2: a cluster has to be allocated if source chain had one. unfortunately, this solves the problem only for some packet sizes so apply a larger hammer and call m_copym2 for now. the problem was reported and diffs were patiently tested by Joosep <joosepm-at-gmail-dot-com>, thanks! deraadt agrees to this temporary measure.
2012-03-13Don't call wdcintr() for channels that aren't properly initialized or don'tMark Kettenis
have any drives on them. Fixes a panic seen on sparc64 machines with that pesky Acer Labs chipset. ok deraadt@, krw@, henning@
2012-03-130 is a valid uid for files sysctl, don't skip it. ok guentherTed Unangst
2012-03-11add PCI ids for HP Smart Array P220i/P222/P420/P420i/P421/P721m/P822Jonathan Gray
from Scott Benesh of HP via FreeBSD
2012-03-11regenJonathan Gray
2012-03-11HP Smart Array P220i/P222/P420/P420i/P421/P721m/P822Jonathan Gray
from Scott Benesh of HP via FreeBSD
2012-03-10Account for sched_noidle and document the scheduler variables.Christiano F. Haesbaert
ok tedu@
2012-03-10Seems the _REG method is optional, so only run it if it is present.Mark Kettenis
2012-03-10AML integers are supposed to be 64-bit unsigned, but huge parts of our codeMark Kettenis
use signed integers. Partially fix issues by at least doing math operations on unsigned integers. From Christophe Staiesse.
2012-03-10Increase TCP's initial window to 10 * MSS or 14600 bytes as proposed inClaudio Jeker
draft-ietf-tcpm-initcwnd. net.inet.tcp.rfc3390 defaults to 2 now which uses the 10*MSS, setting it back to 1 brings back the old default of 4*MSS. OK sperreault@, henning@, sthen@, markus@
2012-03-10Give sigwait priority over ptrace to avoid panicPhilip Guenthe
2012-03-10Add PS_EXITING to better differentiate between the process exiting andPhilip Guenthe
the main thread exiting. c.f. regress/sys/kern/main-thread-exited/
2012-03-09New vmmap implementation.Ariane van der Steldt
no oks (it is really a pain to review properly) extensively tested, I'm confident it'll be stable 'now is the time' from several icb inhabitants Diff provides: - ability to specify different allocators for different regions/maps - a simpler implementation of the current allocator - currently in compatibility mode: it will generate similar addresses as the old allocator
2012-03-09- remove a redundant note about tftpd; ok dlgJason McIntyre
- whilst here, normalise Nd
2012-03-07Add AMD Hudson-2 support, thanks to Jorg Willekens for testing.Bryan Steele
ok mlarkin@
2012-03-07reisters -> registersMiod Vallat
2012-03-06oops. correct diff this timeMike Belopuhov
2012-03-06Add support for an SMB controller found on AMD CS5536 companion device.Mike Belopuhov
Tested on alix and soekris by benno, mpf, shadchin and myself. Loongson tests by miod. OK mpf, shadchin, kettenis
2012-03-06Check if route is still valid when getting the cached rt entry of a pcb.Claudio Jeker
While there make sure we do the lookup in the correct routing table. OK mikeb, henning and phessler
2012-03-06Add the _POSIX_MONOTONIC_CLOCK symbol and the sysconf(3)Antoine Jacoutot
_SC_MONOTONIC_CLOCK variable. from Brad No libc minor crank needed, as no API has been changed, per se (deraadt). ports bulk testing by landry@ small man rewording from thib@ ok millert@ otto@ deraadt@
2012-03-05Adds support for a slightly different version of the ALPS protocol,Alexandr Shadchin
which send 'interleaved' PS2 packets in between absolute ALPS packets. Dell laptops (E6xxx and E5500 at least) have this kind of touchpad. ok and some rework mpi@, tested okan@.