summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-08-12Non-equivalent writable aliases (aka illegal aliases) are bad. Since PA-RISCMark Kettenis
doesn't have a usuable uncachable bit, whack all other mappings of a page if we are about to create a non-equivalent writable alias by entering a mapping for it. ok art@, miod@
2009-08-12Mark sensor as invalid if the i2c transaction to read its value fails.Mark Kettenis
ok deraadt@
2009-08-12ix currently relies on a gcc extension that removes a commaJonathan Gray
if no arguments are passed to a variadic macro. Create a seperate non variadic macro for this fixed argument case. No binary change. ok reyk@
2009-08-12Namecache revamp.Bob Beck
This eliminates the large single namecache hash table, and implements the name cache as a global lru of entires, and a redblack tree in each vnode. It makes cache_purge actually purge the namecache entries associated with a vnode when a vnode is recycled (very important for later on actually being able to resize the vnode pool) This commit does #if 0 out a bunch of procmap code that was already broken before this change, but needs to be redone completely. Tested by many, including in thib's nfs test setup. ok oga@,art@,thib@,miod@
2009-08-12Backing store for ega and vga virtual console is not allocated until theMiod Vallat
second vc is created. However, it was allocated using the geometry of the second vc to allocate backing store for the first. Be sure to use the proper values in case geometries differ.
2009-08-12dlg deferred calling interfaces' if_start routine so we call them less,Henning Brauer
which does pay out, performance wise. one of the conditions to call the interfaces' if_start routine immediately was "send queue is full". on a very busy (hammered) machine this will itroduce too much latency since we spend almost all cpu time in interrupt handlers and softnet, so the softint actually doing the if_start gets called to seldom and the queue full check is what triggers the actual transmit. change the logic to call if's if_start routing immediately when there are at least 8 packets (or in case if maxlen being smaller than 8, maxlen) 8 chose because it shows best performance in my test setup here. ok dlg
2009-08-12New lisa(4) driver for ST LIS331DL accelerometer in HP 2133 Mini-Note PC; ↵Constantine A. Murenin
ok deraadt
2009-08-12if we get dangerously low on clusters during interrupts, we needDavid Gwynne
to free some for use on the rx rings on network cards. this modifies m_cluncount to advise callers when we're in such a situation, and makes them responsible for freeing up the cluster for allocation by MCLGETI later. fixes an awesome lockup with sis(4) henning has been experiencing. this is not the best fix, but it is better than the current situation. yep deraadt@ tested by henning@
2009-08-12always mark an xs complete if we're about to return COMPLETE to theDavid Gwynne
midlayer. always call scsi_done on the xs too.
2009-08-12though shalt complete the xs (ie, call scsi_done with it) before returningDavid Gwynne
COMPLETE in a scsi_cmd handler. found by thib when testing my midlayer changes.
2009-08-12Apple is hopelessly inconsistent with their firmware, so some machines haveMark Kettenis
an extra smu-i2c-control node where others don't. Handle the difference. Makes the PowerMac9,1 actually find some i2c devices.
2009-08-12Since SENSORS_WATTS now is in muW, say so in the comment.Mark Kettenis
2009-08-12Add support for the "Slots Power" sensor on the PowerMac9,1.Mark Kettenis
2009-08-12fix unused widgets to contain the actual ids; ok jakemsr@Martynas Venckus
2009-08-12don't confuse chars with strings; ok oga@Martynas Venckus
2009-08-11don't take chip revision as a pointer to the string; swap it with xnameMartynas Venckus
ok naddy@
2009-08-11More exact matching for Sunix 40XX 4 and 8 port units so that we can fixTheo de Raadt
their baud rate multipliers.
2009-08-11Do not bother initializing bufpages in the md code if the computation isMiod Vallat
exactly the same the mi could will use if bufinit() is invoked with bufpages == 0.
2009-08-11With the SysV memory allocation changes, allocsys() doesn't do anythingMiod Vallat
anymore. Get rid of it completely.
2009-08-11The PowerMac9,1 has 4 sensors on its smu(4), so increase the maximum number.Mark Kettenis
Also add a check for the maximum number of sensors like we already have for the number of fans such that we avoid mysterious hangs on machines with more than 4 sensors.
2009-08-11uvm_scheduler() sounds important, but ``while(1) tsleep()'' is kinda lameBret Lambert
inline the loop in the one place it exists, and remove it from uvm adjust a comment mentioning it accordingly originally inspired by a diff fixing a comment from oga@ ok art@ beck@ miod@ oga@
2009-08-11fix some stupidity in x86 bus_space_map.Owain Ainsworth
right now, we do a pmap_kenter_pa(), we then get the pte (behind pmap's back) and check for the cache inhibit bit (if needed). If it isn't what we want (this is the normal case) then we change it ourselves, and do a manual tlb shootdown (i386 was a bit more stupid about it than amd64, too). Instead, make it so that like on some other archs (sparc64 comes to mind) you can pass in flags in the low bits of the physical address, pmap then does everything correctly for you. Discovered this when I had some code doing a lot of bus_space_maps(), it was incredibly slow, and profilling was dominated by pmap_tlb_shootwait(); discussed with kettenis@, miod@, toby@ and art@. ok art@
2009-08-11tiny knf and use curproc directly instead of a setting up a local procThordur I. Bjornsson
pointer since its just used in one place. ok blambert@
2009-08-11Recent alignment fixes seem to make bwi(4) work at leastKenneth R Westerback
semi-reliably on my Thecus. Let others play too. 'no objections' miod@ 'sure' deraadt@
2009-08-11optimise m_clget so that it holds spl for even lessTheo de Raadt
ok dlg thib
2009-08-11Fix a few bugs in nfsrv_rename() error recovery code.Thordur I. Bjornsson
- Prevent a double vrele() by setting the vnode pointer to NULL. - Check if vnode pointers have been set to NULL before trying to vrele(). - don't double free the component path name buffer. - Add a workaround for multiple vnode pointers all pointing to the same vnode and the code doing vrele() on all of them, leading to botched refcounts. This is a horrible hack, but a real fix is being worked on. OK blambert@
2009-08-11Must move the splx() lower in m_clget() so that it protects atomic accessTheo de Raadt
to the per-ipf mbuf cluster reference counters ok dlg claudio
2009-08-10The shutdown hook is no longer required now that we shutdown all interfacesJoel Sing
when rebooting. ok deraadt@ jasper@
2009-08-10The start function did enough so the shutdown hook is not neededTheo de Raadt
2009-08-10hook no longer neededTheo de Raadt
2009-08-10This does not need a shutdown function either (though the equilevantTheo de Raadt
to stop is not called because the ioctl function is a masterpiece)
2009-08-10More cases of shutdown hooks not needed after card is already stopped. InTheo de Raadt
these cases the xxstop function is a bit more complicated and has a flag of some sort, but the use of that flag does not matter; DMA is already ceased ok dlg
2009-08-10More cases of shutdown hooks not needed after card is already stopped. InTheo de Raadt
these cases the xxstop function is a bit more complicated and has a flag of some sort, but the use of that flag does not matter; DMA is already ceased ok dlg
2009-08-10USB network devices do not DMA in a way that requires a shutdown functionTheo de Raadt
2009-08-10A few more simple cases of shutdown hooks which only call xxstop, whenTheo de Raadt
we now know the interface has already been stopped
2009-08-10clear the beacons owner/valid bits to avoid garbage.Damien Bergamini
slightly modified version of a diff from Piotr Durlej. similar to what the vendor driver is doing.
2009-08-10clear the beacons owner/valid bits to avoid garbage.Damien Bergamini
slightly modified version of a diff from Piotr Durlej. similar to what the vendor driver is doing.
2009-08-10three more shutdown hooks bite the dust.Damien Bergamini
2009-08-10xge_shutdown is not needed now that interface is stopped, sinceTheo de Raadt
xge_shutdown was just calling stop again ok dlg
2009-08-10missing argument to DPRINTF.Damien Bergamini
no binary change (RUN_DEBUG only).
2009-08-10delete xxshutdown handlers that are never even hooked upTheo de Raadt
2009-08-10undef OTUS_DEBUG.Damien Bergamini
can't believe this made it into 4.6 :-(
2009-08-10i prefer (m == NULL) over (!m)Damien Bergamini
change two error messages while i'm here.
2009-08-10use splhigh instead of splclock to block in the i386_ipiTheo de Raadt
fixes stability problems on some machines; ie. crashes in in cpu_idle_cycle from netbsd, via dhill
2009-08-10Don't use char arrays for sleep wchans and reuse them.Thordur I. Bjornsson
just use strings and make things unique. ok claudio@
2009-08-10right now, we only increment ci_idepth in struct cpuinfo whenOwain Ainsworth
MULTIPROCESSOR is defined. This makes splassert incorrect for IPL_NONE on such kernels. Make this more similar to amd64, and move the inc and dec of ci_idepth into the interrupt vectors, and only leave biglock in the locking functions. ok kettenis@
2009-08-107 years ofHenning Brauer
#if 1 reasonable #else bullshit required by some committee #endif are enough. theo ok
2009-08-10we need to null mcopy, gotos bite. theo and i both missed them, theo okHenning Brauer
2009-08-10lockmgr -> rwlockOwain Ainsworth
same diff as before, with the uninitalized variable fixed. ok toby@
2009-08-10gpio for amd64.Jonathan Gray
ok deraadt@