summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2012-07-13Move all the macros defined here into the _KERNEL block since userlandClaudio Jeker
has no use for those. OK bluhm@ guenther@
2012-07-13Make the ACPI EC aware of the AML global lock.Paul Irofti
Comments from kettenis@ and matthew@. Okay deraadt@, kettenis@.
2012-07-13More foundation goo for amd64 hibernateMike Larkin
2012-07-13Starting point for amd64 hibernate ... some goo copied from i386.Mike Larkin
This does not yet work for amd64 - getting the structure into the tree so others can help.
2012-07-13Keep separate OACTIVE flags to mark full management/data tx queues,Stefan Sperling
and set the interface's IFF_OACTIVE flag if either queue is full and clear it only if both queues have free slots. Before this change both queues were setting/clearing the same flag with no regard for the other queue's state. Also, don't reset the tx watchdog counter if either queue still has frames queued when we exit the frame-processing loop in the per-queue interrupt handlers. Both changes originally from sephe@dragonfly. Tested by myself and edd on a slow busy soekris which before this change required occasional 'ifconfig ral0 down up' to recover.
2012-07-13Tweak node cache eviction strategy when the cache is full: kick off new nodesStefan Sperling
in AUTH state that weren't active during the cache wait interval rather than keeping them for the entire cache timeout interval. Fixes association failures in noisy RF environments. Tested by edd and myself with a slow soekris suffering from RF noise with about of 50 interrupts per second on ral0. ok deraadt
2012-07-13Init the baseband processor before selecting antennas since selecting antennasStefan Sperling
involves tweaking of BBP registers. Wait for BBP to stop being busy before reading from it. Originally from sephe@dragonfly. ok kettenis sthen
2012-07-12Be way more careful when accessing a possibly cached route in_selectsrc()Claudio Jeker
since it may already been gone. Fixes panic seen by stsp@ when unplugging a used USB interface. Tested and OK stsp@
2012-07-12Three cases that should be failures, not successes when checking for availMike Larkin
swap region for hibernate.
2012-07-12Enable hibernate (suspend-to-disk) support for i386.Mike Larkin
Presently only working on pciide/wd disks. ok deraadt@
2012-07-12Temporarily don't do RLE page encoding in hibernate to fix some unpackingMike Larkin
corruption seen earlier. This makes hibernate much slower but seems to fix the corruption problems seen on all machines we've tested on.
2012-07-12Support NetMos NM9820 cardbus (added to puc as well, for theTheo de Raadt
adaptor cages and because one day com@cardbus should be replaced by puc@cardbus)
2012-07-11Revert the blocked FIFO open fix, as there's either a race in thePhilip Guenthe
ref-count handling under handling, or blambert@ is messing with my head
2012-07-11Enable the swap checker for hibernateMike Larkin
2012-07-11#ifdef the uvm swap checker fn for hibernate only, to save space in kernelsMike Larkin
that don't use hibernate requested by and ok deraadt@
2012-07-11If the current offset is strictly less than the process filesizePhilip Guenthe
rlimit, then a write that would take it over the limit should be clamped, making it a partial write. ok beck@
2012-07-11add a check for the total size of swap, abort if too small.Mike Larkin
used by the hibernate code. ok deraadt@
2012-07-11for now, restrict hibernate to root in the acpi ioctl kernel interface.Mike Larkin
normal rules for controlling this interface through apmd still apply. ok deraadt@
2012-07-11add uvm_swap_check_range to scan for contig free space at end of swap.Mike Larkin
will be needed shortly for hibernate. ok deraadt@
2012-07-11exit1(EXIT_THREAD) needs to call single_thread_check() so that itPhilip Guenthe
can be suspended and/or decrement pr->ps_singlecount if necessary. With that added, the call the other direction needs to use its own flag (EXIT_THREAD_NOCHECK) to avoid looping. problem diagnosed from a hang naddy@ hit; ok kettenis@
2012-07-10Make sure that we don't schedule processes on CPUs that we havetaken out ofMark Kettenis
the scheduler. ok hasbaert@. deraadt@
2012-07-10With address family translation, the ip length of the quoted ipAlexander Bluhm
packet within the icmp error packet was wrong. Fix this by using the pd2.tot_len of the inner packet and substract the old header's length. OK mikeb@ henning@
2012-07-10Don't release a FILE that wan't allocated. Found by benno@Philip Guenthe
ok matthew@ benno@
2012-07-10We should only call need_resched() if the priority is lower than theChristiano F. Haesbaert
priority of the current running process. In amd64 a call to need_resched() sends an IPI to the other cpu. This fixes aja@ problem where he would move the mouse and see 60000 IPIs being sent. Thanks to mikeb@ for bringing that subject up tuesday. Actually found this after inquiring guenther@ about some changes in mi_switch(). ok guenther@ aja@
2012-07-10Ooops. A debug printf sneaked in. Sorry about that.Paul Irofti
2012-07-10Place declarations for internal radix functions inside radix.c, stopBret Lambert
exporting them to the outside world via radix.h. ok claudio@ sthen@ henning@
2012-07-10More wraping and style.Paul Irofti
2012-07-10WrapPaul Irofti
2012-07-10Instead of <arpa/inet.h> pulling in <netinet/in.h>, just copy in thePhilip Guenthe
three things that it needed from there: INET_ADDRSTRLEN, INET6_ADDRSTRLEN, and struct in_addr. Add protecting #ifndefs to netinet6?/in6?.h for those. ok deraadt@
2012-07-10For setsockopt(SO_{SND,RCV}TIMEO), convert the timeval to ticks usingPhilip Guenthe
tvtohz() so that the rounding is correct and we don't time out a tick early ok claudio@
2012-07-10Try to cleanup the macro magic because of socket spliceing. Since structClaudio Jeker
socket is no longer affected by option SOCKET_SPLICE we can simplyfy the code. OK bluhm@
2012-07-10define a PFSTATE_SCRUBMASK. relying on numeric order of flags is stupidHenning Brauer
and bound to break sooner or later.
2012-07-10in_scrubprefix needs the same netmask checking as in_addprefix (which wasClaudio Jeker
added in 1.40). This fixes a pathological case where in_scrubprefix would do the wrong thing. Found and reported by glebius@FreeBSD OK bluhm@
2012-07-09The linux emulation exit hook needs to be able to sleep, so call itPhilip Guenthe
before changing p_stat to SDEAD ok pirofti@
2012-07-09Print the fd_set used by select in kdump.Claudio Jeker
OK guenther@ and deraadt@
2012-07-09Tedu old comment concerning cpu affinity which does not apply anymore.Christiano F. Haesbaert
ok blambert@ krw@ tedu@ miod@
2012-07-09Remove apic_intrcount counting in the interrupt handlers. Not that usefulTheo de Raadt
anymore as a debugging tool, and it is in a rather critical path. ok kettenis
2012-07-09Remove a useless macroTheo de Raadt
2012-07-09In reboot, no need to sched_peg_curproc() to the primary, becauseTheo de Raadt
sched_stop_secondary_cpus() leaves us on the only cpu which is left. ok kettenis haesbaert guenther
2012-07-09tiny little oops in untested hibernate blockTheo de Raadt
2012-07-09After a resume, re-initialize the MTRR registers on the AP processorsTheo de Raadt
as well. This fixes very slow performance due to lots of uncached memory on buggy machines, for instance on very large memory thinkpad W500 and such. ok mlarkin kettenis sthen
2012-07-09Enable support for the 'weight' keyword in the 'least-states'Joerg Zinke
load balancing case, this allows Weighted Least States (WLS). Everything prepared on c2k11 with help from mcbride@. This finally makes PF ready for the cloud. ok henning@ mikeb@ pyr@
2012-07-09clean up ioctl() case statementsTheo de Raadt
2012-07-09acpi_disable_onegpe() is not used; ok piroftiTheo de Raadt
2012-07-09Revert previous.Kenneth R Westerback
The standards gpds are jealous gods. kettenis@ and beck@ have shown EROFS is the wrong thing to return. So revert to EACCES until a better error code is decided on.
2012-07-09Compare the size of the static fd_mask against the number of bytes neededClaudio Jeker
not against the number bit / number of fds in the select set. ok guenther@
2012-07-09DVACT_SUSPEND must be done at cold with interrupts disabled. FailureTheo de Raadt
to read a hibernate image should restore the spl ok mlarkin
2012-07-09Do not re-initialize ci_randseed on the primary cpuTheo de Raadt
ok kettenis
2012-07-09unify com at cardbus attachmentsTheo de Raadt
2012-07-08The comment above amd64_mrinit_cpu() was way too specific and wrong.Theo de Raadt